How to get all the change sets linked to a specified work item?
One answer
The change sets are connected to the work item using a special link type.
This post shows the reverse direction: https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/
https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ explains linking and also has code to analyze the links.
The latest code for linking I have is here: https://rsjazz.wordpress.com/2015/02/27/a-rtc-workitem-command-line-version-2-2/
Note, you can only follow that specific link type but not set it. That is limited to the SCM component.
This post shows the reverse direction: https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/
https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ explains linking and also has code to analyze the links.
The latest code for linking I have is here: https://rsjazz.wordpress.com/2015/02/27/a-rtc-workitem-command-line-version-2-2/
Note, you can only follow that specific link type but not set it. That is limited to the SCM component.
Comments
Hi,
Thanks for your answer.
But, sorry, I think I didn't make myself clear. My problem is that I want to fetch all the change-sets that are linked to a specified work item.
Would you please give me some help? I have searched the answer for a long time but didn't find it. I saw someone post the similar question to Jazz Forum, but no one answer it.
Since I am not clear what fetch a change set would mean. So I can't search.
I have some code for working with change sets on my blog (rsjazz) there is some here: http://thescmlounge.blogspot.de/
1 vote