Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to I get a list of Epics that have Issues linked to them?

I have a SCRUM Board meant to view the current Sprints across an entire department. The goals are the following.

  • Display all Issues currently in Sprints from the relevant Projects in the Plan tab of the SCRUM Board.
  • Have the Epics on the left side of the board displayed if and only if they have Issues in the active Sprints that are linked to them.

First, I just grabbed the Issues.

project in (many many projects) AND issuetype in standardIssueTypes() AND Sprint in openSprints() ORDER BY Rank

Because Epics aren't embedded in Sprints, this left the Epics out. So I explictly grabbed the Epics.

project in (many many projects) AND (issuetype in standardIssueTypes() OR issuetype = Epic) AND Sprint in openSprints() ORDER BY Rank

This pulled in every single Epic ever made. I then tried to limit the Epic selection, though I knew this was too blunt a tool to deal with the teams' abandoned, unclosed, orphaned, and neglected epics.

project in (many many projects) AND issuetype in standardIssueTypes() AND (Sprint in openSprints() OR (issuetype = Epic AND updated > -6w))  ORDER BY Rank

How do I get only the Epics that are linked to from Issues in the current Sprint?

4 answers

> How do I get only the Epics that are linked to from Issues in the current Sprint?

If you can use Script Runner, there are functions and some examples that might help here: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-MoreComplexExamples
You can filter further on the current sprint ID.

Hi. Script Runner is not available for OnDemand instances, is there anything we can do to get the same result: "get the issues Epic type from other issues that have them in the Epic link"? Thak you.

I have never used it but there is https://marketplace.atlassian.com/plugins/jql-pro. Seems to create a bit of a disconnected experience, although that's no fault of the plugin.

Hey Nik,

Sorry about this quick answer without reading through your entire question. But have you tried

https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-Sprint

and https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-EpicLink

sprint = "xxxx" and "Epic Link" = Something

Sorry, Bhushan, but this won't fix my issue.

Your solution would only work for pulling Stories (or other Issues linked to Epics). This is not what I want. I want to pull Epics that have (1) have links to them from (2) Issues in the current Sprint. (I can get the "current sprint", but saying…

Sprint = openSprints()

. The challenge remains the Epics.

Like # people like this

Any update on this?  This would be extremely helpful for us too (using OnDemand) and I can't figure out a way to do this

Hi!

I've tried to find a solution for this myself as well. And I did, at least for my application and intended use. 

You need to have ScriptRunner! 

And in ScriptRunner I used the epicsOf() function like so:

 project = MyProject AND issueFunction in epicsOf('"Backlog" = "MyBacklog" AND Status in ("Ready for Backlog", "In Progress", "Ready For Verification", "Under Verification", "Resolved")')

This enabled me to filter out Epics for my backlog that were relevant to ongoing tasks, thus using the "Epics" window in the backlog properly without any irrelevant Epics.

I created this for my project and it returned all the EPICS that are linked to issues in the current sprint:

project = XXX AND issueFunction in epicsOf("sprint in opensprints()")

 

Since you have multiple projects you can modify the above to:

project in(XXX, XXX, XXX) AND issueFunction in epicsOf("sprint in opensprints()")

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you