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

How to get work items associated with builds and changesets through the REST API

So far I have figured out how to get lists of Work Items, Builds, and Change Sets via the REST API. Problem is I can't figure out how to get any associations. For example, when folks create change sets, they associate them with a work item. Then the change sets are associated with builds. Thus I should be able to pull a list of builds and their associated work items (via the change sets contained in the builds). But I can't see how to get those associations via the REST API. Any ideas?

Get a list of work items with history:
https://SERVER:9443/jazz/rpt/repository/workitem?fields=workitem/workItem/(id|summary|target/name|duration|itemHistory/(target/name|modified|modifiedBy/name))

Get a list of Change Sets:
https://SERVER:9443/jazz/rpt/repository/scm?fields=scm/changeSet/(owner/name|modified|modifiedBy/name|comment)

Get a list of Builds:
https://SERVER:9443/jazz/rpt/repository/build?fields=build/buildResult/(label|buildStatus|buildDefinition/(id|description)|personalBuild|buildEngine/*)

0 votes



One answer

Permanent link
Hi Mike,

I found this forum post that you might find helpful:  https://jazz.net/forum/questions/47527/access-build-information-from-oslc?redirect=%2Fforum%2Fquestions%2F47527%2Faccess-build-information-from-oslc.  The information is a bit old, so you might want to add a comment asking Nick if anything has improved since.

1 vote

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
× 10,937
× 479

Question asked: Jul 16 '13, 7:42 p.m.

Question was seen: 7,796 times

Last updated: Jul 18 '13, 7:32 a.m.

Confirmation Cancel Confirm