The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Automation updating values based on stale value and not new value

Ryan_Milway
March 26, 2025

I am using Jira Cloud Automation to try and dynamically update a custom field when other custom fields are updated. Here is the basic logic:

Trigger: When value changes for: Custom_Field_1, Custom_Field_2, or Custom_Field_3

Then: Edit Custom_Field_4 to equal the sum of Custom_Field_1, Custom_Field_2, and Custom_Field_3. 

If: Custom_Field_4 is greater than 0 but less than 6

Then: Edit Custom_Field_5 = 1

Else If: Custom_Field_4 is greater than 6 but less than 12

Then: Edit Custom_Field_5 = 2

 

The issue is that Custom_Field_5 ends up being calculated based off of the old value of Custom_Field_4, and not the new value which was calculated when this rule was triggered.

I will add that all of the custom fields I mentioned are number fields.

How can I resolve this?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

5 votes
Answer accepted
Trudy P Claspill
Community Champion
March 26, 2025

Hello @Ryan_Milway 

Welcome to the Atlassian community.

You need to insert a Re-fetch issue data action after your action that updates custom_field_4.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Re-fetch-issue-data

Ryan_Milway
March 26, 2025

This has solved my issue. Thank you!

Like • Trudy P Claspill likes this
Trudy P Claspill
Community Champion
March 26, 2025

You're welcome!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events