Confluence has been updated to version 6.15.9

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more complex cases, it is recommended to use the same scripts as for Script connections, but in if clauses.

With the executionInstanceName variable you can define what instance is affected by the script.


This example shows how to sync versions from your_instance_shortname to remote_instance_shortname in a Visual connection:

...


Expand
titleUsage example for Script connections

For Script connections this script would look like this:

Snippet
issue.projectKey = "name" //Included only on create processor
...
// assign fix versions from JIRA A to JIRA B
issue.fixVersions = replica
  .fixVersions
  // ensure that all the fixVersions are available on B
  .collect { v -> nodeHelper.createVersion(issue, v.name, v.description) }
// assign affected versions from JIRA A to JIRA B
issue.affectedVersions = replica
  .affectedVersions
  .collect { v -> nodeHelper.createVersion(issue, v.name, v.description) }

For more information, check How to synchronize versions in Jira Cloud and How to synchronize versions in Jira on-premise.


Syncing comments that have no group or role level assign

With this script you can sync comments from one instance to another.

Snippet
if (executionInstanceName == "your_instance_shortname") {
	replica.comments = commentHelper.filterLocal(issue.comments)
}


Expand
titleUsage example for Script connections

For Script connections this script would look like this:

Snippet
replica.comments = commentHelper.filterLocal(issue.comments)

For more information, check these articles:

How to sync comments in Azure DevOps

How to sync comments in Zendesk

How to sync comments in ServiceNow

How to sync comments in Jira Cloud


...

How to synchronize versions in Jira on-premise

How to sync comments in Azure DevOps

How to sync comments in Zendesk

How to sync comments in ServiceNow

How to sync comments in Jira Cloud


...

Back to

Parentpage