It's all about the answers!

Ask a question

How to find the parent of an artifact programmatically?


Helen Yao (1145) | asked Aug 23 '11, 8:25 a.m.
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



permanent link
Paul Slauenwhite (8.4k12) | answered Aug 24 '11, 7:38 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
Helen Yao (1145) | answered Aug 24 '11, 10:44 p.m.
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?

permanent link
Paul Slauenwhite (8.4k12) | answered Aug 24 '11, 11:01 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
The parent test plan(s) - note, there may be more than one - are resolved using a query such as:

<feedUrl>?fields=feed/entry/content/testplan/testcase

permanent link
Helen Yao (1145) | answered Sep 09 '11, 1:07 a.m.
The parent test plan(s) - note, there may be more than one - are resolved using a query such as:

<feedUrl>?fields=feed/entry/content/testplan/testcase


Paules, thanks for your answer.

Your answer


Register or 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.