How to Get all Parents WorkItems given a specific WorkItem with Java API?
Hello all, How to get all parents workitems hireachy of a given work item using Java API, for example:
Epic: 1234
So given the Sub Task: 7458 workitem handler, I'd like to get the parents up to the root: 7894, 4567 and 1234 The result of each of them can be the workitem handler and then I can get the ID number. Thanks a lot for the help.
|
One answer
Ralph Schoon (63.4k●3●36●46)
| answered Oct 17 '13, 12:59 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
See http://rsjazz.wordpress.com/2012/09/20/the-rtc-workitem-server-link-api-linking-to-work-items-and-other-elements/
http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ shows a server example but the client API post should help and the APIs are very similar.
Comments
Tiago Fernandez
commented Oct 17 '13, 3:07 p.m.
Thanks for the response,
Part of the code I have is:
queryPage = linkManager.findLinksBySource(WorkItemLinkTypes.PARENT_WORK_ITEM, workItemRef, null);
}
This gives me the number of the parent WorkItem plus its title.
|
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.