Hi @Vyshnavi S
To get the ‘top 10 tickets’ for each type of issue in each project in Jira, we first need to decide what criteria we will use to define which are the ‘top’ tickets (e.g. priority, votes, comments, etc.). Once we are clear about the criteria, we can build a JQL (Jira Query Language) query that allows us to filter and sort the tickets according to that criteria. Here I explain how to do it step by step:
Before creating the queries, we need to define what we will use to rank the tickets as ‘top’. Some common options include:
Let's build a query to get the ‘top 10’ tickets for each type of issue in each project.
JQL Query Example:
Assuming you want to sort by Rank:
project = ‘ProjectName’ AND issuetype = ‘IssueType’ ORDER BY rank DESC
General Query for All Projects and Issue Types
Since you want to get the top 10 for each issue type, you will need to run the query for each issue type present in your projects.
project = ‘ProjectName’ AND issuetype = ‘Bug’ ORDER BY rank DESC
And then, change issuetype for each type of issue you have, like Task, Story, Epic, etc.
Here is an example that you can use for every project and issue type:
project = ‘ProjectName’ AND issuetype = ‘Bug’ ORDER BY rank DESC
project = ‘ProjectName’ AND issuetype = ‘Task’ ORDER BY rank DESC
project = ‘ProjectName’ AND issuetype = ‘Story’ ORDER BY rank DESC
project = ‘ProjectName’ AND issuetype = ‘Epic’ ORDER BY rank DESC
Although Jira does not directly allow you to limit the number of results to display in a query, you can do the following:
I hope this is helpful, best regards!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.