I am using the Confluence API to retrieve all pages in a space. Below API endpoint returns the pages but not in required sorted order.
rest/api/space/ABC/content?start=0&limit=1000&expand=ancestors
Hi @Javed Iqbal ,
welcome to the Atlassian Community!
You should be able to add order by parameter, something like:
start=0&limit=1000&expand=ancestors&orderby=title asc
I think you have not getting my point. I want to get all pages in a same order as looks in confluence. I want exact field name on which confluence sorts their pages.
I have tried orderby=title asc its not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Javed Iqbal ,
unfortunately it looks like it is not possible. The only ordering I was able to make work is the title ordering and only with usage of endpoint:
/rest/api/content?spaceKey=ABC&start=0&limit=1000&expand=ancestors&orderby=title asc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.