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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

26 views 0 4
Read article

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