Forums

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

JQL to query an attribute on the Epic of a given issue

Thomas Berg
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!
December 21, 2018

Trying to write a JQL query for setting card colors on each issue.

Every issue is linked to an Epic, and every Epic has a Category selected (single-select picklist).  I want to define the card color for each issue based on the Category of its related Epic.

Played around with both issue.property and issuefunction after doing a bunch of searching, and I'm unsure if my ask is even possible without subquery functionality.  Hopefully someone can prove me wrong!

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 4, 2019

Hello Thomas,

Welcome to Atlassian Community!

I'm not sure if the Card colors query in board recognizes JQL parameters from plugins, however, you can try the following steps:

- Install ScriptRunner plugin

- Navigate to your board > Board settings > Card Colors > Select Queries

- Write the following query for each category you want, selecting the colors as you need:

issueFunction in issuesInEpics("category = XYZ")

For more information about it, check the documentation below:

Script JQL Functions

Please, let me know if it works for you.

Suggest an answer

Log in or Sign up to answer