Skip to main content
Skip table of contents

Content Filter


This filter will ensure that the specified prefix:key value matches the required Confluence content value.

It will check if the specified key chain value matches the criteria, such as its space, type, scope, or labels. These options are very similar to those provided by the Content Reporter, but can be used in other contexts.

This macro must be used within a reporter macro.




Migratable to Cloud?

Default Value


[default] /key

  • (/)

  • NO

The key value to filter on. May be @self to filter on the current report item.


  • (X)

  • NO


The list of spaces to search in. Each space may be prefixed by either "+" (to indicate the space is required) or "-" (to indicate the space must be excluded). May be one of the following:

  • @self - (default) The space the current content is in.

  • @personal - Personal spaces only.

  • @global - Global spaces, that is, non-personal spaces.

  • @all - All spaces, both global and personal.

  • SPACE KEY - Any other space key may be specified explicitly.


  • (X)

  • NO


The list of content types to allow. Each type may be prefixed by either a "+" (to indicate it is require) or "-" (to indicate it must be excluded). May be any of the following: 

  • page

  • news

  • comment

  • attachment

  • spacedescription


  • (X)

  • NO

List of pages, news items, etc. which are in scope.

If the content is a page, the scope can be expanded to their children, descendants or ancestors:

  • > children - The direct children of the specified page. e.g.: "scope=My Page > children"

  • > descendents - All descendants of the specified page. e.g.: 'scope="My Page" > descendents'

  • > ancestors - All ancestors of the specified page. e.g.: "scope=My Page > ancestors"


  • (X)

  • NO

List of label checks.

e.g.: "one, +two, -three" would list content which has the "two" label but not the "three" label.


  • (X)

  • NO


If set to false, content matching any of the criteria will be matched. 

Editor View

Macro Edit View

  • Not applicable.


Display all children with the 'foo' label


Tutorial Examples

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.