> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mileapp.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Assign Task

## Overview

The **Assign Task** automation type automatically assigns tasks to specific users when an automation event is triggered. This eliminates manual task assignment and ensures work is immediately distributed to the right team members.

<div align="center">
  <img src="https://mintcdn.com/mileapp-c1584fbc/jvVKvpPwiK1qABos/images/assign-task-automation-type.png?fit=max&auto=format&n=jvVKvpPwiK1qABos&q=85&s=6be4e41aea339b497584e8a95fff01e5" alt="Assign Task automation configuration" width="600" data-path="images/assign-task-automation-type.png" />

  <p><i>Assign Task automation configuration showing Hub and Assignee field settings</i></p>
</div>

## When to Use Assign Task

Use this automation type when you need to:

* Automatically assign newly created tasks to specific field workers
* Distribute work based on location (hub)
* Ensure tasks are immediately assigned without manual intervention
* Implement automatic workload distribution rules

## Event Availability

Assign Task automation type is **only available** for:

* **On Task Created** - Automatically assign tasks when they are created

## Configuration Fields

When you select Assign Task as the automation type, you must configure two required fields:

### 1. Hub \*

Select the hub where the assignee works. This ensures the task is assigned to a user in the correct location.

**Purpose:**

* Filters available assignees to users in the selected hub
* Ensures tasks are assigned to field workers in the appropriate location
* Helps organize tasks by geographic or operational areas

### 2. Assignee \*

Select the specific user who will receive the task assignment.

**Options:**

* Individual field workers
* Team leads or supervisors
* Any user with appropriate permissions in the selected hub

**How it works:**

* The dropdown shows users who have access to the selected hub
* When automation triggers, the task will be immediately assigned to this user
* The assignee will receive notifications based on their notification settings

## Use Cases

### 1. Location-Based Assignment

**Scenario:** Automatically assign tasks to field workers based on hub location.

**Configuration:**

* **Event:** On Task Created
* **Flow:** Delivery
* **Automation Type:** Assign Task
* **Hub:** Jakarta
* **Assignee:** Specific field worker in Jakarta

**Benefit:** Ensures tasks are assigned to workers in the correct geographic area without manual routing.

### 2. Workload Distribution

**Scenario:** Distribute incoming tasks to specific team members to balance workload.

**Configuration:**

* **Event:** On Task Created
* **Flow:** Service Calls
* **Automation Type:** Assign Task
* **Hub:** Customer Service Hub
* **Assignee:** Designated service representative

**Benefit:** Immediate task assignment prevents delays in service delivery.

### 3. Specialized Task Assignment

**Scenario:** Assign technical tasks to specialists automatically.

**Configuration:**

* **Event:** On Task Created
* **Flow:** Technical Repair
* **Automation Type:** Assign Task
* **Hub:** Maintenance Hub
* **Assignee:** Lead technician

**Benefit:** Ensures specialized work goes directly to qualified personnel.

## How It Works

1. **Event Occurs:** A task is created that matches the Flow specified in automation
2. **Automation Triggers:** The Assign Task automation is activated
3. **Assignment Executed:** Task is automatically assigned to the specified user in the specified hub
4. **Notification Sent:** Assignee receives notification about the new task
5. **Task Appears in Queue:** Task immediately appears in the assignee's task list

## Important Notes

### Assignment Behavior

* **Immediate Assignment:** Tasks are assigned as soon as they are created
* **No Reassignment:** If task is already assigned, the automation will not reassign it
* **Single Assignee:** Each automation assigns to one specific user
* **Hub Dependency:** Assignee must have access to the specified hub

### For Advanced Assignment Logic

If you need more sophisticated assignment rules, consider:

* Using multiple Assign Task automations with different Rules
* Implementing custom assignment logic via Webhook automation type
* Using API integrations for dynamic assignment algorithms

## Best Practices

1. **Clear Hub Selection:** Ensure the hub matches the geographic or operational area of the assignee.

2. **Verify User Permissions:** Confirm the selected assignee has appropriate permissions to view and work on tasks in the selected hub.

3. **Test Assignments:** Create test tasks to verify automation assigns to the correct user.

4. **Use Rules for Filtering:** Combine with automation Rules to assign different types of tasks to different users (e.g., urgent tasks to senior staff).

5. **Monitor Assignment Logs:** Regularly review automation logs to ensure assignments are working as expected.

6. **Backup Assignment:** Have a manual assignment process in place in case automation fails or needs to be temporarily disabled.

7. **Communicate with Team:** Ensure assigned users know they will receive automatic assignments and understand the workflow.

## Troubleshooting

**Issue:** Task is not being assigned when created

**Possible Causes:**

* Automation is not set to Active
* Task's Flow does not match automation's Flow configuration
* Rules in automation exclude the task
* Assignee no longer has access to the specified hub

**Solution:**

* Verify automation toggle is ON
* Check Flow settings match task being created
* Review automation Rules for conflicts
* Confirm assignee still has hub access

**Issue:** Wrong user is receiving assignments

**Possible Causes:**

* Incorrect assignee selected in automation configuration
* Multiple automations with conflicting assignment rules
* User account has changed hub assignments

**Solution:**

* Edit automation to select correct assignee
* Review all active automations for the same Flow
* Verify user's current hub assignments in user management

## Related Documentation

* [Automation Events - On Task Created](/pages/automation/automation-event/on-task-created)
* [Create and Assign Task](/pages/automation/automation-type/create-and-assign-task)
* [Automation Introduction](/pages/automation/introduction-to-automation)
* [User Management](/pages/setting/user-management/introduction)
* [Hub Management](/pages/setting/hub-management)

## Frequently Asked Questions

**Q: Can I assign tasks to teams instead of individual users?**

A: No, Assign Task automation assigns to individual users only. To distribute to a team, create multiple automations for different team members or use Rules to filter which tasks go to which user.

**Q: Can the same task be assigned to multiple users?**

A: No, each Assign Task automation assigns to one user. If you need multiple assignments, you would need to create separate tasks using Create and Assign Task automation type.

**Q: What happens if the selected assignee is no longer active?**

A: The automation will fail to assign the task. Monitor automation logs regularly and update assignee selections when team members change.

**Q: Can I use Assign Task for events other than On Task Created?**

A: No, Assign Task is only available for On Task Created event. For other events, consider using Create and Assign Task or other automation types.

**Q: How is this different from Create and Assign Task?**

A: Assign Task assigns an **existing task** that was just created. Create and Assign Task creates a **new task** and assigns it. Use Assign Task when you want to assign the triggering task itself.
