How to filter tickets using keywords
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want the keywords to be identified fro Summary, Comments and Description fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
text ~ "keyword1 keyword2 keyword3" adding the multiple words like this doest eem to work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.