Epics and Parents and Children, Oh My!

In answering a recent question that involved finding other children of the same Epic, I mistakenly suggested using the parentEpic function, when the asker probably only needed to use the parent field.

I also found another interesting and potentially useful function that is named for the renamed Portfolio (fka Advanced Roadmaps, now Plans): portfolioChildIssuesOf.

[Also, I know that Epic Link has been replaced with Parent back in November 2022, but it seems like the parentEpic function still works, although not in the way it is documented.]

Anyways, this is probably best explained in a picture:

Screenshot 2024-10-31 at 12.08.39 PM.png

So the hierarchy is like this:

  • BUG-5 is an Epic
    • BUG-13 is a Task under the BUG-5 Epic
      • BUG-14 is a Sub-task under the BUG-13 Task

What I found interesting is what these different JQL functions/fields return:

parent

parent="BUG-5"

Pretty straight-forward. Show me all tickets whose immediate parent is BUG-5.

portfolioChildIssuesOf

issue in portfolioChildIssuesOf("BUG-5")

So, this one shows you ALL the descendants of BUG-5, so Tasks and Subtasks, or children and grandchildren, if we're continuing this analogy.

I guess this could be useful if you really want to find EVERY issue under an Epic. But what's interesting to me is that while portfolioChildIssuesOf is only mentioned on this page about searching custom fields from Plans, which is a Jira Premium feature, it works for me on a Jira Free plan. (Shhh, don't tell anybody - maybe they'll put it behind a paywall.)

parentEpic

parentEpic="BUG-5"

So this is the weird one that does not match the documentation which says:

Search for issues and sub-tasks that are linked to an epic. 

I mean, yes, it does return issues and sub-tasks, just like portfolioChildIssuesOf, but interestingly, it ALSO returns the Epic itself!

Could this be useful? I mean, sure? To somebody? I'd love to hear your use cases.

(NOTE: I only tested this on Jira Cloud, and as noted, it's a Free instance.)

4 comments

Clark Everson
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2024

huh this is interesting and now I am going to need to play with JQL on data center as some of this JQL I have never seen, and then I will have an opinion. To bad community doesn't have a remind me tomorrow feature like slack

Tomislav Tobijas _Koios_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2024

Insightful indeed 💡

We're often using parentEpic and I didn't know about portfolioChildIssuesOf. Might come in handy for sure. Thanks for sharing!

James Stewart
Contributor
November 1, 2024

We've been using portfolioChildIssuesOf for a while now. It's helpful for initiative-level reporting and defining swimlanes for specific initiatives to make sure all the relevant subtasks get included within that swimlane. 

Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 4, 2024

If you have a hierarchy like this:

  • Initiative
    • project
      • Epic
        • Story/Tasks/etc
          • Sub-taks

And you run parentEpic on the Epic level you get the Epic, stories (etc) & sub-tasks.

Do you run in on a Story, you also get the subtasks.

But do you run in on a level above epic, you only get that issue

image.png

parentEpic

JQL: parentEpic=PLUM-2

image.png

JQL: parentEpic=PLUM-5

image.png

JQL: parentEpic=PLAN-4

image.png

portfolioChildIssuesOf

JQL: issue in portfolioChildIssuesOf("PLAN-2") or key = PLAN-2 order by rank

image.png

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events