Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Send Only Latest Comment Attachments from JSM to Freshservice

Mahipal Singh
Contributor
April 18, 2025

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}}
{{/}}

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2025

Hi @Mahipal Singh 

What if you update this statement to:

{{triggerIssue.attachment}}
* {{filename}}: {{content}}

Mahipal Singh
Contributor
April 22, 2025

Hi @Marc - Devoteam 

This is giving all attachment URL

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 22, 2025

Hi @Mahipal Singh 

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.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-id-get 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events