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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

691 views 6 13
Read article

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