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

0 votes
Answer accepted

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


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.

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 Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

389 views 6 0
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