One way sync
This tutorial show how to sync an issue including attachment from one instance to another.
Preparations
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 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.
Two way sync
Body example
customfield_10900 is a single select list
customfield_10600 is a text field to store the issue key in
{ "fields": { "project": { "id": "10100" }, "summary": "{{issue.summary}}", "issuetype": { "id": "10001" }, "priority":{ "name":"{{BC_PRIO}}" }, "labels": [ "from_testsup" ], "description": "{{issue.description}}", "customfield_10600": "{{issue.customfield_10703}}", "customfield_10201": "{{issue.key}}", "customfield_10900":{ "value": "{{issue.customfield_10800}}"} } }