Is there a way to track likes (or have all liked pages show up in a table - with who liked them)?

Hi,

Does anyone know a way to track all liked pages? If possible I would like all liked pages to show up in a table with who liked them and when.

I have a feeling I may be able to use the SQL Query Macro to do this, but I just dont know enough about the inner workings of Confluence to set this up myself.

Any help would be greatly appreciated.

Thanks,

Daniel

2 answers

1 accepted

1 vote
Peter Koczan Atlassian Team Jun 17, 2013

Hi Daniel,

Actually you are on the right track. The query should be as easy as querying the LIKES table.

It has 4 columns, where contentid refers to the contentid column in the CONTENT table, username is self-explanatory and you have a creationdate to indicate the time of liking.

So for example this query would return all pages liked ordered by the number of likes:

select c.title,count(l.*) as likes from LIKES l, CONTENT c where c.contentid=l.contentid group by c.title order by count(l.*);

Kind regards,

Peter

Hi Peter,

Thanks so much! This is exactly what I was trying to do.

Best,

Daniel

Hi Peter,

Thanks so much! This is exactly what I was trying to do.

Best,

Daniel

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