Add all the new comments of the replica to the issue comments and prepend the author name to them.
Remove all the removed comments of the replica from the issue comments. Edit all the existing issue comments that have been changed on the replica and prepend the author name to them.
Can someone help? Maybe there is a bug in the mergeCommetns function?
I just tried it on Jira Cloud, and was unable to reproduce it i.e. the comment did get edited for me on Jira2.
Also, i do not think it is a bug as you are able to get it to work the other way around. I am struggling to think of things to get here, but could be a lot of different things at work:
Does you incoming script have any other line dealing with comments possibly?
Are you allowed to edit comments on Jira2? Maybe try manually and also via API.
Hi
On the cloud & On DC, I’m able to edit by myself, and the proxy user can also.
In the remote replica, I see the comment, with the updated body after the comment edit, also I can see the updated time of the comment is later than the creation date.
My advice would be to create a support ticket with the team as they will need to check logging etc. to see what is going on. What I can confirm is that it is not a bug as I am unable to reproduce it on 3 test systems.