26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

a. Under Group – Status, right-click the second Column node and then click<br />

New Control.<br />

b. Set FieldName to MyBug.CustomField.1.<br />

c. Set Label to S&ecurity Impact.<br />

The ‘&’ assigns the ampersand character as a hotkey for the field.<br />

d. Click Preview Form to ensure that the new field is in the right location.<br />

The new field has now been added to the custom work item type.<br />

To remove a field from a work item<br />

Many times fields are referenced in queries, reports, etc. Rather than track down and<br />

remove all of these references, you can leave the fields in the system but remove them<br />

from the work item dialog layout so the user cannot set their values.<br />

• Click the Fields tab, and then click Delete in the toolbar.<br />

For example, you can remove one of the fields from the My Bug work item type you<br />

created previously, as shown below:<br />

1. Click the Layout tab to display the form layout for My Bug.<br />

2. On the Layout tab, in the tree, expand<br />

TabPageDetailsGroupColumnGroupScheduleColumn, right click<br />

Remaining &work, and then click Delete to remove it from the layout.<br />

You can add the field back into the layout at a future point because the field itself has not<br />

been deleted.<br />

To edit work item type workflow<br />

After you have created a work item type and finalized the layout, the final step is to edit<br />

the work item type workflow. Workflow governs the states and transitions that are<br />

allowed throughout the life of a work item. Because you copied the work item from an<br />

existing type, the workflow was also copied. You now need to review the work item type<br />

workflow and decide how you want to modify it. Perform the following steps to modify<br />

the work item workflow:<br />

1. Create states and transitions.<br />

a. Click the Workflow tab to open the Workflow window.<br />

b. To create a new state, drag a state from the WITDesigner toolbox into the<br />

Workflow window.<br />

c. To create a transition between two states, WITDesigner toolbox, click the<br />

Transition Link, click the starting state, and then click the ending state.<br />

d. To indicate the initial state (that is, the state of a newly created work item),<br />

click the Transition Link, click a blank part of the diagram, and then click<br />

the initial state.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!