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

Using Reportable Rest API to query build defintion using

Hello,  I am using reportable rest api to query the build definitions of a project.   Unfortunately the query returns empty results even though the project has multiple build definitions.  Can some one help to see whether the query is correct. 

https://server/ccm/rpt/repository/build?buildDefinition/buildDefinition[projectArea/name='MyProject']/(buildDefinition/name)


1 vote


Accepted answer

Permanent link
Check what attributes are included in the build resource here:
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#build
"name" is not included in buildDefinition.

This query will return all build definition ids:
https://jazz.net/jazz/rpt/repository/build?fields=build/buildDefinition/(projectArea/name|id)

Unfortunately this query:
https://jazz.net/jazz/rpt/repository/build?fields=build/buildDefinition[projectArea/name='Rational Team Concert']/(projectArea/name|id)

returns "Error 500: CRRED8022E: Non Queryable Field: projectArea/name" so you may be out of luck filtering on project area name.
Praveen Kumar selected this answer as the correct answer

1 vote

Comments

Thanks Brian.


Since querying by project name is not available the only other way I could think for getting build result corresponding to a project was to 

1. Query for all build definitions in the ALM instance
2. Then query for all build results corresponding to each build definition using the below query

https://server/ccm/rpt/repository/build?fields=build/buildResult[buildDefinition/id='BldDefLinux']/(buildDefinition/projectArea/name|label|buildStatus|timeTaken) 

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,954
× 482

Question asked: Mar 27 '13, 7:53 a.m.

Question was seen: 4,747 times

Last updated: Mar 28 '13, 6:44 a.m.

Confirmation Cancel Confirm