Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Complex JQL query

Rene Rath
Contributor
June 25, 2013

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

0 votes
Answer accepted
Peter Van de Voorde
Community Champion
June 25, 2013

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

0 votes
Rene Rath
Contributor
June 26, 2013

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

0 votes
Alex Perez
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.
June 25, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events