Forums

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

Get the Jiras which belong to epics with a specific label

Marios K
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!
May 30, 2022

Hello,

I would like to have a JQL query which returns the list of JIRAs which are under epics that contain a specific label.

Assuming...

  • Epic: PROJ-123
    • STORY: PROJ-1230
    • STORY: PROJ-1231
  • Epic: PROJ-124
    • STORY: PROJ-1240
    • STORY: PROJ-1241

PROJ-123 and PROJ-124 have the label: 'CoolFeature'

...the result should be:

  • PROJ-1230
  • PROJ-1231
  • PROJ-1240
  • PROJ-1241

2 answers

1 accepted

1 vote
Answer accepted
Lucas Modzelewski _Lumo_
Atlassian Partner
May 31, 2022
0 votes
Marios K
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!
June 2, 2022

Hello Lukasz,

 

Thank you. The link you've shared was perfect and found the solution there.

For completeness, here is my final query:

project = <Project name> AND labels in (<label>) OR (issueFunction in linkedIssuesOf("labels = <label>", "is epic of")) AND (resolution = Unresolved) order by priority

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events