Forums

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

Trying to run a custom automation when a numeric value in a custom field changes

Douglas Hall
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!
July 20, 2025

I've just started playing around with automations, and most of what I'm trying to do is working really well, but I'm really struggling with what should be a really simple thing to do.

I need an automation that triggers when a value in a custom numeric field changes.

e.g. pseudocode:

if the value changes from below five to over 5 then
  if the value changes to over 200 do X
  else if the value changes to between 50 and 200 do Y
  else if the vlaue changes to between 5 and 49 then do Z

I've been playing around with various things but nothing seems to work. Am I trying to do something overly complicated here, or missing something obvious?

Any ideas?


1 answer

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.
July 20, 2025

Hi @Douglas Hall -- Welcome to the Atlassian Community!

For a question like this, context is important for the community to help.  Please post the following:

  • what type of project is this: company-managed, team-managed, JPD, etc.
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case

Until we see those...

 

For the field value changed trigger, the {{changelog}} value may be used to check the previous and current values:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--

And so your initial check with the previous value:

{{#changelog.yourCustomField}}{{fromString}}{{/}}

Could check if it was below 5, and then check the current value if it is over 5 before proceeding.

Then use an if / else block for the various conditions for X, Y, and Z.

 

Kind regards,
Bill

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