Assign material
rillsoft_task_material_assignment_setAssign or update material from master data to a task, or remove assignment with quantity 0; cost derives from quantity and calculation mode.
Instructions
Assigns material from the existing master data to a task, or removes that assignment with quantity 0. Material carries neither utilization nor capacity: it moves no dates but feeds the cost through quantity and calculation mode. Calling it again changes the existing assignment. One undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | remark on this assignment | |
| quantity | Yes | quantity in the metric of the material (> 0); 0 removes the assignment | |
| taskUuid | Yes | UUID of the task | |
| materialId | Yes | id of the material from rillsoft_resource_pool_catalog_list | |
| calculationMode | No | calculation mode: fixed, duration, effort, deliverable (defaults to fixed). It says how 'quantity' becomes the consumption: fixed = quantity, duration = duration[h] * quantity, effort = effort[h] * quantity, deliverable = output quantity * quantity |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wbs | Yes | WBS code | |
| name | Yes | name | |
| note | No | hint on the effect of the calculation mode; only when one applies | |
| uuid | Yes | UUID of the element | |
| start | Yes | start, DD.MM.YYYY hh:mm | |
| finish | Yes | finish, DD.MM.YYYY hh:mm | |
| number | Yes | number of the element; unique even for split tasks | |
| materialAssignments | Yes | the material assignments of the task after the change |