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}}
{{/}}
I believe that our app Notification Assistant for Jira could serve as a possible workaround for your case.
It allows you to add the attachments directly in the email when it is triggered by a comment.
This is an example:
Feel free to reach if you'd like to see more of our app.
What if you update this statement to:
{{triggerIssue.attachment}}
* {{filename}}: {{content}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
These are the only smart value options for attachment.
I think you would need to get the attachment by ID, this requires using the API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.