This page shows how to synchronize issue statuses Jira Cloud. You can map workflows between two JIRA Instances or set the transition manually.Exalate provides different ways to configure status synchronization:
Let's consider you already have the Connection configured between the Instances.
Now you need to configure Sync Rules with the scripts provided below:
Add the snippets below to the new line in the end of the existing scripts.
Control the transition applied on your local issue
Use this approach if want to control the transition applied on your local issue.
You can apply only one transition per synchronization using this approach. That means that the code below wouldn't work:
If you need to perform more than one transition in a single sync, please refer to Status synchronization on Jira Cloud with multiple transitions in a single sync
workflowHelper.transition method allows you to set a local transition based on the remote issue status.
In case you need to set different transitions depending on the remote status you need to add the script for each transition separately. Check the example below:
Use this approach when you want to have statuses synced automatically based on the configured status mapping
- If statuses are the same on both sides, use this code:
- If the statuses are different, use this code with your status mapping
- If you want to set a default status directly in the rules use this code
- If the remote side has not set the resolution, change the local issue status to Done