Forums

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

Automation for creating and releasing a version doesn't work

Jonathan Schwarze September 14, 2023

Hi everyone,

 

I'm trying to automatically release all issues from the board which are resolved for over a day. I created the automation as seen on the screenshot, but it happens to release the version before assigning the version to the respective issues and therefore doesn't work properly.

 

Screenshot 2023-09-14 091509.pngScreenshot 2023-09-14 091557.png

What am I doing wrong here?

 

Thanks & best regards

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.
September 14, 2023

Hi @Jonathan Schwarze 

Your rule works as designed, and the challenge is the behavior of branches in rules:

  • Branches on one-and-only-one-thing (e.g., branch on parent, on current issue, etc.) get run in-line, as if the branch did not exist
  • All other branches which could be on more-than-one-thing (e.g. on JQL, linked issues, etc.) are run in-parallel and asynchronously.  There is no guarantee of when the branch will end, up to the last step of the rule.

For your rule, this means the Release Version action likely happens before all issues are assigned.  (There are open suggestions to add an option to branches to make them wait, such as this one: https://jira.atlassian.com/browse/AUTO-238 )

One work-around for your scenario is to use 2 rules:

  1. Scheduled trigger to create the version and assign the issues
  2. Scheduled trigger (such as 15 minutes after the first rule) to then release the version

This work-around has a limitation that when Atlassian has a problem where rules are not executing, the delay will be insufficient to prevent the collision/race-track error.

Kind regards,
Bill

0 votes
Khang Bui_Candylio September 14, 2023

Hi @Jonathan Schwarze ,

According to your provided pics, I find nothing is wrong with your set rule. Make sure you double-check your Create Version and Edit issue fields and also add Re-fetch issue data. Hopefully, it will run correctly because there's no way it runs conditions 1,3,2. It is supposed to perform in a correct flow. Thanks and good luck.

Sincerely,

Khang

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events