Forums

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

How to see if a value that changed was empty or not empty before it changed?

Khira Niemeier
Contributor
April 29, 2025

We are currently setting up an automation.

It should trigger on value Change (Due Date).

It needs to have two different outcomes. 

1. when value (Due Date) was empty, it should do one thing.
2. when value (Due Date) was not empty, it should do the other thing.

How can I ask if the value was empty or not empty before the automation triggered?
Is this even possible?

we are working with this trigger:
Trigger Value Changes Due Date.jpg

and after this we are checking on the issue type and on if the issue is currently not empty
and then triggering the executions.
Automation Feature Due Dates.jpg

The problem that we currently have is that we can not tell if the value was empty before or not and so we can only have one outcome, but we would need the 2 of them for this automation to work.

Is there a way to tell if the Due Date was empty before the value changed or not?

3 answers

1 accepted

4 votes
Answer accepted
Bert Dombrecht
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.
April 29, 2025

Hi @Khira Niemeier 

You can use the {{smart values}} condition with the smart value {{fieldChange.from}}.

smartvalues-condition.png

Khira Niemeier
Contributor
April 29, 2025

Oh what a nice solution - thank you so much I will remember this for the next time when I have to set up such an automation. <3

Way easier than what I found! :) 

Like Bert Dombrecht likes this
0 votes
Khira Niemeier
Contributor
April 29, 2025

I think I found the solution myself:

Using the {{changelog}} smart value fixes the problem.

Using the {{smart values}} condition works well.

smart value due Date changelog.jpg

the smart value {{fromString}}{{/}} asks for the previous value and this is exactly what we were looking for.

We have a second if request that asks for equals EMPTY and I just tested it. It works! :)  

0 votes
Mikael Sandberg
Community Champion
April 29, 2025

Since you are triggering on an action that edits a work item you can use the {{changelog}} smart value to see what the previous value was.

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