Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

change the colour card based on labels

I would like to colour the cards on the kanban board based on labels assigned to each ticket. 

label = tracking - where tracking is one of the labels used within Jira. 

 

Currently even though the JQL validates with a green ticket - the colours do not show. 

 

Cheers

4 answers

2 accepted

4 votes
Answer accepted
Andy Heinzer Atlassian Team Apr 05, 2019

Hi everyone,

There is a documented bug where we are tracking a scenario that can cause card colors to not appear on a board. Please see JSWSERVER-13620 for more details.

Essentially, if you have any invalid JQL queries in the card color section of the board settings, no card colors will appear at all for that board. It could be that the label value was invalid, or one or more of the values was not be referenced correctly in the JQL used. However if the JQL is valid, then that should correct this here.

I hope this helps.
Andy

This looks like a bug to me. I encounter the same issue. Are you utilizing the component field at all? This definitely works and could be used in a similar way.

We aren't but we could if we can find a way to make it work. 

Actually, if you add double quotes around the label field value, your issue will be resolved!

 

E.g labels = "tracking"

Like John-Paul Laflamme likes this

Did anyone ever find a solution to this because I'm having this problem as well. 

Jack Community Leader Jul 30, 2018

@Cecil Dearborne, what issue are you having exactly? Can you share the JQL that isn’t working for you?

@Jack, I want to have my cards/issues highlighted with a red color if they are blocked. I decided to use the "BLOCKED" label to keep things simple for now. 

Here's a screenshot of what I did but the end result is that the cards are not showing up red. I even went to a specific card, clicked on the "BLOCKED" label which took me to a screen that showed all cards with that label, and then I copied the JQL from that screen and reused it.

 

Screen Shot 2018-07-31 at 8.25.33 AM.png

Like # people like this
Jack Community Leader Jul 31, 2018

it is working for me in Cloud (see below). Question, when you begin to type BLOCKED in the JQL do you get the auto-complete box where BLOCKED shows? If so please select the label from there. If you do not see the label then chances are you are not entering it as correctly, remember case-sensitive.

blocked.jpg

So odd. I have tried many things:

  • autocomplete for everything including the "=" 
  • BLOCKED with double quotes
  • BLOCKED without double quotes
  • copy of JQL from when I clicked on label

None seems to be working for me. So odd. 

Jack Community Leader Jul 31, 2018

so the autocomplete actually presents you with the label you are looking for and you select it? and the JQL search actually present you with the list of issues you want to have the red bar? Are you on cloud or server?

As a side note, i wouldn't recommend using labels for blocked issue but would favor a status. Labels get mistyped and in your case when unblocked you have to remove the label. just an opinion.

So in response (in bold) to your feedback and questions: 

  • so the autocomplete actually presents you with the label you are looking for and you select it?  Yes
  • and the JQL search actually present you with the list of issues you want to have the red bar? Yes
  • Are you on cloud or server? Cloud
  • As a side note, i wouldn't recommend using labels for blocked issue but would favor a status. I understand the concern but I want to try out something simple with the team first. If we find it effective we may explore other solutions like leveraging status but that may add it's own levels of complication that I'm trying to avoid.
Jack Community Leader Jul 31, 2018

I would recommend reaching out to Atlassian support so they can log into your instance and inspect. 

I was going through similar problem. However, instead of going with "=" format I proceeded using "in", which worked!!

Example: labels in ("Blocked").

Jack Community Leader Nov 27, 2018

That certainly works. The “in” operator is used primarily used to shorten a JQL. For example:

labels = “blocked” OR labels = “aaaa” OR labels = “bbbb” is more tedious than labels in (“blocked”, “aaaa”, “bbbb”)

Like # people like this
0 votes
Tarun Sapra Community Leader Apr 16, 2018

Labels are free ticket thus make sure you type the exact thing in the JQL as it is on the ticket. And other users also type the exact text. Since labels are free text thus I personally don't prefer to make use of them as chances of error are high because even a small typo would break the functionality. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

3,712 views 5 15
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you