Why searching by custom field's value is not returning all issues it should?

We routinely include the SVN version number in the summary of a firmware bug. For example, the summary text might read "<product name> -r24000 <bug description>". There are many issues for version 24000 but when I add a text element "-r24000" to the search, it only shows one issue. The other text around the "-r24000" may differ, but that part is the same for many issues. Why does only one show up in my search?

2 answers

Correction to my initial post -- if I search for "-r24000" I get all kinds of issues unrealted to version 24000, so I'm assuming that has something to do with the "-" being interpreted as a special (Boolean) character maybe. If I search for just the number "24000" I only get one issue, even though there are many with that number in the title. However, if I search for "r24000" I get the list of issues I am interested in. So that solves my problem but I'm just curious about why searching for "24000" only returns one of many issues.

0 votes
Dieter Community Champion Jul 24, 2017

Hi Bob,

Indeed the - character has a special meaning in JQL. It means to find all issues excluding the ones that match the string after -

Please check. https://confluence.atlassian.com/jira064/performing-text-searches-720416596.html  (search for excluded term)

According to the escaping rules for special characters like - please try the query

summary ~ "\\-r24000"

hope this helps!



Yep, that works, same results as just searching for "r24000".

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,120 views 13 19
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