Comments deleted by sync user

Hello,

we are having the issue that our service user used for the Exalate connected sporadically deletes comments.
There does not seem to be any pattern which would explain this behavior.
The comments are always deleted on Instance A. No user deleted any comments but the service user removes them.

We have the following logic for merging the comments in the incoming script of Instance A:

issue.comments = commentHelper.mergeComments(issue, replica)
{
comment →
comment.body = comment.author.displayName + " commented: \n" +comment.body
comment.internal = true
}

We are using Exalate 5.27.0-java17-j10 on both instance (Jira Data Center).

Does anybody have an explanation for this behavior?

Thank you
Johannes

Hi @joru !

I have worked an script that just changes the logic a little bit as the one your provided could lead into problems

issue.comments = commentHelper.mergeComments(issue, replica)
{ comment ->
  comment.body = comment.author.displayName + " commented: \n" + comment.body
  comment.internal = true
  comment
}

The script, most probably, didn’t work correctly because it didn’t explicitly return the comment after modifying it, which could cause Exalate into problems. The change guarantees the comment is always returned for syncing, preventing it from being dropped.

Please give it a try an check if the issue is still happening.

If the issue persist after this changes, then we recommend you to open a support ticket with us, as it will require investigation

BR

Tomas