Seems quite simple but can't figure it out. How do you get the page id for the parent page?
I can't seem to find anything relevant in the API docs that explains how/if this is possible.
What version of Confluence are you using? This worked for me, which is exactly what you tried.
$content.getParent().getIdAsString()
Maybe you're running the macro on the root page of the space (so it has no parent)?
Welcome to great meetings, with less work. Automatically record, summarize, and share instant recaps of your meetings with Loom AI.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.