Forums

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

Automation rule: how do I know the operation is CLONE

Sam Tang March 28, 2025

Hello,

I was trying to use automation rules in my project, I want to determine if the tickets are created manually or cloned, if cloned then I need to set some default values for the cloned tickets. 

please guide me.

Thank you so much.

2 answers

2 votes
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 28, 2025

Hey @Sam Tang

When you clone a ticket, by default a clone link is created to the original ticket.

So, you can write a rule with the "Related issues condition" to check if the new issue has a linked issue with "clones" type.

Then you can add an edit issue action to edit the required fields.

2025-03-28_14-47-35.png

 

Thanks!

Sam Tang March 30, 2025

Hi @Karan Sachdev , thanks for your advice, I tried your method and it did change the value, but there is another issue. when the issue is cloned, it brings the default values from preious ticket(parent ticket), and then after some time, the value are set by my Rule 2 , but there is a time delay.

I have two rules:

Rule 1: when user create a ticket, if the user select a field A value as 'Yes', then an automation rule will run and do some tasks.

Rule 2: when user clone a ticket, then set field A default value 'No' which I planed to stop trigger Rule 1.

 

but the problem is : when clone a ticket, it first copy the original value from previous ticket and then set default value by Rule 2. but it trigger the Rule 1 first, which I don't want it happen. 

So how can I stop the Rule 1 running when clone a tikcet? thank you.

 

 

Weixin Image_20250331142611.png

 

 

my Rule 2

Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 30, 2025

Hey Sam,

You can add the same related issue condition to your Rule 1, just after the trigger. Just make it 'Not Present', so it will run only if there is no clone link in the new issue.

 

2025-03-31_12-14-15.png

1 vote
Clara Belin-Brosseau_Elements
Atlassian Partner
March 28, 2025

Hi @Sam Tang and welcome to the Atlassian Community!

As an alternative to Automation that can be really complex to implement sometimes, I can suggest trying our app Elements Copy & Sync. It allows you to clone Jira issues and set default values (manually or automatically). You can clone any type of issue field and synchronize the two issues together if needed.

Don't hesitate to check the documentation, it’s really quick and easy to set up.

The app is for free during 30 days (and it stays free under 10 users).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events