Forums

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

How to get all pages order as like in confluence

Sundar sarma
Contributor
January 31, 2023

In my  confluence space , the order of the pages looks like the below:

Main Documents(Parent Page)

  •    General documentation 2
  •    Legacy 4  Documentation 
  •    Product Oriented documennts
  •    Design 5 Documents.

after calling confluence API:confluence/rest/api/search?cql=parent+%3D+109844176%20

the order of pages in the json reponse is different. it is not as like in the above order.

In JSON response from confluence the order like below:

Main Documents(Parent Page)

  •    Legacy 4  Documentation
  •    Product Oriented documents
  •    Design 5 Documents.
  •    General documentation 2

I want the response as like the order in confluence. 

Note: Even in the future, if change the order in confluence by using reorder list option, it should get latest reorder list in the response

 

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
January 31, 2023

Hi @Sundar sarma and welcome to the community,

Please read the following post: https://community.developer.atlassian.com/t/get-space-page-hierarchy-using-the-rest-api/15999

Sundar sarma
Contributor
January 31, 2023

Hi @Alex Koxaras _Relational_ 

You did not get my question.

I have edited my question to get a clear understanding. Please look again

Like Bowen Li likes this
Alex Koxaras _Relational_
Community Champion
January 31, 2023

@Sundar sarma yes I did get your question right the first time. Again, please take a look at the above link. Did you even read it? It has the solution: https://community.developer.atlassian.com/t/get-space-page-hierarchy-using-the-rest-api/15999/8?u=alexkoxaras

Sundar sarma
Contributor
January 31, 2023

Thanks @Alex Koxaras _Relational_  i am able to get the order

Alex Koxaras _Relational_
Community Champion
January 31, 2023

Good to know that!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events