Change state of a story using HTTP PUT
Hi
I'm trying to update the state of a story using HTTP PUT.
Right now I'm using the REST Console (plug-in for Chrome) and my process is
1) HTTP GET of http://localhost:9080/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/9779 to get the ETAG
2) HTTP PUT to http://localhost:9080/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/9779?action=com.ibm.team.apt.story.define with match-if set to ETAG retrieved in step 1. The body of the PUT is <oslc_cm:ChangeRequest xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" xmlns:oslc_pl="http://open-services.net/ns/pl#" rdf:about="http://localhost:9080/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/9779"> </oslc_cm:ChangeRequest> The result of this is a HTTP response 200 (OK). But when I look at the story in the Eclipse Client the state hasn't changed (And yes I have updated :))
What am I missing?
I already had a look at this question https://jazz.net/forum/questions/45192/update-workitem-status-with-oslc-api but no luck.
Thanks for any help
Best regards
Jens Alsig
|
One answer
Jens
There is an OSLC workshop here https://jazz.net/library/article/635 and in Example04 of the OSLC-CM samples we show how to make an update to a workitem. Take a look to see what you are missing. |
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.
Comments
Bump.