Forums

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

Get ID of Page where new Page will be created

Deleted user March 5, 2018

Hi guys,

how do I get ID or Name of the page where I press the Creation Button. I have to work with it in my Java file.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -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.
March 5, 2018

Where exactly is your Java running?  If you have a page object, then getId() will tell you, but whether you have the page or not and how you get to it depends on where your java is being run.

Deleted user March 5, 2018

After I press create on the creation wizard.  I put some variables via BlueprintContext and this is where I use java.

Nic Brough -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.
March 5, 2018

Ah, ok.  There is no page ID at that point in the code.  It doesn't get one until it is created, after the blueprint has built it.

Deleted user March 5, 2018

hmm I see.

But thank you very much!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events