Process Template Customization Tips and Tricks

Coordinator
Sep 24, 2008 at 10:57 AM
Edited Sep 24, 2008 at 11:07 AM
Have you customized a Team Foundation Server process template? Did you learn some tricks along the way? If so, please share your tips here! And be sure to set an alert on this thread so that you'll learn tips and tricks from others.

Thanks in advance for contributing to the Team System community.

Martin Danner
Sep 24, 2008 at 5:50 PM

HOW TO:: CUSTOMIZING THE "ASSIGNED TO" FIELD OF A WORK ITEM TYPE (WIT)

Modify the XML for the Work Item Type to include:

<FIELD name="Assigned To" refname="System.AssignedTo" type="String">
<ALLOWEDVALUES expanditems="true" filteritems="excludegroups">
<LISTITEM value="[Project]\Project Administrators" />
<LISTITEM value="[Project]\Contributors" />
<LISTITEM value="Unassigned" />
</ALLOWEDVALUES>
<DEFAULT from="value" value="Unassigned" />
</FIELD>

The XML for the Work Item can be imported and exported using witimport and witexport.  You can access these from the command line by opening a Visual Studio Command Prompt.

Coordinator
Sep 24, 2008 at 11:57 PM
Thanks Wes! This is a very useful customization to avoid a large number of irrelevant names from appearing in the drop down for the Assigned To field. You can also use the Process Template Editor, which is available in the TFS 2008 Power Tools, to import and export work items. For more information on this customization technique, see this blog post by Tiago Pascoal.