Skip to content

TaskUpdatedEvent ​

EventType: TASK_UPDATEDDomain: collaboration Broker subject: progress.notification.user.{user_key}

Updates mutable fields of an existing task. Unlike other task events, TaskUpdatedEvent overrides _build_event_payload() to emit a user-scoped broker subject — each assigned user receives a targeted notification at progress.notification.user.{user_key} rather than the shared task subject.

Trigger ​

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: TASK_UPDATED.

Preconditions ​

  • Task exists with key info.task_key

State Changes (Transaction) ​

Collections: Task

  • Task updated with any combination of title, description, assigned_to, start_from, due_by, form_fields

Side Effects (post_processing) ​

Overrides _build_event_payload() — publishes to progress.notification.user.{user_key} for each assigned user rather than the generic task subject.

InfoModel Fields ​

FieldTypeDescription
task_keystrArangoDB key of the task to update
titlestr | NoneNew task title
descriptionstr | NoneNew task description
assigned_tolist[TaskAssignment] | NoneUpdated assignment list
start_fromdate | NoneNew earliest start date
due_bydate | NoneNew due date
form_fieldslist[TaskFieldUpdate] | NoneCustom form field updates

None.

Source ​

TaskUpdatedEvent on GitHub

Released under the Apache 2.0 License.