# Issue with the order of the comments

**URL:** <https://community.exalate.com/t/issue-with-the-order-of-the-comments/6374>\
**Category:** General Questions\
**Created:** [May 9, 2025, 4:19am UTC](https://community.exalate.com/t/issue-with-the-order-of-the-comments/6374 "2025-05-09T04:19:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhiren](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/dhiren/32/356_2.png) [@Dhiren](https://community.exalate.com/u/Dhiren)\
**Post date:** [May 9, 2025, 4:19am UTC](https://community.exalate.com/t/issue-with-the-order-of-the-comments/6374/1 "2025-05-09T04:19:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Dhiren](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/dhiren/32/356_2.png) [@Dhiren](https://community.exalate.com/u/Dhiren)\
**Post date:** [May 9, 2025, 4:23am UTC](https://community.exalate.com/t/issue-with-the-order-of-the-comments/6374/3 "2025-05-09T04:23:51Z")

</div>

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
