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

4 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Claspill likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2025

You're welcome!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events