You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi team,
I am just looking for query in SQL or a method in groovy to get the details of last viewed dates of each item in confluence.
SELECT SPACE_KEY, LAST_VIEW_DATE from "AO_92296B_AORECENTLY_VIEWED"
I found out this query would help, but its not getting the actual stats(I mean the entire space details)
Appreciating any help!!
Hi @Mohammed Siyad ,
You can get a small report with the following sql query. You can check the tables used for detailing.
SELECT c.title, av."SPACE_KEY", u.username AS Viewer, av."LAST_VIEW_DATE"
FROM content c
JOIN "AO_92296B_AORECENTLY_VIEWED" av ON c.contentid=av."CONTENT_ID"
JOIN user_mapping u ON av."USER_KEY" = u.user_key
JOIN user_mapping um ON c.lastmodifier = um.user_key
WHERE prevver IS NULL
AND contenttype = 'PAGE'
ORDER BY title;
Will this get the data of the entire space thats there in confluence because I am looking for a data which gives like this : @Mehmet Şirin Usanmaz
Space Key/Space Name | Last Viewed Date |
ABC | Date |
FGH | Date |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mohammed Siyad ,
You can use this query
SELECT DISTINCT "SPACE_KEY" as "Space Key", MAX("LAST_VIEW_DATE") as "Last Viewed Date"
FROM "AO_92296B_AORECENTLY_VIEWED"
GROUP BY "SPACE_KEY"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still its not retreiving the entire space Last Viewed Details stats. I am in a way to setup a report which has list of active users in a space and Last Viewed Date of a space.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried the query but it gives the data of past 1 month only, i do have like around 100+ spaces. Is there any possibility like we can get it for past 1year.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.