I am asynchronously putting all comments back to a targeted page. However, the order of comments is not retained when compared with the original page. I am passing history.createdAt and history.lastUpdated at fields, but with no results.
Original Page with comments ordered properly:
<<< Page content >>>
Footer comment
Comment 1 [CreatedAt - Monday - 1/1/2022]
Comment 2 [CreatedAt - Wednesday - 3/1/2022]
Comment 3 [CreatedAt - Saturday - 5/1/2022]
Sample Page after making comments POST call asynchronously and in an unordered manner:
<<< Page content >>>
Footer comment
Comment 3 [CreatedAt - Saturday - 5/1/2022]
Comment 2 [CreatedAt - Wednesday - 3/1/2022]
Comment 1 [CreatedAt - Monday - 1/1/2022]
It seems like confluence is overwriting the createdAt field passed when making a POST call. This results in comments getting restored in a random way.
Is there a way to restore comments in an ordered way, but asynchronously?