Forums

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

how to filter the epics with only one issue with satus "Maintenance"?

Henrique Olmo Salles
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!
September 14, 2023

Hi,

I have a project with 4 issue types (Epic, Sesnor, Battery and Charger) and 2 status (Available and Maintenance). Each Epic contains the other 3 issue types (ex: the Epic xxx contains one Sensor, one Battery and one Charger). I would like to create a filter to display the Epics when the following conditions are true:

  1. Epic status is Maintenance (I think the JQL sould be issuetype = Epic AND status = Maintenance)
  2. Sensor status is Maintenance (I think the JQL sould be issuetype = Sensor AND status = Maintenance)
  3. Battery and Charger status are Available (I think the JQL sould be issuetype in (Battery, Charger) AND status = Available)

Is it possible?

3 answers

0 votes
Maxamed Xuseen
Banned
January 6, 2025

Battery charger Samsung mobile phone 

0 votes
Charlotte Santos -Appfire-
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.
September 14, 2023

Hi @Henrique Olmo Salles 

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, using vanilla JQL, you’ll not be able to do it dynamically.

In the app where my team works, JQL Search Extensions for Jira, you can use this query to find the Epics with the conditions you want:

issue in epicsOfChildrenInQuery("type = Sensor AND status = Maintenance") AND status = Maintenance AND issue in epicsOfChildrenInQuery("status = Available AND issuetype in (Battery, Charger)") AND status = "Maintenance"

Please contact our support if you have any other questions about this query.

We’ll be happy to help you!

Best regards,

Charlotte

0 votes
David Blank
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.
September 14, 2023

Hi @Henrique Olmo Salles and welcome to the Atlassian Community!

 

You might want to add a filter for your Project to them ( like: project = yourprojecthere)but other than that these queries all look good to me! Have you tried going to "All Issues" or creating a new filter and trying it out?

Henrique Olmo Salles
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!
September 14, 2023

Hi @David Blank . Thanks for the welcoming.

I tryied this filter but got no results... I'm attaching some prints of the resolts and one exemple of the epic.

project = INV AND (issuetype = Epic AND status = Maintenance) AND (issuetype = Sensor AND status = Maintenance) AND (issuetype in (Battery, Charger) AND status = Available)

Captura de tela 2023-09-14 122011.pngCaptura de tela 2023-09-14 122104.png

David Blank
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.
September 14, 2023

I apologize for my misunderstanding! I was thinking you were using 3 separate queries. Unfortunately to combine the 3 queries I think you need an extension from the app store.

I've seen this one mentioned: JQL Search Extensions for Jira & reports

Maxamed Xuseen
Banned
December 23, 2024

Battery charger Samsung mobile phone 

Suggest an answer

Log in or Sign up to answer