Versions Compared

Key

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


Syntax

Description

Excerpttable-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.

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);

See also

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

...

page_

...

routines" and space = currentSpace ( )
labels

...

array_

...

routines