It's all about the answers!

Ask a question

OSLC Query to filter List of Test cases belongs to some owners


jyoti mishra (45148) | asked Dec 20 '22, 3:55 a.m.

 Hello Everyone,


I would like to know, the  OSLC API  or REST API to fetch the list of test cases belongs to users.

Example:-

Fetch list of all test cases whose owner is either Priya, Kayara or Amol.

Thanks and Regards,
Jyoti

One answer



permanent link
David Honey (1.8k17) | answered Dec 20 '22, 4:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Dec 20 '22, 4:34 a.m.
Hi Jyoti,

It sounds like you are looking for an OSLC query. See https://docs.oasis-open-projects.org/oslc-op/query/v3.0/os/oslc-query.html.
You should use standard OSLC discovery (see https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html) to find the OSLC query capabilities for test cases for the project area(s) of interest, and use suitable oslc.where and oslc.select parameters for the GET or POST on the query base URI(s)..

Best regards,
David.

Comments
jyoti mishra commented Dec 20 '22, 11:29 p.m.

 Hello David,


I am having idea to fetch list of test cases based upon single owner, but not understanding the format for OSLC query ,if we have to find   list of test cased based upon multiple owners. 

Best Regards,
Jyoti


jyoti mishra commented Dec 20 '22, 11:31 p.m. | edited Dec 20 '22, 11:32 p.m.

 Please find below working query for single user-


Method:-GET/POST
 URL:-
<QMApplicationUrl>/oslc_qm/contexts/<ProjectUUID>/resources/com.ibm.rqm.planning.VersionedTestCase
Headers:-<Add OSLC Headers>
Body:-
oslc.where=dcterms:contributor=<https://<ELM Domain>:9443/jts/users/<UserId>&oslc.select=*


David Honey commented Dec 21 '22, 4:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.