It's all about the answers!

Ask a question

How to create link of type parent of(child of) through OSLC rest API in DOORS NG 6.0


Amit Kumar (38219) | asked Jul 30 '19, 2:24 a.m.

 We have a requirement where in we need to create link on requirement such as parent of(child of) through OSLC rest API. This article (https://jazz.net/library/article/1197) on explain link which are defined in OSLC Spec.


Kindly guide me to any article or sample way to create a link through rest api java client. 
 

One answer



permanent link
Cristobal Sandoval (862) | answered Jul 24 '20, 10:40 a.m.

 Normally in order to create links like Implemented By or Validated By you would do a OSLC get to the artiafct that's going to contain the link and then add an entry in the rdf metadata of the artifact like this



and then do a OSLC PUT to create the link. That's to links to other apps like ccm or qm
But for DNG's internal owned links like Parent Of i think you can do a PUT to the links service with some metadata like this

<rm:Link rdf:about="">
<rm:hasAttrVal rdf:parseType="Resource">
<rdf:value>739</rdf:value>
</rm:hasAttrVal>
</rm:Link>
</rdf:RDF>

you can open the developer's tools in your browser and create a link in the DNG UI to see the headers passed to the request.

Your answer


Register or 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.