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

jql use filter

Gennaro Zazo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 1, 2022 edited

Hi

My goal is to selcet tasks and sub tasks from some epics

The following query works

( status = "To Do" OR status = "In Progress" ) AND ( parent in (TEST-4554, TEST-4553, TEST-3637, TEST-4552, TEST-4538, TEST-4550, TEST-4551))

Now if I would like to have something more dynamic, I would like to select directly from a dynamic pool of epics.

Make a filter "myEpics"

project in (TEST) AND issuetype = Epic AND labels = NiceLabel ORDER BY priority DESC, updated DESC

And then run the query in the following way

( status = "To Do" OR status = "In Progress" ) AND (parent in (filter = "myEpics") OR "Epic Link" in (filter = "myEpics"))

It is not working, I think because (filter = "myEpics") is not evaluated first and it doesn't return a list

What do you think about?

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 1, 2022

Hi @Gennaro Zazo

I'm afraid it's impossible to do this with system tools. You can try Scriptrunner, check out this question: https://community.atlassian.com/t5/Jira-questions/Feeding-filters-into-other-filters/qaq-p/1118145

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events