How to add successor and predecessors using plain java?
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
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