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
AUG Leaders

Atlassian Community Events