API to fetch all Testplans in a Project Area along with relations
Hello is there API available that can fetch all the test plans within a project area along with their master-child relationships?
We are aware of the below API , which can fetch all the testplans , but no relationship can be obtained.
https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectAreaUUID>/testplan
One answer
Hi
That's an ETM reportable REST URL - I think this can provide the details you want but you have to request the properties you need by adding a query parameter fields.
For example my basic reportable REST URL is:
And the XML returned doesn't have any references to the two test cases in my only plan.
But by adding this query parameter ?fields=feed/entry/content/testplan/testcase
so the URL becomes
Now I get some testcase tags with links to the two testcases in my little plan :-)
<ns2:testplan xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/"
xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ns3="http://schema.ibm.com/vega/2008/"
...
xmlns:ns21="http://www.w3.org/1999/XSL/Transform">
<ns2:testcase href="https://jazz.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/qm_gc_p1/testcase/urn:com.ibm.rqm:testcase:2"/>
<ns2:testcase href="https://jazz.ibm.com:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/qm_gc_p1/testcase/urn:com.ibm.rqm:testcase:1"/>
</ns2:testplan>
See the docs here https://jazz.net/wiki/bin/view/Main/RqmApi