How to get the dependent work items programatically through jazz API?
Accepted answer
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
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