Encountered Bug w CQL Macro

Tina Baroni-Turner
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 9, 2025

PROBLEM: When creating a template and adding the CQL Search Macro, valid CQL searches indicate they do not always work. For example, none of the following work: ancestor=118469228 space = UNITE AND type = Page AND (ancestor = " 118469228 " AND ancestor != "118469585") AND (ancestor != "118469218" OR ancestor != "118469224" OR ancestor != "118469215") AND title ~ "U-DEF" AND (text ~ "\\"risk "") ORDER BY title ASC The following DID work, but when I tried to remove unrelated parts of it, it also stopped working: space = UNITE AND type = Page AND (ancestor = " 118469228 " AND ancestor != "118469585") AND (ancestor != "118469218" OR ancestor != "118469224" OR ancestor != "118469215") AND title ~ "U-DEF" AND (text ~ " "project plan "") ORDER BY title ASC WORKAROUND: Test the cql query in another page or in the ScriptRunner Enhanced Search. If it works there, create the macro with the query in the template (even though it does not work). When the template is created the macro will work. So, the request for this ticket is to get a ticket put in with Adaptavist. I believe this macro comes from having ScriptRunner as opposed to default Confluence.

1 answer

0 votes
Cyrille Martin
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 Leaders.
January 9, 2025

Hi @Tina Baroni-Turner 

A template is not a common content, all searches included in a template are effective once the template is injected in a page. Until the content of the template is not put in the context of a page, the search may not work.

If you have a specific request to Adaptavist I invite you to follow this link : Adaptavist Support Portal 

So as you are seeing the CQL Search Macro in the macro browser, your instance is a DataCenter :)

Regards,

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events