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
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'.
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 :)
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.
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
👋 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...
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