All epics connected to a program epic with a certain label

Björn Eriksson
Contributor
May 23, 2023

Hi

This JQL gives me the only epic that is not connected to any parent (program epic):

issueFunction in epicsOf("labels = 'my label'").

Is there any way to get a list of all the epics that is a child of a program epic with a certain label?

1 answer

0 votes
omcg May 23, 2023

You can try something like this. It will give you a list of all Epics that have a parent Program Epic that has a specific label.

issuetype = Epic AND issuefunction IN linkedIssuesOf("labels = 'labelval' AND issuetype = 'Program Epic'", 'is Parent Of')

Björn Eriksson
Contributor
May 31, 2023

I run the above in Scriptrunner, but get no result, 0 issues.

I work in a cloud instance, if that is important.

omcg May 31, 2023

Hi @Björn Eriksson

That function should still be available in jira cloud using scriptrunner enhanced search: https://scriptrunner-docs.connect.adaptavist.com/jiracloud/enhanced-search.html

Are you using the "Parent Link" field to define the parent/child relationship? Or are you using standard issuelinks?

Thanks

Björn Eriksson
Contributor
January 10, 2024

Hi
Late answer ....

I'm using the "Parent Link"

Now when I read my question I think I need to rephrase it.
Progr epic 1, with label X

  Epic A

  Epic B

Progr epic 2

  Epic C

Epic D

 

Now I want filter out just the child epics in Progr epic 1, based on label X

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events