get https://app.fracttal.com/api/work_orders_subtasks
Through this API the list of subtasks can be consulted.
Filters can be made by:
- WO ID (folio) WO status (WOs in process, WOs under review and WOs completed) Date range and you can select by which type of date it will be applied (Creation date, Start date or End date).
Input Parameters
Parameter | Type | Required | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
folio | Text | Optional | Id de la WO. | ||||||||
since | Text | Optional | Initial date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example: '2016-07-12T20:00:00-03'. (Default 30 days before) | ||||||||
until | Text | Optional | Fecha final de la consulta. Formato: 'YYYY-MM-DDTHH:MM:SS-UTC' Ejemplo:'2016-07-12T20:00:00-03'. (Por defecto la fecha actual. | ||||||||
type_date | Text | Optional | Type of date to make the query. It can be: .
| ||||||||
ot_status | Integer | Optional | Number indicating the status of the ots (1: WOs in process, 2: WOs under Review, 3: WOs Finalized, 4: WOs Cancelled). | ||||||||
start | Integer | Optional | Initial record number to be displayed by the query. It is used to do the record pagination. It is the number where the pagination starts. By default it is 0 | ||||||||
limit | Integer | Optional | Final record number to be returned by the query. |
Output parameters
Parameter | Type | Description |
---|---|---|
id_work_orders_tasks_form_items | Number | Subtask ID within the WO |
value | Text | Subtask value |
description | Text | Subtask description |
unit_description | Text | Description of the meter unit. Applies for meter type subtask. |
units_code | Text | Meter unit code. Applies when it is a meter type subtask. |
order_number | Number | Position in which the subtask is displayed |
is_required | Boolean | Subtask is mandatory |
wo_folio | Text | Id de la WO |
creation_date | Text | Date of creation of the WO |
initial_date | Text | Task start date |
final_date | Text | End date of task |
id_status_work_order | Number | Work order status |
id_task_form_item_type | Number | Tipo de subtarea |
Example:
Request: (GET) https://app.fracttal.com/api/work_orders_subtasks/?folio=OT-67-2017
{
"success": true,
"message": "200",
"data": [
{
"id_work_order": 1356,
"id_work_order_task": 2077,
"id_work_orders_tasks_form_items": 9464,
"value": "{\"latitude\":-33.4213488,\"longitude\":-70.6044643,\"hour\":\"2017-05-25 12:17 PM\",\"address\":\"Calle San Pio X 2464, Providencia, Santiago Metropolitan, Chile\"}",
"description": "LLEVAR EL VEH\u00cdCULO A ESTACI\u00d3N DE REPOSICI\u00d3N DE COMBUSTIBLE",
"unit_description": null,
"units_code": null,
"order_number": 1,
"is_required": false,
"meter_description": null,
"last_value": null,
"wo_folio": "OT-67-2017",
"creation_date": "2017-05-25T16:16:55.179077+00:00",
"id_status_work_order": 3
},
{
"id_work_order": 1356,
"id_work_order_task": 2077,
"id_work_orders_tasks_form_items": 9465,
"value": "true",
"description": "APAGAR MOTOR DEL VEH\u00cdCULO",
"unit_description": null,
"units_code": null,
"order_number": 2,
"is_required": false,
"meter_description": null,
"last_value": null,
"wo_folio": "OT-67-2017",
"creation_date": "2017-05-25T16:16:55.179077+00:00",
"id_status_work_order": 3
},
{
"id_work_order": 1356,
"id_work_order_task": 2077,
"id_work_orders_tasks_form_items": 9466,
"value": "",
"description": "ESCANEAR C\u00d3DIGO",
"unit_description": null,
"units_code": null,
"order_number": 3,
"is_required": false,
"meter_description": null,
"last_value": null,
"wo_folio": "OT-67-2017",
"creation_date": "2017-05-25T16:16:55.179077+00:00",
"id_status_work_order": 3
},
], "total": 3 }
Test It