Adding multiple approvers to an approval item
![]()
Hi All,
How to add multiple approvers to an approval item programatically? createApproval method allows only 1 contributor handle. How to add multiple approvers? My code is : IContributorService IConService = getService(IContributorService.class); IContributorHandle user = IConService.fetchContributorByUserId("ccm_user"); IApprovals approvals= sourceworkItem.getApprovals(); IApprovalDescriptor descriptor= approvals.createDescriptor(WorkItemApprovals.APPROVAL_TYPE.getIdentifier(), "Lead Developer Approval"); IApproval approval= approvals.createApproval(descriptor, user); approvals.add(approval); Thanks. |
3 answers
![]()
I haven't seen a method to add multiple contributors to an approval.
What will work though, is to create a new approval for each contributor but with the same descriptor. |
![]()
Make sure you have imported the appropriate package in your code - if its an error while you debug...If its during runtime, then check your ccm.log file to get details.
|
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.