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

JQL: Find all open issues of type "Issue Tracker" where all subtasks are closed or resolved

B_ Normann P_ Nielsen
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.
May 28, 2015

As an alternative to some groovy looping, is it possible to make a JQL (possible using https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-hasSubtasks() ) the give the result:

Find all open issues of type "Issue Tracker" where all subtasks are closed or resolved

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Udo Brand
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.
May 28, 2015

So you want "Issue Tracker that have no subtask which are in a status different from closed or resolved:

issuetype = "Issue Tracker" and status not in(closed, resolved) and not issuefunction in parentsOf("status not in (closed, resolved)")

 Maybe add some addition conditions in parentsof function (project, issuetype).

Edit: forgot that issue tracker should be open as well. Added "and status not in (closed, resolved)"

B_ Normann P_ Nielsen
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.
May 29, 2015

Excellent and Thanx :-)

Serj Shcherbakov March 3, 2016

@Udo Brand thank you!

0 votes
Krishnan Iyer December 13, 2015

This JQL worked for me:

resolution = Unresolved and issuefunction in parentsOf("type in subtaskIssueTypes()") and not issuefunction in parentsOf("resolution = Unresolved")

The above query makes sure that issues that do not have any subtasks are not returned

TAGS
AUG Leaders

Atlassian Community Events