Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Comala Document Management for Data Center
Results will update as you type.
  • Overview
  • Get started
  • User Guide
  • Workflow Authoring Guide
  • How to's and tutorials
  • Reporting Guide
    • Workflow Reports
    • Report Macros
    • Confluence Reports
    • Third-party Reporting apps
    • CQL filters in Document States report macro
      • CQL filter - filter pages by current user
      • CQL filter - reporting pages that have been approved or expired in a time period
    • Workflow Macros
    • How to report on ...
    • Confluence Macros
  • Administration Guides
  • Developer Guides
  • Integration Guides
  • Migrating to Confluence Cloud
  • Release notes
  • Support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    CQL filters in Document States report macro
    Updated Sept 03

    CQL filters in Document States report macro

    1 Overview | 2 Using CQL filters in the document states report macro | 3 CQL filter examples | 4 Related links

    Overview

    The CQL Filter parameter of the document states report macro now accepts Confluence CQL format functions, keywords, and can include OR and comparison operators (from v.6.16.7+).

    Using CQL filters in the document states report macro can create focused bespoke reports your users and teams. For example

    • report dynamically on the pending approvals for the current day or a time period prior to the current day

    • report on workflow information filtered to the current user viewing the page with the report macro

    The only workflow CQL searchable fields are those listed in Comala Document Management CQL Rest API page together with the Atlassian Confluence CQL fields.

    Using CQL filters in the document states report macro

    Simply add the CQL format filter (see - Confluence CQL keywords) to the CQL filter dialogue box in the document states report macro editor.

    Prior to v6.16.7 CQL filter in report macros must be in the form FieldName:Value

    For example, the following pages all have the label hr in a space.

    But our added CQL filter will cause the report to display only the page(s) that have both the label hr and were created by the user matilde.

    You can use functions in the CQL, for example, the following includes an OR function.

    This will display content that has either

    • the label hr

    OR

    • has been created by the user matilde

    Filters are additive. If there are any logical clashes then no results will be returned.

    The CQL field awphasworkflow=true is always applied so content without a workflow will not be included in the report.

    Other compatible CQL filters include

    • contributor=username

    • creator=username

    • label=labelname

    • title=pagetitle

    Currently, date based CQL filters are not compatible with the document states report macro.

    When the added CQL filter and the macro option filter overlap, errors may sometimes occur. Some complex expressions for Confluence CQL field references are not supported, for example, multiple values for a field name.

    CQL filter examples

    • Page:
      CQL filters in Document States report macro
    • Page:
      CQL filter - filter pages by current user
    • Page:
      Using a CQL filter in the document states report macro to report on grandchildren of a page
    • Page:
      CQL filter - reporting pages that have been approved or expired in a time period


    Related links

    Comala Document Management documentation

    • CQL REST API

    • Searching and Reporting - Document States Report Macro

    • document states report macro

    Atlassian documentation

    • Confluence Search Syntax

    • Advanced Searching Using CQL

    • CQL Field Reference

    • CQL Function Reference

    • CQL Keywords Reference

    • CQL Operators Reference

    • Performing Text Searches with CQL



    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 15, "requestCorrelationId": "c066dec9d0be4be186445e28db0a6768"}