Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to phrase search with punctuation

Matt Crozier November 18, 2021

We have a custom text field that lists system components - for example:

SYSOBJ/MFS_INIT
VSL_CONFIG/VC_SORT_AMV

but phrase searches on this field still results in false finds.  For example, searching this field for "MFS_INIT" (quoted)

"project = COLLECT AND File/Record" ~ "MFS_INIT"

will find issues that contain 'MFS' or 'INIT' but not strictly 'MFS_INIT'.  I get the same results whether or not the search value is quoted.  I've tried escaping the underscore character in the search value "MFS\u005FINIT" but this makes no difference.

How can these searches be performed?

Cheers, Matt.

 

 

2 answers

1 accepted

0 votes
Answer accepted
Daniel Turczanski - JQL Search Extensions
Atlassian Partner
November 29, 2021

Hi @Matt Crozier

Standard JQL doesn't easily allow searching for exact words, special phrases and patterns.

To get the wildcard support, use our professional indexing service JQL Search Extensions

After you install the app, you can simply search:

issue in wildcardMatch("File/Record", "*MFS_INIT*")

Check out the documentation for more examples.

I hope this helps!

Daniel

Matt Crozier November 29, 2021

Hi Daniel.  It looks like there's a lot of other useful stuff in the app as well so certainly worth a look.  Thanks!

Matt Crozier November 29, 2021

Hi Daniel,

If I try the search above, I get a "wildcardMatch - Querying by field 'File/Record' which is of type string is not supported" error.  File/Record is one of our custom fields.  Are we not able to search these?

Cheers, Matt.

Daniel Turczanski - JQL Search Extensions
Atlassian Partner
December 22, 2021

Hey @Matt Crozier

We've added a support for the textarea fields based on your feedback. Can you mark my answer as an accepted solution?

Thanks!

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 18, 2021

There appears to be a known issue in Atlassian's backlog concerning this:

https://jira.atlassian.com/browse/JRACLOUD-68752

 

On a tangential note, I also found this about handling special characters, but it doesn't call out underscore as one of the characters.

https://support.atlassian.com/jira-work-management/docs/use-advanced-search-with-jira-query-language-jql/

And I found that there is an issue open concerning searching for the square brackets characters also.

https://jira.atlassian.com/browse/JRACLOUD-75866

Matt Crozier November 21, 2021

Thanks Trudy!  I've added comments to those issues so hopefully they might get some traction.

Cheers, Matt.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events