I am trying to figure out a query that can pull all issues with labels = XXXX and their associated children. I have a data set of 18 issues, and I want to create a filter to track all of the parent child work related to any issue labeled with XXXX.
I am stumped. AI is not helping.
JQL does not allow relational query.
Say if your Epic has label XXXX and you query for labels = XXXX, then you will only get the Epic.
Using the Epic key, you will have to write another query to find issues that are child of Epic.
Alternatively, you can look at Third party marketplace apps if they fit your requirement
Hi @Christina Evans ,
Unfortunatly , Jira do not support hierachy using labels
Let’s say you want to find all the issues under one EPIC that are labelled with “frontend”.
Then you will get all issues that have the value “frontend” as a Label.
This does not exclude issues that have other Labels values also.
You can use this JQL query to find them :
(JQL labels) : Project = XYZ AND IssueType = EPIC AND Parent in (XZ) AND labels in (“frontend”) AND Labels not in (“labelVaue1”, “labelValue2”, “labelValue100″…)
You can look at Marketplace apps if they fit your requirement as @Vishal Biyani said .
As an alternative , you can use Colored Label Manager to get deeper label usage insights in moments.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Christina Evans,
Unfortunately, this is trickier than one might think; as a hierarchical query, it would really require some kind of "join" or "subquery", which isn't available in plain Jira/JQL.
A few directions forward:
If you want to run your search dynamically, without manually "stitching" two queries together, you'll need extra tooling:
Hope this helps,
Best,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
... and to expand on the last point, this is how this would look in the app that my team and I are working on, JXL for Jira. Put simply, you'd create a sheet with all issues that are potentially relevant to you, enable the default issue hierarchy (that's just one click), and then use JXL filtering capabilities to narrow down to the issues that you care about:
Once you have your list of issues, you can work on these directly in JXL (much like you'd do in e.g. Excel or Google Sheets), trigger various operations in Jira, or export them for further processing.
Any questions just let me know!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Christina Evans ,
While it's impossible to nest search functions in JQL, you can still use the list of issue keys from your initial search with parent function. Something like:
parent in (XX-YYY, XX-ZZZ, ...)
It will look like this in Jira UI:
It will work but the obvious issue is that the list of source issues is static regardless of the changes made to that label(s).
Alternatively, you can find a Marketplace app as @Vishal Biyani mentioned. E.g. we are developers of Pivot Report, which allows reporting on search results extended with related issues:
Additionally, you can define custom hierarchy based on issue links. E.g. "blocks" or "is implemented by":
Demo report is available here, list of all demos is here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.