Forums

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

Ancestor table corrupt after creating page structure through plugin with blueprints

Marcel Höll July 6, 2018

I wrote a blueprint plugin, which create a page structure with the current user under the currently selected page.
The page structure looks simplified like this:
- ROOT_PAGE
| - CHILD_PAGE_1
    | - CHILD_CHILD_PAGE_1
| - CHILD_PAGE_2
    | - CHILD_CHILD_PAGE_1_1

Now my problem ist, that the ancestor table is corrupt after creating the page structure with the blueprint for the current user. If an Admin opens up the structure, it is fully visible. If we repair the ancestor table manually, the page structure is visible again to all users. But the page structure is being created round about 10 times a day and to send 10 mails per days and rebuild the ancestor table 10 times per days is not really helpful and costs a lot of effort.

Is there any possibility to repair the ancestor table in code?

I've tried PageManager.updatePageInAncestorCollections(..., ...), which lead to no improvement. I've also tried using PageAncestorManager, but it doesn't get injected into code, so I can't use this manager.

Hope to hear from you soon and thank you in advance

Kind regards,
Marcel

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events