It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Send email to user in custom field when issue transitions

Michelle Larson Mar 22, 2016

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
Mark McCormack Mar 22, 2016

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.

Michelle Larson Mar 23, 2016

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

 

1 vote
Sten Sundelin Mar 22, 2016

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.

0 votes

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted 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 ...

664 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you