Linking to work items between different repositories
Hi All,
I am trying to create links between different work items FROM DIFFERENT REPOSITORIES. First of all, is it possible ? If yes, then how can we do it? I tried the below approach: private static class WorkItemReferencesModification extends WorkItemOperation { private IWorkItemHandle fOpposite; public WorkItemReferencesModification(IWorkItemHandle opposite) { super("Modifying Work Item References",IWorkItem.FULL_PROFILE); fOpposite = opposite; } @Override protected void execute(WorkItemWorkingCopy workingCopy, IProgressMonitor monitor) throws TeamRepositoryException { // Create a new reference to the opposite item IItemReference reference = IReferenceFactory.INSTANCE.createReferenceToItem(fOpposite); // Add the new reference using a specific work item end point workingCopy.getReferences().add(WorkItemEndPoints.BLOCKS_WORK_ITEM, reference); } } It works fine in for the work items in the same repository but did not work for work items between different repositories. I tried creating reference from createReferenceFromURI which also did not work. Any suggestions ? Regards, Arshad |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered May 02 '16, 3:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It is always clever to try to do something in the tool, before trying to do it using the API.
Comments
Arshad Adavani
commented May 02 '16, 4:38 a.m.
Hi Ralph,
https://jazz.net/wiki/bin/view/Deployment/MultipleCCMAppsUserPerspective#Configuring_the_CLM_Link_Structu |
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.