How to get list of Workflows/IWorkflowInfo of IProjectArea
I found internal API
com.ibm.team.workitem.common.internal.workflow.WorkflowManager is there some public analog? |
3 answers
I found internal API There are two methods that may help you: IWorkItemCommon#findCombinedWorkflowInfos(IProjectAreaHandle projectArea, IProgressMonitor monitor) and IWorkItemCommon#findWorkflowInfo(IWorkItem workItem, IProgressMonitor monitor) Regards, Patrick, Jazz Work Item Team |
I found internal API There are two methods that may help you: IWorkItemCommon#findCombinedWorkflowInfos(IProjectAreaHandle projectArea, IProgressMonitor monitor) and IWorkItemCommon#findWorkflowInfo(IWorkItem workItem, IProgressMonitor monitor) Regards, Patrick, Jazz Work Item Team I need some API to get IWorkflowInfo by workItem type category. I found it in WorkflowManager, but it is internal: public String getWorkflowIdForCategory(IProjectAreaHandle projectArea, String category, boolean shortOp, IProgressMonitor monitor) and public IWorkflowInfo getWorkflowInfo(IProjectAreaHandle projectArea, String workflowId, boolean shortOp, IProgressMonitor monitor) |
I need some API to get IWorkflowInfo by workItem type category. To avoid the internal API, you could create a work item in memory, set its type to one one of the type category's types and use the public findWorkflowInfo(workItem, 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.