The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to fetch tickets with atleast one comment on it?

nishant kumar
May 8, 2023

Is there any JQL that shows/fetch the tickets with atleast one comment on it in JIRA ticket. 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Ojase Emmanuval
Community Champion
May 8, 2023

Hi @nishant kumar ,

Welcome to the community.

If you have scriptrunner installed in the instance, you can use the JQL function to get more accurate results

issueFunction in hasComments()

If you don't have script runner, running the following JQL will help.

comment ~ "anything*" OR comment !~ "anything*"

Thanks,

Ojase

nishant kumar
May 13, 2023

Hi @Ojase Emmanuval ,

Thanks that works for now. I will keep testing it and see if it keeps on working in future

Ojase Emmanuval
Community Champion
May 14, 2023

@nishant kumar Can you please accept the answer if it worked for you