Versions Compared

Key

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

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
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
Read more about CQL Functions in the Confluence CQL documentation

.

Return

...

Type

numberNumber

Example

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

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

...

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

page_

...

routines" and space = currentSpace ( )
labels

...

array_

...

routines