The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Page created from Add-On is not editable in Confluence Server

lukasgotter
March 10, 2018

Hi,

I create a new page in a confluence add-on (plugin2, java). 

The page is created, but is not editable afterwards.

Page homePage = space.getHomePage();

Page newPage = new Page();

newPage.setTitle("some title");
BodyContent bodyContent = new BodyContent();
bodyContent.setBodyType(BodyType.XHTML);
bodyContent.setBody("Some Body");
newPage.setBodyContent(bodyContent);
newPage.setParentPage(homePage);
newPage.setSpace(space);
newPage.setVersion(1);
newPage.setCreator(homePage.getCreator());


pageManager.saveContentEntity(newPage, DefaultSaveContext.DEFAULT);

 Any Ideas? 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
March 7, 2024

Hi @lukasgotter ,

did you check if there is some restriction at parent level that blocks you on that?

Fabioo

TAGS
AUG Leaders

Atlassian Community Events