I am trying to write a Jira JQL filter that combines parentEpic with a label or a filter. The below JQL works:
project=TML AND parentEpic in (TML-2731, TML-3053)
But then I need to know the IDs of the epics, and these only live for few weeks. Labels live much longer, and I can easily search for epics with a label:
project=TML AND issuetype=Epic AND labels in (IndEquip, IndAuto)
But now I would like to use the returned list of epics as input to the parentEpic function, but this does not work:
project=TML AND parentEpic in (labels in (IndEquip, IndAuto))
Are such nested queries in general not possible? Is there any extension that makes it possible?
just to add to Mauricio's answer, another option is to go via one of the more hierarchy-focused apps on the Atlassian Marketplace. These apps usually don't rely on "native" JQL to figure out parent/child relationships, but have their own ways of doing so.
As an example, here's how this would work in the app that my team is working on, JXL for Jira:
You can either view and edit your issues directly in JXL, export your issues in various formats, or use JXL to trigger a number of Jira operations.
Hope this helps,
Best,
Hannes
As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.
With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.
Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions
You can use this query to filter your epic parents that have a label in IndEquip or IndAuto
issue in epicsOfChildrenInQuery("project = TML") and labels in (IndEquip, IndAuto)
Check out the documentation for more examples.
I hope this helps!
MaurÃcio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Asked the same question also on stackoverflow:
https://stackoverflow.com/questions/72628945/jira-issues-that-are-in-an-epic-with-certain-label
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.