Automation Rule to Add FixVersion to Issues is not working as expected

Ledith.Harrison February 21, 2024

I have the following automation rule set up in our project (company managed)

I am expecting that any issue in the Pre-Readiness column where the fixVersion field is empty will update with the newly created release.  I have seen this rule work as expected when there is only issues in that status with the fixVersion field empty.  When there is a mix of issues with and without the fixVersion field populate the rule audit is showing the rule ran successfully, but the fixVersion field is not updated with the new version.  What corrections do I need to make to resolve the issue so that issues that are in the Pre-Readiness column will update accordingly.   (I do not want to overwrite existing fixVersion where there is a value that is present.  I only want to update when the fixVersion field is empty.)  

I am hoping someone can provide some assistance.  

Add Issuses to Release Automation 20240221.PNG

Ledith H.

2 answers

1 accepted

1 vote
Answer accepted
Kalyan Sattaluri
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 21, 2024

Hello @Ledith.Harrison 

Please share the screenshot of the "Edit Issue" section of the rule. Are you using the {{version.name}} smart value like below.

image.png

Ledith.Harrison February 21, 2024

Kalyan, upon checking that field that field was null.  Once I populated it, the automation worked as expected based on my current use. 

Thank you for your feedback.

Ledith

1 vote
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 21, 2024

Hi @Ledith.Harrison 

To add to the existing fix version values, your edit action will need to use advanced edit with JSON rather than the dropdown field list, to "update" with an "add": https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Fix-Versions

The reason is the out-of-the-box option to add versions to an issue are based on a source issue's field, and that is not the case for your trigger: Version Created.

Kind regards,
Bill

Ledith.Harrison February 21, 2024

Thank you Bill for your feedback.  I will see if this solves my issue.  

Suggest an answer

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

Atlassian Community Events