Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,463,821
Community Members
 
Community Events
176
Community Groups

Nested Filter in JQL

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

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)

@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