User macro to show who has recently seen your page...

We can query the Confluence database to show who has landed on a page with the following query:

SELECT 
CONTENT_ID,
TITLE,
SPACENAME,
LAST_VIEW_DATE,
user_name,
display_name
FROM AO_92296B_AORECENTLY_VIEWED 

LEFT JOIN user_mapping ON AO_92296B_AORECENTLY_VIEWED.USER_KEY = user_mapping.user_key
LEFT JOIN cwd_user ON user_mapping.lower_username = cwd_user.lower_user_name
LEFT JOIN CONTENT ON AO_92296B_AORECENTLY_VIEWED.CONTENT_ID = CONTENT.CONTENTID
LEFT JOIN SPACES ON AO_92296B_AORECENTLY_VIEWED.SPACE_KEY = SPACES.SPACEKEY

LIMIT 100000;

This shows results based on unqie views over a 3 months period.

Is there any way we can achieve the same result by creating a User Macro?

I want to be able to use the Macro paramater field to search for a page which shows who has seen that page. 

1 answer

This widget could not be displayed.
Ann Worley Atlassian Team Jul 19, 2017

Have you considered a third party add-on like Viewtracker?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 30, 2018 in Confluence

How Manon Soubies-Camy uses Confluence + Trello to organize webinar notes and her knitting stash

@Manon Soubies-Camy is an engineer who has been an avid Atlassian user since 2014. She helps companies of all sizes transform the way they work with the Atlassian stack, including Jira and Confl...

847 views 8 13
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