Could anyone explain what I am missing with this small user macro:
## @Param Childpage:title=Childpage ID|type=string|required=true
#set($parentpages = $pageManager.getPage($paramChildpage).getParent().getId())
What I try to achieve is to: 1) enter a valid pageID into the parameter "Childpage" and 2) have the user-macro return the parent page.
It works if I skip the parameter and enter a pageID directly into ...getPage(_some_pageID_). But I have no luck getting a result when using $paramChilpage - macro output is: $parentpages
I have found a couple of community-solutions working with <spacekey> and <pagetitle> that go into getPage() - but I need to find parent pages based on pageID only.
Pleased to hear.
Hello Confluence Community! What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. We la...
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