Forums

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

How do i create JQL that allows to search all comments?

Levan Khutsishvili
Contributor
December 5, 2018

Need JQL that allows to search/filter all comments of any users

2 answers

0 votes
Olga Videc
Community Champion
December 5, 2018

Hello @Levan Khutsishvili,

Try this you need script runner, because of his function.

Do this go to your normal issue search go to advanced 

issueFunction in issueFieldMatch("project = test ", "comment", "hello") 

the first part doesn't have to project = something, it can be anything from JQL, the catch is that this function requires two parameters.

Levan Khutsishvili
Contributor
December 5, 2018

Thanks @Olga Videc but Script runner is not a solution for me at this moment 

0 votes
Sreenivasaraju P
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.
December 5, 2018

JQL supports searching comment

comment ~ "search text"
Levan Khutsishvili
Contributor
December 5, 2018

Hello @Sreenivasaraju P Thanks for trying to help.
JQL didn't worked :(

Sreenivasaraju P
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.
December 5, 2018

can you let us know  which jira version you are using &, query which you have used

Levan Khutsishvili
Contributor
December 5, 2018

I'm using Cloud version of JIRA. Regarding queries.... I have tried several queries but none of them has worked

1. comment ~ "search text"
2. issueFunction in commented("by username") 
3. comment by = currentUser()

Sreenivasaraju P
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.
December 6, 2018

comment.PNG

Levan Khutsishvili
Contributor
December 6, 2018

Thanks @Sreenivasaraju P

As i can see on this image, query works on specific word. In your case it "DEF" but will it work on every comment?

With this query I want to search all comments of all users who are involved in specific project 

Suggest an answer

Log in or Sign up to answer