Any assistance with the following query would be greatly appreciated!
When I search for textfields ~ "fraudlink*"
I get 2 hits.
When I search textfields ~ "neptune*"
I get 454 hits.
So when I search for the OR of those: textfields ~ "fraudlink*" OR textfields ~ "neptune*"
I should get between 454 and 456 hits.
But I get 0!
Parentheses don’t help.
Hi @Stephen Call and Welcome to Atlassian Community!
It seems that textFields is broken. Have you tried using the text expression instead of textFields?
For example, you can use:
text ~ "fraudlink*" OR text ~ "neptune*"
The only difference between textFields and text is that text also searches through comments and worklogs.
The text field:
The textField field:
See JQL fields
That's interesting. Because they are so broad in scope, I very rarely use text and textFields, so I've never encountered any of these problems.
Now, here's where it gets really weird... the problem only occurs when submitting the offending JQL in the GUI or using the newer Search for issues using JQL enhanced search API endpoint. Both of those returned no results
However, when I submitted the exact same JQL of textFields ~ "del*" OR textFields ~ "tes*" using the old Search for issues using JQL API endpoint, it worked as expected and return the full, correct set of matching issues.
I looked through JAC to see if this bug has been logged by anyone, but nothing so far. I might raise it over on the Developer's forum to see if anyone has seen this before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The JQL you are using is correct.
textfields ~ "fraudlink*" OR textfields ~ "neptune*"
This SHOULD give you all issues having textfields with either fraudlink... or neptune... in them.
However, why it is returning 0 I can not say.
If the JQL is not showing any errors if you try it here: [YOURSITE]/issues/?jql=textfields%20~%20"fraudlink%2A"%20OR%20textfields%20~%20"neptune%2A"
it should work and produce the 456 results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Stephen Call
JQL can sometimes be a bit counter intuitive if you're from a SQL world :)
Use textFields ~ ("fraudlink" OR "neptune")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Bakkers this JQL Statement will not work. Jira does not support OR inside a ~ clause. It can only handle a single search term at a time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My mistake. Ignore what I said.
So, I tested the OP's original JQL myself doing a like comparison on the summary field:
The OR keyword seems to be working so far. Then I tried using the multi-character wildcard, like they did:
The wildcard and the OR keyword seem to be working fine. I then tried using textFields to broaden the scope:
I utilised the Parse JQL Query API endpoint with strict validation to test the JQL, and no errors were reported.
I have no idea at all why two joined textFields like searches fail
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.