It's all about the answers!

Ask a question

Query build results filtered by creator


Christian Romeyke (1386) | asked Jan 08 '15, 10:05 a.m.
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?

Comments
Argeu Aprigio Alcantara commented Feb 26 '15, 10:07 p.m.

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


Christian Romeyke commented Feb 27 '15, 3:15 a.m.

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
Argeu Aprigio Alcantara (2113) | answered Feb 27 '15, 7:36 a.m.
edited Feb 27 '15, 7:36 a.m.
 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

Comments
Christian Romeyke commented Feb 27 '15, 7:58 a.m.

Hi Argeu,

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

Your answer


Register or 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.