The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Using Ancestor in Automations with CQL

Rhys Gottwald
Contributor
September 1, 2024

Hi I want to make an automation that is triggered if the pages ancestor is "Knowledge"

I see I have to use the page ID to do do this, but I would like to do this with page title, so that I can apply the automation to any space and any page that has an ancestor titled Knowledge.

Is there any way to achieve this?

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Aron Gombas _Midori_
Community Champion
September 2, 2024

I don't think so.

CQL would need a feature called "subqueries" and then you could write something like this:

ancestor in (title = "Knowledge")

...but subqueries are not available.

Note that JQL (the similar query language in Jira) does not support subqueries, either, but there are apps for JQL that implement that concept.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events