Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Searching terms with multiple hyphens

I am looking at Jira Service Management Cloud for my environment and I just discovered that there is a long known issue in Jira searching for terms with hyphens in them. This is a huge issue for me because our asset naming scheme includes lots of hyphens.

I might have an asset named NY-BDG1-ABC12. The only search term that matches this for me is "NY BDG1" with a space. Not "NY-BDG1-ABC12", not "NY-BDG1", not "NY\\-BDG1\\-ABC12", not "*ABC12", not "ABC12", not "NY?BDG1?ABC12". The only problem with that is I have too many other assets that start with "NY-BDG1" to make this practical. I need to search the whole asset name or at the very least, search the end of the asset name (ABC12).

Does anyone here have experience working around this limitation or know of a search technique or JQL query that will work?

2 answers

1 accepted

2 votes
Answer accepted

@t_s_llc -

What is the data type for your asset field?  If it is a text field, the please take a look at this documentation page https://confluence.atlassian.com/jiracoreserver0814/search-syntax-for-text-fields-1043894982.html  (Focus on the section - "Special Characters" and "Exact searches (phrases)" section.

Even though it is for Jira DC env and not for CLOUD env, but the JQL search behavior are the same.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Ah ha. I had already looked at that page but my jql syntax was off. I needed to escape my double quotes in an advanced search:

Text ~ \"NY-BDG1-ABC12\" order by created DESC

Hopefully this helps someone else. I'd seen the hyphen search problem elsewhere but no solutions.

we use JIRA Service Management, recently migrated this to cloud.

escaping double quotes does not work for us.

this particular text "00-ABCD00" exists in 4 different tickets but only 1 returns from JQL query.

Quick search returns the other 3 tickets. Not sure how to resolve this.

 

 

Also this link does not work anymore

https://confluence.atlassian.com/jiracoreserver0814/search-syntax-for-text-fields-1043894982.html 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

718 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you