Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable customer notification through java api

JordanJ September 3, 2021

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

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.8
TAGS
AUG Leaders

Atlassian Community Events