Reference for url query strings parameters in the WorkItemEdit.aspx in TFS

2k Views Asked by At

If users experience an exception in UAT they'll log a bug in TFS, eg:

public void TopLevelExceptionHandler(Exception ex)
{
...
System.Diagnostics.Process.Start(Settings.Default.TFSBugReportingURL + ex);

http://tfsportal/CompanyName/ProjectName/_layouts/tswa/UI/Pages/WorkItems/WorkItemEdit.aspx?wit=Bug&[System Info]=

See the wit query string parameter (a.k.a Work Item Type), where is the reference to these query string parameters for this WorkItemEdit.aspx page?

I'm trying to set the AssignedTo field.

EDIT: This is how you set the free text Title field and the drop down list priority field:

[Title]=FixSomeBug&[Priority]=1&

I just cannot work out the AssignedTo field? I'd also like to know how to access the [Steps to Reproduce] field.

EDIT 2:

I looked through the SDK, and stumbled up on it: &[Assigned to]=THOMPSON, Jeremy&


EDIT 3:

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.

As usual Ewald is to the rescue, unfortunately my screen doesn't have the "Copy Template URL" button: enter image description here

2

There are 2 best solutions below

0
On BEST ANSWER

The solution for me to see the hidden "Copy Template URL" button was in the URL I used:

http://tfsportal/CompanyName/ProjectName/_layouts/tswa/UI/Pages/WorkItems/WorkItemEdit.aspx <- doesn't show the button.

http://tfs.CompanyNameURL:8080/tfs/web/wi.aspx? <- does show the button

4
On

If you fill out a bug form, you can use the Copy Template URL button in the toolbar to find out how you should construct the URL. See an image of the button at http://www.ewaldhofman.nl/post/2009/05/06/Initial-values-in-a-work-item.aspx