Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Find all tasks that contain subtasks inside using JQL

Ivan Mantrov December 7, 2021

It doesn't matter what values the fields have. I am interested in the fact of the existence of a subtask inside.

2 answers

1 accepted

0 votes
Answer accepted
Ivan Mantrov December 9, 2021

It seems there are no special operators in JQL for such cases but I've found the solution:

using obviously non-existent task names in combination with issueFunction in parentsOf()

like this issueFunction in parentsOf("issue != BLABLA-100")

It works! And if you wanna get issues without subtasks you can put NOT before the request described above

 

 

0 votes
Sagar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2021

Hi @Ivan Mantrov 

By default it's not possible to get the list of all sub-tasks for the parent issue, you will need a third party for the same like Script runner or JQL Search Extensions for Jira - the JQL extensions which provides the JQL functions to achieve this

Documentation links

https://scriptrunner.adaptavist.com/5.6.9/jira/jql-functions.html#_subtasks

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Search+Extensions+Server#JQLReference(Server)-SubTaskStatus

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events