Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

LinkedIssues using a filter or multiple values


Hi All,

Here is what I am trying to do. I have Project 1 Epic A. The Epic is linked (relates to) Project 2 Epic B. What I want to do, though, is to create a query to view all issues under Epic B, based on Epic A (show me all user stories for any epic linked to Epic A).

I have a solution to get the results for this, which is the following:

issueLink in (linkedIssues(MET-2)) AND Type = Story ORDER BY "Epic Link"

However, I need multiple Epics (MET-2 and MET-3) so I came up with this:

issueLink in(linkedIssues(MET-2)) OR issueLink in(linkedissues(MET-3)) AND Type = Story ORDER BY "Epic Link"

This, though, will become unwieldy if I have many Epics to reference, so I'm trying to do something along the lines of

(linkedIssues(MET-2, MET3))

This, though, is not supported. I read in a few threads that I could use a filter, but this does not seem to work for me. Here is what I did regarding the filter, but it does not work:

issueLink in (linkedIssues('filter = "MetaScrum Epics"')) AND Type = Story ORDER BY "Epic Link"

I have tried every method of single and double quote combinations (including none and one at a time) that I can think of, but I only get this error each time:

Issue 'filter = "MetaScrum Epics"' could not be found in function 'linkedIssues'.

Any ideas?

Thanks for any help!

PS. I cannot use a plugin for various reasons, and this is Jira Cloud.

PSS. Be sure to copy the above and put it into your JQL Notes in case you need it sometime :)

1 answer

0 votes
Andy Heinzer Atlassian Team Mar 18, 2021

Hi Michael,

I think I understand what you are trying to do here with JQL in Jira Cloud.  However the linkedIssue function in Jira is not able to accept a filter as part of the input to that function.  That function only accepts specific issue keys that you enter there.  We have an existing feature request over in JRACLOUD-21936 that I think best encompasses what you want to be able to do here.

I would recommend watching that issue and voting there.  There is no guarantee that Atlassian will implement this, but that issue can be helpful for our team to help understand new feature priorities.

As for the other threads you mentioned, I fear that perhaps you have stumbled upon some JQL functions provided by a 3rd party plugin to Jira.  For example, the Scriptrunner app (at least the server version, not sure about Cloud) offers a JQL function called linkedIssuesOf() which is very similar in nature to our linkedIssue function.  The major difference is that it does accept a subquery or filter when you use it.  I know you stated that you were not interested in a plugin solution here, but for your specific ask here, I do not believe Jira can do exactly what you want here as designed.

Sorry this is probably not the answer you had hoped for, but I hope it helps anyway.


Hi Andy,

I have the same problem: I want to use the "filter" results as value in another function to obtain all sub-issues of the issues identified by a filter.
Something like: "Parent Link" in (filter=filterID) or issue in linkedIssues(filter=filterID). Back in the on-prem days I think the query ran something like: issues in linkedIssues(filter=filterID). I don't mind nesting filters, but currently I can't find any solutions to identify sub-issues on an unquantifiable number of parent issues.

Do I understand correctly, that there currently isn't any function that can use the results of a filter?


P.S. working with Jira Software Cloud Premium

Funny place to find you!! :)

Like Dominic Steinbach likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,097 views 34 44
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