How to get what build the specified work item is included?
Perry Zou (6●4●4)
| asked Feb 18 '11, 3:39 a.m.
retagged May 01 '14, 3:13 p.m. by David Lafreniere (4.8k●7)
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
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 |
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.