Filter "Current space" or "Current page" does not work

Problem

When adding a CQL filter to the metadata overview macro with the value "Current space" or "Current page", the results are not filtered accordingly.

Solution

This behavior is caused by the following bug: METADATA-451 - Getting issue details... STATUS

It is fixed starting with version 2.2.

Workaround

Depending on your use-case:

  1. Enter the current space/page by name, not as "current page" or "current space".
  2. Use the expert filter criteria with the placeholder $content to get the data.
  • Current page: metadatafield.linkfield:$content.id
  • Current space: metadatafield.linkfield:$content.getSpace()