How to find the parent of an artifact programmatically?
For instance, there is "Parent testplan" link on the right top of RQM UI when viewing a test case if the test case is linked to a test plan. It's quite easy for a test plan to find all its children test cases through JAXB object, but how to find its parent for a test case? Is there any way to achieve this by code?
4 answers
Unfortunately, there isn't a reference from a test case to it's parent test plan:
https://jazz.net/projects/rational-quality-manager/api-doc-3.0/api-files/schemas/qm_xsd/elements/testcase_1.html
However, you can use the fields filter (https://jazz.net/wiki/bin/view/Main/RqmApi#fields) to query for test case referenced by a specific test plan.
https://jazz.net/projects/rational-quality-manager/api-doc-3.0/api-files/schemas/qm_xsd/elements/testcase_1.html
However, you can use the fields filter (https://jazz.net/wiki/bin/view/Main/RqmApi#fields) to query for test case referenced by a specific test plan.
Unfortunately, there isn't a reference from a test case to it's parent test plan:
https://jazz.net/projects/rational-quality-manager/api-doc-3.0/api-files/schemas/qm_xsd/elements/testcase_1.html
However, you can use the fields filter (https://jazz.net/wiki/bin/view/Main/RqmApi#fields) to query for test case referenced by a specific test plan.
So that means always starting from the parent then looking for its children, which is time-consuming when I hope to find the parent for a test case. I am curious that how RQM does to display the parent in UI?