Welcome to the Jazz Community Forum
how to link RTC workitems (story) with testcase in rqm by rest api?

Accepted answer

Hi Dani,
You can do this using OSLC REST API.
Steps -
1. Create a CCM/RTC work item.
2. Add it in the OSLC Test Case resource as follows -
<oslc_qm:testsChangeRequest rdf:ID="n0" rdf:resource="https://hostname:portNumber/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/workItemId"/>
3. PUT the OSLC Test Case resource.
Now the CCM/RTC work item will be linked to the given test case and can be seen in Development Items section of Test Case.
Hope this helps.
Thanks,
Vijay