Forums

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

JQL to return all stories in Project A with Epic link to Epics in other projects

Shirley Jhirad
Contributor
December 19, 2018

Hi,

I want to show all stories in my project which are coming from epics in all projects other than mine.

How can i achieve that?

 

Thanks 

Shirley

2 answers

3 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2018

Hello Shirley,

I understand that you would like to return all issues that are under an Epic from a different project than yours. Is that correct?

You can use the Script JQL Functions from ScriptRunner plugin to configure the following query:

project = yourproject and "epic link" is not empty and issueFunction in issuesInEpics("project != yourproject)

To know more about this query, refer to the Epics session of the documentation below:

Script JQL Functions

Let me know if it works for you, Shirley.

0 votes
Ryan Fish
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 19, 2018

@Shirley Jhirad

If the stories are in your project, then JQL project = yourprojectname AND issuetype = story. 

If the stories dwell on other boards (projects) and not yours, then it gets more complicated.

 

Can you give an example?

 

Ryan

David Novick
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 1, 2021

This is similar to what I am trying to do.  Here's the use case

 

I have Epics in Project A.  Those Epics have stories linked to them in Project B, Project C, etc.

 

I'd like to create board in Project A where I can see all stories in Project B, Project C, etc. that are ONLY linked to Epics in Project A.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events