What is a Task?
A task is an item of work intended for completion by an assignee. It can embody activities like pickups, deliveries, planning, inspections, sales visits, or other work-related actions within your organization. Tasks encompass essential attributes, including IDs, flow, time, status indicators, assignee information, order index, and other pertinent data. The content of a task is configurable based on your specified flow settings. For instance, tasks can serve as visits during the route optimization process, functioning as pivotal elements. The task can also represent a visit in route optimization, please follow this link to read more detail. To see the details of task object, please follow this link.Task Types
- Pickups - Collecting items from a location
- Deliveries - Delivering items to a destination
- Inspections - Site or equipment inspections
- Sales visits - Customer visits for sales activities
- Planning - Route planning and optimization
- Other work-related actions within your organization
Task Attributes
Tasks encompass essential attributes including:| Attribute | Description |
|---|---|
_id | Unique task identifier |
flow | The flow template used for this task |
status | Current task status |
assignee | User assigned to complete the task |
hubId | Hub where the task belongs |
taskTime | Scheduled time for the task |
orderIndex | Order position for sequencing |
attributes | Custom fields defined by the flow |
The content of a task is configurable based on your specified flow settings. Tasks can also serve as visits during the route optimization process.
Common Operations
List Tasks
Retrieve all tasks with filtering options
Create Task
Create a new task
Update Task
Update an existing task
Assign Task
Assign a task to a user
Bulk Operations
MileApp supports bulk operations for efficient task management:- Bulk Create - Create multiple tasks in a single request
- Bulk Update - Update multiple tasks at once
- Bulk Assign - Assign multiple tasks to users
- Bulk Move - Move multiple tasks to different hubs
- Bulk Delete - Delete multiple tasks
Integration with Route Optimization
Tasks can serve as visits in the route optimization module. When you create tasks with location data, they can be:- Included in route optimization calculations
- Assigned to vehicles based on constraints
- Sequenced for optimal delivery routes
Related Resources
- Location History - Track task execution locations
- Task Schedule - Create recurring tasks
- Flow - Configure task templates