How to get stateid of workitem
I am writing source to move a workitem from a project area to the other project area. So I post below link to rtc to move workitem using apache httpclient. /service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/moveWorkItem But this post need lasted stateid as argument. I only have workitem id and workitem uuid, how to get lastest stateid? I have ever use link https://rtcserver:9446/ccm/oslc/workitems/255.xml to get workitem info, but no stateid in the xml. below is the sample of argument to post .
formparams.add(
formparams.add(new BasicNameValuePair("stateId", "_u0qAgX3IEeO-J4xM9RcJqg"));
String url= hostApp + "/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/moveWorkItem";
Please tell me how to get a work item stateid. Otherwise, if you have any other method can move workitem will be better more, please advise to me.
Please don't use RTC-SDK. This project did not use any RTC-SDK lib.
Best Regards
|
2 answers
I am stucked by stateid, please give me an advise.
|
see this topic
https://jazz.net/forum/questions/32674/change-workitem-state-via-rest |
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.