How to send an attachment
Using Form Variables (content-type multipart data)
Use this guide to send an attachment from Jira to any system. More about the format Attachments - Multipart data or Body
Create an Action
Givit a good name, like send Attachment to system x
Click Create, do not select any template since we will send the call as multipart.
Enter the Method, POST or PUT depending on the remote system
Enter the URL where to attach the attachment
Select Issue Attachment
Option: Latest - to only send the latest attachment(s) added to the issues
Option: All - to send all attachments
Do not select Incoming files when sending attachments from JiraMost of the time it is fine to keep file as Form variable value, for Freshdesk see Freshdesk
Use form variables to send data with the request, since body is not sent in multipart requests.
Enter a key: value list of data, you may use variables to access issue data or any other variableFinally make a test by enter the issue key and press Test.
Using Body
Create an Action
Givit a good name, like send Attachment to system x
Click Create, do not select any template since we will send the call as multipart.
Enter the Method, POST or PUT depending on the remote system
Enter the URL where to attach the attachment
In the Body section add the syntax to get the attachment defined hereMustache Variables
Example below takes the latest added attachments filename and content and send it as a property called body in the json payload.
Â