Skip to end of banner
Go to start of banner

Query Supplier

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Current »

Overview

Provides access to the query objects created by reporters such as local-reporter, content-reporter, etc.

This is most easily accessible either

  • via the 'query' key of the Report supplier

  • by storing the query in a variable using report-variable

Details

Name:

Query Supplier

Prefix:

query(optional)

Supported Content:

Queries

Provided By:

Reporting for Confluence FROM V3.3.0

Supported Keys

List of keys that this supplier returns a value for.

Key

Content Types

Return Type

Description

size

Queries

Number

Returns the number of items that would be returned by the query, if executed at this moment.

This may be a very expensive operation for some types of queries, as it may require executing and loading the whole result set into memory.

as collection

Queries

List of Anything

Executes the query and returns the results as a Collection.

May be an expensive operation for both memory and performance on very large queries, as it will load all results into memory.

Examples

Storing a query in a variable

Stores a list of all pages starting with 'Foo' in the 'My Query' variable.

{report-variable:My Query}  {local-reporter:page:children}    {text-filter:page:title|include=Foo.*}  {local-reporter}{report-variable} {report-list}  {local-reporter:variable:My Query}  {report-header}Size: {report-info:report:query > query:size}{report-header}  {report-body}{report-info:page:title|link=true}{report-body}  {report-empty}_No children starting with 'Foo'.{report-empty}{report-list}

  • No labels