The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events