I've got this piece of code to count pages with a certain label in a certain space
## To count labels
## @param Label:title=Label|type=string|required=true|desc=Enter a label to count.
## @param Spaces:title=Space|type=string|required=false|desc=This Key is case-sensitive. Only for use in one single space. Example: SPACEKEY
#set( $labelManager = $action.LabelManager )
#set( $labRef = $labelManager.getLabel($paramLabel) )
#set( $pages = $labelManager.getCurrentContentForLabelAndSpace($labRef, $paramSpaces) )
$pages.size()
I would really like to filter on, multiple labels (in AND and OR) anyone knows how?
Any help is appreciated
Thank you.