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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

285 views 3 11
Read article

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