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

Hi,

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 vote

Hi Usman,

I've created this SQL query for you:

select l.name 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
l.name 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!

Regards,

Rodrigo

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
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
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

910 views 23 12
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