List of States for a work item
Hello,
How can i get a list of states for a work item? Thank you! |
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! 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! Hi Patrick, 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! Hi Patrick, 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! Hi Patrick, 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= 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); instead of using WorkItemCommon which is internal. |
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.