How to add multiple fix versions to an issue?

Yue Pan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2024

Appreciate any suggestions!

I'm setting up an automation such that when an issue status is transitioned to Done, multiple releases are added to the issue's fix version field.

For context, in our project, we have 8 different releases that map to different work streams. I only want to add a subset(4) of releases to the issue fix version, which is differentiated by an ID in the release name.

Currently I have for-loop which iterates through all the releases in the project. If a release with the ID is found, then update the issue's fixVersion by adding the release.

According to the logs, the 4 releases are consistently identified correctly. However, sometimes not all 4 releases are added as fix versions. It seems to happen randomly, sometimes 4 get added, sometimes 3 and sometimes 2.

Wondering why the Edit Issue Fields action is not executing consistently every iteration when the conditions are met? Is there an order of operations problem, where editing an issue field multiple times in the same automation will cause race conditions? Is there an alternative set-up that would work better?

Screenshot 2024-11-15 at 3.20.46 PM.pngScreenshot 2024-11-15 at 3.22.33 PM.png

2 answers

0 votes
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.
November 15, 2024

Hi @Yue Pan -- Welcome to the Atlassian Community!

Automation branches which could be on more-than-one-thing are executed in parallel and asynchronously, with no guaranteed processing order and that the branch may not finish until the last step of the rule. 

What this means for your rule is the edits are sometime colliding / walking over the updates from each other.

 

For your scenario, the solution is to gather all of the releases to add and perform a single update with JSON to add them together.  This can often be done with created variables, list filtering, etc.

If you show your complete rule in a single image, that will help the community advise you how this may be accomplished for your scenario.

 

Kind regards,
Bill

0 votes
Jim Knepley - ReleaseTEAM
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 15, 2024

Welcome to the community, @Yue Pan 

You may be bumping up against an API rate limit, but I'm not sure how to check for that in Cloud sites, in Data Center, you can look at the audit log.

Suggest an answer

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

Atlassian Community Events