Forums

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

What's the algorithm for colour-coding and auto-complete of labels?

Keith Furnell
Contributor
April 16, 2025

Once you define more than a few labels for your compass components, some sort of grouping of related labels becomes desirable. The only functionality to assist with this currently seems to be color/colour coding:

  1. Is there any way to predict, and moreover potentially influence, the colour that Compass allocates to a label?
  2. In the absence of the above, we've taken to using prefix characters for related labels 
    (e.g. ".licensed") though this seems to mess with the auto-complete - e.g. typing ".li" will suggest "linkable" but not ".licensed". Is this a bug?

Reference: https://community.atlassian.com/forums/Compass-articles/New-feature-labels/ba-p/1781704

1 answer

0 votes
Kali Cornn
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2025

1. We have a fixed set of colors we pick from and utilize a hash function to set the colors. So technically it's predictable since the hash function is deterministic.

2. This might be something on search platform's end, they might consider characters like `.` differently than regular letters.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events