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
|
One answer
David Honey (1.8k●1●7)
| answered Dec 20 '22, 4:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Dec 20 '22, 4:34 a.m.
Hi Jyoti,
Have you looked at the https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding page?
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
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=*
Use the IN operator. See https://docs.oasis-open-projects.org/oslc-op/query/v3.0/os/oslc-query.html. |
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.