Complex JQL query

Hi there,

"Give me all issues of type 'sub-task', which are not closed yet, but whose parent story are closed"

Is there any way I can phrase this in JQL?

Unfortunately, this doesn't work:

issuetype=Sub-task AND status!=closed and parent.status!=closed

cheers - rene

3 answers

1 accepted

You could try the search intent plugin (https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-search-intent-plugin) and use a query like this :

issuetype=Sub-task AND status!=closed and SearchIntent = parentsInQuery("status != Closed")

I can't test this so I'm sure if it will work. You could also check out the JQL tricks plugin:

https://marketplace.atlassian.com/plugins/com.j-tricks.jql-plugin

take a look: https://answers.atlassian.com/questions/148224/jql-parent-is-a-specific-issue-type

requires a plugin installed, but is the same example with tasks and subtasks.

HTH

Cool stuff! Will try the plugins. Thanks Alex + Paul!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,076 views 13 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot