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

0 votes
Answer 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 Sign up to answer
Community showcase
Posted 5 hours ago in United States

Atlassian acquires AgileCraft

         Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...

26 views 1 0
View post

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