How can I get the ID of the page where I create a new Page

Adrian Germeck March 6, 2018

Hello,

for example this is my page tree:

-PAGE1
-PAGE2
         -PAGE2A
                  -(newPagehere)
-PAGE3

If I click on the create button, while PAGE2A is open, the new Page will be created under PAGE2A. How can I access the ID or the name of PAGE2A while creating the new page. I am building a blueprint plugin and it needs to know what page is its parent. Can I add code in java where my BlueprintContext is?

 

Thanks,
Adrian

1 answer

1 accepted

0 votes
Answer accepted
Adrian Germeck March 6, 2018

I got it. 

blueprintContext.get("parentPageId")

provides the ID I need. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events