search advanced with period in phrase yields no result BIS

On 25 October, I asked a question. I had an issue with the response, but nothing was forthcoming.

"When I do an advanced search with a phrase that contains a period (.), the results are  unexpected.

I need to find issues that contain the string ".airspace." without those where airspace only appears without the two periods.

With Summary ~ ".airspace." I get those without the periods too.

When I add a word that precedes the string to avoid this problem, there is no result:

"word1.airspace." will give no results.

"word1\\.airspace." will give no results

"word1\\.airspace.\\" will give no results

even though ".airspace." will give the results and "word1" will give the results, but both with too many false hits.

What can I do?"

I received this answer:

"According to the linked community thread:

https://community.atlassian.com/t5/Questions/Searching-an-issue-which-matches-exactly-the-given-words/qaq-p/248591

for this type of exact match search, you can use double quotes, but internal quote needs to be escaped with backslash:

summary ~ "\".airspace.\""

 I tried to do the same search in our local instances and it is giving correct results.

Please, try it and let us know how it went.

Regards,

Marko"

I replied:

Thanks for the reply. Unfortunately it does not work.

summary ~ "\".airspace.\""

returns also all the issues that have the word airspace in the summary. I want to have only those with the periods.

I want to find .airspace. without "airspace".

Can anyone help me?

Thanks!

Manuel

1 answer

1 accepted

0 vote

Hi Manuel,

Natively Jira won't let you search for exact string matches like this.  There is an open feature request for this in https://jira.atlassian.com/browse/JRASERVER-21372

In native JQL, Jira is using word stemming as a means to store and search for these terms.  It is not able to search for these string fragments in the way you are trying here.

It might be possible to get this kind of searching in Jira with the use of a 3rd party plugin like scriptrunner.   That plugin can provide you the ability to use regex as a means to search for field value matches as explained in https://scriptrunner.adaptavist.com/4.3.0/jira/jql-functions.html#_issuefieldexactmatch

I hope this helps.

Regards,

Andy

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 ...

3,282 views 14 20
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