Enable Deadlines
Navigate to Widget Properties > Deadlines and configure the following parameters:| Parameter | Description | Required |
|---|---|---|
ShowDeadlines | Enable deadline marker display on the Gantt chart | Yes (set to true) |
Deadline Field | The Polarion work item field that holds the deadline date | Yes |
Passed Deadline Color | CSS color applied to items where the end date extends past the deadline | No (default styling applies) |
Deadline Field and Passed Deadline Color parameters only appear after you set ShowDeadlines to true. This progressive disclosure keeps the parameter panel clean when deadlines are not in use.
Set Deadline Field to any date-type field on your work items, such as dueDate or a custom date field. The field must contain a date value for the deadline marker to appear.
Understand Overdue Coloring
WhenShowDeadlines is enabled, the Gantt compares each task’s end date against its deadline field value. If the end date extends beyond the deadline, the task bar is styled with the Passed Deadline Color and receives an overdue visual indicator.
Add a Deadline Column to the Grid
You can display deadline dates in the grid panel by adding a column with thedeadline template. Navigate to Widget Properties > Table > Columns and add a column with these settings:
| Parameter | Value |
|---|---|
field | Your deadline field ID (e.g., dueDate) |
render | deadline |
Configure the Passed Deadline Color
SetPassed Deadline Color to any valid CSS color value. Common choices include:
- Named colors:
red,orange,darkred - Hex codes:
#e53935,#ff5722
Verification
You should now see deadline markers on the Gantt timeline for work items that have a value in the configured deadline field. Items whose end date extends past the deadline should appear in the configured color. If you added a deadline column, verify that overdue dates display in red text.See also
- Configure Grid Columns
- Configure Item Colors
- Write Item Scripts
- Create and Configure Markers
- Set Up a Basic Gantt Chart
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Rewritten Tests/testGanttDeadlines.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetDependenciesProcessor.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Task.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetConfig.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidget.java