How to add successor and predecessors using plain java?
Hi,
I have followed the below link to create new work item using plain java client library. https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation Let me know how to add successor and predecessors to the work item. Thanks, Pugazh |
One answer
Hi,
the below snippet of code will help you to add predecessor through plain java client . private void setPredecessors(WorkItemWorkingCopy wc, IWorkItem parent) { IEndPointDescriptor referenceType = WorkItemEndPoints.PREDECESSOR_WORK_ITEMS; IReference reference = WorkItemLinkTypes .createWorkItemReference(parent); wc.getReferences().add(referenceType, reference); } Thanks, Pugazh S |
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.