API Endpoints
Fracttal →

Query pending tasks

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.

ParameterTypeRequiredDescription
untilTextOptionalEnd date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03′. (Default one month).
code_locationTextOptionalAsset location code
startIntegerOptionalInitial record number to be displayed by the query.
limitIntegerOptionalFinal record number to be returned by the query.

Output parameters

ParmeterTypeDescription
id_taskNumberTask ID
id_itemNumberAsset Id
item_descriptionTextDescription of asset
group_task_descriptionTextTask plan
is_activeBooleanEnabled or Disabled from asset
visible_to_allTextActive visible to all
parent_descriptionTextLocation of the asset
date_maintenanceTextCalculated date
trigger_descriptionTextEvent that executed the task
delayTextTime overdue
descriptionTextTask description
durationTextEstimated duration in seconds
tasks_types_main_descriptionTextType of task
priorities_descriptionTextPriority of the task
tasks_types_descriptionTextClassification 1 of the task
tasks_types_2_descriptionTextClassification 2 of the task
num_resourcesTextAmount of resources in the task
last_date_maintenanceTextLast programming date
task_noteTextNote on the task
requested_byTextRequested by (if the task was executed from a request)
id_requestTextRequest ID (if the task was executed from a request)
event_dateTextDate of event
cal_date_maintenanceTextScheduled date
replay_counterNumberNumber of task executions
replay_counter_cyclesNumberNumber 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

Language