It's all about the answers!

Ask a question

Adding links from RRC to RTC using the API


Anthony Kesterton (7.4k5172136) | asked Feb 05 '14, 7:08 p.m.
JAZZ DEVELOPER
Hi all

I am helping a test team populate an RRC project area with test data, and wanted to add in comment and links to RTC work items via the REST API. 

I understand we don't expose the ability to add comments via REST.  Are there any other options anyone is aware of?

Does anyone know of any code snippets or other examples I can use to add a link to a RTC work item in a requirement artifact in RRC?

many thanks

anthony

One answer



permanent link
Don Yang (7.1k2188121) | answered Feb 06 '14, 6:22 a.m.
edited Feb 06 '14, 6:43 a.m.
Anthony

Do you consider OSLC API to add the link from requirement in RRC to RTC workitem?
I remember I tried before in 301.x following the rough procedures as below
1) using poster to get RRC requirement xml:
Get: https://localhost:9443/rm/resources/_hlKE4AiOEeOCQOfYSf4D1Q
2) add <oslc_rm:implementedBy rdf:resource="https://localhost:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/101"/>

to the near end of the XML and PUT to the same URL
I set the content type to application/rdf+xml

Don
 


Comments
Anthony Kesterton commented Feb 06 '14, 6:40 a.m.
JAZZ DEVELOPER

Thaks Don - so we will be using the RTC API to add the link - rather than doing it from the RRC side.  I saw that RTC API but was not sure if this was the correct way to do it.  Let me experiment - many thanks for the pointer.

anthony

Your answer


Register or to post your answer.