Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How do you filter Tasks that belong in a Jira Project that has an Epic Link to a different Project?

Working with Cross Functional teams, say IT and HR, where each one of us have our own respective Jira Projects. 

Tracking all of my IT Stories/Tasks can easily be found within the IT Epic. And even HR Stories/Tasks show up in the IT epic. 

However, I want to create a filter search where I am able to view all HR issues that have an Epic Link to any Epic in the IT Project. Currently the JQL seems to only allow to search for a specific Epic. Is there any way to make it a blanket statement that essentially tries to search for any Epic Linking to the IT Jira project?

I imagine it would looks something similar to:

project = HR AND issuetype in (Story, Task) AND "Epic Link" = (Project = IT)

2 answers

2 accepted

1 vote
Answer accepted

Hi @Steven Chau 

You'll need an app which can provide more advanced JQL functions - such as Scriptrunner

The reason for this is you need to have a sub-query - to allow you to search for:

  • Main Query: All issues in the HR project that...
  • Sub Query: Have an Epic Link in the IT project

Amanda has offered one method to do this - an alternative based on your query and utilising the app above, would be:

issueFunction in issuesInEpics("project = IT") and project = HR and issuetype in (Story, Task)

And you could also search the other way - for example, looking for Epics in HR which have children in IT:

issueFunction in epicsOf("project = IT") and project = HR


I see, thanks for the response!

0 votes
Answer accepted

@Steven Chau Do you have add-ons that provide advanced JQL functions?

You can use something like this:

issuefunction in linkedIssuesOf("project = IT and assignee = amanda", "is Epic of") AND project = HR

The first portion of this finds all issues in Epics where the Epic is in project IT and the assignee of the Epic is amanda.

The second portion then further refines that list of issues to only return issues in HR

What would result is any HR issues that are linked to Epics in IT assigned to amanda.

I hope this gives you an idea of what you could do with the above type of query!

Suggest an answer

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

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

463 views 3 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