Is there a Macro to display Last Update Date of the Page?

Alejandro Sanfeliu Vernis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2017

Is there a Macro to display Last Update Date of the Page

4 answers

1 accepted

4 votes
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 29, 2017

You could create your own as a user macro:

https://confluence.atlassian.com/doc/writing-user-macros-4485.html

## @noparams
Last Modified: $action.dateFormatter.formatDateTime($content.lastModificationDate)

 

Alejandro Sanfeliu Vernis
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 29, 2017

Thanks

Gregor Näckel March 23, 2018

Hi @Stephen Deutsch you seem to have alot of experience in writing confluence plugins so maybe you have a tip or idea on how to extent this plugin to display like the last 5 Modified Dates of a page ? Thank you in advance and have a nice weekend! :)

Gregor

Devan Dewey
Contributor
July 31, 2023

Looks like this code breaks in Confluence 7.19.10

@Stephen Deutsch do you have an update?

Like Matt Doar likes this
Devan Dewey
Contributor
July 31, 2023

Looks like it's the formatting that's broken, because this works:

## @noparams
#set ( $dateInfo=$content.lastModificationDate)
Last Modified: $dateInfo

Like # people like this
9 votes
Lisa Napier
Contributor
November 3, 2020

For inclusion in a page properties report, I found the contributors summary too cumbersome.  It's a table within a table.  But I found that I could modify the Contributors macro to include the last updated, with the inline format, works perfectly!  

Useful for PageProperties reports of various project status pages, and providing a "freshness" index of projects.  

Eline Vandeput
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2021

Hi Lisa, 

very useful tip! 

Can you explain a bit more on how you do the inline format? 

I want to add the "last update" to my page properties table and it would indeed look much better if it was not shown as a table in a table. 

I am not that familiar with confluence (and not tech savvy) so a bit more information would be much appreciated. ;) 

Lisa Napier
Contributor
May 26, 2021

Hi Eline,

The example that I responded to used the macro "Contributors Summary" which produces a table.  There is another macro called "Contributors" which -By Default- does not list the last update - but you can modify it.  Here's the steps I use: 

Type "/contri" - short cut to the macros menu, select "Contributors" - press enter

You now have a box that says 'contributors' and an edit menu [pencil, width setting, trash]. - Select "Edit" to bring up a dialog box. 

You now have many settings to change... "Contribution Type", Sort By, Maximum number of Contributors, Display format, 

Select the box that says "Show Last Contribution Time?" 

And you can keep the list tidy by setting the Maximum number of Contributors to 1 or 2.  

Save that and you'll end up with something that looks like 

[Last update:  Lisa.Napier (12 days ago) ]

Hope that helps! 

Like # people like this
Satu K
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2021

Thanks for this! Helped me a lot :) 

4 votes
Henry See Toh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 3, 2020

If you are using Confluence Server then you can use the Confluence Macro "Contributors Summary" macro.

Configure the macro with

Group By: contributors

Columns to Display: lastupdate

Sort By: update

Maximum Number of Items:1

This will show the User and the Last Update details for the page.

What's really useful is that if you include the "Contributors Summary" within a row of a "Page properties" macro e.g.

Untitled.png

and label the page. You can get a summary of such pages in another Confluence page using the "Page properties report" macro. In the above set up, the summary will show columns with:

Title | Description | Details (within the details there will be User | Last Update) | Next Review | Status

3 votes
Stiltsoft Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 23, 2022

Hello @Alejandro Sanfeliu Vernis ,

Handy Timestamp does exactly what you need. It is a macro included in Handy Macros for Confluence. 

Use it to insert the page creation, update, or the date of inserting the timestamp. It works in Confluence native macros, i.e. Page Properties Report, so you can generate overviews with Handy Timestamp.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events