Syntax
countPages(cqlQuery)
Description
Returns the number of pages that matched the CQL search query.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
| string | Yes | Confluence 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