Here’s the scenario: You’re knee-deep in support requests, product feedback, and bug reports. Comments are flying in across Jira work items (issues as we all know them before). Internal notes, customer replies, support agents answers, you name it.
In previous articles, we’ve seen how to properly label comments with Jira Comment Toolkit. But here’s the thing—how do you actually find work items with specific labelled comments? Obviously, scrolling is not the answer. A tailored JQL function is!
You’re a support agent tasked with creating dedicated troubleshooting articles in Confluence. Your starting point is, of course, Jira Service Management. There, you need to find all resolved work items with responses worthy and lengthy enough to be included in Confluence. But you’ve already tagged them with the label “Troubleshooting”.
Rather than opening each ticket and reading every single comment, now you can just run a simple JQL query, instantly see all relevant work items.
So here’s how you do it. We've added a brand-new JQL function into the Comment Toolkit: CommentWithLabels
This function lets you filter Jira work items based on which labels were applied to the comments inside. You just pass in the labels you’re interested in—each as a string (inside double quotes " "), separated by commas.
Run that in the JQL search bar, and there you have it—you’ve got a filtered list of work items that include at least one comment with the labels that you’ve specified, in our example “Troubleshooting”.
You can save your new filter and choose which users can access and edit it. This allows you and your teams to instantly get filtered results without having to run the function over and over again.
But it gets better—you can combine this with other JQL functions to get even more specific. Here are a couple of quick examples:
Show all completed work items with labeled comments:
statusCategory = Done AND issue in CommentWithLabels("")
Find work items resolved in the last week with relevant comment labels:
resolutiondate >= -1w and issue in CommentWithLabels("")
Filter by a specific project:
project = "DC Apps Support" AND issue in CommentWithLabels("")
Narrow results by issue type (e.g., only Bugs):
issuetype in (Bug) AND issue in CommentWithLabels("")
These are just starting points—the possibilities are endless when you combine the CommentWithLabels function with Jira’s existing functions.
And there you have it! The brand new JQL function is available on Jira Comment Toolkit. If you’d like to learn more and explore more features to better label and manage your Jira comments, make sure to give the app a try. And of course, we really value your feedback. Feel free to leave your questions or suggestions here in the comments below or contact our support team.
Fares Laroui_Vectors_
Product Marketing Manager
Vectors
2 accepted answers
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
0 comments