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

# get-pending-tasks

> Get all open and in-progress feedback tasks, sorted by priority.

Returns all pending (open + in-progress) feedback tasks sorted by priority (urgent → high → medium → low). Supports filtering by site, assignee, and status.

**Requires:** `read` permission

## Parameters

| Parameter     | Type    | Description                                            |
| ------------- | ------- | ------------------------------------------------------ |
| `status`      | string  | Filter to `open` or `in_progress` only (default: both) |
| `priority`    | string  | Filter by priority: `low`, `medium`, `high`, `urgent`  |
| `site_id`     | string  | Filter by site UUID                                    |
| `unassigned`  | boolean | If `true`, return only unassigned tasks                |
| `assigned_to` | string  | Filter by assignee user UUID or email                  |
| `per_page`    | integer | Results per page (default: 25, max: 100)               |
| `page`        | integer | Page number (default: 1)                               |

## Example

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get-pending-tasks",
    "arguments": {
      "priority": "urgent"
    }
  }
}
```

## Response

```json theme={null}
{
  "project": { "id": "...", "name": "My Project" },
  "tasks": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "task_key": "SSL-042",
      "content": "Checkout button broken on mobile",
      "status": "OPEN",
      "priority": "URGENT",
      "page_url": "https://example.com/checkout",
      "page_title": "Checkout",
      "site": { "id": "...", "name": "My Site", "url": "example.com" },
      "author": { "id": "...", "name": "Jane Smith", "email": "jane@example.com" },
      "assignees": [
        { "id": "...", "name": "Bob Dev", "email": "bob@example.com" }
      ],
      "created_at": "2026-03-01T10:00:00Z",
      "updated_at": "2026-03-01T10:00:00Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "total": 18,
    "per_page": 25,
    "last_page": 1
  }
}
```

## Example prompts

* *"Show me all pending tasks"*
* *"What tasks are still open?"*
* *"Show unassigned urgent tasks"*
* *"What is assigned to [jane@example.com](mailto:jane@example.com)?"*
