Adding email addresses as notifications for issue updates

Hi,

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?

Thanks!

Steve.

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.

Thanks!
Steve.

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
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
Posted Tuesday in Uncategorized

Friday fun: how many celebrates Midsummer holiday or is this a Swedish tradition only?

Any other country that celebrates Midsummer holiday (this friday 22 June)?  

44 views 3 1
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