API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · tasks

Task Schema

ID du schéma
task
Collection
tasks
Autorisations
  • Liretask_view
  • Créertask_create
  • Modifiertask_edit
  • Supprimertask_delete

Champs

Task Schema

tasks4 autorisations

Schema for validating task entities

titlestringobligatoire

Task title

1–200 caractères
generatedTitlestringfacultatif

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).

lecture seulenullable
descriptionstringfacultatif

Task description

max. 4000 caractèresnullable
statusstringobligatoire

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
prioritystringobligatoire

Task priority

LOWNORMALHIGHCRITICAL
projectIdstringfacultatif

Project UUID (legacy, use referenceId/referenceSchema)

nullable
listIduuidfacultatif

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.

nullable
parentTaskIdstringfacultatif

Parent task UUID for subtasks

nullable
orderintegerobligatoire

Sort order within parent/project

≥ 0
assigneeIdstringfacultatif

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

nullable
assigneeIdsstring[]facultatif

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

Par défaut : []nullable
assignedByRulestringfacultatif

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

max. 500 caractèreslecture seulenullable
dispatchPendingbooleanfacultatif

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.

Par défaut : false
dispatchDecisionIdstringfacultatif

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

nullable
orgUnitIdstringfacultatif

Team / organizational unit UUID

nullable
teamCanManagebooleanfacultatif

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.

Par défaut : false
assigneesCanEditbooleanfacultatif

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.

Par défaut : false
reporterIdstringfacultatif

Reporter user UUID

nullable
reviewerIdstringfacultatif

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.

nullable
reviewModestringfacultatif

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
nullable
sprintIdstringfacultatif

Sprint UUID

nullable
boardColumnIdstringfacultatif

Kanban board column ID

nullable
phaseIdstringfacultatif

Project phase UUID for Gantt

nullable
storyPointsintegerfacultatif

Story points estimate

0 – 100nullable
estimatedMinutesintegerfacultatif

Estimated effort in minutes

≥ 0nullable
maxMinutesintegerfacultatif

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.

≥ 0nullable
salesOrderIduuidfacultatif

Linked sales_order UUID (the order this task originated from)

lecture seulenullable
salesOrderItemIdstringfacultatif

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

lecture seulenullable
salesOrderItemSourcestringfacultatif

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

internalweclappnull
lecture seulenullable
positionIduuidfacultatif

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).

nullable
limitModestringfacultatif

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

minutesamountnonenull
nullable
maxAmountstringfacultatif

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

Motifnullable
maxAmountCurrencystringfacultatif

ISO 4217 currency for maxAmount (default EUR when null)

Motifnullable
consumedAmountstringfacultatif

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

Motiflecture seulenullable
hardBlockOnExceedbooleanfacultatif

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.

Par défaut : nullnullable
defaultServiceTypeIduuidfacultatif

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

nullable
maxMinutesOverriddenAtdatetimefacultatif

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

nullable
maxAmountOverriddenAtdatetimefacultatif

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

nullable
overrideReasonstringfacultatif

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

max. 500 caractèresnullable
weclappTaskIdstringfacultatif

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

lecture seulenullable
weclappSyncStatestringfacultatif

Sync state of this task against weclapp

pendingsyncederrornull
lecture seulenullable
weclappLastSyncedAtdatetimefacultatif

Last successful weclapp sync timestamp

lecture seulenullable
weclappLastSyncErrorstringfacultatif

Last weclapp sync error message

max. 1000 caractèreslecture seulenullable
microsoftTodoIdstringfacultatif

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

lecture seulenullable
microsoftTodoListIdstringfacultatif

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

lecture seulenullable
microsoftTodoEtagstringfacultatif

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

lecture seulenullable
todoLastSyncedAtdatetimefacultatif

Last successful Microsoft To Do sync timestamp for this task

lecture seulenullable
todoSyncSourcestringfacultatif

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

localmicrosoftnull
lecture seulenullable
startDatedatefacultatif

Task start date (YYYY-MM-DD)

nullable
dueDatedatefacultatif

Task due date (YYYY-MM-DD)

nullable
completedAtdatetimefacultatif

Task completion timestamp

nullable
completedBystringfacultatif

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

nullable
scheduledStartAtdatetimefacultatif

Optional scheduled start date-time for calendar display

nullable
scheduledEndAtdatetimefacultatif

Optional scheduled end date-time for calendar display

nullable
taskTypestringobligatoire

Task type

TASKSTORYBUGEPICSUBTASKMILESTONE
labelsstring[]facultatif

Task labels (like Jira labels)

Par défaut : []nullable
ticketIdstringfacultatif

Linked ticket UUID

nullable
assetIdsstring[]facultatif

Linked asset UUIDs

Par défaut : []nullable
blockedByIdsstring[]facultatif

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).

