Trouble with State transition using OSLC
Hello,
I have a custom work item type in which I have 3 states: New, In Progress and Closed I am trying to perform the State Transition on this work item type using OSLC. New ->In progress works In progress -> Closed works But New -> Closed works via RTC Web client. using OSLC do I need to perform New -> In Progress and then Closed? any one has experience this Thanks Karthik Krishnan |
5 answers
Hi,
I'm not aware of a mechanism for performing a state transition through the OSLC-CM. What approach are you using? State transitions can only performed through workflow Actions. You cannot change the state of a work item in order to perform a state transition. Actually, the state attribute is read-only. So if you want to perform a state transition from "New" to "Closed" you need an explicit action that does this. Cheers, --andre Andre Weinand RTC Work Item Team |
Hi andre,
I perform the state change with action as the PUT URL. That is no problem. New -> In Progress and In Progress to Closed works perfectly file (via perl script using OSLC) Only New -> Closed (via script) does not work was wondering if I need to perform New -> In Progress -> Closed in order to perform New -> Closed Regards Karthik |
Geoffrey Clemm (30.1k●3●30●35)
| answered Oct 17 '11, 9:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The legal state transitions are defined by the Process Configuration of
your project area. A script can only perform legal state transitions. So if you want to be able to transition New -> Closed, you'd need to add that transition to the Process Configuration of your project area. Cheers, Geoff On 10/17/2011 4:53 AM, karthikkrishnan wrote: Hi andre, |
The legal state transitions are defined by the Process Configuration of Hi Glen, New->Closed in my workitem is a legal state transition. I am able to perform this via Web GUI. Just that I am not able to do that via OSLC thanks Karthik |
this clearly seems to be my mistake. I have fixed this now. Thanks for your replies
Comments
Sudeshna Mitra
commented Aug 10 '12, 10:17 a.m.
Hi Karthik,
Karthik Krishnan
commented Aug 13 '12, 8:37 a.m.
You can setup the next status in XML and do a "Put" using OSLC.
Sudeshna Mitra
commented Aug 13 '12, 9:51 a.m.
Can you please give the request String and the URL where to "PUT" the request string. any example ???? |
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.