Adding email addresses as notifications for issue updates


I have setup a mailbox on our server so that people can create issues by emailing the support mailbox. The people do not need access to JIRA however I would like them to be notified when the issue is updated. Is there a watcher list that they can be automatically added to when Jira picks up the email and creates an issue from it?



2 answers

1 accepted

Another option is JEMH, as a mail handler it could create a JIRA account without the right to use if they didn't exist already, and automatically add that user as a watcher to the created issue (assuming you've allowed that group access to the target project.

If you didn't want to create actual JIRA accounts, you could also use JEMH to not create an issue, but store the sender email in a custom field, and use the integrated IssueEvent listener to generate notifications. The latter route is not quite so perfect as the 'creator of the issue would be a dummy acct not the actual reporter.

Thanks for the responses. I also spoke to support who suggested JEMH as an option. At this time we do not want to generate accounts (licensing constraints). We will investigate JEMH.


You could use the scriptrunner in the post action of the create issue transition

If you have the username of the user to add this would be like:

import com.atlassian.jira.ComponentManager

def componentManager = ComponentManager.getInstance()
def watcherManager = componentManager.getWatcherManager()
def issueManager = componentManager.getIssueManager()

def user = componentManager.userUtil.getUser("USERNAME")

watcherManager.startWatching(user, issue)

If not you have to find who you would like to add (the reporter of the issue e.g.)

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

50 views 2 2
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