Forums

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

Nested filter in childIssuesOf("")

Arturs Kalnins May 27, 2024

I'm trying to scale our advanced roadmaps filter. 

We have multiple advanced filters projects with specific Epics

This is the current JQL i'm using:

project = SER and key in ("SER-1142", SER-1143, SER-1144) and (Status not in (Done, Resolved, Canceled) and "Epic Status" != Done) or (issuekey in childIssuesOf(SER-1142) OR issuekey in childIssuesOf(SER-1142)) or (issuekey in childIssuesOf(SER-1143) OR issuekey in childIssuesOf(SER-1143)) or (issuekey in childIssuesOf(SER-1144) OR issuekey in childIssuesOf(SER-1144))

The problem is, it is ABSOLUTELY not scaleable. What i'm trying to achieve is: 
By adding a label to a specific epic, it (and all childissues of the epic) would be added to roadmap 

I have created a filter "label = roadmap_q4_2024") and it would be a lot easier to just call out said filter within a new jql (such as childissues of("filter = Roadmap_Filter")) but it does not work. 


Any advice how to tackle this problem? 


thank you! 

1 answer

1 accepted

1 vote
Answer accepted
Sudarsana G
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.
May 27, 2024

you're trying to create a JQL query that dynamically includes issues based on whether they belong to epics labeled with "roadmap_q4_2024". However, JQL does not support directly querying child issues of a filter.

One approach to achieve your goal is to use JQL functions provided by apps like ScriptRunner for Jira or Jira Misc Workflow Extensions (JMWE). These apps offer additional JQL functions that extend the capabilities of Jira's native JQL.

Arturs Kalnins May 27, 2024

i'm in no position to add any applications to our JIRA instance as it is a big corporation. Is it possible to rewrite it to be a bit more dynamic?

 

Arturs Kalnins May 27, 2024

@Sudarsana G How would one do this is scriptrunner? What function can I use for it being a dynamic?

 

Sudarsana G
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.
May 28, 2024

May be like this issue in linkedIssuesOf("labels = roadmap_q4_2024")

Suggest an answer

Log in or Sign up to answer