Reference/Point-to specific page when using Last Date Modified and Last User Modified Macros Edited

I have successfully added the Last Date Modified and Last User Modified macro to our Wiki thanks to, https://community.atlassian.com/t5/Confluence-questions/Include-last-modified-date-and-user-in-Page-Properties-Report/qaq-p/18371

What I am wondering, is it possible to add an additional option to link a specific page as well when editing the macro?  Similar to how you can add a title or color, etc

Hopefully I can clearly express this...

Page A wants to have a table showing the last modified date and last user modification of Page B, C, D. 

Currently, when using the Last Date Modified and Last User Modified macros on Page A, it only shows the Date and User of Page A.  Is it possible to add a field to include which page the Last Date Modified and Last User Modified is pointing to/referencing regardless of what page the macro is on?  How can this be accomplished?

Thank you

2 answers

1 accepted

Are you looking something like this:

## @param Page:title=Page Id|type=string|required=true|desc=Source Page Id
#set($Integer = 0)
#set($pageId= $Integer.parseInt($paramPage))
#set($page=$pageManager.getPage($pageId))
#if($page)
$action.dateFormatter.formatDateTime($page.getLastModificationDate())
#else
Page not found $paramPage!
#end

Thank you @Gregor Kasmann (Actonic GmbH) !  This worked brilliantly.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

373 views 20 10
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