Share machine
rillsoft_machine_sharing_createMake several tasks share one machine or machine role so the resource is consumed once instead of multiple times, replacing individual assignments with a shared entry.
Instructions
Lets several tasks share one machine or machine role: the individual assignments go away and the resource is consumed once instead of n times - one crane used by three tasks is one crane. Beware, this loses information: quantity and utilization of the shared entry are the maximum over all participants, exactly as in the 'Share' menu. rillsoft_machine_sharing_release is therefore not an inverse - a task taken back out gets the shared value, not its original one. Afterwards the resource appears in rillsoft_project_tree_get under sharedAssignments[] and no longer under machineAssignments[] or machineRoleAssignments[]. In a portfolio all tasks must belong to the same project - shared use stays within one project. One undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | shared use is computed for these two kinds only | |
| taskUuids | Yes | UUIDs of the tasks that shall share the resource from now on; each of them has to carry it on its own today | |
| resourceId | Yes | id of the machine role or machine from rillsoft_resource_pool_catalog_list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | kind of the shared resource | |
| tasks | Yes | the tasks involved after the change | |
| resourceId | Yes | id of the machine role or machine |