Hi there,
I have a custom field of Date picker type (Groomed Date) and can retrieve the value successfully as a variable and from smart value as well. However, when try to use the variable in DIFF function, it returns null.
Here is automation rule flow:
1. The first variable is mynowdate = {{now.jiraDate}}
Log value: mynowdate - 2024-04-30
2. the second variable mygroomdate = {{issue.customfield_21231.jiraDate}}.
Log value: groom date: 2024-04-01
3. The final compare in email body looks like this:
diff1 - {{now.jiraDate.diff(issue.customfield_21231.jiraDate).days}}
diff2 - {{"mynowdate".jiraDate.diff("mygroomdate").days}}
diff4 - {{mynowdate.jiraDate.diff(mygroomdate).days}}
All these 3 lines return null where custom field is Date picker type, however this works with another field of DateTime picker (Begin Date) and the line below does calculates the difference:
diff2 - {{now.diff(issue.Begin Date).days}}
Why automation returns null with Date picket field? What do I do wrong?
We use Jira Data Centre.