Versions Compared

Key

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

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

countPages(cqlQuery)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
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
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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
languagejs
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)
showLabelsfalse
max25
showSpacefalse
cqllabel = "pspage_conf"routines" and space = currentSpace ( )
labelsjiraarray_comment_routineroutines