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 vote
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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

197 views 1 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