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
Answer accepted
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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,510 views 4 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