How to edit a TAG's color?

629 views
Skip to first unread message

Gabriel Paim

unread,
Nov 19, 2014, 8:35:54 AM11/19/14
to tai...@googlegroups.com
Hi guys,

Is it possible to edit a tag's color?
We are using tags to identify the project segment, in order to integrate the team into the same project.
So far, the color difference is really small, in a way that is difficult to differentiate them.

If the answer is yes, how? If it's no, will you allow this?

Thank you.

Jesús Espino

unread,
Nov 19, 2014, 8:54:40 AM11/19/14
to Gabriel Paim, tai...@googlegroups.com
Hi Gabriel,

The answer is yes, and no. You can redefine your colors using the API,
but ins't implemented in the interface.

If you want to play with the api, with some curl commands (login, get
project, patch project) you can redefine your project colors. I can
share a link to the api documentation (currently on development).

Greetings.
> --
> You received this message because you are subscribed to the Google Groups
> "taigaio" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to taigaio+u...@googlegroups.com.
> To post to this group, send email to tai...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/taigaio/18ebf978-4391-4bde-81bd-e267037256e7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

BlueT Matthew Lien

unread,
Nov 21, 2014, 9:56:43 AM11/21/14
to tai...@googlegroups.com, paim.g...@gmail.com
Hi Jesús,

In my project we want to set priority of US/Task by using Tag, for example Tag "Must be done" in red, "Better to have" in blue, and "In spare time" in black.
I checked the docs about Tag colors but there's only a GET method.
http://taigaio.github.io/taiga-doc/dist/api.html#projects-tag-colors

May I know where I can find the doc about setting Tag colors?

Thanks a lot!


Best wishes,
BlueT

Jesús Espino於 2014年11月19日星期三UTC+8下午9時54分40秒寫道:

Alejandro Alonso

unread,
Nov 22, 2014, 7:19:49 AM11/22/14
to BlueT Matthew Lien, tai...@googlegroups.com, Gabriel Veloso Paim
Hello BlueT,

You should use the project API, an example using CURL:

curl -v -X PATCH \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
  -d '{
          "tags_colors": {
                "test": "#FC8EAC"
          }
      }' \
  https://api.taiga.io/api/v1/projects/1 

This PATCH assumes there is only one tag for your project called test. Before making this call you should make a GET to the projects API for sending the full tags_colors dict.

Regards,


For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

Gabriel Paim

unread,
Nov 22, 2014, 11:34:32 AM11/22/14
to tai...@googlegroups.com, bl...@bluet.org, paim.g...@gmail.com
Hi Alejandro,

I did what you suggested.
"Theoretically" the patch worked, but I cannot see the changes in the front end.
I tried already logging out and in again, open the front end in another computer, etc... I still see the old tag colors.
At least I think the patch worked because in the answer of the command, the json-key "tags_colors" has changed properly.

So, here is a couple of questions:

1) Are the new tag colors applied to all tags (including the old ones)? Old tags I refer to the tags created before this patch.

2) Should the tag colors change just after the curl patch or should I execute another command afterwards?

3) A tag color is a concept of a project or a user configuration for a project? I mean, if I change the tag colors, will all users see the new colors or will it be applied just for the one that changed them?

4) Any other suggestion? :)

Thank you.

Jesús Espino

unread,
Nov 22, 2014, 4:15:45 PM11/22/14
to Gabriel Paim, tai...@googlegroups.com, bl...@bluet.org
Hi Gabriel,

Your problem is the local cache of the color of the tags, you can refresh it for example adding a new tag.


2014-11-22 17:34 GMT+01:00 Gabriel Paim <paim.g...@gmail.com>:
Hi Alejandro,

I did what you suggested.
"Theoretically" the patch worked, but I cannot see the changes in the front end.
I tried already logging out and in again, open the front end in another computer, etc... I still see the old tag colors.
At least I think the patch worked because in the answer of the command, the json-key "tags_colors" has changed properly.

So, here is a couple of questions:

1) Are the new tag colors applied to all tags (including the old ones)? Old tags I refer to the tags created before this patch.
Yes, the colors of the tags are a property of the project, the tags only are a list of plain strings.
 

2) Should the tag colors change just after the curl patch or should I execute another command afterwards?
You need that the colors cache is refereshed in your browser.
 

3) A tag color is a concept of a project or a user configuration for a project? I mean, if I change the tag colors, will all users see the new colors or will it be applied just for the one that changed them?
The colors are global to the project, all user will see the same colors (when all refresh their caches). 

4) Any other suggestion? :)
The first one, add a new not existing tag, for example "aaaaaaa", save the object with the new tag, and after it, you can remove the tag.


Thank you.

Thanks to you for using taiga and sending your feedback, probably we have to think about what must be in the localStorage cache.
 

BlueT M. Lien

unread,
Mar 20, 2016, 8:21:36 PM3/20/16
to taigaio
Just faced the same problem yesterday,
so I just wrote a HOWTO in case anyone else need it.
Please let me know if anything's wrong or missing. :-)

http://blog.geeky.name/post/2016/03/21/HOWTO-Set-Tag-color-on-Taiga.io
Reply all
Reply to author
Forward
0 new messages