Automation Query

Mat.Duchesne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2024

Hi, 
I'm looking for a way to set automation so that if a page contains a certain word, it adds a certain label, in this case a label of that same word

For example:

"We are in a house and there is a chair and a table"
I want it to add a rule for each of the underlined so that it adds a "chair" label, and a "table" label.

In the working scenario, these would be names of systems being mentioned.

I have managed to get it to do it once with the title, because the wording for it is the default in the field (even though when I tried to do it a second time, it didn't work. I think i'm in the right place but I don;t know what the wording would be; {{page.content}}, {{page.body}} - contains... etc

I'd also like to query whether "When: page published" is JUST for the initial first publishing of a page, or whether it would trigger when the page is re-published / updated.

 

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Mat.Duchesne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2024

I played for a while longer and managed to answer my own question with

WHEN: Page edit

CQL
IF: space = "spacename" and text ~ "batman"

THEN: Add label - thelabel

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events