Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to retrive work item id from change set programatically using java api

Hello All,

       I followed some questions and documents and now I am able to view the change sets programmatically on the console but in order to fetch the work item ID which is associated with the change set I didn't find any direct method.
So if anyone have the logic to fetch the work item id and work item type will helpful.

Thanks in advance

1

0 votes


Accepted answer

Permanent link
The change set is related to the work item using a relationship. You have to follow that, get the other end, check and resolve that end and fetch the item. See https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for how that works. Also see  https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ and https://rsjazz.wordpress.com/2012/09/20/the-rtc-workitem-server-link-api-linking-to-work-items-and-other-elements/ for more information about the link API and how to get at the remote data.
Bharat Malge selected this answer as the correct answer

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,007
× 7,547

Question asked: Apr 08 '16, 3:29 a.m.

Question was seen: 3,244 times

Last updated: Apr 08 '16, 4:11 a.m.

Confirmation Cancel Confirm