We have a Sync error for TSS-6578 that is constantly blocking Exalate with Error Detail Message “Could not add a comment to an an issue with id ‘55,722’:The comment can not be created due to: comment => The entered text is too long. It exceeds the allowed limit of 32767 characters.”
In Jira Cloud the default character limit is 32767. When a comment longer than this is encountered during synchronization, Exalate is unable to create it, resulting in a blocking error.
To address this and prevent future sync failures caused by comments exceeding this limit, you can use the script below to truncate comments to a size within the limit.
Incoming sync Jira Cloud
issue.comments = commentHelper.mergeComments(issue, replica, { it.body = it.body.take(32700); it })