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.

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/ to get the ETAG
2) HTTP PUT to http://localhost:9080/ccm/resource/itemName/ with match-if set to ETAG retrieved in step 1. The body of the PUT is  <oslc_cm:ChangeRequest xmlns:oslc_cm="" xmlns:dc="" xmlns:rdf="" xmlns:calm="" xmlns:rtc_cm="" xmlns:oslc_pl="" rdf:about="http://localhost:9080/ccm/resource/itemName/"> </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 but no luck.

Thanks for any help

Best regards 
Jens Alsig

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


Does anybody have any input/ideas?

Best regards
Jens Alsig

One answer

permanent link
Rosa Naranjo (2.9k11422) | answered Sep 26 '14, 9:09 a.m.
There is an OSLC workshop here 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.