It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL Question - How can I see all Epics that have tickets of a particular status assigned to them?

wendy cotter Oct 28, 2015

I am setting up a Kanban board with all my epics.  I would like to color code the epics based on a query.  The query should be 'turn the epic a particular color when a ticket linked to the epics has a status of X or Y'.  I know that the color part is possible based on the board configuration, just can't figure out the query.....help please! 

3 answers

1 accepted

0 votes
Answer accepted
Wil Holder Sep 09, 2016

I know this is an old question, but as I was just looking for the same answer which brought me to this page I figured it wouldn't hurt to post the solution I came accross back to this page.

This requires Scriptrunner (We have the most recent version of Scriptrunner, and believe that this query works out of the box even with the older free version.)

To return a list of all Epics which have an issue which is blocked within it you should be able to use

Issuefunction in linkedIssuesOf("status = blocked", "has Epic")

I have added this to some of our Kanban board and used it to change the color of the card where there is a blocked issue in the Epic (even where the epic itself is still has a status of in progress)

wendy cotter Sep 12, 2016

Thanks Wil!!

0 votes
Nic Brough [Adaptavist] Community Leader Oct 28, 2015

JQL is for finding issues.  It says nothing about their display.

So, your JQL will need to be "issuetype = epic", then you go to "card colours" in the Board configuration and set the card colours based on queries for status.  (e.g. Red = Query, "Status = blocked")

wendy cotter Oct 28, 2015

I guess my question didn't come out correctly - I need the JQL that shows me all epics that have a linked tickets (enhancements or bugs) with a status = X or Y. Not the status of the epic itself.

I am looking for a similar query, but need the status of the epic, itself.  

0 votes
Shovan Sargunam Jan 02, 2019

How about this

project = NAME AND type = Epic 

or just

type = Epic 

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

747 views 7 0
Join discussion

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