Custom Approval Creations sending two emails to approver
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.
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>