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

Query build results filtered by creator

Hi,

I'm trying to read build results for a given user using the reportable REST API

/rpt/repository/build?fields=build/buildResult[creator/userId="john_lennon"]/*

does not work because apparently "creator/userId" is a non-queryable field. Interestingly,

/rpt/repository/build?fields=build/buildResult/creator[userId="john_lennon"]/*

works, but then I don't know if there is a way to navigate upwards from there, back to the buildResult.

Is there a way to achieve this? Maybe using OSLC instead?

0 votes

Comments

 It's possible to filter by creator using the entire url just like it shows up on the xml file on the attibute createdBy

Thanks for your response, Argeu. Could you please elaborate on this or give a concrete example?
I see no "createdBy" property for buildResult, just "creator". As per your suggestion, I tried

/rpt/repository/build?fields=build/buildResult[creator="<some-contributor-url>"]
but it fails with "Unsupported type name: com.ibm.team.repository.Contributor".

/rpt/repository/build?fields=build/buildResult[creator/reportableUrl="<some-contributor-url>"]

also fails with the familiar "Non Queryable Field: creator/reportableUrl"



One answer

Permanent link
 https://localhost:9443/ccm/oslc/contexts/project_area_id/workitems?oslc.properties=*&oslc.where=dc:creator=https://localhost:9443/jts/users/contributor_login
That should work

0 votes

Comments

Hi Argeu,

appreciate your help. However I'm not interested in work items, but in build results

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,936
× 515

Question asked: Jan 08 '15, 10:05 a.m.

Question was seen: 4,506 times

Last updated: Feb 27 '15, 7:58 a.m.

Confirmation Cancel Confirm