API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · tasks

Task Schema

ID del esquema
task
Colección
tasks
Permisos
  • Leertask_view
  • Creartask_create
  • Modificartask_edit
  • Eliminartask_delete

Campos

Task Schema

tasks4 permisos

Schema for validating task entities

titlestringobligatorio

Task title

1–200 caracteres
generatedTitlestringopcional

ADR 1018 — title materialise_order last generated from the order line. While `title` still equals it, nobody renamed the task and the title follows a renamed weclapp line; null on rows created before the field (the history CREATE entry is used instead).

solo lecturaadmite null
descriptionstringopcional

Task description

máx. 4000 caracteresadmite null
statusstringobligatorio

Task status. PENDING_REVIEW is the intermediate state between IN_PROGRESS and DONE when reviewMode = hard. WAITING_FEEDBACK/OFFER_CREATED are open states used by the campaign task board (ADR 0746).

TODOIN_PROGRESSWAITING_FEEDBACKOFFER_CREATEDIN_REVIEWPENDING_REVIEWDONECANCELLED
prioritystringobligatorio

Task priority

LOWNORMALHIGHCRITICAL
projectIdstringopcional

Project UUID (legacy, use referenceId/referenceSchema)

admite null
listIduuidopcional

Optional task-list bucket (Todoist-style, ADR 0132). Independent of projectId/referenceId — a task can belong to a project AND a personal list at the same time.

admite null
parentTaskIdstringopcional

Parent task UUID for subtasks

admite null
orderintegerobligatorio

Sort order within parent/project

≥ 0
assigneeIdstringopcional

Assigned user UUID. Deprecated: mirror of assigneeIds[0] for backward compatibility. Write via assigneeIds.

admite null
assigneeIdsstring[]opcional

Assigned user UUIDs (multi-assignee). Canonical assignee field.

Valor por defecto: []admite null
assignedByRulestringopcional

ADR 0561: short form of the assignee rule that produced assigneeIds at instantiation. Provenance only — never re-evaluated.

máx. 500 caracteressolo lecturaadmite null
dispatchPendingbooleanopcional

ADR 0224: set when a template-materialized task should be auto-assigned by the dispatch pipeline (assignmentRule.strategy = ai_dispatch | ai_suggest). The worker event-router enqueues a dispatch job and clears this flag.

Valor por defecto: false
dispatchDecisionIdstringopcional

ADR 0224: id of the dispatch_decision that assigned this task (ai_* strategy).

admite null
orgUnitIdstringopcional

Team / organizational unit UUID

admite null
teamCanManagebooleanopcional

ADR 0421: when true, every member of `orgUnitId` may fully edit and delete this task, not just work it off. Opt-in per task — the ADR-0192 default keeps manage rights with the creator / project manager / admin. No effect when `orgUnitId` is null. Only an owner (creator / project manager / campaign owner / admin) may flip this flag.

Valor por defecto: false
assigneesCanEditbooleanopcional

ADR 1005: when true, the assignees (`assigneeId` / `assigneeIds`) may edit content and planning fields (TASK_ASSIGNEE_EDITABLE_FIELDS: title, description, priority, dates, …) — but not delete the task, reassign it or change its visibility/review. Opt-in per task; missing = false. Only an owner may flip this flag.

Valor por defecto: false
reporterIdstringopcional

Reporter user UUID

admite null
reviewerIdstringopcional

Optional reviewer user UUID. When set together with reviewMode=hard, only this user (or a user with task_review/admin_bypass) may transition the task from PENDING_REVIEW to DONE.

admite null
reviewModestringopcional

Review enforcement: 'hard' inserts a PENDING_REVIEW gate before DONE and restricts the final transition to the reviewer; 'soft' only notifies the reviewer when the task is completed. Null/absent = no review.

hardsoftnull
admite null
sprintIdstringopcional

Sprint UUID

admite null
boardColumnIdstringopcional

Kanban board column ID

admite null
phaseIdstringopcional

Project phase UUID for Gantt

admite null
storyPointsintegeropcional

Story points estimate

0 – 100admite null
estimatedMinutesintegeropcional

Estimated effort in minutes

≥ 0admite null
maxMinutesintegeropcional

Hard cap on logged minutes for this task (applied when limitMode=minutes). Used by project limit checks; values are not auto-enforced unless project.limits.hardBlockOnExceed is true.

≥ 0admite null
salesOrderIduuidopcional

Linked sales_order UUID (the order this task originated from)

solo lecturaadmite null
salesOrderItemIdstringopcional

ID of the orderItem inside the linked sales_order (matches salesOrder.orderItems[].id)

