Forums

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

Get a list of Stories with status A where their sub-tasks with status B

amit_m February 20, 2022

Hi,

I'm using Jira cloud and trying to get a list of all my stories with the status="Open" only if they have sub-tasks with different status then "Open"

Using this query, I don't get any results

 

project = XX AND (issuetype in standardIssueTypes() AND Status=Open) AND (issuetype in subtaskIssueTypes() AND status!=Open)

 

Please advise

Thanks,

Amit 

2 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Champion
February 20, 2022

I mean to say that you cannot create a JQL query to achieve your goal. You will need an add-on application such as Scriptrunner. There are other solutions in the marketplace as well.

amit_m February 20, 2022

Thanks for the details 

0 votes
Jack Brickey
Community Champion
February 20, 2022

You can't achieve this OOTB. Consider an addon like Scriptrunner or similar advanced JQL querying app.

amit_m February 20, 2022

Can you please explain? 

Suggest an answer

Log in or Sign up to answer