Forums

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

Can't automate to send email to approver

Jedsada Rangsethienchai January 27, 2025

I create automation for two steps of approver 1st automation to transit "open" to 1st approver (manager)" then send email to manager 2nd automation to transit "1st approver to 2nd approver then send email to approver. Unfortunately, email sent to manager and approver unsuccessfully. please give me the advice how to correct it. 

Transition to Mgr.pngEmail to notify 1st approver.pngTransition to final approver.pngEmail to notify 2nd approver.pngAudit log.png

2 answers

0 votes
Jedsada Rangsethienchai January 31, 2025

@Benjamin 

I resolved issue by adding manager's email in each automation and turn out successfully. Thank you for your advice.

0 votes
Benjamin
Community Champion
January 27, 2025

HI @Jedsada Rangsethienchai ,

 

Would recommend simplifying to just 2 automations. For the 1st approver, just add the email action at the bottom for the Travel reimburse automation instead of having it separately. Same for the 2nd approver.

 

IT should email once it's combine and the automation is triggered.

 

Jedsada Rangsethienchai January 29, 2025

Hi @Benjamin 

thank you for yourReply from Benjamin.png reply. do you mean like this

Benjamin
Community Champion
January 29, 2025

Yes. Looks good. With this configuration, every time the manager field is edited...it will always be followed by an email.

Jedsada Rangsethienchai January 30, 2025

@Benjamin 

once I tested it. There is error step of sending email as given screenshot.Transition to Mgr (error).png

Jedsada Rangsethienchai January 30, 2025

I retested by adding reporter as recipient. email was successfully sent as given screenshot.  I asked chatGPT and answer given as below which I don't understand.

The error message in the audit log indicates that the automation rule failed to send an email because the recipient's email address was not provided. The specific issue is:

  • The field customfield_10083 (which likely holds the manager’s email address) does not have a value.
  • As a result, the automation rule could not retrieve an email address to send the notification.

Steps to Fix:

  1. Check Field Mapping:

    • Identify what customfield_10083 represents in Jira (e.g., Manager’s Email).
    • Ensure that this field is correctly populated when an issue is created or transitioned.
  2. Verify Automation Rule:

    • Go to Project Settings > Automation.
    • Locate the rule Advance/Reimburse_PD_CDH and check the "Send Email" action.
    • Ensure the email recipient is mapped to a valid field that contains an email.
  3. Ensure Email Field is Populated:

    • If the field is supposed to be auto-filled (e.g., based on Reporter’s Manager), check any associated Jira workflow post-functions or automation that set this field.
    • If users must manually input it, ensure they enter an email before the transition occurs.
  4. Modify the Automation Rule (If Needed):

    • Add a condition before the email action to check if customfield_10083 is not empty.
    • If empty, log an error or assign a default email to prevent failure.



Transition to reporter (Success).png

Benjamin
Community Champion
January 30, 2025

Since the automation did edit the manager field in the issue, did you notice that the manager field did get populated? If not, then something is not right in setting the field in the automation.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events