Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Confluence blueprint - how to get tiny link for the created page?

Angela Josifovska August 26, 2015

Hi smile
I have a blueprint plugin and I need to take the url of the page before it is created.
Is there a way to get the tiny link in my Context provider?

Thank you.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Panos
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.
August 27, 2015

I think the answer is no. And i say that because for example it is impossible to view source code of a new page, you have to save it first. So try to simulate that behaviour, create a page, save an empty body, now you have the url, update the body as per wish.

As per your request in the comment:

Page p=pageMananger.getPage(pageID);
p.getUrlPath()

The getUrlPath comes from https://docs.atlassian.com/confluence/latest/com/atlassian/confluence/pages/Page.html because page extends an AbstractPage

Angela Josifovska August 29, 2015

And is there a way to take the url programmaticaly after creation of the page? I cannot find any code for getting url of a page..

Panos
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.
August 30, 2015

updated the answer

Angela Josifovska August 30, 2015

Thanks a lot for the answer :)

TAGS
AUG Leaders

Atlassian Community Events