How to get what build the specified work item is included?
![](http://jazz.net/_images/myphoto/d14cad292f2f51bcb9943a1fdca5ebf9.jpg)
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
![](http://jazz.net/_images/myphoto/d14cad292f2f51bcb9943a1fdca5ebf9.jpg)
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
https://jazz.net/forum/questions/94776/assertionfailedexception-problem-with-getting-the-values-of-attributes
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
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
https://jazz.net/forum/questions/94776/assertionfailedexception-problem-with-getting-the-values-of-attributes
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