Forums

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

Help with filter using comment field

Pedro J. Acosta October 19, 2021

Hello everyone,
I am trying to make a jql filter that returns all the requests in which a certain user has written a specific word in a comment, I have already taken several tests and I do not get results, is that filter possible to perform?

Regards.

2 answers

1 vote
Payne
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.
October 19, 2021

You can search for a particular word in comments with comment ~ word (which may be good enough for you if it's a very particular and not often-used word) but as Jack mentioned, you'll need an add-on to limit the results to a particular user's comments.

Pedro J. Acosta October 21, 2021

Hello Payne,

I already use the scriptrunner to obtain the comments of a certain user, what I need is to obtain the comments of a certain user that only have a specific word.

Payne
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.
October 21, 2021

Ah, OK. You can combine my and Jack's recommendations, which may get you close - it will return issues for which a particular user commented AND which contains the keyword in the comments, but not necessarily in one of username's comments.

issueFunction in commented ("by username") and comment ~ keyword

Pedro J. Acosta October 21, 2021

Hello Payne,

I already tried that but it does not work as I would like, it is true that it returns the issues in which the indicated user has written a comment and the word appears in the comments, but it does not differentiate if the word was written by the desired user or a different one.

1 vote
Jack Brickey
Community Champion
October 19, 2021

You would need an addon for this. A popular choice is Scriptrunner where you could use issueFunction in commented ("by username").

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events