Color codes in API

@Phil_Seeman
I’m running into a very interesting issue now, curious if you’re running into the same issue now as well!

Summary
Some of my users are seeing projects in different colours that others.

I updated my automations to use the new colour coding system for projects, however, some users started reporting that the colours didn’t look right to them since the changes.

Upon further investigation within a Portfolio, I was able to verify that some users see the updated colours for projects. While others are viewing completely different colours within the same Portfolio.

Testing things further, I generated an API token for one of the affected users and used it to test a GET request for a specific Project GID.
Not only are some users able to view the colours completely differently, their API returns are different and use the old colour naming system!

  • I’m going to refer to users who see the New Color Format as N Users.
  • I’m going to refer to users who see the Old Color Format as O Users.

What is really throwing things off is that if an N User changes the colour, it doesn’t change the colour for an O user. Likewise, if an O user changes the colour, the N User would not see the colour change within Asana or the API.

Example
Colour Selection from UI for reference

image

  • When I use my usual API token, Token A, to get the color value for Project 123. I currently receive “dark-brown” as a return instead of the “dark-yellow” of last week.
  • When I use my alternative API token, Token B, to get the color value for Project 123. I currently receive “yellow” as a return.

I’m beyond confused what is going on, but to elaborate further using the color references from above, it appears that some users still see the “old” color values. I changed the color manually using my O User profile and token to see what the color value returns are.

I can also confirm it doesn’t matter if the user is viewing from the web-app or the desktop-app, they are either an N User or an O User it seems.

New Color Format = Old Color Format

’none’ = ‘none’
’dark-red’ = ‘red’
’dark-orange’ = ‘orange’
’light-orange’ = ‘yellow-orange’
’light-yellow’ = ‘yellow’
’light-green’ = ‘yellow-green’
’dark-green’ = ‘green’
’light-teal’ = ‘blue-green’
’dark-teal’ = ‘aqua’
’light-blue’ = ‘blue’
’dark-purple’ = ‘indigo’
’light-purple’ = ‘purple’
’light-pink’ = ‘magenta’
’dark-pink’ = ‘hot-pink’
’light-red’ = ‘pink’
’light-warm-gray’ = ‘cool-gray’