Forums

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

How to filter tickets using keywords

Candy Tricia Khohliwe
Contributor
January 24, 2023

How to filter tickets using keywords

1 answer

0 votes
Jack Brickey
Community Champion
January 24, 2023

Hi @Candy Tricia Khohliwe , I'm not sure precisely what you are looking for here. If you are trying to find all issue that have a certain word in a text field you can use JQL. For example...

project = abc and text ~ "hello" 

Would find every issue where the word "hello" is found in text fields, e.g. Summary, Description, comments

you can further restrict to a specific field, for example...

project = abc and Summary ~ "hello" 

if you have a custom text field then the following would work...

project = abc and myfield ~ "hello" 

Candy Tricia Khohliwe
Contributor
January 24, 2023

What about multiple keywords?

Jack Brickey
Community Champion
January 24, 2023

First please answer if the field you wish to search is a text field?If so which field(s)?

example...

text ~ "keyword1 keyword2 keyword3"

Would return any issue where a text field in that issue contains any of the above key words.

Candy Tricia Khohliwe
Contributor
January 25, 2023

I want the keywords to be identified fro Summary, Comments and Description fields

Candy Tricia Khohliwe
Contributor
January 27, 2023

text ~ "keyword1 keyword2 keyword3" adding the multiple words like this doest eem to work

Jack Brickey
Community Champion
January 27, 2023

Are you wanting to find issues where any of the keywords exist (not exact phrase, one or more of the words)? If so this is the JQL to use...

text ~ "word1 word2 word3"

if you want exact phrase then...

text ~ "\"word1 word2 word3\""

Note you can also use the Search bar in the menu and simply type word1 word2 word3

if you want to find all issues that have all 3 words then...

text ~ "word1" and text ~ "word2" and text ~ "word3"

BTW here is a useful reference - search-syntax-for-text-fields 

Candy Tricia Khohliwe
Contributor
January 27, 2023

The problem is that I think the JQL looks for keywords in one issue type that may have all the specified Keyword whilst I want the filter to extract all issue types that may have at least on of the Keywords specified.

Jack Brickey
Community Champion
January 27, 2023

Hi Candy,

I think that I may be missing your point here.

It seems that you want to find all issues that have one or more of your key words. If that is the case then, as stated above, the following should work.

text ~ "word1 word2 word3"

This JQL should find all issues that have one or more of the key words.

For example:

ABC-123 may have "word1 in the Summary field

ABC-222 may have "word1" in the summary and word3 in a comment

ABC – 345 may have word2 and word3 in the description

etc...

If possible could you please provide your exact JQL that you feel is not returning what you want? Moreover, if you could provide an example of why you think the JQL is failing to provide the desired results that would help me.

Suggest an answer

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

Atlassian Community Events