Confluence has been updated to version 6.15.9

In 4.6 version we've introduced Incoming sync rules. This is an improvement which makes the configuration of the sync rules simpler.

We've merged Incoming sync for new issues(create processor) and for existing issues(change processor) into a single incoming sync rules.


  

In 4.6 version new connections have one block of the Incoming sync rules.

Examples

  •  Update only the issues which are already under synchronization you can use the code below:

if (firstSync) { 
  return // Don't apply any of the received information if the issue is not under synchronization yet
}
issue.summary = replica.summary
issue.description = replica.description
issue.labels = replica.labels
issue.comments = commentHelper.mergeComments(issue, replica)
issue.comments = attachmentHelper.mergeAttachments(issue, replica)

  • Sync issue data only with the first sync, don't apply any updates received from the other side except for comments.

if (firstSync) { // apply received data only for the first issue sync 
    issue.projectKey   = nodeHelper.getProject(replica.project?.key)?.key ?: "TEST"
    issue.typeName     = nodeHelper.getIssueType(replica.type?.name, issue.projectKey)?.name ?: "Task"
    issue.summary      = replica.summary
    issue.description  = replica.description
    issue.labels       = replica.labels
    issue.comments     = commentHelper.mergeComments(issue, replica)
    issue.attachments  = attachmentHelper.mergeAttachments(issue, replica)
} else { // apply received updated of the remote issue only for comments
    issue.comments     = commentHelper.mergeComments(issue, replica)
}

Attention

Changes apply only for new connections, created on Exalate 4.6 and higher. This means that previously created connections will remain with 3 blocks of the sync rules.