Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set assignee and send email to that assignee

Joachim Geißler August 8, 2019

How is a rule processed with Automation for JIRA? Step by step or in one process and the end of the rule?

The issue: I want to set the assignee in one rule action and then send an email at this assignee in the next action. But Audit log of the rule reports: "Could not send email, the 'To' address field is empty."

1 answer

1 accepted

1 vote
Answer accepted
Cat W
Contributor
August 8, 2019

You'll want to insert the "Re-fetch issue data" action in between setting the assignee and sending the email.  The description for that action has this specific use case as the example, in fact:


Re-fetch issue data

If you need the latest state of an issue in subsequent actions in this rule you can use this action to re-fetch the issue. This action does not reload the issue in the browser for end-users.

Here's an example of an automation rule that would require a re-fetch action:

  • Trigger: Manual trigger
  • Action: Assign issue
  • Action: Re-fetch issue data
  • Action: Send an e-mail to the assignee

Without the 'Re-fetch' action, the e-mail would be sent to the original assignee before it was updated. 'Re-fetch' ensures the e-mail will be sent to the new assignee set by the first action.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events