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: 

Issue with CQL Search on Collaboration Space Titles using Wildcard

Deleted user
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
June 10, 2025

Hi @[deleted] -- 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

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

Atlassian Community Events