CQL: Order by Page Tree order

mdb January 3, 2019

Hey everyone

I have a CQL that I am using to get some result back and the Order By function is great but I would really like to get the ordering of the results by their natural ordering in the page tree.

For example, in the Display Children macro there is a sort by option. I can sort by Creation, Title, Modified or by Default.

The Default option just orders the pages by how they are organized in the page tree.

Does that option exist for ORDER BY in CQL?

From what I can see it doesn't look like I can. But wondering if I am missing something or if there is another clever way to get that result.

TIA!

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2019

Hello there!
Currently, an "order by" that takes in consideration page tree positions is not available. Here we have some further information about advanced CQL searching:

Advanced Search Using CQL

Also, there are documents detailing how the Page Tree API works. You can have a look at them here:

Page Tree API documentation

If your need is to show the page tree within another page, maybe the Page Tree Macro works for your case:

Page Tree Macro

Let us know if this lead you somewhere!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events