Forums

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

CQL to query Page Properties for automation

Rhys Gottwald
Contributor
March 8, 2025

Hi I want to run an automation that only executes actions if a specific value is found in the Page Properties Macro of a page. 

I have tried the AI labeling action with a prompt but this seems not to only consider the values in the Page Properties Macro it searches the whole page

Is there a way to do this with CQL?.  

2 answers

1 accepted

0 votes
Answer accepted
Tomislav Tobijas
Community Champion
March 9, 2025

Hi @Rhys Gottwald ,

I know this 'sectioning' the content can be a bit tricky. I did some parsing of the page body when it comes to Page Properties macro which pulls the email address of the mentioned user but this just feels a bit 'too complicated' if you ask me: https://community.atlassian.com/forums/Confluence-questions/Re-Re-Email-recipients-based-on-Page-property-smart-v/qaq-p/2903711/comment-id/330414#M330414

I guess you could parse JSON content of the page and store only part in the Page Properties macro in the variable and then use .match() function.

Again, this can get really complicated and I hope someone else has a 'smarter solution'. šŸ‘€

Cheers,
Tobi

Rhys Gottwald
Contributor
March 9, 2025

Thank you @Tomislav Tobijas that is a bit of a complex solution for what we are trying to achieve, but it should work, thank you.

Like • Tomislav Tobijas likes this
0 votes
James.Alvir
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!
October 16, 2025

@Rhys Gottwald - were you able to resolve? I'm tackling something similar. 

Rhys Gottwald
Contributor
October 20, 2025

Yes, the solution from Tomislav worked.

Like • Tomislav Tobijas likes this

Suggest an answer

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

Atlassian Community Events