Hi Confluence automation experts,
we need your help: we are not getting anywhere with the creation of an automatic rule and hope to get a hint here about our error:
The goal is to insert a specific label (test1) in a space (space key: jp) on pages with "test1" in the title that do not already have this label. Therefore we choose the sequence via automation rules:
> When: Scheduled
>> Every week on Mon at 11:00 AM
> If: CQL condition
>> space = jp AND title ~ "test1" AND label != "test1"
> Then: Add label
>> test1
After saving everything and publishing the rule we run a test and receive the following error:
CQL condition
Error in execution:
Expecting to have a content ID in context.. Trace ID: ec5f5a56-5a02-4331-. . .
What does this mean?
Everything we have tested and tried so far failed:
- the validation of the CQL query inside the rule creation shows green. Despite this, after executing the rule, it shows us this error.
- When we enter the CQL query using the direct CQL search, the pages are all displayed correctly.
- Using the ID from the home page URL did not lead to success
Any idea how we can reach our goal to add labels to several pages automatically?
Thank you in advance for your ideas ;-)