We want to synchronize issues one to one between two another instance of jira (On premise), one way (sync issues from source instance to destination instance). I was testing sync with scripting and I noticed some problems in destination issues.
Symptoms
After synchronization issue:
-
In destination issue in Dates section fields “Updated” and “Resolved” are not correct. (See screenshots, source_issue_dates.png and destination_issue_dates.png)
-
In destination issue in history of issue, user, who made changes is not correct (See screenshots, source_issue_made_changes.png and destination_issue_made_changes.png ). Comments are correct.
How can I fix it?
How can I mapping users in sync rules (regarding changeHistory) to resolve the problem?
Outgoing sync rules (part of rules) in the source instance:
replica.comments = issue.comments
replica.created = issue.created
replica.updated = issue.updated
replica.resolved = issue.resolved
replica.changeHistory = issue.changeHistory
Incoming sync rules (part of rules) on the destination instance:
issue.created = replica.created
issue.updated = replica.updated
issue.resolved = replica.resolved
issue.changeHistory = replica.changeHistory
issue.comments = commentHelper.mergeComments(issue, replica){
it.executor = nodeHelper.getUserByUsername(it.author?.username)
}
(It was originally asked on the Exalate Support Portal on June 17, 2025)