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
4,293,337
Community Members
 
Community Events
165
Community Groups

Get the Jiras which belong to epics with a specific label

Marios K I'm New Here 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

0 votes
Marios K I'm New Here Jun 02, 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

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