Deadlines Widget Parameters
How Deadline Coloring Works
The deadline coloring logic compares the task’s end date against the deadline field value:The passed deadline color indicates a schedule violation — the task’s planned end date extends beyond its due date. It does not compare the deadline against today’s date. To implement date-relative deadline coloring based on the current date, use a custom Item Script.
Deadline Column
When deadlines are enabled, you can add a dedicated deadline column to the Gantt grid using the Column Configuration Parameters. The deadline column:- Displays the deadline date in a compact format (e.g.,
Sep-09,Nov-30). - Shows the date in red text when the task is overdue (end date past deadline).
- Uses the
deadlinetemplate ID in the column configuration.
Supported Field Types
TheDeadline Field parameter accepts the following Polarion custom field types:
For a full list of supported field types, see Supported Field Types.
Configuration Example
To enable deadline tracking using a custom field calleddueDate:
- Open Widget Properties for the Gantt widget.
- In the Deadlines section:
- Set Show Deadlines to
Yes. - Set Deadline Field to
dueDate. - Set Passed Deadline Color to
#e53935(red).
- Set Show Deadlines to
- Save the widget parameters.
dueDate value now display a deadline marker on the chart. If a task’s end date extends past the dueDate, the task bar turns red.
Dynamic Deadline Coloring via Item Script
For more advanced deadline logic (e.g., coloring based on proximity to the deadline or current date comparison), use the Item Script API:The Item Script approach provides more control than the built-in
Passed Deadline Color parameter. Verify the exact util.getDate() API in your Gantt version.Related Pages
- Column Configuration Parameters — adding a deadline column to the grid
- Item Script API — custom deadline coloring logic
- Color and Styling Properties — global color configuration
- Data Mapping Parameters — mapping work item fields for scheduling