Hello Atlassian Community!
I want to create Automation which sends e-mail to certain user with all the comments from the work item added after the date saved in custom field.
I created date-time customfield_11982, which is currently Mar 08, 2026, 8:55 PM (2026-03-08T19:55:19.4+0000).
Five comments were added after this date and time but no comment is sent by e-mail.
My current smart values in automation looks like this:
{{#issue.comments.reverse}}
{{^author.displayName.equals("Automation for Jira")}}
{{#if(created.jiraDateTime.isAfter(issue.customfield_11982.jiraDateTime))}}
[{{author.displayName}} ({{author.emailAddress}}) - {{created.format("dd-MM-yyyy HH:mm")}}]:
{{body}}
-----------
{{/}}
{{/}}
It works properly when instead of "issue.customfield_11982.jiraDateTime" there is for example now.minusHours(4).