Ivan M
Ivan M

Reputation: 23

Find all tasks that contain subtasks inside

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

Upvotes: 2

Views: 2228

Answers (2)

LuxieTheLux
LuxieTheLux

Reputation: 71

You could try the following JQL:

issueFunction in hasSubtasks()

it filters for such issues which satisfy condition hasSubtasks() which is a function for identifying issues with subtasks (but not other types of links).

Upvotes: 1

Ivan M
Ivan M

Reputation: 23

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

Upvotes: 0

Related Questions