You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm new to this, but using Jira Cloud, We have at any time 30-40 active tickets on a queries based board.
I would like to have cards change colour based on how many days they are from their due date, so:
3 more more days away from due date = Green
2 days from due date = yellow
1 days from due date orange
on the date or overdue = red
Whats the best way of doing this and the 'code/query'
many thanks in advance
your logic here is wrong for orange and red at least if I understand what you want.
first "startofday()" is midnight of the current day not say 8am, just an fyi.
second you are using "-" in your queries which is looking back not foward. so <= startofday("-2d"), considering today is Monday 12/14 means if the issue was due <= Friday at 11:59:59pm or earlier.
Maybe this is what you want below? You may need to play w/ the boundaries a bit.
Bill, yes totally realise, and appreciate the input both you & Jack are giving.
I have used Jac's query but nothing happens, in fact, I loose what colour bands I had with the -2 query; I've modifed the original query with +2 etc, and no difference.
Not sure why it is not working
The card color filters apply in the order listed, so it can be a bit of a logic issue when they overlap (not mutually exclusive). The technique Jack listed should make them independent, but your own filters may not be so.
Please try to implement just one card color filter, removing the others, and confirm it works as expected, adjusting as needed.
Then add one more *below* it, and see what happens. You should be able to make progress from there.
If the single query does not work, please post what you are using to help the community comment.
See the JQL in the previous answers. You can base it on pretty much anything you want.
Remember that JQL simply finds matching issues, and each rule for a colour is simply "does this issue match the search?". The colouring is done by the display, not the JQL.