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

How can I change the state of a work item from New to Start Working using Plain Java API?

I want to create a custom event which when triggered will change the state of a work item.  For that I would like to know how to change the state of work item programmatically using plain java API.

0 votes



One answer

Permanent link
what does 'event' mean? who fires this 'event'..

to change a state you would
get the workitem handle, (find by name, id, tag, , .... somehow)
then get its full state, (read only)
then get its workingCopy (changeable) thru the workItemClient service methods

and then using its workingcopy get the allowed actions (start working, set resolved) from the workitems current state, and then use the workingcopy. setWorkflowAction(java.lang.String action) to set the action to be executed when the copy is saved...

then save, via the workingcopy.save() fucntion..

all this I found thru looking at the javadoc for the plainjava libraries.

I don' have a sample like this

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
× 12,020

Question asked: Aug 03 '12, 12:10 p.m.

Question was seen: 3,842 times

Last updated: Aug 03 '12, 5:02 p.m.

Confirmation Cancel Confirm