List of States for a work item
7 answers
How can i get a list of states for a work item?
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Hi Patrick,
It seems that when we try IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor), we get an IllegalArgumentException, any idea what might cause this?
Thanks!
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
It seems that when we try IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor), we get an IllegalArgumentException, any idea what might cause this?
Thanks!
How can i get a list of states for a work item?
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Hey Patrick,
Would you have a different way to get the states?
Thanks again!
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Would you have a different way to get the states?
Thanks again!
Hi Patrick,
It seems that when we try IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor), we get an IllegalArgumentException, any idea what might cause this?
Thanks!
How can i get a list of states for a work item?
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Hey Patrick,
Would you have a different way to get the states?
Thanks again!
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Would you have a different way to get the states?
Thanks again!
Hi Patrick,
It seems that when we try IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor), we get an IllegalArgumentException, any idea what might cause this?
Thanks!
How can i get a list of states for a work item?
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Hey Patrick,
Would you have a different way to get the states?
Thanks again!
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Would you have a different way to get the states?
Thanks again!
Hi Patrick,
It seems that when we try IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor), we get an IllegalArgumentException, any idea what might cause this?
Thanks!
How can i get a list of states for a work item?
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
It seems that when we try IWorkflowInfo workflow=
workItemCommon.findWorkflowInfo(workItem, monitor), we get an
IllegalArgumentException, any idea what might cause this?
Could you paste your code snippet and the stack trace? That would tell me
where the IllegalArgumentException comes from and what its cause could be.
--
Regards,
Patrick
Jazz Work Item Team
How can i get a list of states for a work item?
You would get the workflow information for a work item first:
IWorkflowInfo workflow= workItemCommon.findWorkflowInfo(workItem, monitor)
Then you can read the workflow's states, resolutions and actions, e.g.
workflow.getAllStateIds()
--
Regards,
Patrick
Jazz Work Item Team
Another way to do this might be ....
IWorkItemClient workItemClient = (IWorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);
IWorkflowInfo wfInfo = workItemClient.findWorkflowInfo(workItem, monitor);
instead of using WorkItemCommon which is internal.