Forums

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

Query to exclude tasks affiliated with Epics

Sierra
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.
June 7, 2022

What's the best way to write a query to exclude tasks that are associated with Epics? 

I've tried a couple of statements with "parentsOf" phrase. 

I want to exclude them from my software projects Kanban board in board query. 

2 answers

2 accepted

2 votes
Answer accepted
Mark Segall
Community Champion
June 7, 2022

Hi @Sierra - It depends upon whether you're working with company-managed vs team-managed projects:

Team-Managed

parent IS EMPTY

Company-Managed

"Epic Link" is empty
1 vote
Answer accepted
Sierra
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.
June 7, 2022 edited

Hi @Mark Segall  It's a company managed project , this is my epic , with the tasks associated with it that I do not want to see on my KanBan board. 

I could be thinking about this all wrong .. the Epic Link wouldn't be empty right , in this case ? != is to exclude the Task 

"Epic Link" is not EMPTY AND issuetype != Task

Epic.png

Mark Segall
Community Champion
June 7, 2022

"Epic Link" IS EMPTY will capture any issues (task or otherwise) where there is no epic association.

"Epic Link" is not EMPTY AND issuetype != Task will capture all issues that are not tasks and have an epic association.

Sierra
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.
June 7, 2022

okay then I need "Epic Link" is not EMPTY AND issuetype = Task to capture all issues that are tasks with an epic association ... okay I feel closer , but really I want to exclude this ^ how do I write that ? I want to add it to my existing board query which is project = "IT Infrastructure Projects" AND component is EMPTY 

Mark Segall
Community Champion
June 7, 2022 edited

Is the challenge that you want to be able to capture either of these use cases?

  • Issue Type != Task (regardless of epic association)
  • Issue Type = Task and has no epic association

If so, you could do something like this:

project = "IT Infrastructure Projects" AND component is EMPTY AND (issueType != Task OR (issueType = Task AND "Epic Link" IS EMPTY))

 

Sierra
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.
June 7, 2022

I want tasks to appear on this board only if they are not associated with an Epic. 

If I'm understanding you correctly , if would be neither of those. Is it possible to do this ?

Issue Type != Task (If it has an epic association) 

Mark Segall
Community Champion
June 7, 2022

The query I just shared should show all issues except for tasks with epics

Like • Sierra likes this
Sierra
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.
June 7, 2022

Thank you @Mark Segall

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events