It's all about the answers!

Ask a question

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

Bharat Malge (2131430) | asked Apr 08 '16, 3:29 a.m.
edited Apr 08 '16, 3:29 a.m.
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

Accepted answer

permanent link
Ralph Schoon (63.0k33645) | answered Apr 08 '16, 4:11 a.m.
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 for how that works. Also see and for more information about the link API and how to get at the remote data.
Bharat Malge selected this answer as the correct answer

Your answer

Register or to post your answer.