TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Tool for creating links to pages on Team System Web Access

August 31st, 2007 · 3 Comments · Project Management with TFS, Team Foundation Server, Team Foundation Version Control, Team System Web Access (TWA), TFS Process Customization, TFS Tips and Tricks, TFS Work Item Tracking, Tools and Utilities

Would you like to send links to work items, team projects or source files on  Team System Web Access?

For work items
… you can find the answer in the offical TSWA FAQ:

Q: What’s the URL to use if I want to send the link of a specific work item?

A: Work item links use the follwing format:


For Team Projects
… it also pretty simple:


For Source Files
it’s a little bit more “interesting” (thanks to Hakan from Microsoft for reveiling the details behind this secret).

It’s a bit tricky but here it goes:


ItemData is the HtmlEncoded output of the query string something like “id=10&cs=-1”

  • id: the ID of the item in source control (you need to know this instead of the file path)
  • cs: changeset number (-1: latest)

In your example, the file id is 151611. So,

HtmlEncode(“id=151611&cs=-1”) -> “id%3D151611%26cs%3D-1”


[We’re planning to provide more friendly URLs in a future version, similar to wi.aspx approach]

To make it fast and more convenient to create links to TSWA I created a small tool to help you with it:


It should be mentioned that this tool has a lot of room for improvement. 🙂

You can download the source from an updated version here.


3 Comments so far ↓

  • David

    Is there anyway to get a link to a query result list? I need to send management to the list of items in the next iteration, but TSWA complains.

  • Stefan N

    I get this when I use the link:

    Server Error in ‘/’ Application.

    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /wi.aspx

    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

  • neno

    Stefan N: Did you include the correct port of your TSWA installation?


Leave a Comment