Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link

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


0 votes

Comments

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

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Aug 28, 3:46 a.m.

Question was seen: 557 times

Last updated: Sep 03, 9:07 a.m.

Confirmation Cancel Confirm