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

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

 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

0 votes



One answer

Permanent link
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.

0 votes

Comments

 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

 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=*

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,938

Question asked: Dec 20 '22, 3:55 a.m.

Question was seen: 975 times

Last updated: Dec 21 '22, 4:28 a.m.

Confirmation Cancel Confirm