Issue with the order of the comments

Hello,

We are looking into fixing a problem related to comments sync from ADO to Jira where the order of the comment is not in chronological order. I was hoping we could add the time stamp of when the comment was added or maybe correct the order of the comments.

Could you please help us find a solution on this?

Hi,

For syncing comments and preserving the chronological order of comments we can try the below!

ADO Outgoing sync
replica.comments = workItem.comments.reverse()

Jira Incoming sync
issue.comments = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

This would not only fix the order of comments, but will also fix any formatting issues!

Thanks, Dhiren