Custom Mail Handler and Issue Commented Events

We have created a custom mail handler for JIRA 7.3.7 that allows us to take the email and make a comment within an issue and label it accordingly (external vs. internal). We use Notification Assistant add-on to send out all customer / internal communications via email using events. 

The mail portion of this works as intended but the event that is fired is not working for internal comments. 

We look up the sender to see if they are customer of the JSD and if they are, we make the comment external and raise an event. The event is raised and the communication from Notification Assistant is applied and send out correctly. 

With the same regard, if the comment is internal, we set the comment and then trigger the event through the method call (

Comment comment = commentManager.create(issue, sender, null, body, null, null, new Date(), null, properties, true, false);

As you can tell, we are passing *true* to fire the event but JIRA doesn't seem to be firing or surpressing the event and notification assistant isn't picking it up. 

My questions are as follows:

1. Is that the correct method that we should be using to try and fire the event?
2. Does JIRA supress events for internal comments via mail handlers?
3. Is there a way, within a mail handler, to just fire an event (e.g. Issue Commented) that JIRA will pick up?


0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,975 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot