The Orbit Notebook Software Architecture, Development and Design Thoughts


Linking Changesets to Work Items in TFS (after the fact)

Lately, I’ve had a few occasions in Team Foundation Server, where I’ve checked in a bunch of code and forgotten to associate the files with a work item. Not a huge deal, but I like to have my changes grouped-up by the bug or work item, so it’s been worthwhile for me to make the association.

Linking a changeset to one or more work items after the initial check-in is really easy, although it's not too intuitive. The easiest way that I’ve found to accomplish this is to open your bug or work item in TFS and scan about a third of the way down the page to a group of tabs. Within these tabs is a “Links” tab:

Now, click this “Links” tab, to see any changesets (or test results, or other work items) that have already been associated with this work item:

From here, you can click “Add” and choose Changeset from the Link type dropdown list. Enter the number of the changeset and a comment, and voila.

Link added! I hope this saves you some time and searching.nn1

Comments (1) Trackbacks (0)
  1. This doesn’t quite do the same thing. If you open the Changeset Details window for that changeset and click the Work Items button on the left, the work item does not appear. So when you associate a work item with a pending check in, a two way link is created. When associating a changeset via the Links tab, only a one way link is created, which is not as useful.

Leave a comment

No trackbacks yet.