Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

JQL to get Stories linked to Epics of a specific Initiative

Is it possible to get all Stories tied to Epic given an Initiative.


I was able to get this by two separate queries 

query 1: Using Parent Link = "XYZ" i got Epics linked to an initiative

query 2: Using Epic Link = "ABC" i got stories linked to Epic.


How to achieve this in a single query.

P.S: We use Script Runner as well


Thank You


2 answers

Well i figured it out how to get this using Script Runner


1. Save a filter which pulls all Epics of an Initiative (level higher than Epic) say "ListOfEpics" (the filter id for below filter was 22323)

issueFunction in hasLinks("is Epic of") AND "Parent Link" = PR-448

2. Using above query as a subquery, i could retrieve all stories involved in Epics

issueFunction in issuesInEpics("filter=22323")

Reference article


Hope this helps someone using Script Runner till Atlassian deploys a way to report against grand children for Portfolio issue types.

Feel free to correct my query or any thoughts in improving above method is appreciated.




Thank you for this! Awesome stuff. Based on your method, we figured out a way to use just one query.

issueFunction in issuesInEpics("'Parent Link' = XXX-##")

where XXX-## is your Initiative issue ID.

Like Michael Pavey likes this

Glad that it helped you Christopher Heritage.



That helped me.

Taking into account using Script Runner plugin, I actually used like:

issueFunction in issuesInEpics("filter = 'my filter which returns epics'")

I wonder if each filter has it's id, or in your example it was just numeric name of the filter?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

326 views 9 7
Read article

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