It's all about the answers!

Ask a question

How to get all the change sets linked to a specified work item?


Ping Cao (124) | asked Mar 13 '15, 6:28 a.m.
Hi,
I want to know all the change sets linked to a work item. However, I can't find any methods in Plain Java API. Does anybody know how to do that? It'll be very appreciate if you can give me some help. Thanks a lot!

One answer



permanent link
Ralph Schoon (63.2k33646) | answered Mar 13 '15, 6:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 13 '15, 6:52 a.m.
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.

Comments
Ping Cao commented Mar 13 '15, 7:29 a.m.

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.


1
Ralph Schoon commented Mar 13 '15, 7:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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/

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.