It's all about the answers!

Ask a question

Custom Approval Creations sending two emails to approver


Ahmed Omair (41134) | asked Feb 21 '17, 9:24 a.m.

We have created a custom approval creator using RTC extensions. The extension creates the approval smoothly however it sends out two notification with exactly same content for one approval to the user.


Following is the code for approval creation.

IContributorHandle owner= wi.getOwner(); <o:p> </o:p>

            wi =(IWorkItem) workItemServer <o:p> </o:p>

            .getAuditableCommon() <o:p> </o:p>

            .resolveAuditable(wi, IWorkItem.FULL_PROFILE, <o:p> </o:p>

                        monitor).getWorkingCopy(); <o:p> </o:p>

            <o:p> </o:p>

            IApprovalDescriptor desc = wi.getApprovals().createDescriptor("com.ibm.team.workitem.approvalType.approval", "My Approval"); <o:p> </o:p>

            IApproval app = wi.getApprovals().createApproval(desc, owner); <o:p> </o:p>

            wi.getApprovals().add(app); <o:p> </o:p>

            HashSet<String> additionalSaveParameters = new HashSet<String>(); <o:p> </o:p>

            workItemServer.saveWorkItem3(wi, null, null, additionalSaveParameters); <o:p> </o:p>


We are using RTC 4.0.7

Be the first one to answer this question!


Register or to post 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.