Checking and changing work item status
How can I check work item status from Java program for example if it is not "New" and change it to "Reopen".
Thank you |
3 answers
How can I check work item status from Java program for example if it 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 |
so how can I initialize IWorkflowInfo class object?
I can not find any documentation :/ |
so how can I initialize IWorkflowInfo class object? You can get IWorkflowInfo by using: IWorkItemCommon#IWorkflowInfo findWorkflowInfo(IWorkItem workItem, IProgressMonitor monitor) -- Regards, Patrick Jazz Work Item Team |
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.