Contains operator not working correctly

Ramon Mengarda February 21, 2024

I want to use a JQL query to search for an issue whose summary starts with a string, so I'm using


summary ~ "string-i-want-to-search-for*"

However, the string I'm using has "-" in between the words, and that for some reason makes the contains function not work, because it returns no results.

Is this a know issue / expected behavior?
Is there any workaround for this case?

1 answer

0 votes
Humashankar VJ
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.
February 21, 2024

Hi - I hope that you are Doing good !!


Very interesting catch,

Thanks for sharing this one

JQL usually treats '-' as special character.

Kindly make use of double quotes around your search string as provided below and keep playing around

"\"string-i-want-to-search-for*\""

Hope this helps

Thank you very much and have a fantastic day!
Warm regards

Suggest an answer

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

Atlassian Community Events