Reverse the order in which comments appear Edited

I tried the scripts here:


But the thread is 5 years old and the scripts don't seem work on more recent versions (I am running 5.8.6)


When I put the code in the end of Head Custom HTML, the code appears at the top of every wiki page in an error state, and doesn't render.

2 answers

That part of the answer worked perfectly on my instance 5.8.10

function reverseCommentOrder(){
  $comments = AJS.$('#page-comments'); 



(I added the script tags self as you should do, otherwise the code will appear in the page). If that doesnt work, please provide the error state/error message

I was unable to locate the custom html file anywhere on my PC - searching for Confluence Admin yielded naught.  This is a client-side file, correct?  Where can I find it?

We are not using html code, is there a way to do this without the code?


If I enter just this code, where do I put it?  

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

344 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you