Confluence has been updated to version 6.15.9

JIRA SERVER JIRA CLOUD

This article shows how to synchronize sub-task on Jira Server using External scripts library.

When syncing sub-task it's important to keep the parent-child relation.  Exalate external script SubTaskSync.groovy allows to sync sub-tasks even if the parent task is not synced yet.


Configuration

Let's consider you already have the Connection configured between two JIRA Instances.

Now you need to configure sub-task synchronization: 

Jira Server

  1. Create files from the Exalate public repository

    We store external scripts for Jira Server in a public repository.  Copy the code from the repositories below and create .groovy files. You must keep the file names as below.

  2. Upload the files to the $JIRA_HOME/scripts directory

  3. Configure Sync Rules with the scripts provided below:

    Add the snippets below to the end of the Sync Rules.

Source side

Outgoing sync

 SubTask.send()

Destination side 

Add the code to a new line in the bottom of the incoming sync rules block.

Incoming sync

 SubTask.receive()

Jira Cloud

You don't need to upload the SubTaskSync.groovy and other .groovy files, since all available external scripts for Jira Cloud app are already there.


Configure Sync Rules with the scripts provided below:

Add the snippets below to the new line in the end of the existing scripts.

Source side

Outgoing sync

SubTaskSync.send(replica, issue, relation, httpClient)


Destination side 

Incoming sync 

  • The parent must be synchronized before the sub-task, else the twin parent id can't be found
  • Make sure the call the SubTaskSync.receiveBeforeCreation before any other external scripts such as 'status sync', 'issuelinksync' ...


SubTaskSync.receiveBeforeCreation(replica, issue, nodeHelper)