check workitem approval status
Hi All,
How can we check whether an approval item is approved - using Java API (Advisor Plugin)? What is the associated method?
I need 2 approval items - to be in approved status - for the workitem to proceed further with the workflow.
Thanks.
|
One answer
You should be able to do something along the lines of....
IWorkItemClient workItemClient= (IWorkItemClient)teamRepository.getClientLibrary(IWorkItemClient.class); IWorkItemWorkingCopyManager manager= workItemClient.getWorkItemWorkingCopyManager(); manager.connect(workItemHandle, IWorkItem.SMALL_PROFILE, progress.newChild(20)); IWorkItem workItem= null; try { WorkItemWorkingCopy copy= manager.getWorkingCopy(workItemHandle); workItem= copy.getWorkItem(); workItem.getApprovals().getContents(); |
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.