Forums

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

How would I stop an automation when the issue has been deleted?

Aubrey Holland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 7, 2023

I have a simple automation that you can see below. When an issue in my DEV project transitions to the DONE status, it adds a comment and changes the status on linked issues in my SUP project. I just got an error, also shown below, where the automation was run against an issue in the DEV queue that had been deleted, and I would like to prevent this error.

Is there a way that I can add a condition or something else to end the automation when the issue it is running on has been deleted? Thanks!

 

Screenshot 2023-09-07 at 8.41.27 AM.png

1 answer

0 votes
Dave Mathijs
Community Champion
September 7, 2023

Hi @Aubrey Holland welcome to the Atlassian Community!

Yes, in case of a deleted issue, the automation will run into an error.

But why would you want to change the automation rule?

Do you delete that many issues so often?

Aubrey Holland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 7, 2023

I only want to change the automation rule in order to avoid this error. I don't think we delete issues very often, but it looks like people do or I wouldn't have gotten the error. I suppose we could stop deleting issues, but it seems like the automation ought to be able to handle this.

Like # people like this
Gary Spross
Community Champion
February 16, 2024

I'm having the same issue with some of my automation rules. Honestly, Atlassian should handle this in the background and not allow an automation rule to trigger if the issue it's running against no longer exists. As a backup, there should be a check that can be added to have the automation stop running if the issue no longer exists.

Amit_Shiloach
Contributor
June 4, 2024

We decided to prevent users from deleting issues by adding a 'Cancel' status, allowing them to transfer tickets there instead. Additionally, you can set up an automation to delete all issues in the 'Cancel' status once a week, for example.

Suggest an answer

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

Atlassian Community Events