Is it possible to know the dates when labels were attached to pages in Confluence.


I am wondering that is there be any macro OR any workaround which could help me regaring the label attachment to pages.

e.g. I have 3 pages and i have added labels to each of them on different dates Therefore, I want to know when Labels are attached (date).

Thanks in advance

With best regards,

Usman Akram

1 answer

0 votes

Hi Usman,

I've created this SQL query for you:

select as LabelName, c.title as PageName, cl.lastmoddate, cl.owner
from content_label cl
join label l on cl.labelid=l.labelid
join content c on cl.contentid=c.contentid
where c.title like "<page name>" and like "<label name>";

This query will show you the label name, page title, when the label was added, and who added. You'll need to change the <page name> and <label name> for the actual page name and label name you want to verify. :)

I hope this helps!



Hi Rodrigo!

Thanks a lot for your answer! (I work with Usman :)) I'm trying to use the SQL macro with your query.

But I have a problem with the datasource. I know that the database name is "confluence". But it doesn't work.

Could you please tell me how should I fill in the datasource field?

Thanks again and kind regards

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

929 views 13 11
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