The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the challenge that you want to be able to capture either of these use cases?
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))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The query I just shared should show all issues except for tasks with epics
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
👋 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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.