returns all tasks assigned to the resource
resourceId | string|number | the id of the resource |
array | an array of objects with tasks assigned to the resource |
gantt.getResourceAssignments("6"); // -> see details
The method returns an array with objects as in:
[
{task_id: 5, resource_id: "6", value: 5},
{task_id: 18, resource_id: "6", value: 2},
{task_id: 19, resource_id: "6", value: 3},
{task_id: 21, resource_id: "6", value: 5}
]
Each object contains the following properties: