Initial values in a work item

by Ewald Hofman 6. May 2009 04:50

With the introduction of TFS 2008 SP1 it is possible to prefill the values when you create a new work item in Team System Web Access (TSWA) and Work Item Web Access (WIWA). You can achieve this by adding the value intial values for the fields of the work item in the url.

http://Server:Port/wi.aspx?pname=Project&wit=Type&[Field1]=Value1&[Field2]=Value2

Replace the following arguments by using values specific to your project requirements.

Server Name of the server that is running Team System Web Access
Port Port number that Team System Web Access is using (default 8090)
Project Name of the team project where the work item will be created
Type Type of work item to create
Field Name of a field to assign an initial value
Value Initial value to assign to the field

You can specify initial field values in any order. The following example is a URL that creates a bug that has "Tell what did you encounter" as its title and "MyTfsServer\MyArea" designated as the Area Path:

http://MyTfsServer:8090/wi.aspx?pname=MyTeamProject&wit=Bug&[Title]=Tell what did you encounter&[Area Path]=MyTfsServer\MyArea

There is an easy way to get the url for the work item template. When you create a new work item in Team System Web Access, there is a button available "Copy Template URL" to get the url that reflects the changes you made to the work item.

 

 How to achieve it in Team Explorer?

In Team Explorer you can achieve this also by making use of the Power Tools of TFS 2008. In the Power Tools there the Work Item templates are introduced.
 
To create a work item template, open a new work item and fill the fields that should be applied into the Work Item template. Then right click on the canvas of the work item and select Capture template. The template is not availble under the Work Item Template node in the team explorer. You can now use the Work Item template.

Tags:

Work items

Comments

9/12/2011 12:50:32 PM #

pingback

Pingback from programmersgoodies.com

Is there a web-based tool to allow users to submit work items? - Programmers Goodies

programmersgoodies.com |

Comments are closed

Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen


ClusterMap

Statistics

Statistics created at 09 Sep 2009

121 posts
493 comments
327 raters
1926171 visit (1041 per day)
23 users online

Recent comments

Comment RSS