# Get all

### 🎯 **What does this operation do?**

This operation fetches all tasks within a workspace, allowing:

✅ Obtain a complete list of registered tasks.\
✅ Apply filters to search for specific tasks.\
✅ Use the task list in automated flows.

***

### 📂 **Fields and Data Types**

| **Field**            | **Data Type** | **Required?** | **Description**                                                                                              |
| -------------------- | ------------- | ------------- | ------------------------------------------------------------------------------------------------------------ |
| **Workspace ID**     | `string`      | ✅ Yes         | ID of the workspace where the tasks are stored.                                                              |
| **Page**             | `number`      | ❌ No          | Sets the results page for pagination.                                                                        |
| **Limit**            | `number`      | ❌ No          | Maximum number of tasks returned per page.                                                                   |
| **Sorting**          | `string`      | ❌ No          | Field by which the results will be sorted (`created_at`, `updated_at`, `finished_at`, `start_date`, `name`). |
| **Sort Direction**   | `string`      | ❌ No          | Sets the order (`asc` for ascending, `desc` for descending).                                                 |
| **Status**           | `string`      | ❌ No          | Filter tasks by status (`pending`, `in_progress`, `done`, `failed`).                                         |
| **Responsible User** | `string`      | ❌ No          | Filter tasks assigned to a specific user.                                                                    |
| **Organization**     | `string`      | ❌ No          | Filter tasks linked to an organization.                                                                      |
| **Person**           | `string`      | ❌ No          | Filter tasks linked to a person.                                                                             |
| **Linked Card**      | `string`      | ❌ No          | Filter tasks associated with a card.                                                                         |
| **No Date**          | `boolean`     | ❌ No          | Sets whether to only fetch tasks without a defined date.                                                     |
| **Task Name**        | `string`      | ❌ No          | Filter by task name.                                                                                         |
| **Description**      | `string`      | ❌ No          | Filter by keywords in the task description.                                                                  |
| **Start Date**       | `datetime`    | ❌ No          | Filter tasks from a specific start date.                                                                     |
| **Finish Date**      | `datetime`    | ❌ No          | Filter tasks up to a specific completion date.                                                               |

***

### ✅ **Step-by-step to Configure the "Get All" Operation**

#### 1️⃣ **Access the Component**

1. In **Hablla Studio**, open the automation flow where you want to fetch all tasks.
2. Add the block **Tasks**.
3. In **right side panel**, select the operation **"Find All"**.

#### 2️⃣ **Fill in the Required Fields**

🔹 **Workspace ID** → Set the workspace to which the tasks belong.

#### 3️⃣ **Set Optional Filters**

🔹 **Sorting** → Choose a sort field and direction (`asc` or `desc`).\
🔹 **Status** → Filter by specific status (`pending`, `done`, etc.).\
🔹 **Responsible User** → Filter for tasks assigned to a user.\
🔹 **Dates** → Set a period to fetch tasks within a range.

#### 4️⃣ **Save the Configuration**

After filling in the fields, click the **"Save"** ✅.

Now, whenever this automation is triggered, all tasks that meet the configured filters will be listed automatically.

***

### 📌 **Usage Example in an Automation Flow**

📊 **Scenario:** Fetch all pending tasks and notify them via WhatsApp.

1️⃣ **Block 1** → Fetch all tasks with status **pending**.\
2️⃣ **Block 2** → Filter the overdue tasks.\
3️⃣ **Block 3** → Send a notification to the responsible parties via WhatsApp.

🚀 **Result:** The system automatically alerts those responsible about pending tasks, preventing delays.

***

### 🎉 **Conclusion**

The operation **Get All Tasks (get\_all)** in the **Hablla Studio** helps manage and monitor tasks, allowing segmentation by status, assignees, and deadlines. This functionality is essential to keep workflows organized and automated.

If you need more support, contact our team! 🚀
