Visual Studio Team System (VSTS) Blog - by Neno Loje

Neno's Blog about Team Development and Software Quality with Microsofts ALM platform - since 2005

News

Recent Posts

Community

Tags

Email Notifications

VSTS Blogs

VSTS Sites

VSTS Community

My Other Blogs

German VSTS Websites

Archives

Tool for creating links to pages on Team System Web Access

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:

http://[TSWA:port]/wi.aspx?id=[WorkItemID]

For Team Projects
… it also pretty simple:

http://[TSWA:port]/index.aspx?pname=[ProjectName]

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:

http://[TSWA:port]/UI/Pages/Scc/ViewSource.aspx?scc-item=[ItemData]

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”

https://[TSWA:port]/UI/Pages/Scc/ViewSource.aspx?scc-item=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:

TeamSystemWebAccessLinkCreator

It should be mentioned that this tool has a lot of room for improvement. :-)

You can download the source from here:

File Attachment: TSWA_LinkCreator_1.0.zip (19 KB)

Comments

David said:

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.

# September 5, 2007 5:01 AM

Stefan N said:

I get this when I use the link:

maxq-nor-02/wi.aspx

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

# November 8, 2007 9:02 AM

neno said:

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

-Neno

# November 17, 2007 9:09 AM