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

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

0 votes

Comments

 Bump.


Does anybody have any input/ideas?

Best regards
Jens Alsig



One answer

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

0 votes

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
× 516
× 137
× 11
× 7

Question asked: May 07 '14, 7:00 a.m.

Question was seen: 5,113 times

Last updated: Sep 26 '14, 9:09 a.m.

Confirmation Cancel Confirm