How to get the dependent work items programatically through jazz API?
I want to access the the dependent work item of a 'given work item' programatically in java code. What can be the possible code for the same?
|
Accepted answer
Ralph Schoon (63.6k●3●36●47)
| answered Aug 03 '12, 3:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Aug 03 '12, 3:46 a.m.
The code for the client API should look like
IWorkItemClient wiClient = (IWorkItemClient)teamRepository().getClientLibrary(IWorkItemClient.class); IWorkItemReferences refs = wiClient.resolveWorkItemReferences(workItem, monitor); List<IReference> references = refs.getReferences(WorkItemEndPoints.DEPENDS_ON_WORK_ITEM); I have not tested the code. For the server API look at http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ or https://jazz.net/forum/questions/64268/operation-advisor-custom-precondition-for-work-items/64273 Sarthak Sharma selected this answer as the correct answer
|
One other answer
You can get linked or reference work items with the Link ID com.ibm.team.workitem.linktype.blocksworkitem.
|
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.