---
title: "6.JQL search on all comments based on comments’ labels"
canonical: "https://support.covectors.io/space/CTFJ/1594753026/6.JQL%20search%20on%20all%20comments%20based%20on%20comments%E2%80%99%20labels"
format: markdown
---
####  

You can filter on Jira work items using custom JQL function based on labels added to comments.

- Access the JQL filtering view for JIRA
- Use the function “**CommentWithLabels**” where the function takes in arguments a list of labels you want to filter on. Each label must be added as a string (within double-quotes “ ) and separated by a comma (,)

JQL functions can be used by following this syntax:

*issue in FUNCTION_NAME ()*

![image-20241003-110541.png]()

You can save the JQL result within a filter and use it later. Please note that you can combine additional JQL components to your function to refine your search.