countPages
Syntax | countPages(cqlQuery) | Package | |
Alias | Pkg Usage |
Description
Returns the number of pages that matched the CQL search query.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
cqlQuery | String | Yes | Confluence Query Language (CQL) search string. |
Return Type
Number
Example
string cql = "(type=page and Space=DEV) OR (creator=bobsmith and type=blogpost)";
number count = countPages(CQL);
print("Return " + count);