Finding a substring in issue description

Hi all,

In one support project we have URLs referencing tickets in other systems that look like this

http://www.blabla.com/issue/123456

contained in the issue description. Users would like to search for the ticket id 123456 but we haven't found anything that works.

i have tried so far:

description ~ 123456 => no result

description ~ *123456 => invalid

description ~ 123456* => no result

Anyone has a working query ?

I know it would be much better to store the number in a custom field but this is not a solution that helps right now.

2 answers

1 accepted

2 votes
Accepted answer

Hi Dieter,

There are some limitations to the JIRA text searches (from the docs) :

Whole words only

JIRA cannot search for issues containing parts of words but on whole words only. The exception to this are words which are stemmed.

This limitation can also be overcome using fuzzy searches.

More information: http://confluence.atlassian.com/x/UAISCw

So, going for a custom field (or label) makes more sence for this problem.

Cheers,
Stefan

yeah, fuzzy search and wildcard are not allowed at the beginning of a word.
So you can't use it for your usecase I'm afraid.

Only option, as far as I can see, are custom fields :-(

Hi Stefan,

Thanks for the hint about the restriction. Didn't read the document until the end ;-) Also didn't think of labeling the issue.

I tried a fuzzy search now using

description ~ "123456~"

but this also didn't return anything. I guess i'm stuck here ...

ok, will wait for final statement from Atlassian support and post this here

0 votes
Thomas Schlegel Community Champion Jun 07, 2012

Hi Dieter,

I think, searching with "~" works only, if the word begins with the searched term.

Best regards

Thomas

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,656 views 18 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