Forums

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

Jira Automation Failure

Jordan August 2, 2023

Hello, I wanted to see if it is possible to have an email sent for any issue that fails for an automation with reason each one failed?

3 answers

0 votes
Tomáš Vlach
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.
August 2, 2023

Hello @Jordan 

 

As @Trudy Claspill mentioned, what are you trying to track? What could cause the fail of the automation? What kind of conditions have to the issues meet?

 

Tom

0 votes
Collista Lewingdon
Community Champion
August 2, 2023

If you are looking to get an email when an automation rule fails you would select that option under rule details and chose whether the email goes to the owner or the someone else. 

error email. .png

Additionally, it does appear that you get an email when some errors occur as well, because I received an email for this automation that only had some errors, though it had me log into the system. 

Some Errors .png

As far as I am aware there is currently no way to modify the automated email that is sent out letting the rule owner know that the rule failed. But when you click into the audit log you can see the details as to why it failed or in this case, what failed. 

0 votes
Trudy Claspill
Community Champion
August 2, 2023

Hello @Jordan 

What sort of failure are you trying to track?

If the rule itself fails with an error that sets the status to "Some errors", there is an option on the Rule Details page you can use to send an email in that case.

If you want to get emails for issues that fail to meet a Condition in the rule after the rule has been triggered, then you would have to add another condition to the rule that the issues would meet, and use that to trigger sending an email.

Jordan August 2, 2023

The rule details section helps sometimes, but this particular automation has a few hundred tickets its cyphering through and when it shows tickets that errored it doesn't give the reason for each ticket. I would like for there to be an email sent for any issues that were associated with the error of the particular automation if that makes sense

Jordan August 2, 2023

How would i set to send an email when rule fails?

Jordan August 2, 2023

Also does it only send emails when it completely fails or when there some errors too?

Trudy Claspill
Community Champion
August 2, 2023

Can you share with us the rule you have constructed?

The option on the Rule Details page (shown in first image in @Collista Lewingdon 's Answer) will send an email based on the Status of the execution (shown in the second image) . I know it will send an email for "Some Errors", which is a yellow status. I'm not sure if it sends email for all yellow statuses, or for the gray status. I assume it would send an email for the red status.

Screen Shot 2023-08-02 at 3.01.41 PM.png

I have seen rule executions where the Status is one of the green statuses, but when I looked at the details of the individual execution of the rule I saw a detail that I considered to be an "error" but Jira did not. Not all errors at the rule step level will cause the rule overall to error or fail.

And I concur with Collista that it is not possible to modify the automated email sent when a rule fails, to include more details about the failure. You have to examine the Audit Log for the rule execution to get that information.

Suggest an answer

Log in or Sign up to answer