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. |
Unfortunately, there isn't a reference from a test case to it's parent 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? |
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 |
The parent test plan(s) - note, there may be more than one - are resolved using a query such as: Paules, thanks for your answer. |
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.