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.
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.