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

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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,968 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot