selectPages

selectPages

Syntax

selectPage(cqlQuery)

Package

Alias

Pkg Usage

Description

Returns an array with the IDs of the pages that match the search query.

Parameters

Parameter name

Type

Required

Description

CQL query

String

Yes

Confluence Query Language (CQL) search string.

Return Type

Number []

Returns a list of page IDs that match the specified CQL.

Example

string cql = "(type=page and Space=DEV) OR (creator=bobsmith and type=blogpost)"; number [] pages = selectPages(cql); for(number p in pages) { %p%.labels += "newLabel"; }

See also

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.