Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I move the new comment box to the top of the Commenst section?

Chris Selvig August 22, 2012

I'm setting up a comments-intensive page that will have a few thousand comments on it each month, and so it will rapidly become unwieldy for new commenters to have to scroll to the bottom. David Simpson posted somethign abou tthis on his blog, as an addition to a tip about how to sort comments by descendign age, but I had trouble getting the comments-at-the-top part to work.

2 answers

1 accepted

4 votes
Answer accepted
twong_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2012

In keeping with David Simpson's solution, you could do something like dropping this into Admin>Custom HTML> At the End of the Head:

<script>
  AJS.toInit(function(){
    $comments = AJS.$('#page-comments'); 
    $comments.children().each(function(i,li){$comments.prepend(li)})
    $commentbox = AJS.$('.quick-comment-container')
	AJS.$('#page-comments').before($commentbox)
  });
</script>

Chris Selvig August 26, 2012

That did it - thank you.

Jeremy Green
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 13, 2016

Is this solution possible with Confluence Cloud?

 

Stefan F_ January 16, 2023

We have the same problems with our Jira 9.1.1.

Tried the above snippet, but didn't work, I assume, the IDs have changed :-/.

Do you have a solution for 9.1.1?

1 vote
Анна Кузнецова
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2019

I have Jira verion 7.4.3 and 7.7.1. There is no Admin>Custom HTML> option

to move button "comment" to top.

Where i can find it? Who knows? 

Sarah Kladstrup
Contributor
July 27, 2020

I believe this is now found in the "System -> USER INTERFACE -> Announcement Banner" area.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events