Forums

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

Help with writing a {{smart values}} condition

Robin Bailey
June 25, 2026

Help needed in creating an automated trigger with conditions. 

The Date compare condition is not working.

Goal: Compare a JPD date field to today’s date and check if the difference is less than 24 days.

Example: Prod deployment date = July 15th

                     Todays date is June 25th

Condition equals true. July 15th is less than 24 days away from June 25th (it is 20 days away)

 

Here is my set up:

{{smart values}} condition

Compares two values using smart values and regular expressions.

First Value:

 {{today().diff(issue.customfield_19405).days()}}

Condition:

Less than

Second Value:

24

 

NOTE: also tried for Fist Value: {{now.diff(issue.customfield_19405).days}}

Any assistance would be greatly appreciation. 

Thank you.

 

1 answer

0 votes
Trudy Claspill
Community Champion
June 25, 2026

Hello @Robin Bailey 

Welcome to the Atlassian community.

As a debugging technique I recommend that immediately before this Condition you use a Log action to print into the rule log file the value generated from your smart value. That may help you debug what is going wrong in the condition.

Also, I don't think "today()" is valid, and you will need to use "now" instead.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events