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,298,672
Community Members
 
Community Events
165
Community Groups

Query to exclude tasks affiliated with Epics

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 Leader Jun 07, 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

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 Leader Jun 07, 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.

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 

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))

 

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 Leader Jun 07, 2022

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

Like Sierra likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,895 views 37 49
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you