Forums

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

Issue with CQL Search on Collaboration Space Titles using Wildcard

sainath
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!
June 9, 2025

We are encountering an issue when querying Confluence spaces using the CQL REST API. Our goal is to search for spaces where the title starts with collab-, specifically for dynamically identifying collaboration spaces.

The following query returns results as expected:

/wiki/rest/api/search?cql=(type="space" and space.title~"collab-")

However, when attempting to use a wildcard to match any titles starting with collab-, such as:

/wiki/rest/api/search?cql=(type="space" and space.title~"collab-*")
It returns no results.

Expected Behavior:
We expected that using the * Wildcard would return all spaces whose title starts with collab-.

Actual Behavior:
The query using collab-* returns no results, even though such spaces do exist.

Impact:
This behavior limits our ability to identify collaboration spaces with a consistent naming convention programmatically.

Steps to Reproduce:

  1. Create a Confluence space titled collab-abc

  2. Run the following query:
    /wiki/rest/api/search?cql=(type="space" and space.title~"collab-*")

  3. Observe that no results are returned.

Question:
Does space.title~ Support wildcards like * In CQL? If not, is there any alternative way to query for space titles starting with a given prefix?

Environment:


Let me know if you'd like a formatted Markdown or .txt version of this template!

1 answer

0 votes
Bill Sheboy
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.
June 10, 2025

Hi @sainath -- Welcome to the Atlassian Community!

I did a quick check and did not find this symptom / limitation in the public backlog.

As you appear to be on a paid license, please work with your Jira Site Admin to contact Atlassian Support to submit the defect here:

https://support.atlassian.com/contact/#/

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events