It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Advanced Search on Subtasks

Samy Djemali Oct 01, 2014

Hello !

I've got the script runner plugin on JIRA 5.1.

I'd like to find the right query to find all issues that have ALL their subtasks resolved.

Any idea with just the JQL and/or this plugin ?

Many thanks in advance.

Sam.

3 answers

1 vote
Geert Graat Oct 01, 2014

Hi,

I am using the latest version of Script Runner (3.0.5), I do not know if the function I am using is available in your version. In any case, this seems to do the trick:

edit:

I updated the JQL to simply return all issues that have subtasks and are not in the set of issues that have a subtask that is not resolved.

issueFunction in hasSubtasks() AND NOT issueFunction in parentsOf("resolution is empty")

 

Regards,

Geert

0 votes
Samy Djemali Oct 01, 2014

Hi Geert,

I have the 2.1.15 version of the script runner. The function do exists, but this query gets all issues that have at least one resolved task.

Thank you in anyway,

Met vriendelijke groeten.

0 votes
Samy Djemali Oct 01, 2014

For the record, Geert's answer helped me in finding a solution :

project = XXX and (issueFunction in hasSubtasks() and issueFunction not in parentsOf("resolution is empty"))

Thank you.

Kind Regards,

 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

197 views 21 10
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you