Search code examples
tfsbug-tracking

How can I create a direct link to a bug in TFS web portal without knowing the project name?


We use TFS web acces extensively, at the moment using TFS 2012.2.

Most workitem URLs on the website are built up as follows:

http://{TFS-SERVER}:8080/tfs/{PROJECT-COLLECTION}/{PROJECT}/_workitems#_a=edit&id={WORKITEM-ID}

However, WORKITEM-IDs in TFS are independent from PROJECTs. So my question is:
Is there a way to create a direct link to a workitem by only knowing the WORKITEM-ID? For example, I would like to do:

http://{TFS-SERVER}:8080/tfs/{PROJECT-COLLECTION}/workitemid={WORKITEM-ID}

Is this possible? Am I missing something obvious?


Solution

  • TFS 2013 supports this through the following format:

    http://{server}:{port}/tfs/{Collection}/_workitems/edit/{id}
    

    But it seems that this was not yet enabled in Team Foundation Server 2012.