How to Use JQl to color cards

Hey Everyone, 

I'm new to Jira and im trying to get the most out of the tool and wanted to use the "card colours" feature so i can colour cards in the activity sprint view to change colour based on a field called "due date" however having never used JQL and being new to Jira im unsure where to start, essentially im trying to achieve the following:

  • Colour = RED when the the due date of the card is today or within 3 days 
  • Colour = Amber when the due date of the card is within 5 days of today
  • Colour = Green when the due date of the card is 6 or more days  from today

Any help you can offer to help me achieve the above outcome would be much appreciated. 


Thanks 

 

2 answers

1 accepted

1 vote
Warren Levy Community Champion Sep 13, 2017

You will need to have project Admin rights to do this.

Go to Board settings and click on Card colours. From the dropdown select Queries, then add your JQL for each different colour. N.B. the order is important because it will use the first colour where the condition matches, so drag the items to reorder.

Thanks for the reply. 

Ive got that far the bit I'm struggling with is what JQL code I need to use to make it happen 

Warren Levy Community Champion Sep 13, 2017

Ah, let's try and get that sorted then.

Colour = RED. The JQL is  duedate <= 3d

Colour = Amber. The JQL is duedate <= 5d

Colour = Green. The JQL is duedate <= 6d

I think I'm right in saying that they need to be done in this order, but play around with it and see

Super thanks for the help, that id the trick :) 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,296 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot