You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have a query where issuetype = Epic (and other stuff, like labels), but want to see only those Epics that have no Stories ("Issues in Epic") yet linked. How do I specify that?
I only see "Epic Link" in the list of fields to query on, which is not the correct direction - it would work for Stories that lack a parent Epic. What I want to find is the other way around.
This is my query (with some names changed for security). Highlighted is the part that needs the correct field name (or completely new approach?)
(project in "My Project Name") and ((issuetype in (story, bug)) or (issuetype = epic and "epic link" is empty)) and status != Cancelled
Should also mention that I am grouping by epic. This gives me epics and child stories under them... but I want to pick up the epics that don't already have stories too.
Thanks!
Hi @will_cummings,
Disappointing as it may seem, there is no JQL search available to retrieve these data in vanilla Jira. There are marketplace apps available that may help you extend search capabilities, and if you often depend on issue links and other parent-child related searches it my well be worth looking into those. Here is a link to the marketplace that may get you started.
Depending on why you would want to find these Epics, you might use the roadmap to as a workaround to simply identify those Epics. An Epic without child issues is displayed there without a progress bar below it and it also doesn't have this > indicator that allows you to expand:
in the above example, AG-2 has child issues while AG-4 hasn't.
The roadmap is available in next gen projects and can be activated for classic projects as well from Board settings > Roadmap (beta)
Ah! OK, thanks Walter. I may have to go the plug-in route, if such a plug-in exists.
This is what I am trying to ultimately achieve (see screenshot). Without the "OR" clause, I get only the top three (because they each have child Stories). With the "OR" clause, I get the original 3 repeated, plus the two that don't yet have children. Want the top three and the bottom two - preferably all at the same level, so that when I expand them all, I get the Epic/Story hierarchy shown properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Walter Buggenhout _ACA IT_ - I found a possible plug-in candidate, and have applied to the powers that be to determine whether we can get it. Thanks for the tips and the link to the Marketplace. Much appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @will_cummings,
Thanks for sharing that screenshot from Structure. You didn't mention you were trying to build a hierarchy there. In that case, it may be worth looking into the documentation of how you can build your hierarchy with Insert and Extend generators: it is not necessary to build your entire structure from a single query, but rather add issues level by level.
You may obviously still run into the same JQL issue to exclude Epics without child issues, but you'll have more control over your structure hierarchy.
Have a look at the documentation of Structure Automation. And more specifically:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Walter Buggenhout _ACA IT_ - Thank you Walter.
It turns out that I cannot install plugins beyond what has been officially blessed by my company. Thankfully, they have the ScriptRunner plugin, and someone much more familiar than I suggested a solution for me, which will suit my present needs. It looks like this:
project ="Prometheus CPD-DMS" and (issuetype in (Story, Bug) OR (issuetype = epic AND issueFunction not in hasLinkType("Epic-Story Link"))) and status != Cancelled order by sprint, key
Thanks again for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears you can use "Parent Link" is EMPTY (in the latest Jira Cloud at least).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure if this is still relevant but i was coming across this thread when trying to solve similar issue.
After a few attempts i've used the following and it gave me Epics with no issues under:
type= Epic and issueFunction not in epicsOf("type in (task,bug,Sub-task)")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm no expert on this, but here's a related post I found: https://community.atlassian.com/t5/Jira-Software-questions/JIRA-Need-count-of-stories-under-an-epic/qaq-p/961579. The idea that led me to that page was that there might be a variable for the number of issues in an epic, in which case you could just look for epics with 0 issues. There doesn't seem to be anything easily accessible, though; everything I saw suggested involves scripting or similar.
Perhaps something has been developed in this area recently, but from what I can see, there are solutions, just nothing especially simple.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Joshua. I will explore that option. I've only been exposed to Jira for two weeks now, and am trying to come up to speed rapidly - along with my "normal" job of requirements analysis on a software project.
I'm thinking that something scripted will not be allowed - unless I can get "the powers that be" to agree. But, not sure. Maybe someone else will have an additional answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.