Need to write automation Rule

Uzmii February 5, 2024

Hi All,

My automation Rule is not working for below mentioned scenario. Can you please help. Thanks

Whenever I create a bug:

3 subtasks should automatically create within that bug.

2 answers

2 accepted

0 votes
Answer accepted
Bao Truong
Contributor
February 5, 2024

Hi Uzmii, this is my suggestion for this rule

Screenshot 2024-02-05 at 16.24.14.png

Uzmii February 5, 2024

@Bao Truong thank alot for your timely response. I have tried your method. It creates only first subtask and does not create the 2nd and 3rd subtasks. 

Bao Truong
Contributor
February 5, 2024

@Uzmii  I believe the reason why only one sub-task is showing up on the UI is that the rule takes some time to run. When the bug was created, only the first sub-task had been created, hence only one sub-task is being displayed on the UI.

To view all the sub-tasks, you need to refresh the page. However, there is no need to worry as all the sub-tasks have been created properly and all the data has been stored correctly.Screenshot 2024-02-06 at 11.01.35.png

Uzmii February 6, 2024

Hi Bao.. Thanks alot for your help. It worked. 

0 votes
Answer accepted
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2024

Welcome to the community @Uzmii !

Screenshot 2024-02-05 at 10.18.38.png

  • Trigger - issue created
  • Condition - if the issue type equals Bug
  • Action - Create 3 subtasks by adding the fields
Uzmii February 5, 2024

@Nikola Perisicthank alot for your timely response. I have tried your method. It creates only first subtask and does not create the 2nd and 3rd subtasks.

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2024

@Uzmii Can you post a screenshot of your automation rule?

Uzmii February 5, 2024

@Nikola Perisic Your method works but I have got the issue. All 3 subtasks are getting created but only when I refresh the page after creating the bug. Any reason why is that happening?? thanks

 

So I create a bug.

Only first subtasks is visible.

When I refresh the bug. Rest of the two subtasks start appearing.

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2024

@Uzmii Are you using a different automation rule? Since from my side, it automatically creates 3 sub-tasks after the issue of a bug has been created?

Uzmii February 5, 2024

No I am using the same rule as you suggested. Not sure why page refresh is required to show all 3 subtasks

 

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2024

@Uzmii Interesting indeed. Try using the incognito or clearing the cache in your browser. 

 

Uzmii February 5, 2024

@Nikola Perisic A separate question.

Can we somehow run this rule also on all the bugs that were created in the past or this rule can only run for the new issues?

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2024

@Uzmii This automation rule can only create sub-tasks for the new created bugs.

Uzmii February 5, 2024

Any change in the rule that would run it on the existing bugs as well?

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 2024

Sadly, no. When automation was set today, it will reflect on the future bugs that were created.

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 5, 2024

Hi @Uzmii 

As a work-around to add the subtasks to the existing bug issue types...

Copy your rule, and change the trigger to Scheduled, with JQL for the bug to which you want to add issues.  That rule can only process 100 issues at a time, and so the JQL must correctly detect when not to add more subtasks.  You can run the rule repeatedly until it updates the existing bugs, and the disable (or delete) the rule.

Kind regards,
Bill

Uzmii February 6, 2024

Hi @Bill Sheboy 

Thanks alot. It worked. 

 

Like Bill Sheboy likes this
Uzmii February 6, 2024

@Nikola Perisic thanks alot for your help as well

Suggest an answer

Log in or Sign up to answer