Jira to Jira Sync Demo
- 1 One way sync
- 1.1 Preparations
- 1.2 Sync Attachment
- 1.2.1 Run the sync
- 2 Two way sync
- 2.1 Body example
Â
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Â
Sync Attachment
This is an example of how to sync attachments
Download this action and import it
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
"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
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}}"}
}
}