Automation - Check if previous value is blank

Andy McCormick March 28, 2023

It's quite simple to check if the current value of a field is blank. However, I'm trying to run automation only if the value was previously not empty. In this case the Due Date.  Am I missing something obvious? 

In the Issues Field Condition, you can only select the field as it currently is after the change. I tried using JQL with `{{fieldChange.from}} != ""` and `{{fieldChange.fromString}} != ""` which both resulted in errors. 

1 answer

1 accepted

1 vote
Answer accepted
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.
March 28, 2023

Hi @Andy McCormick 

I do not believe you can use fieldChange or changelog that way in an issues field condition with JQL.  Would you explain what your JQL is trying to test?

In the meantime, this would test if the triggering issue had a previously 

  • advanced compare condition
    • first value: {{#changelog.duedate}}{{fromString}}{{/}}
    • condition: does not equal
    • second value: leave this empty

Kind regards,
Bill

Andy McCormick March 29, 2023

perfect. Thanks!

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events