I'm using an automation to capture last public comment date. If the latest comment is internal, it's ignoring previous external comments and returning empty.
{{#issue.comments}}
{{#if(not(internal))}}
{{last.created.jiraDate}}
{{/}}{{/}}
There's a known bug in Jira. The inbuilt 'Last public comment date' custom field gives Last Internal Comment date if the latest comment is internal.
How to get the latest communication date with a customer?
First reversing the comments and then filtering out non-internal comments (not(internal)) will allow us to get the right order. If there is at least one comment, the first one will give us the correct comment.
{{issue.comments.reverse.filter(not(internal)).first.created.jiraDate}}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.