Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with nested Query to dynamically fetch all stories linked to Epics

vray
Contributor
February 2, 2022

Hi,

I want to list all stories linked to all the Epics in a particular Release. Instead of using "Epic Link in" clause, I want to make this filter more dynamic. That way for future releases, I need not manually add the Epics under "Epic Link in (a, b, c...etc)".

Using Fix Version, I get the list of all Epics and say the filter Id is xxxxx.

Now in JQL, I am using filter = xxxxx clause and this is giving me the same list of Epics. 

My question is how we can use the filter option to get all the stories linked to Epics dynamically. Somehow EpicLink in (filter=xxxxx) or linkedissue in (filter=xxxxx) is not working.

Would appreciate any help I can get on this!

P.S. Please dont suggest any 3rd part apps as those wont be approved in my org.

 

1 answer

0 votes
Trudy Claspill
Community Champion
February 2, 2022

Hello @vray 

What you want to do is not supported natively in the Jira Cloud UI for the issue search feature.

Without using a 3rd party app you're only option is write code to do this. You could have the code use the REST API to execute the query to get the list of Epics, then parse that output to create the second query with an explicit list of those Epics as the Epic Link in () criteria.

Suggest an answer

Log in or Sign up to answer