I have a custom field called CATEGORY. This is a multiple-choice field dropdown where I assign a field to either EPIC, User story, or Defect which are child items. I do not have this custom field category at the sub-task level as it is supposed to leverage this from the parent field as a linked item.
Now when I want to get a list of all work items with CATEGORY = ABC, I do not get the child items of the user story.
Is there a way I can get a list of sub-tasks included where the query finds the child item of the parent whose CATEGORY = ABC?
That is not possible with the out-of-the-box JQL features.
Your work-arounds for this scenario depend upon your frequency of use and willingness to purchase addons:
Kind regards,
Bill
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.
Just 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 hierarchy (that's one click), and then use JXL filtering capabilities to narrow down to the issues that you care about:
(I'm using labels here, but it would work the same way with any other field.)
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.
I’m Charlotte, a support engineer at Appfire and I’m here to help you.
Unfortunately, using vanilla JQL, you’ll not be able to do it dynamically.
In the app where my team works, JQL Search Extensions for Jira, you can use this query to find all sub-tasks whose parents have category = ABC:
issue in subtasksOfParentsInQuery("'CATEGORY[Select List (multiple choices)]' = ABC")
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
Best regards,
Charlotte
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.