Skip to Content
Menu
This question has been flagged
1 Reply
4644 Views

Hello,

I am trying to change some colors in the project timeline module according  to the value of "stage_id".

the problem is I don't know how to retrieve the values of "stage_id" for each kanban stage.

It does not seem to be equal to the stage name.

Thank you in advance for your help.

Kazu

Avatar
Discard
Author Best Answer

Hello,

I finally got the stage_id value using psql. the problem is the color set does not work.

if I use the following xml:

<timeline date_start="date_start" date_stop="date_end" default_group_by="project_id" event_open_popup="true" colors="#ec7063: user_id == false; #2ecb71:stage_id == 4;"/>

nothing changes. but If I use

<timeline date_start="date_start" date_stop="date_end" default_group_by="project_id" event_open_popup="true" colors="#ec7063: user_id == false; #2ecb71:stage_id != 4;"/>

everything turns green.

Finally If I use "kanban_state" instead of "stage_id", it works as expected:

<timeline date_start="date_start" date_stop="date_end" default_group_by="project_id" event_open_popup="true" colors="#ec7063: user_id == false; #2ecb71:kanban_state == 'done';"/>

But I need to reference the task stage and not the kanban state.


Help please!


Kazu

Avatar
Discard