This API is used to consult the list of pending tasks. It is possible to filter by scheduled date, by default it shows the pending tasks in a range of 1 month.
Input parameters
The following input parameters are optional, they are used to paginate the query. By default Fracttal API returns only 100 records.
| Parameter | Type | Required | Description | 
|---|---|---|---|
| until | Text | Optional | End date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03′. (Default one month). | 
| code_location | Text | Optional | Asset location code | 
| start | Integer | Optional | Initial record number to be displayed by the query. | 
| limit | Integer | Optional | Final record number to be returned by the query. | 
Output parameters
| Parmeter | Type | Description | 
|---|---|---|
| id_task | Number | Task ID | 
| id_item | Number | Asset Id | 
| item_description | Text | Description of asset | 
| group_task_description | Text | Task plan | 
| is_active | Boolean | Enabled or Disabled from asset | 
| visible_to_all | Text | Active visible to all | 
| parent_description | Text | Location of the asset | 
| date_maintenance | Text | Calculated date | 
| trigger_description | Text | Event that executed the task | 
| delay | Text | Time overdue | 
| description | Text | Task description | 
| duration | Text | Estimated duration in seconds | 
| tasks_types_main_description | Text | Type of task | 
| priorities_description | Text | Priority of the task | 
| tasks_types_description | Text | Classification 1 of the task | 
| tasks_types_2_description | Text | Classification 2 of the task | 
| num_resources | Text | Amount of resources in the task | 
| last_date_maintenance | Text | Last programming date | 
| task_note | Text | Note on the task | 
| requested_by | Text | Requested by (if the task was executed from a request) | 
| id_request | Text | Request ID (if the task was executed from a request) | 
| event_date | Text | Date of event | 
| cal_date_maintenance | Text | Scheduled date | 
| replay_counter | Number | Number of task executions | 
| replay_counter_cycles | Number | Number of executions in the cycle | 
Example:
Request: (GET)https://app.fracttal.com/api/tasks_todo/?until=2019-09-30
{
    "success": true,
    "message": "200",
    "data": [
        {
            "id": 1076,
            "id_task": 962,
            "id_item": 1,
            "item_description": "REFRIGERADOR DE VACUNAS SAMSUNG C13 D 000000 Región Metropolitana Chile { 7543 }",
            "code": "7543",
            "id_group_task": null,
            "group_task_description": null,
            "is_active": true,
            "visible_to_all": false,
            "parent_description": "// ",
            "date_maintenance": "2020-08-12T05:00:00+00:00",
            "trigger_description": "NO_SCHEDULE_TASK",
            "delay": 456,
            "description": "Tarea con recursos ( Tarea No Planificada )",
            "duration": 3000,
            "tasks_types_main_description": "Limpieza",
            "priorities_description": "MEDIUM",
            "tasks_types_description": "Camilla con movilización reducida",
            "tasks_types_2_description": null,
            "num_resources": 1,
            "last_date_maintenance": "2020-08-12T16:57:00+00:00",
            "requested_by": "Laura",
            "task_note": "",
            "id_request": null,
            "event_date": "2020-08-12T16:57:00+00:00",
            "cal_date_maintenance": "2020-08-12T05:00:00+00:00",
            "replay_counter": 0,
            "task_failure": null,
            "notes": null,
            "id_company": 69
        },
        {
            "id": 1163,
            "id_task": 986,
            "id_item": 49210,
            "item_description": "MAQUINA 1      { AMCO-01 }",
            "code": "AMCO-01",
            "id_group_task": 5,
            "group_task_description": "Mantenimiento Línea de Producción",
            "is_active": true,
            "visible_to_all": false,
            "parent_description": "// AMCO/ ",
            "date_maintenance": "2021-08-26T05:00:00+00:00",
            "trigger_description": "DATE$EVERY$5$MONTHS",
            "delay": 77,
            "description": "Manto vehículo",
            "duration": 600,
            "tasks_types_main_description": "Mantenimiento",
            "priorities_description": "MEDIUM",
            "tasks_types_description": null,
            "tasks_types_2_description": null,
            "num_resources": 0,
            "last_date_maintenance": "2021-03-26T05:00:00+00:00",
            "requested_by": null,
            "task_note": null,
            "id_request": null,
            "event_date": null,
            "cal_date_maintenance": "2021-08-26T05:00:00+00:00",
            "replay_counter": 0,
            "task_failure": null,
            "notes": null,
            "id_company": 69
        }],
  "total": 2
}Test It
