Forums

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

Event Handlers for create pages - Can i set the page tree order?

shira segal inbar
Contributor
January 30, 2018

Hi,

I wrote an event in scriptRunner, that builds 19 pages under parent page.

I need to have a certain order in the tree for all 19 pages. didn't find a solution.

Does anyone have an idea?

 

Thanks,

Shira

1 answer

1 accepted

0 votes
Answer accepted
Christo Mastoroudes [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2018

Hi, 

You can reorder the pages in the page tree manually by clicking the ellipsis button on the top right of the page and selecting "View in Hierarchy". Then you can drag the pages to the order you need.

 

I don't know exactly how to do this programatically, but it should be possible. I noticed that I can set the position of a page but have not tested it.

Page page = new Page();
page.setPosition(1);

Please mark this question as answered if this resolves your issue.

shira segal inbar
Contributor
February 4, 2018

Thanks,

Works great!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events