How do I limit the status of only one issuetype in the results?

Bradley Holbrook March 14, 2018

I want to create a query the will return all stories (regardless of status) and epic (if in progress) where the stories only belong to the epics returned.

3 answers

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2018

JQL does not allow you do nested queries, like get all stories belonging to epics in specific status. You need an app like ScriptRunner or JQL Tricks, and there are other ones that can do it too.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2018

If you use JQL Tricks the query would look like this:

issue in issuesWhereEpicIn("status = \"In Progress\"")

0 votes
Bradley Holbrook March 14, 2018

This is as close I could get:

type = Epic AND status = "In Progress" OR type = Story

0 votes
Carlos Faddul March 14, 2018

Currently we do not use the concept of epic and stories, however I believe the JQL query would be, something like this:


"Story Points" = 1 AND "Epic Status" = "In Progress"

 

Change de "Story Points" to another issuetype.

Bradley Holbrook March 14, 2018

Thanks! This wasn't it - but it got me to the right spot.

Suggest an answer

Log in or Sign up to answer