Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Order by creation date using CQL in REST API

PS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2020

I'm using the REST API, following endpoint:

/rest/api/content/search

And trying a CQL like this:

(type IN (blogpost) and space = AP) order by created desc

but I'm getting very weird results ordering by the created field.

For example I update one blog post and the results I get change which I'm not expecting since I'm thinking creation date = creation date of the post and edits to it don't update that field. 

From the raw data it seems there is a creation date that works as I expect but the ordering doesn't seem to be working.

I was trying to follow what is here: https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/

 

So, how should I order by creation date of a blog post?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events