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/*)
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/*)
One answer
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.
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.