It's all about the answers!

Ask a question

OSLC API/Rest API to Programmatically link EWM Work item to Test case defect section or vice versa with GC Enabled


Niklesh Mudiraj (26223) | asked Aug 28, 3:46 a.m.

 Hello Everyone,


I would like to know the  OSLC API or reportable rest API to link RTC work item to test case result defect section. 


Below are the APIs to update test case result to link with RTC defect. OSLC API test case result update supports only non-GC project areas. I am looking for API which can be used for GC enabled project area as well.

1. GET - https://<host>:<port>/<context root>/oslc_qm/contexts/<project area item id>/resources/com.ibm.rqm.planning.ExecutionResult/<ExecutionResult item id>
2. Add '<oslc_qm:affectedByChangeRequest rdf:resource="https://<host>:<port>/<context root>//ccm/resource/itemName/com.ibm.team.workitem.WorkItem/<work item Identifier>" />' tag to response received in step 1.
3. Use the response updated in step 3 as payload and execute PUT API mentioned in step 4 below.
4. PUT https://<host>:<port>/<context root>/oslc_qm/contexts/<project area item id>/resources/com.ibm.rqm.planning.ExecutionResult/<ExecutionResult item id>
Request Headers:
i. Content-Type    : application/rdf+xml 
ii. OSLC-Core-Version : 2.0

But Above API Doesn't support for GC enabled Project Area.

One answer



permanent link
Ian Barnard (2.3k714) | answered Aug 28, 3:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Once a project is enabled for configuration management you'll have to provide the configuration with every request as either header Configuration-Context or query parameter oslc_config.context



Comments
Niklesh Mudiraj commented Aug 28, 8:53 a.m.

I tired with Configuration-Context  and query parameter oslc_config.context and passed GC configuration to it. Still its not working. 


Ian Barnard commented Sep 03, 9:06 a.m. | edited Sep 03, 9:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Define "not working" - what headers are you providing, what does the URL look like, what response do you get the response code and any response body text

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.