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

programmatically create link to related artifacts

Hi All,

I am trying to add related artifacts (basically a url) programmatically. But when i try to create link using

ILink link= ILinkFactory.INSTANCE.createLink(WorkItemLinkTypes.RELATED_ARTIFACT, sourceRef, targetRef);
linkManager.saveLink(link, monitor);

it requires source and target reference, which i think is not applicable for related artifact.

Can anyone please help on this...Thanks

regards,
Vijay

0 votes



2 answers

Permanent link
well.. there are three objects there

the workitem (source)
the object of relatedness (uri)
and the link between them.

Sam

0 votes


Permanent link
Thanks Sam !! , it works , i am able to create related artifacts through code now..

well.. there are three objects there

the workitem (source)
the object of relatedness (uri)
and the link between them.

Sam

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
× 10,941

Question asked: Dec 13 '11, 12:32 p.m.

Question was seen: 5,045 times

Last updated: Dec 13 '11, 12:32 p.m.

Confirmation Cancel Confirm