This API is used to query the list of pending tasks. You can filter by scheduled date, by default it shows the pending tasks in a range of 1 month.

Method

GET

EndPoint

https://app.fracttal.com/api/tasks_todo/

Input Parameters

The following input parameters are optional, which are used to perform query pagination. By default Fracttal API returns only 100 records.

Parameter

Field type

Required

Description

until

Text

Optional

End date of the query. Format: ‘YYYY-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 that the query will return.

limit

Integer

Optional

Final record number that the query will return.

Output parameters

Parameter

Field type

Description

id_task

Number

Task ID

id_item

Number

Asset ID

item_description

Text

Asset description

group_task_description

Text

Task list

is_active

Boolean

Enabled or Disabled of the asset

visible_to_all

Text

Asset visible to all

parent_description

Text

Asset location

date_maintenance

Text

Calculated date

trigger_description

Text

Event that executed the task

delay

Text

Delay time

description

Text

Description of the task

duration

Text

Estimated duration in seconds

tasks_types_main_description

Text

Task type

priorities_description

Text

Task priority

tasks_types_description

Text

Task Rank 1

tasks_types_2_description

Text

Rank 2 of the task

num_resources

Text

Number of resources in the task

last_date_maintenance

Text

Last scheduling date

task_note

Text

Task Note

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

Event Date

cal_date_maintenance

Text

Scheduled date

replay_counter

Number

Number of executions of the task

replay_counter_cycles

Number

Number of executions in the cycle

Example:

Request: https://app.fracttal.com/api/tasks_todo/?until=2019-09-30

Example Response:

{ 
"success": true,
"message": "200",
"data": [
{
"id": 1076,
"id_task": 962,
"id_item": 1,
"item_description": " SAMSUNG VACCINE REFRIGERATOR 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": "Task with resources (Unplanned Task))",
"duration": 3000,
"tasks_types_main_description": "Cleaning",
"priorities_description": "MEDIUM",
"tasks_types_description": " Stretcher with reduced mobilization",
"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": "MACHINE 1 { AMCO-01 }",
"code": "AMCO-01",
"id_group_task": 5,
"group_task_description": "Production Line Maintenance","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": " Maintenance",
"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
}

Did this answer your question?