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

Getting all issues & subtasks in epic array

Hello everyone!


First of all, I'm using scriptrunner in order to get most of the information I need.



TIP-1 (initiative)


This query returns all the epics that has TIP-1 as a parent link: (not dynamic but that's ok)
issueFunction in hasLinks("is Epic of") AND "Parent Link" = TIP-1

Now let's get into the nitty and gritty ;)

This query returns all storys, issues and subtasks based on a list of epics:

"Epic Link" in (epic-1,epic2) OR issueFunction in subtasksOf("\"Epic Link\" in (epic1,epic2)")


In the above query, I would like it to return all subtasks,issues,storys etc based on a dynamic list that I get from the first query.

Since the epics in TIP-1 tend to change, some added, some deleted etc, I can't have a static list when getting all the subtasks etc.


Is there anyone out there that can help me out, I'm slowly losing my mind :D 


1 answer

1 accepted

0 votes
Answer accepted

So I solved it, clearly I am a dummy :)

I solved it by traversing from the initiative instead of the epic; using the following query:

issuekey in childIssuesOf("TIP-1") and issuetype not in (epic)


Which returns all bugs, tasks, storys, subtasks etc.

Suggest an answer

Log in or Sign up to answer

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