It's all about the answers!

Ask a question

How to get what build the specified work item is included?

Perry Zou (644) | asked Feb 18 '11, 3:39 a.m.
retagged May 01 '14, 3:13 p.m. by David Lafreniere (4.8k7)
We are going to get the build list the specified work item is included via programming. In orther words, given a work item with some codes delivered, go to the Links tab of the work item, and then there will be some builds in "Included in Builds" section. What is the correponding API so that we can get the "included in Builds" list via Java programming? Is there any one kowns it. Thanks!

One answer

permanent link
sam detweiler (12.5k6195201) | answered May 01 '14, 4:35 p.m.
edited May 01 '14, 4:39 p.m.
Included in Builds is a link, just like Parent/child..

so the workitem References list should contain those links.. the far end of the link (endpoint) should be the build result object reference.

there is working code at the end of my sample here

that lists out the links of a workitem returned in a workitem query.
so you could create a query that shows workitem that HAVE Included in build links, then run this sample to see what they look like.

note that the forum software messes with the case and quotes on poted code, so there is some fixup required after u copy/paste the same utility.
it takes 5 parms,  repository_url, userid, password, project_name, query_name

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.