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

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
New -> Closed does not work

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

0 votes



5 answers

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

0 votes


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

0 votes


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

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

0 votes


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



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

0 votes


Permanent link
this clearly seems to be my mistake. I have fixed this now. Thanks for your replies

0 votes

Comments

Hi Karthik,

How to change workitem state using OSLC can you please help me?

You can setup the next status in XML and do a "Put" using OSLC.

Can you please give the request String and the URL where to "PUT" the request string. any example ????

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
× 10,938

Question asked: Oct 14 '11, 9:28 a.m.

Question was seen: 5,624 times

Last updated: Aug 13 '12, 9:51 a.m.

Confirmation Cancel Confirm