I am currently building a Confluence Addon that creates pages dynamically with a scheduled job. So far everything works fine and the pages are created correctly. However, when trying to add a label with the labelManager, the label is created within the Database, but is not show on the new created page.
The code itself is quite simple:
// here the page will be created Page createdPage = createNewPage(pageName, source); // here the label should be created and added to the page labelManager.addLabel(createdPage, new Label("new Label"));
I also tried
LabelUtil.addLabel("new Label", labelManager, createdPage);
But that did not change anything. I also received “LabelManager.LABEL_ADDED;” as response when adding a label to the page, but still not showing.
Has anybody an idea what might be wrong here? I am currently using the latest Confluence Server build