...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | countPages(cqlQuery) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the number of pages that matched the CQL search query. |
Returns the number of pages that matched the CQL search query.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
cqlQuery | |
...
String | Yes | Confluence Query Language (CQL) search string. |
|
Info |
---|
To learn more about CQL Functions, see Confluence CQL documentation. |
Return type
number
...
Return Type
Number
Example
Code Block |
---|
|
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
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "pspage_conf"routines" and space = currentSpace ( ) |
---|
labels | jiraarray_comment_routineroutines |
---|
|