Forums

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

Changing the Card Color in Active board

usman_malik April 12, 2022

Hi Guys..

Need some help

In my JIRA ticket I have a field called Reviewers. 

I am looking for a JQL for changing the card color in the Sprint Board Settings as per the number of users added in the Reviewers field

Condition for JQL:

If 3 users are added in the Reviewers field, the card color should be Red

If 2 users added in the Reviewers field, the card color should be Blue

If 1 user added in the Reviewers field, the card color should be Green

If no user in the reviewers field, then no card color.

Is this possible to achieve via JQL or any other way?

 

3 answers

1 vote
Nic Brough -Adaptavist-
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.
April 12, 2022

Welcome to the Atlassian Community!

You can't do this with JQL alone, it doesn't count things.  You can script something to enable it though - what you need is a custom field with "reviewer count" in it, so your script should trigger on issue edit, look at the reviewers field and put the count into the field.

Then your JQL for card colours would be "reviewer count = 1", "reviewer count = 2" and "reviewer count > 2"

0 votes
John Funk
Community Champion
November 7, 2022

Hi @usman_malik  - Did the responses answer your question? 

0 votes
Dave Mathijs
Community Champion
April 12, 2022

Hi @usman_malik welcome to the Atlassian Community!

Although I don't think you can achieve your requirement without scripting, you can add the Reviewers to your card if that helps.

Suggest an answer

Log in or Sign up to answer