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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.