It's all about the answers!

Ask a question

Change state of a story using HTTP PUT


Jens Alsig (111) | asked May 07 '14, 7:00 a.m.
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

Comments
Jens Alsig commented May 14 '14, 5:58 a.m.

 Bump.


Does anybody have any input/ideas?

Best regards
Jens Alsig

One answer



permanent link
Rosa Naranjo (2.9k11623) | answered Sep 26 '14, 9:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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


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.