Hello,
I am looping over pages through #foreach ($page in $allPagesInSpace), where $allPagesInSpace = $pageManager.getPages($space, true).
What I'm trying to do is to create a table containing metadata of hundreds of pages. What I would like to do is run the Page Status macro for each page. I tried doing it through $action.getHelper().renderConfluenceMacro("{pagestatus}"), but this only pulls the page status for the page I am creating.
If anyone could help me figure out the correct method, that would be greatly appreciated.
Thank you.