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

3 answers

1 accepted

0 votes
Answer accepted
Brad Svee
July 15, 2013

We found that the plugins are stored in a directory with the attachments and cleaning out the cache directories in conf_home before the first start will load them back up

1 vote
Matthew J. Horn
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.
July 9, 2013

I've found it helpful to keep a list of third-party plugins that we installed on Confluence, so that when we do a backup/restore we know which ones we have to re-install.

It's also helpful to keep any notes about each plugin (such as the HTML plugin -- you have to manually enable some modules to use all the functionality). Another example is the SQL plugin, which has to be configured separately.

Brad Svee
July 9, 2013

So these seems to be a rather large gap in the process that isn't documented?

0 votes
Harry Chan
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.
July 15, 2013

It's probably best and recommended for larger installations anyway to do a database backup + home directory restore rather than using the XML backup method. This should carry across plugins.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events