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

Displaying parent child relationship in third party tool

We are working on an integration where we want the parent and the child information of WIs to be displayed within the other tool (along with attribute info like: Est Finish date, etc)

For example Top level is -> Story
                                              Milestone
                                                  Task 1 (Est Finish Date - x)
                                                   Task 2 (Est Finish Date - y)

So if we are displaying information related to story in another tool, can we also show/fetch the child WIs and the attributes related to them in the third party tool.

1

0 votes



2 answers

Permanent link
You didn't make it clear how you will query the information out of RTC (what API?), so I will suggest the ones that I'm familiar with.

1. With OSLC, you should check the attributes <rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent> and <rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children>.
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20

2. With reportable REST API, the XPaths are workitem/workItem/parent and workitem/workItem/children, so you would run a query like /ccm/rpt/repository/workitem?fields=workitem/workItem/(*|parent/*|children/*) to retrieve such information. Of course you should do further attribute filtering and selection based on your requirement.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

1 vote


Permanent link
If you can using Eclipse client, then this feature exists already (partly).

You can enable the following;

1. In the "work items" view, click on "Relationships"
.

2. Select what you want to see:
 

Ex: Create a query which has only "Story"
In the above view, enable only Children"

Then Eclipse will show only it's children (s) and it's children(s) depending on the selection.

3. Add additional columns if you need

Does this help?

0 votes

Comments

 Thank you Karthik for the quick reply. However, how will you call or view this relationship (any oslc link or something) in any third party tool.

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
× 10,938
× 7,495

Question asked: Nov 23 '16, 7:16 a.m.

Question was seen: 3,380 times

Last updated: Nov 28 '16, 5:13 a.m.

Confirmation Cancel Confirm