Forums

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

How can I filter Stories with parent link ( epic) criteria being called in other query ?

erika assis November 24, 2021

Hi, I have a query#1 to filter all Epics with specific characteristics and would like to build other query#2 to get all the stories related to this #1 query but I'm not quite there yet with nesting filters. Any hints?

Desired outcome : all the stories linked to the dinamic list of epics I get from "Filter1", as if in a simple declaration " Epic Link = "Epic Link" = "Filter1" and issuetype = story



1 answer

1 accepted

1 vote
Answer accepted
Kristján Geir Mathiesen
Community Champion
November 24, 2021

Hi @erika assis 

So if your existing filter is called "Filter one" then you could do -> filter in("Filter one") AND here comes the rest of your criteria.  Example:

 filter in("Filter one") AND project in(example) AND issuetype = story

HTH,
KGM

erika assis November 26, 2021

Hi, thank you for your response! 

Since "Filter one" only filters the epics, I can't use the issuetype = story. What I need to do would be use the "Filter One" as a "EpicLink" declaration, like : "Epic Link" = "Filter one" . But I don't know the sintax for it to be recognized 

Kristján Geir Mathiesen
Community Champion
November 29, 2021

Sorry for a slow reply, @erika assis 

I might be misunderstanding but you want @"Filter One" to include large enough data if you are going to be using a combined filter's search. On a Story, the Epic name is called Epic link. You should be able to do:

"Epic Link" = epic_name_goes_here

HTH,
KGM

Like erika assis likes this
erika assis November 29, 2021

Hi Kristjan, yes! Let me write it better, currently in the filter recovering all the epic links - it's around 10 and might grow as new features are created related to the project. So instead of having to declare each epic link ID, I build this dinamic query that retrieves all the epics related to the project. What I want to do, is to use this query as a "epic link" call in the query where I want to retrieve all the stories related to all the current and future epics in the Epic query.

Kristján Geir Mathiesen
Community Champion
November 29, 2021

Hi @erika assis 

It is not possible to build a dynamic query, like you are seeking, with standard Jira functionality. Sorry to say but you will need a 3rd party app to do that.

I do not know how you will use this but if you are using it in a Kanban board, then you can create Quick Filters. Not totally dynamic but more flexible than in a filter...

KGM

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events