solo lecturaadmite null
salesOrderItemSourcestringopcional

Origin of the linked sales-order item — internal or weclapp

internalweclappnull
solo lecturaadmite null
positionIduuidopcional

ADR 0310: optional project_position this task hangs under. null = free task (no position). The position aggregates this task’s effort (loggedMinutes/consumedAmount) and carries the billing model (flat_rate vs. time_and_material).

admite null
limitModestringopcional

Limit mode: minutes (cap on logged time via maxMinutes), amount (cap on consumed EUR via maxAmount), or none.

minutesamountnonenull
admite null
maxAmountstringopcional

Hard cap on consumed billable amount in EUR (decimal string)

Patrónadmite null
maxAmountCurrencystringopcional

ISO 4217 currency for maxAmount (default EUR when null)

Patrónadmite null
consumedAmountstringopcional

Sum of time_record.consumedAmount for this task (cached, auto-computed by time-record service)

Patrónsolo lecturaadmite null
hardBlockOnExceedbooleanopcional

Project-less fallback for the budget hard-block. When the task has no project, this opts the task into hard-blocking time bookings past maxMinutes/maxAmount (mirrors project.limits.hardBlockOnExceed). Ignored when the task belongs to a project — the project setting wins.

Valor por defecto: nulladmite null
defaultServiceTypeIduuidopcional

Pre-selected service_type UUID for time bookings on this task. Not enforced — users may pick a different type.

admite null
maxMinutesOverriddenAtdatetimeopcional

Set when maxMinutes was manually overridden (via task_override_budget). Reconcile from sales-order skips this field while set.

admite null
maxAmountOverriddenAtdatetimeopcional

Set when maxAmount was manually overridden (via task_override_budget). Reconcile from sales-order skips this field while set.

admite null
overrideReasonstringopcional

Last reason for a budget override (audit trail; full history lives in history collection).

máx. 500 caracteresadmite null
weclappTaskIdstringopcional

Linked weclapp task ID (target for time-record write-through)

solo lecturaadmite null
weclappSyncStatestringopcional

Sync state of this task against weclapp

pendingsyncederrornull
solo lecturaadmite null
weclappLastSyncedAtdatetimeopcional

Last successful weclapp sync timestamp

solo lecturaadmite null
weclappLastSyncErrorstringopcional

Last weclapp sync error message

máx. 1000 caracteressolo lecturaadmite null
microsoftTodoIdstringopcional

ID of the mirrored task in Microsoft To Do (per connected user mailbox)

solo lecturaadmite null
microsoftTodoListIdstringopcional

ID of the Microsoft To Do list this task is mirrored into

solo lecturaadmite null
microsoftTodoEtagstringopcional

Last seen Microsoft Graph @odata.etag of the mirrored task — used for echo-suppression on inbound delta sync

solo lecturaadmite null
todoLastSyncedAtdatetimeopcional

Last successful Microsoft To Do sync timestamp for this task

solo lecturaadmite null
todoSyncSourcestringopcional

Which side last wrote the synced state (conflict-resolution hint)

localmicrosoftnull
solo lecturaadmite null
startDatedateopcional

Task start date (YYYY-MM-DD)

admite null
dueDatedateopcional

Task due date (YYYY-MM-DD)

admite null
completedAtdatetimeopcional

Task completion timestamp

admite null
completedBystringopcional

User UUID of the person who marked the task as DONE (cleared on re-open)

admite null
scheduledStartAtdatetimeopcional

Optional scheduled start date-time for calendar display

admite null
scheduledEndAtdatetimeopcional

Optional scheduled end date-time for calendar display

admite null
taskTypestringobligatorio

Task type

TASKSTORYBUGEPICSUBTASKMILESTONE
labelsstring[]opcional

Task labels (like Jira labels)

Valor por defecto: []admite null
ticketIdstringopcional

Linked ticket UUID

admite null
assetIdsstring[]opcional

Linked asset UUIDs

Valor por defecto: []admite null
blockedByIdsstring[]opcional

ADR 0218: predecessor task UUIDs that must reach a terminal status (DONE/CANCELLED) before this task may start. Single source of truth for task dependencies; validated server-side (existence, same-project, no cycles).

Valor por defecto: []admite null
blockingIdsstring[]opcional

ADR 0218: DERIVED downstream dependents (tasks whose blockedByIds reference this task). Computed on read via reverse lookup — read-only / protected, never written directly.

Valor por defecto: []solo lecturaadmite null
loggedMinutesintegeropcional

Logged time in minutes (auto-computed)

≥ 0solo lecturaadmite null
nonBillableLoggedMinutesintegeropcional

