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

How to get a list of test plans in which a test case is used?

I would like to get a list of test plans in which a test case is used. 
The following call only works if a test case is referenced in only one test plan. No result if a test case is referenced in more than one test plan.
   
https://[server:port]/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/[<contextRoot>]/testplan?fields=feed/entry/content/testplan/(title|description|testcase[@href='https://[server:port]/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/[<contextRoot>]/testcase/urn:com.ibm.rqm:testcase:<testcase id>'])

Thank you in advance for your suggestions and sample codes.

0 votes


Accepted answer

Permanent link

Solved using ETM OSLC API:

https://[server:port]/qm/oslc_qm/contexts/<contextRoot>/resources/com.ibm.rqm.planning.VersionedTestPlan?oslc.where=oslc_qm:usesTestCase="https://[server:port]/qm/oslc_qm/contexts/<contextRoot>/resources/com.ibm.rqm.planning.VersionedTestCase/<testcase_uri>"


Ralph Schoon selected this answer as the correct answer

0 votes

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
× 234
× 30
× 6

Question asked: Aug 04 '23, 12:36 p.m.

Question was seen: 689 times

Last updated: Aug 06 '23, 4:07 p.m.

Confirmation Cancel Confirm