I need help fetching a list of epics. The scenario is that epics and stories share the same workflow. Based on the Story movement, we have an automated Epic movement. Let's say there are 4 child stories under my Epic, automation will scan all the stories and pick the least status for my Epic, like if 3 stories are "Done" and 1 story is in "In Progress", Epic will be in "In Progress".
But in some cases, even when all stories are "Done", epics will still remain in "In Progress", automations will not be able to move Epics due to some conditions configured. So for these use cases, we want to fetch the list of epics that are not in sync with their child stories flow.
Any possible way to achieve this?
Thanks!
Hi @Sree,
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
Hi @Sree
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 Epics that are in progress, but their children are done:
issue in epicsOfChildrenInQuery("type=Story AND status=done") AND status != Done
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sree
you would need to create an automation rule with scheduled trigger and jql that returns all tickets in your project, of course you can limit this jql to a certain level based on the coverage you need for your rule.
then open a branch in the rule with type Parent
then add a condition with a type of "related issues" and there select parent and pick condition (all match specified jql) and jql to be status in ({{statuses you have that represents Done}})
then another condition step with type issue fields condition, pick the field status and the condition "one of" then add the statuses like To Do / In Progress
last add an action to log the {{parent.key}} to send some notification, depends on your requirements.
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.