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

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?

1 vote


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
You can get linked or reference work items with the Link ID com.ibm.team.workitem.linktype.blocksworkitem.

0 votes

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
× 12,022

Question asked: Aug 03 '12, 12:30 a.m.

Question was seen: 4,557 times

Last updated: Aug 03 '12, 3:46 a.m.

Confirmation Cancel Confirm