Notification types
taskChatActivity
Fired when a board task's chat has activity worth surfacing as a peek card.
Delivered as the
notification socket event with type set to taskChatActivity.Fired when a board task's chat has activity worth surfacing as a peek card.
The assetChatActivity card for a discussion in a board task's own chat, with the task in place of the asset. Posted into the project chat of the chat's side while the task is on an active board shown to that side. Carries the same snapshot, so the card renders without a second round trip.
Payload for the taskChatActivity event.
Payload
| Property | Type | Required | Description |
|---|---|---|---|
type | string | yes | The specific type of notification event (matches the top-level key, e.g., 'workspaceCreate'). Every value in notificationTemplates (config/notifications.js) is documented in this tag. |
initiatorId | string (uuid) | no | ID of the user or system that initiated the event. Null if initiatorType is 'system'. |
initiatorType | "user" | "system" | yes | Type of initiator (user or system). |
initiator | object | null | no | Populated initiator user object (if initiatorType is 'user'). |
resourceId | string (uuid) | yes | ID of the primary resource this notification pertains to. |
resourceType | string | yes | Type of the primary resource this notification pertains to. |
channels | string[] | no | The specific channels this notification was published on. Present on notification objects returned by the REST API only; the socket 'notification' payload omits it (and id). |
createdAt | string (date-time) | yes | Timestamp when the notification was created. |
tokens | object | no |
tokens
| Property | Type | Required | Description |
|---|---|---|---|
taskId | string | no | |
task | object | no | The task as the card draws it — id, number, subject, status, boardId, boardName. |
chatId | string | no | |
chatSubject | string | null | no | |
visibility | string | no | |
projectId | string | no | |
participants | object[] | no | |
participantCount | integer | no | |
recentMessages | object[] | no | Snapshot of the latest messages, so the card renders without a second fetch. |
messageCount | integer | no | |
lastActivityAt | string | null | no |