Can you set a default sort order on the Jira Issues macro?
Asked by ejanis:

Hi,

I am using the Jira Issues macro on a Confluence page to display some custom fields from the my Epics, along with the assigned Due Date. My challenge is the when the macro table is displayed, it seems the issues are sorted by newest to oldest by default. I would like to set the sort order to be oldest to newest on the page (by Due Date).

I can't seem to conclusively determine if this capability exists or not with the macro.

Any help or guidance would be greatly appreciated.


Answers:
author: Fabian Lim
body: Hi [@ejanis](/t5/user/viewprofilepage/user-id/4682677)

Welcome to the community!

Have you tried setting the order from the jql itself.

Regards

comments: author: ejanis
body: Hi Fabian,

The simplest answer was the best. I was looking at it the wrong way - trying to manipulate the macro. As suggested above, I looked at the JQL angle.

On my first attempts (when I posted) the JQL I was using was not giving me the desired sort. Long story short, I corrected my JQL and all is good. The sort order is correct and the macro in Confluence displays the info in the order I need.

Thanks all for supporting the 'noob'!

- Erik


author: Katerina Kovriga {Stiltsoft}
body: Hi [@ejanis](/t5/user/viewprofilepage/user-id/4682677) ,

If it happens so that you use our app that is [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=server) in your company, then you may also use its [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro for filtering your Jira Issues as well.

Such dynamic macros are fully supported by our app and you'll be able to use [date range filters](https://docs.stiltsoft.com/display/public/TFAC/Table+filtration#Tablefiltration-Filtertypesavailable) for your case on the fly from the page view mode. It will simplify your result table.

To set a default sorting of the Jira Issues macro is better with the help of the JQL as was suggested in the previous answer.


author: Katerina Kovriga {Stiltsoft}
body: Hi there,

As this thread mentions our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community) app, we are happy to introduce its new macro -- [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community).

The macro allows you to work with fully functional Excel spreadsheets right in Confluence.

You'll be able to use cells' formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view and edit modes.

The Table Spreadsheet macro is available for Cloud and Server/Data Center.

![](https://docs.stiltsoft.com/download/attachments/83100938/Conditional%20formatting.png?version=1&modificationDate=1641987630000&api=v2&effects=border-simple,shadow-kn)


author: Kristin Lyons
body: You should be able to just click on the Due Date column and it will sort it for you, or as [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564) said you could update the JQL to sort by due date.


Tags: confluence-server

server