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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

167 views 1 3
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