Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


JQL (with scriptrunner) to filter all items where an Epic has stories/tasks associated with a sprint

Hi - sorry for the long title!

I need to return all items, whether they are Epics, Stories, Tasks or Bugs but I only want to show items which are assigned to Sprints.  This would be simple but our Epics are not assigned to Sprints.

Is it possible to find all tasks/stories/bugs which are assigned to sprints and include in the dataset the associated Epics (which are not assigned to sprints). 


This would exclude Epics which have no sprint tasks assigned and also exclude tasks not assigned to Sprints.

We have scriptrunner if this makes it easier.


Thanks in advance!

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 27, 2023

With the "EpicOf" jql function provided by scriptrunner, you can do the following:

project in (AAA, BBB, CCC) AND (type in (Story, Task, Bug) OR issuefunction in epicsOf("project in (AAA, BBB, CCC) and type in (Story, Task, Bug)"))

It's best practice to include a project filter in the sub-query to limit performance impact. 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events