Hi, hope everyone doing well.
Need some help constructing a JQL that will fetch me all User stories whose parent Epic got the fixVersion populated as say V1.
Hi @Troy With the help of Script runner Enhanced search you can get all issues of an Epic which is having fixversion not Empty or fix version = V1.
Atlassian provided JQL function won't have this option.
issueFunction in issuesInEpics("project = PA AND fixVersion IS NOT EMPTY")
https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#issuesinepics
@Vikrant Yadav Thanks for clarifying that this cannot be achieved via out-of-the-box JQL functions and will require a plugin from Marketplace like the one you mentioned.
Hi @Troy
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
@Hannes Obweger - JXL for Jira super useful, thank you for the detailed explanation 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!
I’m Charlotte, a support engineer at Appfire and I’m here to help you.
Unfortunately, using JQL of Jira, 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 stories whose parent Epic got the fixVersion V1, for example:
issue in childrenOfEpicsInQuery("fixVersion='V1'") AND type = Story
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
Best regards,
Charlotte
Yeah @Troy Without plugin it can't be achieved.
Hi @Troy ,
Without plugin, you can achieve this using Project Automation.
Create Manual or Scheduled trigger flow, use JQL fixversion IS NOT Empty AND issuetype = "Epic" and add Branch Select "Stories" in type of related issue and add action like send email.
It looks like you're new here. Sign in or register to get started.