The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Jack Brickey
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 Champions.
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
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 Champions.
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?