assign_resource
Assign a resource to a task, with optional fractional allocation of working hours.
Instructions
Assign a resource to a task.
Args:
task_id: uniqueID of the task.
resource_id: uniqueID of the resource.
units: Optional fractional allocation (1.0 = 100% of a staff
resource's working hours). Maps to the documented
assignment.unitsAssigned accessor (Number, read/write).
Round-trips cleanly across JXA call boundaries.
Returns:
JSON {task_id, resource_id, units}. units is read back from
assignment.unitsAssigned after the write — a true round-trip.
When units is omitted on input, the returned value reflects
whatever default OmniPlan applied (typically 1.0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| resource_id | Yes | ||
| units | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |