Sort page properties report macro by created date

Is it possible to sort by date of creation on the Page Properties Report macro? The pages are very difficult to keep track of as the current default is "last modified date"

 

1 answer

1 accepted

2 votes
Davin Studer Community Champion Apr 08, 2015

This should work for you. Create a user macro using the code below. It will take the create date and output it in yyyy-MM-dd format so that it is sortable (the report macro does string sorting, so other formats of the date won't work). Then add another property to the page properties macros called Created, or some such thing, and include this user macro in the right column. Then in your report macro have it sort on the Created property.

 

## Developed by: Davin Studer
## Date created: 12/04/2014
## @noparams

$action.dateFormatter.formatGivenString("yyyy-MM-dd", $content.getCreationDate())

Thanks Davin - I assume that it's not possible normally hence the workaround!

Davin Studer Community Champion Apr 08, 2015

Correct. There is no native way in the report macro to do it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

67 views 0 4
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