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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,716 views 17 21
Read article

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