List candidates
rillsoft_task_resource_candidate_listReports per task the roles and matching employee/machine candidates with free capacity, cost, and conflicts to guide resource assignment.
Instructions
Reports per task the roles attached to it (quantity, assigned, balance, balanceOpen) and the candidates matching them - the same set the task dialog shows after the role and team filter. Per candidate: id, name, code, teamId, free (free capacity within the task period), cost, alreadyAssigned, scheduleConflict and reason where it cannot be assigned; with type employee also availability and efficiency. Read-only, no undo step. Filling the slots afterwards goes through rillsoft_task_employee_assignment_set, rillsoft_task_machine_assignment_set or rillsoft_task_resource_assignment_fill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | resource type; employee by default. Here resource covers exactly these two - an assistant works on concrete people and machines. The other four resource types (role, team, material, machine_role) are read and written through rillsoft_resource_usage_list and rillsoft_resource_usage_set | employee |
| roleIds | No | ids of the roles or machine roles to filter on; empty means every one attached to the task. On opening, the task dialog ticks the first role only - to reproduce exactly its list, pass that id explicitly | |
| taskUuid | No | UUID of one task; taskUuids is the alternative | |
| taskUuids | No | UUIDs of several tasks; leave both empty for every task of the visible project or subproject | |
| searchText | No | filter by name, like the search field of the dialog | |
| teamFilter | No | narrow further to the team of the task or of its subproject; omit it to get the preset of the dialog (on as soon as a team is carried) | |
| matchingOnly | No | true (the default) = only resources that carry one of the roles; false = the unfiltered master data, as with the role tick cleared |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | resource type | |
| tasks | Yes | the tasks evaluated |