I want to do a JQL search for an exact match to a string and ONLY those characters are in the string.
For example, I want to find all issues where the value of the text field MyString = "0"
I can use MyString ~ "0", but that finds so many non-0 instances. For example:
I want to find issues with "0" and only "0" in them. How can I do this with JQL?
Hi @Cash Coyne
I do not believe that is possible with the built-in JQL...
The EQUALS = operator is not supported for such fields and the CONTAINS ~ operator uses fuzzy matching, even when the exact match syntax is used. (e.g., summary ~ "\"123.456\"" )
Depending upon your scenario details, you could try an automation rule which allows more control over comparisons or investigate marketplace addons for JQL.
Kind regards,
Bill
Hi @Cash Coyne,
I’m Prosper, a support engineer at Appfire, and I’m here to help you.
The app my team works, JQL Search Extensions for Jira, you can use the query below for a jql text search exact match:
issue in exactTextMatch("text").
This searches and returns issue(s) that contain the text in the summary, description, or environment fields, and is case-sensitive.
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Cash Coyne
as already suggested, I don't think that this is possible in plain JQL.
If you're open to solutions from the Atlassian Marketplace, you'll find options there that either extend JQL by additional functions, or use their own, alternative search and filter mechanisms.
E.g., your use case would be easy to solve using the app that my team and I are working on, JXL for Jira.
JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It also comes with a range of advanced features, including support for (configurable) issue hierarchies, issue grouping by any issue field(s), sum-ups, or conditional formatting - as well as the ability to filter issues via regular expressions.
With regular-expression-based filtering, you can apply pretty much any logic, including the one that you are after:
The regex that I'm using is
(^0 )|( 0 )|( 0$)|(^0$)
- but you really can use any regex that you think is appropriate.
Once you've identified your issues, you can work on them directly in JXL (e.g., bulk edit them via copy/paste), or trigger various operations in Jira.
Any questions just let me know,
Best,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Cash Coyne!
"FieldName" ~ "0" is working for me pretty well. Are you sure its giving you 30? Try "FieldName" ~ "0.0"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.