How to create a filter that returns a list of EPICS that has at least one story within an active sprint

Atlassian JIRA v5.1
Atlassian GreenHopper v6.2

I want to create a filter that identifies a list of EPICS that has an associated story (Issues in EPIC) that are within an active sprint. I only want to return results that are EPICs and not the stories.

Eg.

- An Epic (EPIC1) has a story (STORY1) listed under the 'Issues in EPIC' section.
- STORY1 has Active Sprint as SPRINT1

I require:
- EPIC1 to be returned within the search result.
- STORY1 will not be returned within the search result.

Is anyone able to provide a JQL example of how this can be achieved, that would be much appreciated.

Thanks,
Glenn


3 answers

2 votes

I don't think that's possible without plugins at the moment. If you can install plugins, then for example with Script Runner (other fine plugins offering similar are available), the query would be:

issueFunction in linkedIssuesOf("sprint in openSprints()", "has epic")

To break that down:

"sprint in openSprints()" is the subquery, you could add "and issuetype = Story" or other clauses. openSprints() is any active, not unstarted, sprints.

linkedIssuesOf finds any issues linked to isses in the subquery, following the specified link direction. In this case, epics and stories are connected by the "has epic/is epic of" link.

Does anyone know if Atlassian JIRA Agile v6.3 (formally known as greenhopper) contain this capability (without the need for a plugin)?


Any further help is appreciated.


ps. Thanks to Jamie for the plugin information.

Helped me so much smile 

Is there a easy ways to have a view for "Next" sprint.
Where I know there will be no easy solution like "sprint in openSprints()".

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 14, 2018 in Agile

Marketplace Technical Collection Pages

You might have noticed something new on Marketplace in the last several months which was the addition of our new collection pages. We heard feedback that it can be hard to browse apps in Marketplace ...

77 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you