Forums

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

JQL to match single string occurring in any of a list of issue fields

Tim Black
Contributor
July 9, 2019

For example, I want to find all issues with "python" or "Python" in the summary, description, or comments. This works:

(description ~ "python" OR summary ~ "python" OR comment ~ "python")

but it's pretty inelegant. My pythonic brain instinctively tried:

"python" in (description, summary, comment)

but that's a syntax error.

Can you form a shorter JQL to find all issues with "python" or "Python" in the summary, description, or comments. 

1 answer

1 accepted

1 vote
Answer accepted
Inactive Stephen
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.
July 9, 2019

Hi Tim,

One option is to use "text ~" - which searches all text fields.

More information on text searches here: https://confluence.atlassian.com/jiracoreserver/search-syntax-for-text-fields-939937723.html

Ste

Tim Black
Contributor
July 9, 2019

Thanks @Inactive Stephen, that's what I was looking for!

For others looking for a description of what this "text" field is, here's the link:

https://confluence.atlassian.com/jiracoreserver/advanced-searching-fields-reference-939937719.html#Advancedsearching-fieldsreference-textTextText

Like Inactive Stephen likes this

Suggest an answer

Log in or Sign up to answer