It's all about the answers!

Ask a question

OSLC Links

Abhishek Kumar (1316) | asked Oct 09 '19, 3:12 a.m.
I have two server :
Server 1
Server 2
In server 1 I have some work items linked to test cases, I moved the workitems in server 1 to server 2 , and test cases in RQM  from server 1 to RQM in server 2.
Both Test cases and work items are moved to server 2, but the links between workitems and test cases are not moved to server 2 as in server 1.
I want to re-establish the links between them using OSLC.
Now what I want to do is that I want to attach the links between test cases and workitems using OSLC.

One answer

permanent link
Elohim Arranaga (2461) | answered Oct 09 '19, 12:56 p.m.


I am not exactly sure what do you mean with moved the work items and test cases, I assume you exported both from server 1 and re-imported them in server 2, if that is the case, the first step would be to create bot of the artifacts in server 2, you can't link what does not exist. Once they exist again in server 2, the second step is to link them as you normally would do with any other artifact, for example, for one of my test cases the link looks like this: 

<oslc_qm:testsChangeRequest rdf:ID="n0" rdf:resource="https://myserver:9443/ccm/resource/itemName/"/>
<rdf:Description rdf:about="#n0">
        <rdf:type rdf:resource=""/>
        <dcterms:title rdf:datatype="">1641: Post-Project Initialization</dcterms:title>

Abhishek Kumar commented Oct 13 '19, 1:35 p.m.

 Thanks Elohim,

Yes, you are correct that I exported the work items from server 1 to server 2 and test cases from server 1 to server 2.
Now what I want to do is that I want to fetch the links between workitems and test cases in server 1 and then re-establish that same link in server 2 using OSLC.
Can you provide me some code snippets that can help me in achieving this using OSLC.

Your answer

Register or to post your answer.