Extends the Kanban module (/v1/kanban) with ticket buzones (boards flagged is_ticket_queue=Y), linked to payroll departaments and configurable mailbox types, plus SLA timestamps, metrics, delegation, and CouchDB incidence linking.
Core task boards (move, comments, activity feed): see Kanban Tasks API.
Authorization: Bearer <token>x-app-stage, x-app-uidcompanyId (normalized by middleware)Ticket buzones use departament_id (FK to departaments, maintained via /v1/payroll/master/departaments). There is no separate ticket operative-area table.
| Method | Path | Permission |
|---|---|---|
| GET | /v1/kanban/ticket-mailbox-types |
tasks.board.view or tasks.ticket.buzon.manage |
| POST | /v1/kanban/ticket-mailbox-types |
tasks.ticket.buzon.manage |
| PUT | /v1/kanban/ticket-mailbox-types/{typeUuid} |
tasks.ticket.buzon.manage |
| DELETE | /v1/kanban/ticket-mailbox-types/{typeUuid} |
tasks.ticket.buzon.manage |
Query active_only=0 to include inactive types (admin list).
Create body example:
{
"companyId": 8,
"code": "help_desk",
"name": "Help desk",
"default_sla_hours": 24,
"sort_order": 10,
"status": "A"
}
Default types are seeded automatically on first GET per company (help_desk, commercial_promotions, commercial_customer, operations, custom).
On POST /v1/kanban/boards and PUT /v1/kanban/boards/{uuid}:
| Field | Type | Notes |
|---|---|---|
is_ticket_queue |
Y | N |
Buzón de tickets |
departament_id |
int | Required when is_ticket_queue=Y (active departament) |
ticket_mailbox_type_id |
int | Required when is_ticket_queue=Y |
ticket_mailbox_type_uuid |
uuid | Alternative to id on update |
sla_hours |
int | Optional; defaults from mailbox type default_sla_hours |
Ticket buzones auto-assign ticket_number on create. Additional columns: source (manual, incidence, api, email), reported_at, first_response_at, resolved_at.
PATCH /v1/kanban/cards/{cardUuid})Optional body fields include planning and checklist metadata:
| Field | Type | Notes |
|---|---|---|
title |
string | Card title |
description |
string | Markdown-capable description (stored as text) |
priority |
string | low, medium, high, urgent |
start_date |
date (ISO) | User-editable planning start; nullable |
due_date |
date (ISO) | Due date; nullable |
checklist |
array | JSON items; see shape below |
Checklist item shape:
{
"id": "1730572800000",
"title": "Revisar logs",
"completed": false,
"due_date": "2026-11-10",
"completed_at": "2026-11-02 19:45:00"
}
completed_at is set when the item is marked complete (server local time Y-m-d H:i:s); cleared when unchecked. Toggling completion also appends an activity comment on the card (e.g. Completó el ítem de lista «…» @Nombre Apellido).
due_date on each checklist entry is optional (null or omitted for legacy items).
Example PATCH body:
{
"companyId": 8,
"start_date": "2026-11-01",
"due_date": "2026-11-15",
"checklist": [
{ "id": "1", "title": "Paso 1", "completed": false, "due_date": "2026-11-10" }
]
}
Board aggregate responses include start_date on each card alongside due_date when present.
Moving a card to another column (POST /v1/kanban/cards/{cardUuid}/move with different source_list_uuid / target_list_uuid) appends an activity comment, e.g. Movió la tarjeta de «Por Hacer» a «En Progreso» @Nombre Apellido. Reordering within the same column does not create a comment. Details: Kanban Tasks — Move card.
| Method | Path | Permission |
|---|---|---|
| GET | /v1/kanban/tickets/metrics/summary |
tasks.ticket.metrics.view |
| GET | /v1/kanban/tickets/metrics/by-user |
tasks.ticket.metrics.view |
| GET | /v1/kanban/tickets/metrics/by-area |
tasks.ticket.metrics.view |
Query: date_from, date_to, departament_id, board_uuid (summary). The by-area endpoint groups by departament.
Summary response (ActionResult.data):
{
"pending": 12,
"resolved": 45,
"overdue": 3,
"avg_resolve_hours": 18.5
}
Definitions: pending = not archived and list status_type ≠ done; resolved = in DONE column or resolved_at set.
POST /v1/kanban/tickets/delegate — permission tasks.ticket.delegate
{
"companyId": 8,
"board_uuid": "…",
"card_uuids": ["…", "…"],
"assignee_user_uuid": "…",
"due_date": "2026-11-15",
"priority": "high"
}
| Method | Path | Description |
|---|---|---|
| POST | /v1/kanban/tickets/from-incidence |
Create card + link from Couch incidence id |
| GET | /v1/kanban/tickets/incidence-link/{incidenceId} |
Resolve linked card/board |
| POST | /v1/kanban/cards/{cardUuid}/incidence-link |
Link existing card |
Routing on incidence_categories: ticket_departament_id, ticket_mailbox_type_id, or ticket_board_uuid select target buzón when board_uuid is omitted.
When a linked ticket moves to Done, the backend attempts to close the Couch incidence (SyncTicketIncidenceStatusAction).
All endpoints return App\Values\Core\ActionResult:
{
"success": true,
"message": "…",
"data": {}
}
HTTP status: 200, 201, 403, 404, 422 as applicable.