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

  1. Create an Action

  2. Givit a good name, like send Attachment to system x

  3. Click Create, do not select any template since we will send the call as multipart.

  4. Enter the Method, POST or PUT depending on the remote system

  5. Enter the URL where to attach the attachment

  6. 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 Jira

  7. Most of the time it is fine to keep file as Form variable value, for Freshdesk see

  8. 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 variable

  9. Finally make a test by enter the issue key and press Test.

Using Body

  1. Create an Action

  2. Givit a good name, like send Attachment to system x

  3. Click Create, do not select any template since we will send the call as multipart.

  4. Enter the Method, POST or PUT depending on the remote system

  5. Enter the URL where to attach the attachment

  6. In the Body section add the syntax to get the attachment defined here
    Example below takes the latest added attachments filename and content and send it as a property called body in the json payload.

Â