Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I search using JQL to find all the tasks associated with an initiative?

Tracy B
Contributor
July 14, 2025

We have Jira Premium and are using Initiatives. Is there an easy way using JQL to search and find all the hierarchical tasks? Simply using "parent" only gives me the epics directly attached to the initiative. 

3 answers

1 accepted

4 votes
Answer accepted
John Funk
Community Champion
July 14, 2025

Hi Tracy,

Try using this: issuekey in portfolioChildIssuesOf("INIT-001") 

Substitute the key of your initiative for INIT-001

Trudy Claspill
Community Champion
July 14, 2025

And here is the documentation that describes that and other JQL functions specifically for the relationships built through Plans.

https://support.atlassian.com/jira-software-cloud/docs/search-for-advanced-roadmaps-custom-fields-in-jql/

Like John Funk likes this
0 votes
Cristiano Alves -Appfire-
Contributor
July 15, 2025

Hello @Tracy B,

Cristiano from the AppFire team here.

While the portfolioChildIssuesOf("") will probably work on your case, if you're interested in a more extended version of it, the app our team works, well, JQL Search Extension, would give you this availability:

I.E:

issues in childrenOfIssuesInQueryRecursive("Project='Dressrosa' and Type = Initiative")

Would return all epics, stories and subtasks for all initiatives in a specific project, not only the key inquired.

Or you could go even further and:

issues in childrenOfIssuesInQueryRecursive("assignee='DonQuixote' and type=Initiative", 2)

Would query for all epics and stories, while excluding subtasks (the second parameter is a depth limiter for the recursiveness function) from all the indexed projects from a specific user.

If you have any questions or would like further assistance in setting this up, reach out to our support team.

Hope this helps,

Regards,

0 votes
Vitalii Rybka
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2025

Hi Tracy!

You're right - parent only shows direct children. For all hierarchical tasks under an initiative, try:

"Epic Link" in (EPIC-123, EPIC-124, EPIC-125)

Or combine both levels:

parent = INIT-123 OR "Epic Link" in (EPIC-123, EPIC-124, EPIC-125)

JQL doesn't have native multi-level hierarchy search, so you might need ScriptRunner for more complex queries.

Best, Vitaliy

DM me if you have questions!

John Funk
Community Champion
July 14, 2025

Epic Link has been deprecated. And parent = INIT-123 will only give you one level of depth which is exactly what Tracy said in her post. 

Like Maria Rusnakova likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events