Iam looking for a order function in confluence CQL.
I want to order by TYPE (page, comment, etc) How is it possible?
I tried this, but it doenst work: https://myconfluence.site/rest/api/content/search?cql=text~%22apos%22&type=page&expand=body.storage&filter=order+by+asc
Thanks for your help!
It seems you mixed things up a bit :)
This query works for me and orders by id
/rest/api/content/search?cql=type=page+and+text~"apos"+order+by+id+asc&expand=body.storage
Lets see the problems one by one:
I hope this solves your issue. Ordering by type would not have any affect in your example as you only search for pages.
Find further information here: