# Send attachment Jira to Jira from automation rule with REST API

**URL:** <https://community.developer.atlassian.com/t/send-attachment-jira-to-jira-from-automation-rule-with-rest-api/65766>\
**Category:** Jira Development\
**Tags:** jira-software, jira-service-management, jira-cloud, rest-api\
**Created:** [January 27, 2023, 7:28pm UTC](https://community.developer.atlassian.com/t/send-attachment-jira-to-jira-from-automation-rule-with-rest-api/65766 "2023-01-27T19:28:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeisonSalomnMatabanc](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@JeisonSalomnMatabanc](https://community.developer.atlassian.com/u/JeisonSalomnMatabanc)\
**Post date:** [January 27, 2023, 7:28pm UTC](https://community.developer.atlassian.com/t/send-attachment-jira-to-jira-from-automation-rule-with-rest-api/65766/1 "2023-01-27T19:28:48Z")

</div>

An integration via REST is being carried out for the communication between Jira Software and Jira ServiceManagement and it is required to send attachments from Jira SM to Jira Software using the REST API, we are using the following endpoint: [https://your-domain.atlassian.net/](https://your-domain.atlassian.net/) rest/api/2/issue/{issueIdOrKey}/attachments  
But the physical file path is required, how can we change this path to a value that is taken from Jira SM such as {{{{attachment.content}}}}