ADR 0830: non-billable share (billableType NONE) of loggedMinutes, auto-computed. The time budget is loggedMinutes minus this value; missing = 0.

≥ 0solo lecturaadmite null
loggedRealMinutesintegeropcional

ADR 0924: the same bookings as loggedMinutes summed as NET working time (breaks deducted, no rounding), auto-computed. loggedMinutes is the rounded working time; the UI shows "rounded (real)". Missing on tasks not recalculated since the change.

≥ 0solo lecturaadmite null
tagsstring[]opcional

Task tags

Valor por defecto: []admite null
referenceIdstringopcional

Linked entity UUID

admite null
referenceSchemastringopcional

Schema type of the linked entity

nulltickethr_ticketcallback_requestprojectassetvehiclecontractpartyopportunitycoursecomplaintsales_ordersales_order_itemcampaign_itemcampaignemployee_profileonboarding_planemployee_onboardingemployee_offboarding
admite null
linkedEntitiesobject[]opcional

Additional free-form cross-entity links (Mehrfachverknüpfung, 04.08.2026). UNLIKE phone_call (ADR 0386) this does NOT supersede the single reference: referenceId/referenceSchema stays the PRIMARY link (predecessor-sibling logic, partyScope/projectId query expansion, kanbans all key on it) — linkedEntities carries the secondary links, e.g. an opportunity-task also linked to the customer and a contact person. Same item shape as phone_call.linkedEntities.

Valor por defecto: []admite null
entityTypestringobligatorio
ticketcallback_requestprojectopportunitycomplainttaskassetvehiclecontractpartycoursecampaigntime_recordsecret
entityIduuidobligatorio
rolestringobligatorio
linkedAgreementIduuidopcional

Set when the task was spawned from a performance_review agreement. Used to mirror task.status ↔ agreement.status. Legacy — superseded by linkedGoalId / linkedBenefitId.

admite null
linkedGoalIduuidopcional

Set when the task was spawned from a performance_review_goal. Used to mirror task.status ↔ goal.status.

admite null
linkedBenefitIduuidopcional

Set when the task was spawned from a performance_review_benefit. Used to mirror task.status ↔ benefit.status.

admite null
checklistStepRefobjectopcional
admite null
checklistIduuidobligatorio
itemIduuidobligatorio
campaignIduuidopcional

Backlink to the campaign that produced this task (CREATE_TASK action).

admite null
contractIduuidopcional

Optional link to the contract this task belongs to. Drives contract-aware lifecycle: recurrence.endDate is auto-capped to contract.endDate on creation, and worker handlers cap/cancel tasks when contract.endDate moves or contract.status transitions to SUSPENDED/CANCELLED/EXPIRED.

admite null
seriesMasterIduuidopcional

UUID of the recurring master task this exception belongs to. Mutually exclusive with `recurrence` — a series-master child cannot itself start a series. Set only by the materialization endpoint.

solo lecturaadmite null
seriesOccurrenceDatedateopcional

YYYY-MM-DD of the specific occurrence this exception represents. Required when seriesMasterId is set; together they form the idempotency key.

solo lecturaadmite null
seriesOccurrenceTypestringopcional

How this occurrence diverges from the master. exception = materialized instance with its own status; cancellation = skipped occurrence (hidden from the calendar but kept for audit).

exceptioncancellation
solo lecturaadmite null
seriesOccurrenceTimeZonestringopcional

IANA TZ used when interpreting seriesOccurrenceDate. Defaults to the tenant TZ when null. Mirrors the calendar-event recurrence model.

máx. 100 caracteressolo lecturaadmite null
recurrenceobjectopcional

Recurrence configuration for recurring tasks

admite null
patternstringobligatorio

Recurrence pattern

DAILYWEEKLYMONTHLYYEARLY
intervalintegerobligatorio

Repeat every N units

1 – 365
daysOfWeekinteger[]opcional

Days of week (0=Sun, 6=Sat) for WEEKLY pattern

admite null
dayOfMonthintegeropcional

Day of month for MONTHLY pattern

1 – 31admite null
endDatedateopcional

Stop recurring after this date

admite null
nextDueDatedateopcional

Next calculated due date

admite null
modestringopcional

Feedback 01a10bde: 'fixed' (default when absent) = fixed rhythm, the daily sweep rolls an overdue master forward and records the missed date as an open occurrence. 'afterCompletion' = the next occurrence is only created when the current one is completed; the sweep leaves an overdue master in place (stays visibly overdue).

fixedafterCompletionnull
admite null
complianceRuleIdstringopcional

Compliance rule that auto-generated this task (e.g. HU, AU, MAINTENANCE)

máx. 50 caracteressolo lecturaadmite null
complianceDeadlinedateopcional

