Thursday, May 16, 2013

Team Foundation Server 2012: create a direct link to a work item

Team Foundation Server always allowed you to directly browse to a specific work item by calling a very specific URL. In Team Foundation Server 2012, this URL has changed to

http://tfsservername:8080/tfs/web/wi.aspx?pcguid={collectionguid}&id={workitemid}

Replace the {workitemid} part by the id of the work item and the {collectionguid} part by the GUID of your TFS collection.

How to get this collection GUID?

The easiest way to know the collection GUID(without querying the TFS configuration database directly) is to follow the steps below:

  • Open Team Explorer
  • Connect to the TFS collection you want to use
  • Open a work item in this collection(doesn’t matter which one)
  • Right click on the work item and choose Copy Full Path

image 

  • Paste the path into notepad and you’ll find the correct GUID

image

No comments: