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

How to links artifacts/Requirements using Custom link in DNG through OSLC rest api

Hi,
I have created Custom link in DNG/RRC project area(Setting->Manage Project Properties->Link types->Add). Consider the link type "YYY"(bi-directional yyy1->yyy2)

I want to link RRC/DNG artifacts(Requirement type) using above custom link type("YYY"). How can I achieve this using OSLC rest API. Sample code for same will be very much helpful.

Thanks in advance

0 votes



4 answers

Permanent link
Hi, 
     The support to create internal links via OSLC was added in RDNG 5.0.2. If you are on that version, the easiest way to handle is manually add a link to an artifact, do an OSLC GET to that artifact and you will see how it is represented. Use that to add more entries for new links you want to create.

0 votes

Comments

Hi Gabriel,
I am using DNG/RRC 5.0 version.
I tried the way you suggested, but I am not getting any data related to custom link in OSLC get response. I have manually added different links in artifact(Internal(Embeds)/Custom), I am getting data for internal links but no data for Custom links.



Permanent link
You can also use some samples at : https://jazz.net/library/article/1197

0 votes

Comments

Hi Gabriel,
I am using DNG/RRC 5.0 version.
I tried the way you suggested, but I am not getting any data related to custom link in OSLC get response. I have manually added different links in artifact(Internal(Embeds)/Custom), I am getting data for internal links but no data for for the link Satisfaction(Custom link).

However, When I am trying to update the requirement object with internal links(link type-Link) through the OSLC rest api, put operation isĀ  successful but link doesn't appear in artifact.


Permanent link
Hi,
   In 5.0 you will not be able to create new internal or customer links, you will have to move to 5.0.2.

I think that in 5.0 you will have the links exposed as read only in OSLC GET to teh artifact, entries representing those links will looks like :
 <rm_property:_s2YtoeUGEeSLk4svMxbYqg rdf:resource="https://gradev1.ibm.com:9444/rdm/resources/_pAPcIeT-EeSLk4svMxbYqg"/>

Links only show up in the originator artifact, so if they do not show up in one oslc get try to get the other link end point.

0 votes


Permanent link
Hi,
   In 5.0 you will not be able to create new internal or customer links, you will have to move to 5.0.2.

I think that in 5.0 you will have the links exposed as read only in OSLC GET to teh artifact, entries representing those links will looks like :
 <rm_property:_s2YtoeUGEeSLk4svMxbYqg rdf:resource="https://gradev1.ibm.com:9444/rdm/resources/_pAPcIeT-EeSLk4svMxbYqg"/>

Links only show up in the originator artifact, so if they do not show up in one oslc get try to get the other link end point.

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,938

Question asked: Apr 14 '15, 11:59 a.m.

Question was seen: 7,132 times

Last updated: Jul 22 '16, 3:32 a.m.

Confirmation Cancel Confirm