Order Page Properties Report by field with a Jira Issue Counter Macro value
Asked by Miguel Fontes:

We make heavy use of page properties report for summarizing issue related information on a helpful problem management dashboard that guides our operation. The structure is:

* A root page, with a page properties report macro searching for pages the a *problem* tag.
* A set of subpages, each describing a problem. Those pages are labeled with the *problem* tag.

As expected those subpages contain a table inside a page properties macro, and those are the values we display at the report. One of those fields, has as its value a Jira Item Macro - set to display only a counter of the issues found by a given JQL (ex: 70 issues).

Here is my problem: i can display that value easily at the Page Properties Report, but i can't order the table by it. The page properties display the value AS-IS and since it isn't entirely a number (composed of \<issue count\> \<pluralized "issue"\>) i can understand why ordering by this field does not work. Does any one know a way to make this work (other macros, or configurations i could use)?![ocorrencias.png](https://community.atlassian.com/t5/image/serverpage/image-id/86594i4C7EEF86BB64770D/image-size/large?v=v2&px=999 "ocorrencias.png")


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Miguel Fontes](/t5/user/viewprofilepage/user-id/2724076) and [@ivan.sandrini](/t5/user/viewprofilepage/user-id/2643887) ,

We can suggest using our app - [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview).

Wrap your Page Properties Report macro in the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro, and your Jira Issues column becomes sortable:

![PPR 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/114612iC5F84F3010674759/image-size/large?v=v2&px=999 "PPR 1.png")![PPR 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/114613i8BD89F223FE4E9C6/image-size/large?v=v2&px=999 "PPR 2.png")![PPR 3.png](https://community.atlassian.com/t5/image/serverpage/image-id/114614iCEFAB1FCF97597A8/image-size/large?v=v2&px=999 "PPR 3.png")Note that you'll also be able to use various types of filters to search across you PPR-report.

And you can predefine your type of sorting in the macro body:

![PPR 4.png](https://community.atlassian.com/t5/image/serverpage/image-id/114615iEC346546BBAFF848/image-size/large?v=v2&px=999 "PPR 4.png")

comments: author: Miguel Fontes
body: Hey [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)! Thanks for taking the time to help me! I've hit your app site and, wow, it's really an interesting tool. I got blew away with the aggregation capabilities. Thanks for bringing it up!

That said, i'm going to consider it as an option but, for now, our use case is too narrow for me to justify the investment. Maybe as our use of confluence grows, we will hit the spot where Table Filter and Charts for confluence will be a great fit!

Keep up the good work, Stillsoft!


author: ivan.sandrini
body: +1


Tags: cloud

confluence-cloud

page-property

sort