Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sending e-mail notification to in automation just created issue fails

Martin Flury January 31, 2025 edited

Hi all,

I'm kind of stuck and can't see the error.

The automation is set up like:

- trigger every two weeks

- creat new Task Issue

- send notification to assignee

image.png

But the Audit Log shows an error at the last step sending the notification mail, as no issue is present so it can not get the assignee. BUT the issue has been created correctly

Why isn't it getting the just created issue and assignee of it?

The new Task issue is existing and I got assigned in it, but I never got any notification about it.
Somehow I should generally get a notification when a newly created issue is assigned to me I think. At least that was the case so far and we have not actively changed anything.

The solution looks like this:

Automation.png

 

4 answers

2 accepted

1 vote
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 31, 2025 edited

Hi @Martin Flury , try adding a re-fetch data action before sending the email? This often times fix similar issues where there is a race condition.

Martin Flury February 6, 2025

Hi @Jack Brickey 

I implemented the solution from Bill, which solved my missing email problem.

After adding the "Edit issue fields" action your solution helped me adding this new values to my new email in the step afterwards.

So thank you very much for your help as well.

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2025 edited

Hi @Martin Flury 

Your rule image shows using the Assignee for the Send Email action, but there is no issue within scope at that point in the rule.

The fix is to add a branch to most-recently-created-issue before the email action:

  • trigger: scheduled
  • action: create issue for the task
  • branch: to most recently created issue
    • action: send email, changing your email body to now reference {{issue.key}} and {{issue.summary}}

 

Another way to solve this would be to use the smart value for the email address rather than selecting Assignee from the dropdown in the To field: {{createdIssue.assignee.emailAddress}}

 

Kind regards,
Bill

Martin Flury February 6, 2025

@Bill Sheboy you nailed it.

Adding the branch did solve my missing email problem.
After that I got every mail.

Thanks again for your help. Appreciate it. 

Like • Bill Sheboy likes this
0 votes
Martin Flury February 2, 2025

Thanks you very much for your suggestions so far.
I'll check all answers and will give a feedback for sure. 

It looks like I have to dive in a bit deeper into this automations, to fully understand the requirements of how it has to be built up. :-) 

0 votes
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2025

@Martin Flury 

You are most probably not using smart values in the right way.

Can you share the screen shot of what you have in email form?

Martin Flury February 6, 2025

I have to admit I'm a greenhorn in Jira automation and the usage of smart values is definitely not one of my strengths.

In this case the adding of a branch solved my original problem and my secondly created problem, having access to the edited field values for the mail, got solved with the re-fetch.

But I'd also like to thank you for your time answering my question.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events