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

Can't change RTC Workitem state (status) via Web Request

 Hi. I'm with the following issue: I am able to update any workitem property via web request, except it's state. I've already made lots of changes in several workitems using the same approach, but when I needed to change the state, it seems that RTC ignores my request. The status comes as 200 - OK, but no change is made.


I tried to modify two properties in the same request (description and state), but only description was updated. 

Here's the JSON I made:

{ "dc:description":"this is a description.","rtc_cm:state": [ { "rdf:resource" : "https://gidhmp.caixa:9443/ccm/oslc/workflows/_0_iN4G09EeGGMqpyZT5XdQ/states/DemandaNeg/DemandaNeg.state.s3" } ] }

I'm using C#, and the webrequest context is like this:

            HttpWebRequest documentPut = (HttpWebRequest)WebRequest.Create(resourceUrl);
            documentPut.Method = "PUT";
            documentPut.CookieContainer = cookies;
            documentPut.Accept = "application/json";
            documentPut.ContentType = "application/x-oslc-cm-change-request+json";
            documentPut.Timeout = 300000;

Is there any rule that can avoid the state changing via external requests? Is there any mistake in my JSON? I can't figure it out.

0 votes


Be the first one to answer this question!

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,941
× 369
× 11
× 7

Question asked: Aug 03 '17, 10:43 a.m.

Question was seen: 2,295 times

Last updated: Aug 03 '17, 10:43 a.m.

Confirmation Cancel Confirm