returns an array of baselines of a specific task from the datastore
taskId | string | number | the task id |
Baseline[] | an array of baseline objects |
Available only in PRO Edition
gantt.getTaskBaselines(5); // -> see details
This functionality is available in the PRO edition only.
The getTaskBaselines method is not available if the baselines config is disabled.
The method returns an array with the baseline objects that have the following properties:
For example:
[
{
task_id: 5,
id: 1,
duration: 2,
start_date: "03-04-2019 00:00",
end_date: "05-04-2019 00:00"
},
{
task_id: 5,
id: 2,
duration: 1,
start_date: "06-04-2019 00:00",
end_date: "07-04-2019 00:00"
}
]
added in v9.0
Back to top