It's all about the answers!

Ask a question

Can I use RQM REST API to link an RTC story to a Test Case?

Bob Wang (482119) | asked Aug 31 '12, 3:58 p.m.
I can link an RTC story (work item) to an RQM test case in UI. When I use RQM REST API GET method to retrieve the XML representation of that test case, I noticed that the RTC story is in element <workitem>. Then, I tried to add <workitem> element to another test case xml, and tried to use RQM REST API to link the same RTC story to another test case, but it didn't link them.

Can I use RQM REST API to link an RTC story to the test case?

2 answers

permanent link
Rosa Naranjo (2.9k11423) | answered Aug 31 '12, 5:26 p.m.
You should be able to do this via the OSLC API.  Try out the OSLC workshop on  Find out more information about OSLC at the OSLC Home Webpage

permanent link
Paul Slauenwhite (8.4k12) | answered Sep 05 '12, 10:21 a.m.
Yes, you can use the OSLC QM API (see;up=#Resource_TestCase).  Note, for the RQM Reportable REST API.

Gary Dang commented May 22 '15, 8:25 p.m.

I am trying to update the RQM test case to link to RTC work item.  However, I am only able to update attributes of the test case but not able to update the link (e.g. using oslc_qm:relatedChangeRequest).  Would appreciate if you provide an example of what the XML input looks like?
I also tried updating the RTC work item and link it to RQM test case using the following XML but existing links are deleted and replaced with nothing..

<?xml version="1.0" encoding="UTF-8"?>

<oslc_cm:ChangeRequest xmlns:oslc_cm="" xmlns:dc="" xmlns:rdf="" xmlns:calm="" xmlns:rtc_cm="">;

 <oslc_cm:testedByTestCase rdf:resource="https://<server>/qm/oslc_qm/contexts/<contextID>/resources/"/>;


Paul Slauenwhite commented May 23 '15, 10:32 a.m. | edited May 23 '15, 10:33 a.m.

Hi Gary,


<?xml version="1.0" encoding="UTF-8"?>
 <oslc_qm:TestCase rdf:about="https://<QM host>:<QM port>/<QM context root>/oslc_qm/contexts/QM <project area UUID>/resources/<test case UUID>">
  <oslc_qm:testsChangeRequest rdf:ID="n0" rdf:resource="https://<CCM host>:<CCM port>/<CCM context root>/..."/>
 <rdf:Description rdf:about="#n0">;
  <dcterms:title>1342: Demo Story</dcterms:title>

Your answer

Register or to post your answer.