Hi all
Can anyone help me with this?
I want to see all child issues from all the parents that have field PI set to PI 5
Show me all child issues (Story, Task) where parent (Feature) has PI = PI 5.
How do I do this?
Thanks
Wendy
Hi @Wendy Thorneloe,
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
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 issue hierarchy (that's just 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.
You can use JIRA Query Language (JQL) to achieve this. Try the following query:
issueType in (Story, Task) AND "Parent Link" in (filter="Parent Issues with PI 5")
However, since JIRA does not allow direct querying of parent fields from child issues, you will first need to create a filter for the parent issues (Features) that have PI = PI 5
.
Run this JQL and save it as a filter (e.g., Parent Issues with PI 5):
issueType = Feature AND PI = "PI 5"
Now, use the saved filter in another JQL query to fetch child issues:
issueType in (Story, Task) AND "Parent Link" in (filter="Parent Issues with PI 5")
If you are using Advanced Roadmaps for Jira (formerly Portfolio for Jira), you can replace "Parent Link"
with "Epic Link"
if the parent-child relationship is through Epics:
issueType in (Story, Task) AND "Epic Link" in (filter="Parent Issues with PI 5")
If you have the ScriptRunner plugin, you can use this more direct JQL:
issueFunction in issuesInEpics("issueType = Feature AND PI = 'PI 5'")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting an error when I try running your jql script (Step 2) with my filter in it.
Says they are expecting something other than Filter =.
It gives me an error when I try to paste it here in this comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also can't get this to work? Is this through an extension?
Attempting,
issueType in (Story, Task) AND "Parent Link" in (filter="Parent Issues with PI 5")
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.