Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

countPages(cqlQuery)

Description

Excerpt

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

...

Parameter name

Type

Required

Description

CQL querycqlQuery

stringyesYesConfluence Query Language (CQL) search string.
Info

Read more about CQL Functions in the Confluence CQL documentation.

Return type

number

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

Example

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

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

...