In TFS, How can I get a list of Work Items linked to any of the changesets in a list?

321 Views Asked by At

I am using TFS and I am trying to get a list of bugs that are linked to any of the change sets in a list.

My team wont to get some metrics and the only way that we can track the list of bugs that we have worked on is related to the changesets made by any of our developers.

I can get the list of change sets with VS (How to get the list of all "Change Sets" of a user in TFS?) but I don't know how to search the bugs linked to any of those change sets.

1

There are 1 best solutions below

0
On

You could use Rest API to handle this, Changesets - Get Changeset Work Items

GET https://dev.azure.com/{organization}/_apis/tfvc/changesets/{id}/workItems?api-version=5.0

It retrieves the work items associated with a particular changeset.


You also could do this from UI in work item, refer from Shayki Abramczyk's reply in this question.

In "Team Explorer" click on "Source Control Explorer":

enter image description here

Click on this icon:

enter image description here

Put the Changeset number or search it:

enter image description here

Click on "Details..." (or double-click on the changeset):

enter image description here