Dashboard > Atlassian FAQ - JIRA Confluence Crowd Bamboo > ... > JIRA General HOWTO > How To Disable Email Notifications on Comment Creation
  Atlassian FAQ - JIRA Confluence Crowd Bamboo Log In | Sign Up   View a printable version of the current page.  
  How To Disable Email Notifications on Comment Creation

Added by Jainthra Fernandes , last edited by Patrick Li [CustomWare] on Sep 11, 2008
Labels: 
(None)

Question

How do you disable Email Notification on adding a comment to a issue programatically?

Answer

Note: This answer applies to JIRA v3.6 but may also be relevant to other versions.

Set the dispatchEvent key-value pair to false.

Map parameters = EasyMap.build("issue", issue.getGenericValue(),
                     "remoteUser", remoteUser,
                     "body", comment,
                     "dispatchEvent", new Boolean(false),
                     "timestamp", new java.util.Date(System.currentTimeMillis()));
    ActionResult aResult = CoreFactory.getActionDispatcher().execute(ActionNames.COMMENT_CREATE, parameters);
    ActionUtils.checkForErrors(aResult);
Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators