Skip to main content

resource_assignment_store

info

This functionality is available in the PRO edition only.

Description

Specifies the name of the dataStore which stores resource assignments

resource_assignment_store: string

Example

var assignmentStore = gantt.getDatastore(gantt.config.resource_assignment_store);

Default value: "resourceAssignments"

Details

The datastore is created automatically.

The datastore is only created when the process_resource_assignments config is enabled.

The datastore can be used to modify resource assignments from the code:

var assignmentStore = gantt.getDatastore(gantt.config.resource_assignment_store);

assignmentStore.addItem({
resource_id: 5,
task_id: 2,
value: 4
});
assignmentStore.removeItem(assignment.id);
assignmentStore.updateItem(assignment.id);

// after assignments are updated in the datastore, you need
// to call `updateTaskAssignments` to write changes to the task object:
gantt.updateTaskAssignments(taskId);

Change log

  • added in v7.1