I am using scriptrunner to add a request participant but I dont want an email to go out. No matter which statements below, the participant added notification goes out. So I thought to disable it only while adding the participant and then enabling notifications. How can this be done through the java api?
Ultimately, I want to add a group of people to an issue so that they would get the issue resolved notification. Currently they get the issue resolved. I just dont want them gettign the added.
I've tried both statements below but a notification still goes out:
issue.setCustomFieldValue(requestParticipants, Utility.groupManager.getUsersInGroup("DevOps"))
issueManager.updateIssue(user, issue, EventDispatchOption.DO_NOT_DISPATCH, false)
//requestParticipants.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(requestParticipants), Utility.groupManager.getUsersInGroup("DevOps")), new DefaultIssueChangeHolder());
thanks