Jira to Jira Sync Demo

 

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 

Sync Attachment

This is an example of how to sync attachments

  1. Download this action and import it

  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

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

Run the sync

  1. Go to the imported action

  2. Hit Test button

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

  4. Click Send

 

 





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