create_work_order
Open a work order for an asset after checking existing work orders to avoid duplicates. Record corrective, preventive, or inspection tasks with priority and due date.
Instructions
Create a new work order (status open). Check list_work_orders for the asset first to avoid duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | Username performing the action, e.g. 'tech.a'. Never guess one. | |
| title | Yes | 5-120 characters. | |
| wo_type | No | Kind of work. | corrective |
| asset_id | Yes | Asset id such as AST-0001. | |
| due_date | No | YYYY-MM-DD, today or later. | |
| priority | No | Work-order priority. | medium |
| description | No | What is wrong / what to do, up to 2000 characters. | |
| source_alarm_id | No | Alarm that triggered this work. Must belong to the same asset and not be cleared. An alarm can have only one active work order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| work_order | Yes |