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.
|
One answer
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...
|
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.