Forums

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

Page properties report sort by likes?

Papanito
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!
August 27, 2020

Page properties macro let's you show the like counts of a page. Is it possible to sort also by likes so that pages with most likes are shown on top?

There are no details on what I can sort:
https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html

1 answer

0 votes
John Corwith
Contributor
August 28, 2020

For starters, the Sort by property in this macro has a long history of problems. I have never found/figured out a list of what you can natively sort by. The default is modified date. If you check the Show likes count box in the report configuration, the number of likes shows up in the report without a heading.

I did some playing around and it seems that you can put likes in the Sort by field it actually sorts by the number of likes. Did you try this? I created 4 pages, liked 2 of them and played around editing the files to assure myself it wasn't sorting on the modified date. I only have the likes value of not liked (null) and 1 (for myself) to play with but it sorted the 2 liked pages to the top of the report.

John Corwith
Contributor
August 28, 2020

An alternative and much more complicated solution might be to write a user macro that would retrieve the number of page likes and then include that macro in a table in a page properties macro with Likes as the table heading. This should correctly display a column titled Likes in the report and hopefully sort correctly by putting Likes in the Sort by property.

Papanito
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!
August 31, 2020

Yeah I tried with likes, but this does not seem to work. I have 2 pages with 1 like, whereas the other 8 pages do not have any vote. So the result then is that one page with one vote is on top (that would be ok) but the other one is on position (7). So that does not seem to work properly. 
Yeah I know the possibility of writing a user macro, but honestly I would expect that the given macro to offer such a functionality.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events