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?
Hi @lukasgotter ,
did you check if there is some restriction at parent level that blocks you on that?
Fabioo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.