getTaskBaselines

returns an array of baselines of a specific task from the datastore

Baseline[] getTaskBaselines(string | number taskId);
taskIdstring | numberthe task id
Baseline[]an array of baseline objects

Available only in PRO Edition

Example

gantt.getTaskBaselines(5); // -> see details

Related samples

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 objects as in:

[
    {
        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"
    }
]
See also
Change log

added in v9.0

Back to top