Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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