Query build results filtered by creator
Hi,
I'm trying to read build results for a given user using the reportable REST API
does not work because apparently "creator/userId" is a non-queryable field. Interestingly,
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?
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
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
Feb 27 '15, 3:15 a.m.Thanks for your response, Argeu. Could you please elaborate on this or give a concrete example?
but it fails with "Unsupported type name: com.ibm.team.repository.Contributor".I see no "createdBy" property for buildResult, just "creator". As per your suggestion, I tried
also fails with the familiar "Non Queryable Field: creator/reportableUrl"