Send email to user in custom field when issue transitions

We have a workflow that has a field called Reviewer and in the workflow the assignee will click the transition Needs Reviewed, what they want is for an email to be sent to the the email address of the user listed in the Reviewer field.

3 answers

1 accepted

This widget could not be displayed.

Hi Michelle,

The functionality you want is documented in our built-in scripts section of the ScriptRunner documentation.

I read this again, as a transition, you need to do the following steps

  1. edit your existing workflow
  2. choose Add PostFunction
  3. Choose Script Post Function
  4. Choose Send a custom email
  5. Add "Send to reviewer" in the note field
  6. Find out the customfield_id of your Reviewer field (this link shows you how to find your customfield id)
  7. put this value into the "To issue fields" textbox Screen Shot 2016-03-22 at 20.35.12.png
  8. Choose the Add button and your publish the new workflow.

I hope that helps.

I did this and it shows in the workflow that it has successfully sent 2 email's I had me listed in the reviewer field however I never got email for it.  I think the issue is that Reviewer is the user name (selected by the user picker) and not an email address is there any way to get it to send to the users email?

shows success.png

 

This widget could not be displayed.

Adaptavist Scriptrunner (a paid-for add-on) has a built-in script to send custom emails.

You can probably run this as a post-function in the transition.

Not sure of other ways to do this.

This widget could not be displayed.

If for any reason ScriptRunner is not enough, you can try Email This Issue (also paid-for) that has built-in support for a full featured email postfunction which you can use to flexibly specify recipients, email templates and add attachments to the email.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

109 views 1 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