Jira issues that are in an epic with certain label
Asked Answered
S

1

8

I am trying to write a Jira JQL filter that combines parentEpic with a label or a filter. The below JQL works:

project=TML AND parentEpic in (TML-2731, TML-3053)

But then I need to know the IDs of the epics, and these only live for few weeks. Labels live much longer, and I can easily search for epics with a label:

project=TML AND issuetype=Epic AND labels in (IndEquip, IndAuto)

But now I would like to use the returned list of epics as input to the parentEpic function, but this does not work:

project=TML AND parentEpic in (labels in (IndEquip, IndAuto))

Are such nested queries in general not possible? Is there any extension that makes it possible?

Schaeffer answered 15/6, 2022 at 9:28 Comment(1)
It's possible with ScriptRunner: issueFunction in issuesInEpics('labels in (IndEquip, IndAuto)')Lm
R
0

As answered in the comment, it isn't possible with Jira basic Jql capability.

However it is possible with the ScriptRunner App and the Enhanced Jql issuesinEpics

Example Server version

Cloud version Enhanced Search

Realm answered 7/7, 2023 at 7:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.