The compliance deadline date this task tracks (YYYY-MM-DD)

solo lecturaadmite null
visibilitystringopcional

Task visibility. PRIVATE tasks are only visible to their creator and assignee.

PUBLICPRIVATE
Valor por defecto: "PUBLIC"
difficultyintegeropcional

Task difficulty (0–100). Feeds the XP award formula when the task transitions to DONE. Defaults to 50 at award time if null.

0 – 100admite null
requiredSkillsobject[]opcional

Structured skill requirements for this task. Drives XP awards to the task assignee on completion.

Valor por defecto: []admite null
skillIduuidobligatorio

UUID of the skill_definition

minimumLevelstringopcional

Minimum proficiency level required. Null = any level.

BEGINNERINTERMEDIATEADVANCEDEXPERTnull
admite null
xpAwardedAtdatetimeopcional

Set once when XP was awarded for this task completion. Prevents duplicate XP grants on DONE→other→DONE transitions.

admite null
customerVisiblebooleanopcional

Whether this task is visible on the project customer portal (requires project.customerAccess feature viewAssignedTasks).

Valor por defecto: false
customerAssigneePartyIdstringopcional

Customer party (contact or organization) this task is assigned to (public portal). Used alongside assigneeId.

admite null
customerCreatedbooleanopcional

True if the task was created by a customer via the public portal.

Valor por defecto: false
templateIduuidopcional

task_template._id this task was instantiated from.

admite null
templateVersionstringopcional

Pinned template version at instantiation time (semver).

Patrónadmite null
templateNodeIdstringopcional

ID of the subTemplates[] link this task came from. Null on root tasks.

admite null
templatePathstringopcional

Denormalized "/slug-a/slug-b" path for fast roll-up analytics.

máx. 500 caracteresadmite null
isTemplateRootbooleanopcional

True for the root task of a template execution.

Valor por defecto: false
rootTaskIduuidopcional

Denormalized: every task in a template execution carries the root task id.

admite null
templateInputsobjectopcional

Snapshot of template input values (key → value) at instantiation time.

admite null
cancelReasonstringopcional

Reason for CANCELLED status. e.g. "template-instantiation-optional-skipped" when an optional sub-step was de-selected.

máx. 200 caracteresadmite null
fieldServiceParkedbooleanopcional

True if the task is parked for on-site field service ("Wartestellung"). Orthogonal to status — a parked task keeps its normal workflow status.

Valor por defecto: false
fieldServicePartyIduuidopcional

Anchor customer party for the on-site work. Prefilled from referenceId when referenceSchema = party. Used as the proximity origin.

admite null
fieldServiceAddressIduuidopcional

parties.addresses[]._id of the concrete on-site address (geocoding source for proximity). Falls back to the MAIN address when null.

admite null
parkedAtdatetimeopcional

Timestamp when the task was parked (cleared when un-parked).

solo lecturaadmite null
parkedBystringopcional

User UUID who parked the task (cleared when un-parked).

solo lecturaadmite null
vehicleRequiredbooleanopcional

ADR 0836: a vehicle is needed for this task. Copied onto the calendar_event when the task is scheduled; the Kfz-Einsatzplanung lists events with vehicleRequired and no linkedVehicleIds as open demands.

Valor por defecto: false
vehiclePoolGroupstringopcional

ADR 0836: preferred fleet pool for the vehicle — the pool NAME as carried by vehicle.poolGroup (e.g. "Fahrzeuge-Bitburg"). Optional hint for the dispatcher, not a constraint.

máx. 100 caracteresadmite null
linkedCalendarEventIduuidopcional

Primary calendar_event this task was scheduled into. Many parked tasks may point to one appointment. Set by the schedule-into-event endpoint. For split tasks (ADR 0219) this is the FIRST part-event; the full set lives in calendarEventIds.

solo lecturaadmite null
calendarEventIdsuuid[]opcional

All calendar_events this task was planned into (ADR 0219). For a split task the planner writes one event per part; linkedCalendarEventId mirrors [0] for backward compatibility. Readers that need every appointment should prefer this and fall back to [linkedCalendarEventId] when absent (older data). Set server-side (plan/commit + schedule-into-event); protected against direct PATCH.

solo lectura

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/tasks — Lista, paginada y filtrable
  • GET /api/v1/tasks/<id> — Una entidad
  • POST /api/v1/tasks — Crear
  • PATCH /api/v1/tasks/<id> — Actualización parcial
  • DELETE /api/v1/tasks/<id> — Eliminación lógica
  • GET /api/v1/tasks/<id>/timeline — Auditoría y actividades

Búsqueda