Hi Community,
I am trying to run a Confluence Automation script, to identify all pages in my space that have a specific label attached to them, and apply a page restriction.
This script would be a one-off run to restrict all pages that already have the label.
There is then a second script that restricts pages as the label is applied.
The first script (one-off) throws an error, even though the CQL seems to validate fine. See below.
CQL: type="page" and label="100"
CQL validation: valid query. 1 contents found
Error when running script: No CQL-compatible content found in the rule context; there is nothing to check against the CQL query. The CQL condition component can only follow components that involve CQL-compatible content, such as the blogpost published trigger, the publish new page action, or the related entities branch.
Any suggestions?