Due to the format of our page titles, our page URLs always resolve to ../pages/viewpage.action?pageId=########
And people are constantly receiving a URL to a page that results in the error: You don't have permission to view this page.
This results in numerous tickets to our instance admin to determine the space/admins of the page.
It looks like I could possibly write a user macro to get ancestors (which also might not be viewable by the user) so what I really need is to identify the space or the page admins based on the pageId.
getPage(long id) - Deprecated.
since 7.3.0, we can use ContentService.find(Expansion...) from plugins
com.atlassian.confluence.api.model.content.Content content = contentService.find(new Expansion("space")).withId(ContentId.of(pageId)).fetchOrNull();
com.atlassian.confluence.api.model.content.Space space = content.getSpace();
Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events