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

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?

0 votes



4 answers

Permanent link
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.

0 votes


Permanent link
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?

0 votes


Permanent link
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

0 votes


Permanent link
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.

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

Question asked: Aug 23 '11, 8:25 a.m.

Question was seen: 5,765 times

Last updated: Aug 23 '11, 8:25 a.m.

Confirmation Cancel Confirm