Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,836
Community Members
 
Community Events
168
Community Groups

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

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

4 answers

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.  

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. ;) 

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

Thanks for this! Helped me a lot :) 

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)

 

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

3 votes

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.

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

487 views 0 12
Read article

Atlassian Community Events