It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sort page properties report macro by created date

Angus Law Apr 08, 2015

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 Leader 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())
Angus Law Apr 08, 2015

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

Davin Studer Community Leader Apr 08, 2015

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

Angus Law Apr 08, 2015

Nightmare

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,415 views 11 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you