Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Groovy script

Code Block
{groovy:output=wiki}
out.println '|| Space || Page ||'
 
spaceManager.getAllSpaces().each { space ->
  pageManager.getPermissionPages(space).each { page ->
    def pageLink = "[${space.getKey()}:${page.getTitle()}]"
  	out.println "| [${space.getKey()}:] | ${pageLink} |"
  } 
}
{groovy}

Example output

Notes

  1. spaceManager and pageManager areĀ Pre-defined variables
  2. If you need more detail on the permissions for a particular page, use getContentPermissionSet(). SeeĀ ContentPermissionSet