Table of Contents | ||
---|---|---|
|
One way sync
This tutorial show how to sync an issue including attachment from one instance to another.
...
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
Download this action and import it
View file name ihub-config-export-2024-02-13.json Change the URL to the target instance
Click on Variables
Click on the Groovy Variable tab
Create a new with the name extractKey
Select the imported action under enable for action
Enter the following script
Code Block "PROJECT_KEY-"+issue.getNumber()
Click save
Run the sync
Go to the imported action
Hit Test button
Enter a JQL to the project you want to copy attachments from
Click Send
Two way sync
Widget Connector | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...