Forum Discussion
Thomas1966
Jan 18, 2023Copper Contributor
Color of tasks in Timeline based on color of task in Gantt Chart?
Hi all, I am new here and I hope you can help me! I want to know if it is possible that if a task is shown in the timeline view, the color of this task has automatically the same color like ...
John-project
Jan 18, 2023Silver Contributor
Thomas,
Is it possible? Probably, but it would take a macro to do so. And no, I don't have an existing code that would do it. One of the problematic issues is that it is not possible to directly "read" the bar color of a Gantt bar so detecting the color of a Gantt bar to then replicate using the "fill" color for the "bar" in the timeline, must be done indirectly. I'd identify the Gantt bar color using a Flag field (e.g. Flag1, Flag2, etc.). There are 20 of those available and I doubt you would need more colors than that for the Timeline display, unless you have a really busy and complex Timeline display.
John