Problem with sentence "summary ~ " and character "_"

Antonio
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!
July 30, 2014

Hello there!

I have a problem when I use the sentence "summary ~ EXT" if the title contains "_EXT" like "182_EXT" it is not returning, but if I return "182_INC-EXT". The probem can be with the character "_".

Can you help? I can not change the nomenclature of the Jiras.

1 answer

0 votes
Jaime S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 30, 2014

Hi, Antonio.

The operator '~' in JQL works with whole words, searching for the words in the search or derivatives (for example 'goes' is a derivative of 'go'), a fuzzy match. It won't match if a word contains part of the words in your search.

What is probably happening is that the '-' is considered as a word separator, so "182_INC-EXT" is considered as 2 words "182_INC" and "EXT", so it is found by the search, while '_' is probably not considered a word separator, so "182_EXT" is considered a single word and it is not a derivative of 'EXT' (which is not even an English word), so it is not found.

I did not understand if you want the issues with "182_EXT" and "182_INC-EXT" to be found or not.

If you want them to be found, you could take advantage of wild cards. Unfortunately it is not possible to add wild card in the beginning of a word, otherwise you could make "182_EXT" be found by doing "*EXT" ('*' is the wild card). There is already a feature request to allow this feature: https://jira.atlassian.com/browse/JRA-6218. If that is what you want, you should add yourself as a watcher to this improvement request, so you are notified if they allow wild cards in the beginning.

If you want them not to be found, that would probably require something more advanced.

You can read more about advanced search with JQL here: https://confluence.atlassian.com/display/JIRA/Advanced+Searching.

You can read more about wild cards here: https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches.

I hope it was helpful.

Kind regards.

Suggest an answer

Log in or Sign up to answer