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

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2024

Hi @lukasgotter ,

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

Fabioo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events