OSLC API/Rest API to Programmatically link EWM Work item to Test case defect section or vice versa with GC Enabled
![]() 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
![]()
Ian Barnard (2.0k●6●13)
| answered 2 days ago
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 I tired with Configuration-Context and query parameter oslc_config.context and passed GC configuration to it. Still its not working. |
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.