Auto-Create Jira Tickets on Automation Failure
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
When an automation rule fails, Jira automation provides notification choices for the rule owner, but there is no direct method to raise a ticket when a rule fails. This article describes a workaround that uses the project email handler and an automation-rule failure notification.
Diagnosis
There is currently no direct method to raise a ticket when an automation rule fails. The available rule-failure actions only determine whether the rule owner is notified: email the rule owner once the rule starts failing after success, email the rule owner every time the rule fails, or don't notify.
Solution
Because there is no direct method to raise a ticket when a rule fails, use the following workaround to have tickets raised automatically whenever the automation rules fail.
Invite the email address of the project's email handler as a user on your site administration page. You don't need to give this user a product license.
Find the project email handler from Space settings > Email.
Select this user as the rule owner in your automation rule.
Select Email rule owner every time the rule fails.
Invite automation@<SITENAME>.atlassian.net as a customer in your project. don't add this address to any customer organization, as doing so shares the tickets with all members of that organization.
What this workaround does: The automation rule emails the selected rule owner whenever the rule fails. The project email handler then creates a ticket in the project from which the email address was taken.
Was this helpful?