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

Syntax

countPages(cqlQuery)

Description

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

Parameters

Parameter name

Type

Required

Description

cqlQuery

stringYesConfluence Query Language (CQL) search string.

To learn more about CQL Functions, see Confluence CQL documentation.

Return type

number

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

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