Forums

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

Performance issue in automation rule

Sundram Trivedi
Contributor
February 27, 2025

I have set up an automation rule from templates where, when all child issues are completed, the parent issue is automatically closed. I followed this hierarchy: Theme → Epic → Task. When I move the Task to "Done," the Epic also mov es to "Done" after refreshing the browser. However, according to the rule, the Theme should also move to "Done" after the Epic, but it fails in automation. I had to manually set the resolution for the Epic, after which the Theme automatically moved to "Done."

Similarly, I noticed a similar issue with the In Review automation.

Additionally, the audit log does not show any information regarding these failure actions.

2 answers

1 accepted

1 vote
Answer accepted
Bill Sheboy
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 28, 2025

Hi @Sundram Trivedi 

Please post an image of the audit log details for the rule execution.  That may provide more context.

Next, you are trying to update multiple levels in the hierarchy with one rule, essentially having it trigger itself recursively.  Did you enable the option Check to allow other rule actions to trigger this rule... in the details at the top of the rule?

Kind regards,
Bill

Sundram Trivedi
Contributor
March 3, 2025

Hi @Bill Sheboy ,

 The issue was resolved after enabling the "Check to allow other rule actions to trigger this rule" option. Should I enable this for all automation rules? Sometimes, a browser refresh is required for the changes to reflect correctly.

I have one more question:

I have set validation for Acceptance Criteria, Story Points, and Assignee in the To Do state. When I move an issue from Backlog to To Do, the validation works as expected and requires these fields to be filled. However, sometimes, after moving an issue from Backlog to To Do, the validation pop-up appears, but the issue automatically moves to In Progress or In Review instead of staying in To Do. Additionally, in some cases, refreshing the browser shows the correct state in Backlog instead. Can you help me in this.

Regards,
Sundram

Bill Sheboy
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 3, 2025

No; please do not enable that option for all rules: "Check to allow other rule actions to trigger this rule...".

By default, rules do not trigger other rules.  This prevents accidental rule triggering and run-away looping / recursion.  Only enable that option when you have clearly identified when a rule should be triggered by other rules.  To learn more, please discuss with your Jira Site Admin.

 

Regarding your second question, you appear to have a validation rule on the workflow transition from "Backlog" to the "To Do" status, but do not have validation for other transitions, such as "Backlog" --> "In Progress".  I recommend carefully reviewing your workflow transitions and validators to decide what is needed, and then update accordingly.

Sundram Trivedi
Contributor
March 4, 2025

However, I have already set validation rules for transitions from To Do to all further states. The issue I am facing occurs intermittently—sometimes, when I move an issue from Backlog to To Do, the issue automatically transitions to In Progress or In Review without following the expected workflow.

After refreshing the browser, the issue returns to its correct state and works fine. I am sharing a screenshot for reference. Could you help identify the possible cause of this behavior?
image.png

I have set 3 workflow for our project due some different condition. 

image.png

I have set validation for all states. I have noticed that this issue sometimes occurs when I create issues in the hierarchy Theme → Epic → Task.

Bill Sheboy
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 4, 2025

My recommendation would be to review specific issues which do not work as expected, check their issue history and the automation audit log to understand what is causing the symptom.

 

In my experience, when the workflow uses "All" for most of the paths and uses transition rules, it can be challenging to enforce a desired normal flow path.  When a specific path, such as from To Do --> In Progress, is wanted, adding specific transitions may help to enforce that flow.

0 votes
Tansu Akdeniz
Community Champion
February 28, 2025

Hi @Sundram Trivedi 

Can you share a screenshot?

Does Theme automatically move to Done? Is resolution required? If so, do you set it within the rule?

Sundram Trivedi
Contributor
February 28, 2025

image.png

Hi @Tansu Akdeniz ,

No, Theme automatically not move to Done, it required resolution.

Please check screenshot and let me know if anything required.

 

Tansu Akdeniz
Community Champion
February 28, 2025

You can select the Resolution within the Transition action that allows you to pass the required field.

transition.png

 

Sundram Trivedi
Contributor
February 28, 2025

But previously it was set copy from trigger issue. I changed the resolution to done then it will not work if I will select resolution any other in the ticket.image.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events