Forums

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

How to stop repetition of automation rule in jira cloud

Pantham Akhil
Contributor
February 1, 2022

Hello everyone I have implemented a automation rule which creates a checklist when an issue transitioned from on status to another it's working fine but the Problem is when a user is want to re transitioned the status it will creates another duplicate checklist how to prevent this problem. Please help me out ..

Thank you

2 answers

1 accepted

0 votes
Answer accepted
Vishwas
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.
February 1, 2022

One possible solution would be to create a custom field, so when the ticket gets transitioned set that custom field to some value in the same rule of automation.

Add a condition in the rule before creating checklist to check if the custom field has that value in JQL( Example "Reopened" = No) then do the automation or else don't do. This would ideally avoid duplication.

Please check out this similar thread too https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Automation-for-JIRA-how-to-stop-rule-repetition-for-the-same/qaq-p/1530996

Let me know in case of questions..

Pantham Akhil
Contributor
February 1, 2022

Should I need to add a custom field which is a multi select field and need to add default value to that field or else can you please elaborate this one 

 

TIA

Vishwas
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.
February 2, 2022

Multiselect is not required, just a select value is fine like yes or no kind of options.

So for the first time the transition happens, set the custom field value to yes in the same automation in another action.

Let me know in case of questions.

Like Pantham Akhil likes this
Pantham Akhil
Contributor
February 3, 2022

Hi @Vishwas 

Still unable to configure can you please give me your email id or else can you msg me panthamakhil@gmail.com 

 

Thank you! 

Vishwas
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.
February 3, 2022

Let me write the rule and send it

Vishwas
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.
February 3, 2022

Hey @Pantham Akhil 

Automation rule is ready.

Before doing this i created a field called "Issue Transitioned ?" with Yes and No as dropdown values and added the field to edit screen of the project.

ISsue_Transition_Checker.png

Try this and let me know in case of any issues.

Regards,

Vishwas

Like 3 people like this
Pantham Akhil
Contributor
February 3, 2022

Unable to find the custom field which I was set in the rule 16439596842734761115682760955246.jpg

Vishwas
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.
February 3, 2022

please check my rule. I haven't put the edit condition at the top. We need to put a JQL condition there. Then at last the edit action.

Also add the field created to the screen of the project.

Padah JIRA February 3, 2022

meet.google.com/rai-mgnc-axp if you free can you please join this meeting once?

0 votes
Sukruth M S
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.
February 1, 2022 edited

Hello @Pantham Akhil , you can  manually turn off/disable the automation after it is executed correctly as defined by you when you don't need.

Automation.png

Hope this helps you, @Pantham Akhil 

Thanks,

Sukruth M S

Vishwas
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.
February 1, 2022 edited

This doesn't make sense, disabling rule is fine ?. It entirely stops the running of automation, isn't it ?.

What if the checklist has to be created for other issues, stopping isn't a solution. As the whole purpose of automation written for creating checklist is defeated.

from the requirement @Pantham Akhil  is asking is there way to ignore the issues for which the automation rule has been executed at least once for them.

Pantham Akhil
Contributor
February 1, 2022

Yeah @Vishwas  that's correct disabling rule doesn't make any sense actually I want prevent the duplicate creation of checklist when an user go back to previous status and doing the same transition the rule again creating a new checklist ...so I want to stop that duplication

Like Vishwas likes this
Vishwas
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.
February 1, 2022

Hey @Pantham Akhil 

Got your point.

Please send me the rule that's already running, let me see and suggest you.

Regards,

Vishwas

Like Pantham Akhil likes this
Jack Hunter _HeroCoders_
Atlassian Partner
February 1, 2022

You need to set proper rule conditions, so it doesn't start when you don't need it. 

Pantham Akhil
Contributor
February 1, 2022

1643713287095__01.jpg

Pantham Akhil
Contributor
February 1, 2022

Here is the rule @Vishwas please check ...

Like Vishwas likes this
Pantham Akhil
Contributor
February 1, 2022

Unable to put an exact condition @Jack Hunter _HeroCoders_  can you please help me in this

Jack Hunter _HeroCoders_
Atlassian Partner
February 1, 2022 edited

Please show also the edit issue details on the screenshot.

Guaraci Nakamura May 19, 2022

@Pantham Akhil your automation is very close to the one i created, however ALL issues are triggered, consuming the execution limit. How do you solved this point? 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events