Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

One way sync

This tutorial show how to sync an issue including attachment from one instance to another.

Preparations

  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

  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 Freshdesk

  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.



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}}"}
    }
}





  • No labels