Skip to end of banner
Go to start of banner

countPages

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 2 Next »

Syntax

countPages(cqlQuery)

Description

Returns the number of issues that matched the CQL search query.

Parameters

Parameter name

Type

Required

Description

CQL query

stringyesConfluence Query Language (CQL) search string.

Read more about CQL Functions in the Confluence CQL documentation.

Return type

number

Example

string cql = "(type=page and Space=DEV) OR (creator=bobsmith and type=blogpost)";

number count = countPages(CQL);
print("Return " + count);

Print Return 15 (for example)

See also

  • No labels