How to search a text field for multiple possible values in JIRA
Asked Answered
F

3

7

According to the Atlassian documentation, you can search for words contained in a text field like so:

description ~ term

It also indicates you can group terms like so:

description ~ (term OR "different thing")

But when I try that, it shows that the syntax is wrong.

I want to do this, but with grouping (because I will have more than 2 terms, and I'd like to keep the query easy to read and short-ish):

description ~ term OR description ~ "different thing"
Femineity answered 5/3, 2019 at 21:19 Comment(0)
H
4

description doesn’t support lists...

enter image description here

description doesn’t support = operator....

enter image description here

I think you already have the best answer to your question with JQL, by using....

description ~ “term” OR description ~ “different thing”

Although, a list method would work for the priority field, the list option isn’t available for every field...

enter image description here

Homeopathist answered 5/3, 2019 at 21:37 Comment(1)
Thanks for the supporting screenshots. Based on their documentation, it seems like it should work, but it clearly does not. Thank you!Femineity
R
3

Actually the multi-text match search phrase that worked for me was this example:

text ~ "(uc55 OR uc60 OR UC65)"
Renae answered 1/11, 2022 at 20:38 Comment(1)
This works for a custom text field in our system. "Customer Number" = "(1234 OR 1235)" returns tickets with customer number matching either 1234 or 1235.Guilford
N
1

This appears to do what you want:

description ~ ("term OR different thing")
Nonillion answered 5/3, 2019 at 22:54 Comment(1)
I tried that, and it's valid, but the query doesn't give expected resultsFemineity

© 2022 - 2024 — McMap. All rights reserved.