Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. install iHub on the instance that you want to sync from 

Setup

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 Jira

...

Most 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 variable

...

Sync Attachment

This is an example of how to sync attachments

  1. Download this action and import it

    View file
    nameihub-config-export-2024-02-13.json

  2. Change the URL to the target instance

  3. Click on Variables

  4. Click on the Groovy Variable tab

  5. Create a new with the name extractKey

  6. Select the imported action under enable for action

  7. Enter the following script

    Code Block
    "PROJECT_KEY-"+issue.getNumber()
  8. Click save

Run the sync

  1. Go to the imported action

  2. Hit Test button

    Image Added
  3. Enter a JQL to the project you want to copy attachments from

    Image Added
  4. Click Send



Two way sync


Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width400px
urlhttp://youtube.com/watch?v=wZ_q5MIrtWk
height300px

...