Checking and changing work item status
3 answers
How can I check work item status from Java program for example if it
is not "New" and change it to "Reopen".
Thank you
IWorkflowInfo contains the information you need. As workflows are entirely
customizable, you shouln't rely on identifiers or even names of specific
states:
IWorkflowInfo#getReopenActionId() gives you the action ID of the reopen
action regardless of the specific workflow. You pass the action into the
save work item call to change the state of the work item (the state cannot
be set directly).
IWorkflowInfo#getStateGroup(state) gives you the information whether a
work item is in an 'open' or 'in progress' or 'closed' state, regardless
of the exact configured state.
--
Regards,
Patrick
Jazz Work Item Team