Forums

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

textfields ~ "fraudlink*" OR textfields ~ "neptune*" - No results

Stephen Call March 21, 2025

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.

3 answers

1 vote
Sergei Troshin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2025

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.

Some theory

The text field:
screen1.png

The textField field:

screen2.png
See JQL fields

David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2025

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.

Like Sergei Troshin likes this
0 votes
David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2025

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.

0 votes
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2025

Hello @Stephen Call 

JQL can sometimes be a bit counter intuitive if you're from a SQL world :)

Use textFields ~ ("fraudlink" OR "neptune")

David Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2025

@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.

Like David Bakkers likes this
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2025

My mistake. Ignore what I said.

So, I tested the OP's original JQL myself doing a like comparison on the summary field:

  1. summary ~ "test" found two issues that matched
  2. summary ~ "deleted" found two issues that matched
  3. summary ~ "test" OR summary ~ "deleted" found four issues that matched. The two from the first set and the two from the second set

The OR keyword seems to be working so far. Then I tried using the multi-character wildcard, like they did:

  1. summary ~ "tes*" found two issues that matched
  2. summary ~ "del*" found two issues that matched
  3. summary ~ "tes*" OR summary ~ "del*" found four issues that matched. The two from the first set and the two from the second set

The wildcard and the OR keyword seem to be working fine. I then tried using textFields to broaden the scope:

  1. textFields ~ "tes*" found 13 issues that matched
  2. textFields ~ "del*" found two issues that matched
  3. textFields ~ "tes*" OR textFields ~ "del*" found nothing! Eh?

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

Like David Friedrich likes this

Suggest an answer

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

Atlassian Community Events