I'm working on integrating Jira Service Management (JSM) with Fresh service, and I've successfully set up sending comments from JSM to Fresh service via email. Now, I want to also send any attachments that were added in the most recent comment, but only if there were attachments.
I came across a solution in the community, but the problem is that it retrieves all attachments from the entire issue, not just the ones added in the last comment.
Here is the list of attachments in {{triggerIssue.key}}
{{#triggerIssue.attachment}}
* {{filename}}: {{content}}
{{/}}