How to create a filter to find a word in descriptions w special characters Edited

I am trying to build a filter to find a word in a text with special characters.

----

 EX. Ticket description:

Please check this item: http://someurl.com/item/12d4-5s44-23dqsd12-2c32

23dqsd12

---

These work: description ~ "checkand  description ~ "23dqsd12

but description ~ "5s44" doesn't work (text has hyphens)

Thanks

1 answer

0 votes

The Search Syntax for text fields documentation explains that

Much of the information on this page is derived from the Query Parser Syntax page of the Lucene documentation. 

In turn Jira can't perform text searches of this nature at this time.   This is largely because of the way lucene works and how Jira implements this.   You could certainly do a search of

text~"http://someurl.com/item/12d4-5s44-23dqsd12-2c32" 

and in turn this would return this issue, but we can't expect jira to be able to parse out substrings of this single large string unfortunately.

But there are other existing plugins to Jira that can provide you other means to search for this data in JQL.   For example you might have more success trying the ScriptRunner plugin.   With this plugin installed, there are more functions being added to JQL and in turn you could then try a query in Jira issue navigator that would allow for a regex search such as:

issueFunction in issueFieldMatch("", "description", "5s44")

The use of this plugin allows lots of different JQL functions that don't exist in the native Jira code such as this issueFieldMatch.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

441 views 7 5
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