Default Dynamic Colors
The following colors are applied automatically when progress coloring is enabled (the default):| Color | Condition | Meaning |
|---|---|---|
| Red | Work item is unresolved AND the end date is in the past | Task is overdue — it should have been completed already |
| Orange | Work item is unresolved AND the end date is in the future AND current progress is behind schedule | Task is delayed — progress does not match the expected completion rate |
| Blue | Work item is unresolved AND schedule and progress are on track | Task is on track — optimistic schedule and progress alignment |
| Gray | Work item is resolved (completed in Polarion) | Task is resolved — no further action required |
| Light Blue | Work item has no scheduled start date | Task is unplanned — start date defaults to today |
| Green | Work item is configured as a project type via Item Script | Task is a project item — schedule derived from children |
Starting with version 25.10.2, the Gantt chart visually flags tasks in red when the assigned user has no available working days during the scheduled period. This helps planners immediately identify unrealistic schedules caused by calendar conflicts.
Color Decision Flow
Static vs. Dynamic Coloring
There are two task color properties with different behavior:| Property | Type | Behavior | Use Case |
|---|---|---|---|
task.color | String | Static — overrides ALL colors, including progress-based coloring | Force a specific color regardless of task status |
task.taskColor | String | Dynamic — only overrides the default blue color | Change color while preserving red/orange/gray progress indicators |
Disabling Dynamic Colors
To use fully static coloring where onlytask.color values from the Item Script determine task bar colors, add the following to the Gantt Config Script:
show_progress_colors is set to false, the Gantt chart does not apply the automatic red/orange/blue/gray coloring. Only colors explicitly set via task.color in the Item Script are used.
Script-Based Color Overrides
Color by Type and Status
Usetask.color for fully static coloring (requires gantt.config.show_progress_colors=false in the Gantt Config Script):
Item Script:
Color by Assignee
Usetask.taskColor to change the base color while keeping progress indicators:
Item Script:
Highlight Overdue Unresolved Items (Static Mode)
When dynamic colors are off, manually flag overdue items: Gantt Config Script:Resource View Marker Colors
The resource view uses separate color assignments for allocation markers:| CSS Class | Default Color | Condition |
|---|---|---|
marker_ok | Green (#4CAF50) | Resource utilization is within capacity |
marker_over | Red/Orange | Resource is over-allocated (load exceeds capacity) |
resourceMarkersColorConfig with colors and percentages arrays that define threshold breakpoints and corresponding color values.
Marker CSS Classes
Timeline milestone markers receive CSS classes based on their type:| CSS Class | Applied To | Description |
|---|---|---|
gantt_marker | All markers | Base class for all marker elements |
today | Today marker | Applied to the automatic today-date vertical line |
plan | Plan markers | Applied to markers synced from plan boundaries |
Named color (e.g., blue) | Custom markers | Applied when a color is set via setColor() |
Configuration Example
A complete setup combining static coloring with custom color logic: Gantt Config Script:Related Pages
- Item Script API —
task.colorandtask.taskColorproperty reference - Gantt Config Script API —
gantt.config.show_progress_colorssetting - Color and Styling Properties — global color administration properties
- Default Configuration Values — default
progress_coloringvalue - CSS Classes and DOM Structure — marker CSS classes for custom styling
Sources
Sources
KB ArticlesSource Code
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Marker.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Aresource-view/ganttMarkersColorConfigValidation.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/default.jsonprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Aresource-view/item-count.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/markersStyles.cy.ts