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

Issues while creating OSLC link from CCM to AM.

 Hello there,


We are trying to create a OSLC link from a workitem in CCM to a model element in AM in Global configuration context.
When we create the link manually it works fine. so we know that the global configuration is setup correctly.
However, when we try to do the same using EWM APIs it doesn't work as expected.
We can see the link in workitem(CCM). But the link is not visible in the model element(AM).

Any suggestions?

Below is the code:


private static void createLinkFromCCMToAM(IWorkItem workitem, String rmmTargetUrl) {
ILinkManager linkManager = (ILinkManager) teamRepository.getClientLibrary(ILinkManager.class);
URI targetURI = URI.create(rmmTargetUrl);
IReference sourceRef = WorkItemLinkTypes.createWorkItemReference(workitem);
IReference targetRef = IReferenceFactory.INSTANCE.createReferenceFromURI(targetURI);
ILink link = linkManager.createLink(WorkItemLinkTypes.ELABORATED_BY, sourceRef, targetRef);
linkManager.saveLink(link, monitor);
}

0 votes



One answer

Permanent link

 The plain Java Client Libraries, by default for CLM links between applications, only create one link and not the back link. In order to get the back link created you might need to provide an advanced property. The code above also lacks the wrapping work item save operation. You can not just create the link. You have to save the work item change with the additional reference added and likely add the advanced property for the backlink.


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
× 7,495
× 6,121
× 1,325

Question asked: Jan 05, 8:41 a.m.

Question was seen: 819 times

Last updated: Jan 05, 9:34 a.m.

Confirmation Cancel Confirm