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

Create and Automation based on if the issue has linked issues.

Justin Foshee
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!
March 13, 2024

I would like to have an automation that if a status is moved to "Escalated" then it will create a new ticket in a new project. This i got. But if it gets moved back to "In Porgress" then back to escalated, I do not want it creating a second ticket. And i can not figure out how to do this. 

jira_auto.png

2 answers

1 accepted

2 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2024

Hi Justin - Welcome to the Atlassian Community!

In these cases, I usually create a custom field like a radio button (Yes/No - default to No) or a Checklist (Yes) and add a context for the Issue Type and/or Project. But I don't add it to a screen. 

Then with your automation, add a Condition to see if the radio button = No or if Checklist if it is empty. 

Then when you finish your automation, add an Edit Issue to set the custom field to Yes. 

This way when the automation runs, it will only process for the first time the issue moved into the Status. 

0 votes
Justin Foshee
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!
March 13, 2024

To be clear it is creating a ticket every time. I have tried the following as well.
jira_auto.png

Harsh
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.
March 14, 2024

Hi @Justin Foshee 

There is an option in Data center automation, where it says 'Exclude issues where the automation has already ran'. If you click this is checkbox, it will not create the ticket again.

Could you check if you have this in Cloud as well.

2nd work around will be to use if/else block and check if there is a linked issue then dont else create.

Let me know if this helps

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events