Core Kanban task boards (Trello-style) on /v1/kanban: columns (lists), cards, members, labels, comments, and automatic activity comments when users move cards or toggle checklist items.
Related: Kanban Ticket Support (ticket buzones, SLA, metrics, incidences).
Authorization: Bearer <token>x-app-stage, x-app-uidcompanyId (normalized by middleware)| Method | Path | Notes |
|---|---|---|
| GET | /v1/kanban/boards |
Tableros accesibles al usuario (miembro); ver List boards |
| GET | /v1/kanban/boards/{boardUuid} |
Lists, cards, labels, members; cards include up to 20 latest comments with user and created_at |
Board payload is Redis-cached; mutating endpoints call KanbanCache::forgetBoard.
Path: GET /v1/kanban/boards
Query: companyId (required via middleware)
Response (ActionResult.data): array of board summaries. Each item includes at least:
| Field | Description |
|---|---|
uuid, title, description, color |
Board identity |
parent_board_uuid, parent_board_title |
Optional hierarchy (sub-board under a root parent) |
children_count |
Active sub-boards count |
is_ticket_queue |
Y / N |
departament, mailbox_type |
When ticket queue |
lists_count, cards_count, members_count |
Aggregates |
owner |
User summary of the board member with role owner (nullable) |
created_at |
Board creation timestamp |
last_activity_at |
Latest of board updated_at and max card updated_at on the board |
Implementation: Domain\Kanban\Actions\ListAccessibleBoardsAction.
User guide (Wiki): Tableros de trabajo — Guía de usuario.
Create with parent: POST /v1/kanban/boards body may include parent_board_uuid (root board only) and inherit_members (default true) to copy board_members from the parent.
List children: GET /v1/kanban/boards/{boardUuid}/children — summaries of sub-boards the user can access.
Update parent: PUT /v1/kanban/boards/{boardUuid} with parent_board_uuid (null to detach). Rules: max depth 1 (no grandchildren); boards with active sub-boards cannot become ticket queues.
Archive: DELETE /v1/kanban/boards/{uuid} fails with 422 if active sub-boards remain.
Roles are stored on board_members.role (KanbanBoardRoleEnum). Capability helpers on the enum drive API checks:
| Capability | Owner | Supervisor | Collaborator | Observer | Guest |
|---|---|---|---|---|---|
Create cards (canCreateCards) |
✓ | ✓ | ✓ | ||
Move cards (canMoveStatus) |
✓ | ✓ | ✓ | ||
Edit cards (canEditCards) |
✓ | ✓ | ✓ | ||
Comment (canComment) |
✓ | ✓ | ✓ | ||
Assign users on cards (canAssignUsers) |
✓ | ✓ | |||
Archive cards (canArchiveCards) |
✓ | ✓ | |||
Manage members (canManageMembers) |
✓ | ✓ | |||
Board settings / delete board (canManageBoard) |
✓ |
Create card: POST /v1/kanban/cards requires canCreateCards() (owner, supervisor, collaborator).
When optional fields are omitted from the POST body:
| Field | Default |
|---|---|
start_date |
Today (server GoalDate) |
due_date |
Same as start_date |
responsible_user_uuid |
Creator’s user UUID (auto-member; no activity comment / no self-notification on create) |
member_uuids |
Creator attached if not already a member (e.g. when responsible_user_uuid was cleared explicitly) |
Explicit start_date, due_date, responsible_user_uuid, or member_uuids in the request override these defaults.
| Method | Path | Permission |
|---|---|---|
| GET | /v1/kanban/boards/{uuid}/members |
Board member |
| POST | /v1/kanban/boards/{uuid}/members |
canManageMembers() (owner, supervisor) |
| PUT | /v1/kanban/boards/{uuid}/members |
Same (update role; cannot assign owner) |
| DELETE | /v1/kanban/boards/{uuid}/members/{userUuid} |
Same (cannot remove owner) |
Implementation: Domain\Kanban\Actions\ManageBoardMembersAction.
Persistence: board_members uses surrogate id (primary key) and stable uuid (membership_uuid in API). Uniqueness of (board_id, user_id) is enforced by index. Migration: 2026_11_07_000000_add_id_uuid_to_kanban_board_members.php.
GET members — each item includes: membership_uuid, user_uuid, role, role_label, role_description, user profile fields.
Board aggregate members[]: pivot exposes board_members.id, board_members.uuid (via Board::members() withPivot).
UI mirrors KanbanBoardRoleEnum via BoardProvider flags (canCreateCards, canManageMembers, canManageBoard, …). Agent skills:
goal-front/.agents/skills/kanban-boards-ui/SKILL.md — directory search, page header, Compartir modal, sub-boards.goal-front/.agents/skills/kanban-card-detail/SKILL.md — card modal, mentions, description formats.Directory list search is client-side on GET /v1/kanban/boards results (filterBoardsBySearch in board-directory-utils.js).
| Method | Path | Permission |
|---|---|---|
| POST | /v1/kanban/boards/{boardUuid}/labels |
Board member (not guest/observer) + GOAL V2 KANBAN_LABEL INSERT |
| PUT | /v1/kanban/labels/{labelUuid} |
Same + UPDATE (company-linked labels propagate via catalog) |
| DELETE | /v1/kanban/labels/{labelUuid} |
Same + DELETE |
| POST | /v1/kanban/boards/{boardUuid}/labels/copy-from |
Same as create |
| POST | /v1/kanban/boards/{boardUuid}/labels/sync-company-defaults |
Board owner (canManageBoard) |
Path: POST /v1/kanban/boards/{boardUuid}/labels
Body:
{
"companyId": 8,
"name": "Bug",
"color": "#E53935",
"share_with_company": true
}
share_with_company defaults to true when omitted. When true, upserts the company catalog entry and sets board_labels.company_label_id.company_label_id and is_company_shared (computed).Linked company label updates propagate name/color to all board labels with the same company_label_id.
Path: POST /v1/kanban/boards/{boardUuid}/labels/copy-from
boardUuid: target board (labels are created here).
Body:
{
"companyId": 8,
"source_board_uuid": "uuid-of-source-board",
"label_uuids": ["optional", "source-label-uuids"]
}
label_uuids or send an empty array to copy all active labels from the source board.source_board_uuid must differ from the target board UUID.merged[] includes previous_color).position.Response (201, ActionResult.data):
{
"created": [{ "uuid": "…", "name": "…", "color": "#…", "position": 3 }],
"merged": [{ "uuid": "…", "name": "Bug", "color": "#E53935", "previous_color": "#9E9E9E" }]
}
Implementation: Domain\Kanban\Actions\ManageBoardLabelsAction::copyLabelsFromBoard.
Path: POST /v1/kanban/boards/{boardUuid}/labels/sync-company-defaults
Applies all active company labels with share_by_default=Y missing on the board (merge by normalized name; links existing rows).
Response (200): { "created": [...], "linked": [...] }
Implementation: Domain\Kanban\Actions\SyncCompanyDefaultLabelsToBoardAction.
| Method | Path | Permission |
|---|---|---|
| GET | /v1/kanban/company-labels |
GOAL V2 KANBAN_LABEL LIST (BoardLabel model permissions) |
| POST | /v1/kanban/company-labels |
INSERT |
| PUT | /v1/kanban/company-labels/{labelUuid} |
UPDATE |
| DELETE | /v1/kanban/company-labels/{labelUuid} |
DELETE |
Create body:
{
"companyId": 8,
"board_uuid": "optional-board-context-for-owner-check",
"name": "Urgente",
"color": "#D32F2F",
"share_by_default": "Y"
}
Update: changing name or color updates all linked board_labels and invalidates affected board caches.
Delete: soft-deletes catalog row; clears company_label_id on linked board labels (board copies remain).
New boards call sync automatically in CreateBoardAction for all share_by_default=Y labels.
Implementation: Domain\Kanban\Actions\ManageCompanyKanbanLabelsAction.
| Method | Path | Permission |
|---|---|---|
| POST | /v1/kanban/cards/{cardUuid}/move |
Board role with canMoveStatus() (owner, supervisor, collaborator) |
Body:
{
"companyId": 8,
"source_list_uuid": "…",
"target_list_uuid": "…",
"new_position": 0
}
Behavior:
list_id, position, and ticket SLA fields when entering in progress / done lists.CardMovedEvent (Soketi) and queues LogKanbanActivityJob (card_moved).source_list_uuid ≠ target_list_uuid, appends a card_comments row, e.g.Movió la tarjeta de «Por Hacer» a «En Progreso» @Nombre ApellidoImplementation: Domain\Kanban\Actions\MoveCardAction → CreateCardActivityCommentAction.
Success data (use to refresh client board without reloading aggregate):
{
"card": { "...": "card payload with members, custom_labels, responsible, comments (latest 20), list_uuid on card" },
"card_uuid": "…",
"list_uuid": "…",
"source_list_uuid": "…",
"position": 0
}
| Method | Path |
|---|---|
| PATCH | /v1/kanban/cards/{cardUuid} |
Completed column (list.status_type = done): PATCH is rejected with 422 and message La tarea está completada. Solo puede agregar comentarios. Manual comments via POST …/comments remain allowed.
Success data: full card payload for client board merge — members, custom_labels, responsible (or responsible_user_id null), and latest 20 comments (includes system activity e.g. responsable change). Frontend merges into board state without reloading the aggregate.
See Kanban Ticket Support — Update card for start_date, due_date, checklist shape, and checklist toggle activity comments.
Description format: each card has description_format: markdown (default) or html (rich text). Field description holds Markdown source or sanitized HTML accordingly.
PATCH body (description excerpt):
{
"companyId": 8,
"description": "<p>Resumen <strong>importante</strong></p>",
"description_format": "html"
}
Each card may have a single responsable (responsible_user_id → users.id). Board aggregate and archived snapshots include nested responsible (same profile shape as comment authors: uuid, first_name, last_name, username, avatar).
| Field | Type | Notes |
|---|---|---|
responsible_user_uuid |
uuid or null |
On create or PUT update. Omit key to leave unchanged; send JSON null to clear (validated as nullable; UUID format checked only when non-null). |
| Auto-member | — | Setting a responsable attaches that user to card_user if missing (does not remove other members). Requires canAssignUsers() when the user is not already a card member. Ensures board_members row (COLLABORATOR). |
| Activity | — | Changing responsable appends a system comment: Asignó a @Nombre como responsable @Actor. |
POST /v1/kanban/cards accepts optional responsible_user_uuid with the same rules.
Checklist toggle activity: when completed changes on an existing item id, the controller records e.g.
Completó el ítem de lista «FILTRO 1» @Nombre Apellido or Desmarcó el ítem de lista «…» @….
| Method | Path | Permission |
|---|---|---|
| POST | /v1/kanban/cards/{cardUuid}/comments |
Board role canComment() |
Body:
{
"companyId": 8,
"comment": "Texto libre con @Nombre Apellido para mencionar"
}
Response (ActionResult.data): created CardComment with created_at exposed (model overrides BaseGoalModel hidden fields for this entity) and nested user (DataUser).
Mentions: ProcessCardCommentJob parses @Full Name (display name), legacy @username, and @[Name](username); stores matched user UUIDs in mentions JSONB. Matching is case-insensitive on username for legacy tokens.
Invalidates board cache after insert.
| Method | Path | Permission |
|---|---|---|
| PATCH | /v1/kanban/cards/{cardUuid}/archive |
Board role canArchiveCards() (owner, supervisor) |
| PATCH | /v1/kanban/cards/{cardUuid}/restore |
Same |
| GET | /v1/kanban/boards/{boardUuid}/archived-cards |
Board member |
List archived cards returns an array of card snapshots (not paginated in v1): uuid, title, description, description_format (markdown | html), priority, start_date, due_date, archived_at, checklist, members, responsible, labels / customLabels, up to 50 latest comments (each with user), and preserved_list { uuid, title, color, status_type }.
Implementation: ArchiveCardAction::listArchived.
| Trigger | Message pattern | Action |
|---|---|---|
| Checklist check/uncheck | Completó / Desmarcó el ítem de lista «title» @Actor |
KanbanCardController::recordChecklistToggleComments |
| Move to another column | Movió la tarjeta de «Source» a «Target» @Actor |
MoveCardAction |
| User POST comment | User-supplied text | KanbanCardController::addComment |
Shared helper: Domain\Kanban\Actions\CreateCardActivityCommentAction
CardComment with user_id = actor.ProcessCardCommentJob on queue KanbanConstants::QUEUE_TASK_MENTIONS.formatActorMention(DataUser) → @ + full_name (fallback username).Audit table kanban_activities remains separate from the user-visible comment feed (LogKanbanActivityJob).
| Method | Path |
|---|---|
| GET | /v1/kanban/users |
Query: companyId (required), optional search (name, username, email).
Response (ActionResult.data): array of active company users (UserInCompany, status = A), synced to goal-data users (DataUser). Each item includes uuid (always set — resolved from core users.uuid, existing DataUser, or generated once on sync), plus id, username, full_name, email, avatar_url.
All /v1/kanban/* routes enforce company-validator, gadmin-permission:GOAL_V2_*, and controller authorizeModelAction() + findCompanyModelOrFail() checks.
business_partner_id (validated against business_partners.company_id, returning 422 on cross-company IDs), visit_id, and source (manual, incidence, api, email, mobile_tvendo, web).GET /v1/kanban/cards (GOAL_V2_KANBAN_KANBAN_CARD_LIST) filters accessible cards by business_partner_id, assignee_id, board_id, status_type (todo|in_progress|done|open), overdue, and include_archived, returning business_partner summary { id, uuid, name, code }.GET /v1/kanban/customers/task-counts (GOAL_V2_KANBAN_KANBAN_CARD_LIST) returns { business_partner_id, open_count, overdue_count } per customer (optional business_partner_ids[] filter).GET /v1/kanban/mobile/sync)Query: companyId (required), optional updated_after (ISO-8601), board_id (ID or UUID), scope (my_tasks|customer|all), business_partner_id.
Response (ActionResult.data): server_time, boards, columns, cards (with business_partner summary, version, client_uuid, client_mutation_id), checklists, and deleted_ids ({ boards, columns, cards } soft-deleted or archived since updated_after).
POST /v1/kanban/cards accepts client_uuid and client_mutation_id; offline retries return 200 with the existing card instead of creating duplicates.PUT /v1/kanban/cards/{cardUuid}, PATCH /v1/kanban/cards/{cardUuid}/move, and PATCH /v1/kanban/cards/{cardUuid}/checklist/toggle accept client_mutation_id (idempotent 200 on replay) and expected_version / version (returning 409 Conflict with server_version and server_card when stale).POST /v1/kanban/cards/{cardUuid}/comments accepts client_mutation_id for idempotent comment retries.{
"success": true,
"message": "…",
"data": {}
}
HTTP status: 200, 201, 403, 404, 422 as applicable.