Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add labels automatically to pages with a certain keyword in title?

Schuuudi
Contributor
November 29, 2022

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

2 answers

1 vote
Chander Inguva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 20, 2015

Hi Cuif,

  • The challenge to be noted is Migrating Users/Groups from two different AD's to use a single AD.
  • Also, with duplicate Space Keys, like there are two Spaces one from each server with same Space Key.

Hope this will be helpful.

Regards

Chander




 

 

1 vote
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 20, 2015

Hi Cuif,

I was able to find this other answer which may help you to achieve this.

I hope this helps.

Cheers,

Rodrigo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events