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
Accepted answer
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
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

73 views 3 3
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