How to set the filiation of two workitems by programming?
One answer
Hi,
you have to use the ILinkServiceLibrary.createLink methods, referring the link type id (which is "com.ibm.team.workitem.linktype.parentworkitem"), and the two workitem IReference (obtained by IReferenceFactory.createReferenceToItem method, whit IReferenceFactory obtained by ILinkServiceLibrary.referenceFactory() ).
After you have create the link you have to save it using ILinkServiceLibrary.saveLink method.
Best regards,
Michele.
you have to use the ILinkServiceLibrary.createLink methods, referring the link type id (which is "com.ibm.team.workitem.linktype.parentworkitem"), and the two workitem IReference (obtained by IReferenceFactory.createReferenceToItem method, whit IReferenceFactory obtained by ILinkServiceLibrary.referenceFactory() ).
After you have create the link you have to save it using ILinkServiceLibrary.saveLink method.
Best regards,
Michele.