Nested Filter in JQL

Asher Zundel December 9, 2022

Hi,

Is it possible to nest a filter inside another filter in JQL?

Currently, I have (PROJ-X being the issue keys resulting from another filter).

issueFunction in linkedIssuesOf("key in ( PROJ-1, PROJ-2,PROJ-3,PROJ-4, PROJ-5, PROJ-6)") AND type not in (Epic) AND status not in (Canceled, Closed)

 

Instead of copying and pasting the results from the other filter, is it possible to reference it inside the JQL?

 

i.e. issueFunction in linkedIssuesOf("key in (filter = 10000 )") AND type not in (Epic) AND status not in (Canceled, Closed)

 

 

1 answer

0 votes
Sid Pathirana
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.
December 9, 2022

Hi - this should be possible.

You can save a JQL query and then refer to that saved query in another JQL query (ie. nest it in another query).

For example,

 

1) Create the JQL query that is intended to be nested in another query, eg:

key in ( PROJ-1, PROJ-2,PROJ-3,PROJ-4, PROJ-5, PROJ-6)

 

2) Save the JQL query under a suitable filter name, eg "My Issue List"

 

3) Refer to your saved filter in another query, eg.

issueFunction in linkedIssuesOf("filter = \"My Issue List\"") AND type not in (Epic) AND status not in (Canceled, Closed)

Asher Zundel December 9, 2022

@sid Thank you so much for your help. My issue was that I kept "key in" while trying to call the filter!

Suggest an answer

Log in or Sign up to answer