It's all about the answers!

Ask a question

Displaying parent child relationship in third party tool


0
1
Amit Garg (311524) | asked Nov 23 '16, 7:16 a.m.
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.

2 answers



permanent link
Donald Nong (14.3k213) | answered Nov 23 '16, 9:55 p.m.
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

permanent link
Karthik Krishnan (859389132) | answered Nov 23 '16, 9:00 a.m.
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?


Comments
Amit Garg commented Nov 23 '16, 9:22 a.m.

 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 to post your answer.