Par défaut : []nullable
blockingIdsstring[]facultatif

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

Par défaut : []lecture seulenullable
loggedMinutesintegerfacultatif

Logged time in minutes (auto-computed)

≥ 0lecture seulenullable
nonBillableLoggedMinutesintegerfacultatif

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

≥ 0lecture seulenullable
loggedRealMinutesintegerfacultatif

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.

≥ 0lecture seulenullable
tagsstring[]facultatif

Task tags

Par défaut : []nullable
referenceIdstringfacultatif

Linked entity UUID

nullable
referenceSchemastringfacultatif

Schema type of the linked entity

nulltickethr_ticketcallback_requestprojectassetvehiclecontractpartyopportunitycoursecomplaintsales_ordersales_order_itemcampaign_itemcampaignemployee_profileonboarding_planemployee_onboardingemployee_offboarding
nullable
linkedEntitiesobject[]facultatif

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.

Par défaut : []nullable
entityTypestringobligatoire
ticketcallback_requestprojectopportunitycomplainttaskassetvehiclecontractpartycoursecampaigntime_recordsecret
entityIduuidobligatoire
rolestringobligatoire
linkedAgreementIduuidfacultatif

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

nullable
linkedGoalIduuidfacultatif

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

nullable
linkedBenefitIduuidfacultatif

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

nullable
checklistStepRefobjectfacultatif
nullable
checklistIduuidobligatoire
itemIduuidobligatoire
campaignIduuidfacultatif

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

nullable
contractIduuidfacultatif

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.

nullable
seriesMasterIduuidfacultatif

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.

lecture seulenullable
seriesOccurrenceDatedatefacultatif

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

lecture seulenullable
seriesOccurrenceTypestringfacultatif

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
lecture seulenullable
seriesOccurrenceTimeZonestringfacultatif

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

max. 100 caractèreslecture seulenullable
recurrenceobjectfacultatif

Recurrence configuration for recurring tasks

nullable
patternstringobligatoire

Recurrence pattern

DAILYWEEKLYMONTHLYYEARLY
intervalintegerobligatoire

Repeat every N units

1 – 365
daysOfWeekinteger[]facultatif

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

nullable
dayOfMonthintegerfacultatif

Day of month for MONTHLY pattern

1 – 31nullable
endDatedatefacultatif

Stop recurring after this date

nullable
nextDueDatedatefacultatif

Next calculated due date

nullable
modestringfacultatif

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
nullable
complianceRuleIdstringfacultatif

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

max. 50 caractèreslecture seulenullable
complianceDeadlinedatefacultatif

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

lecture seulenullable
visibilitystringfacultatif

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

PUBLICPRIVATE
Par défaut : "PUBLIC"
difficultyintegerfacultatif

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

0 – 100nullable
requiredSkillsobject[]facultatif

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

Par défaut : []nullable
skillIduuidobligatoire

UUID of the skill_definition

minimumLevelstringfacultatif

Minimum proficiency level required. Null = any level.

BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
xpAwardedAtdatetimefacultatif

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

nullable
customerVisiblebooleanfacultatif

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

Par défaut : false
customerAssigneePartyIdstringfacultatif

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

nullable
customerCreatedbooleanfacultatif

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

Par défaut : false
templateIduuidfacultatif

task_template._id this task was instantiated from.

nullable
templateVersionstringfacultatif

Pinned template version at instantiation time (semver).

Motifnullable
templateNodeIdstringfacultatif

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

nullable
templatePathstringfacultatif

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

max. 500 caractèresnullable
isTemplateRootbooleanfacultatif

True for the root task of a template execution.

Par défaut : false
rootTaskIduuidfacultatif

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

nullable
templateInputsobjectfacultatif

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

nullable
cancelReasonstringfacultatif

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

max. 200 caractèresnullable
fieldServiceParkedbooleanfacultatif

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

Par défaut : false
fieldServicePartyIduuidfacultatif

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

nullable
fieldServiceAddressIduuidfacultatif

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

nullable
parkedAtdatetimefacultatif

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

lecture seulenullable
parkedBystringfacultatif

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

lecture seulenullable
vehicleRequiredbooleanfacultatif

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.

Par défaut : false
vehiclePoolGroupstringfacultatif

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.

max. 100 caractèresnullable
linkedCalendarEventIduuidfacultatif

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.

lecture seulenullable
calendarEventIdsuuid[]facultatif

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.

lecture seule

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/tasks — Liste, paginée et filtrable
  • GET /api/v1/tasks/<id> — Une entité
  • POST /api/v1/tasks — Créer
  • PATCH /api/v1/tasks/<id> — Mise à jour partielle
  • DELETE /api/v1/tasks/<id> — Suppression logique
  • GET /api/v1/tasks/<id>/timeline — Audit et activités

Recherche