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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

89 views 0 6
Read article

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