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?