Is it possible to keep and sync worklog entries created by "Automation for Jira"?

Originally asked by Harold Oconitrillo on 24 November 2022 (original question)


Dear support team,

We have an Automation rule in Jira to replicate new work log entry added by user into a specific Jira project. This project contains task/epic/work log which are synced to another Jira instance, but the sync fails due to all work log entries are created by “Automation for Jira” User. You will find in attached the details of error log.

I wonder if it’s possible to keep and sync work log entries created by “Automation for Jira” or maybe there is a way to replace this user with a default one on the targeting system?

For instance :

if (nodeHelper.getUser(w.author?.key)="57058:f58131cb-b67d-43c7-b30d-6b58d40bd077" ){
w.author = defaultUser
} else if (nodeHelper.getUser(w.author?.key)!="57058:f58131cb-b67d-43c7-b30d-6b58d40bd077" ){
issue.workLogs = workLogHelper.mergeWorkLogs(issue,replica, { w ->
w.author = nodeHelper.getUser(w.author?.key) ?: defaultUser
w.updateAuthor = nodeHelper.getUser(w.updateAuthor?.key) ?: defaultUser
})
}

Any idea you might have would be appreciated. Thanks for your help
Kind regards