Skip to main content

WebhookItemComment

type WebhookItemComment = {
content: string;
fileAttachment: | {
fileDuration?: number | null;
fileName?: string | null;
fileSize?: number | null;
fileType?: string | null;
fileUrl?: string | null;
image?: string | null;
imageHeight?: number | null;
imageWidth?: number | null;
resourceType: string;
title?: string | null;
uploadState?: "completed" | "pending" | null;
url?: string | null;
}
| null;
id: string;
isDeleted: boolean;
item: {
addedAt: Date | null;
addedByUid: string | null;
assignedByUid: string | null;
checked: boolean;
childOrder: number;
completedAt: Date | null;
content: string;
dayOrder: number;
deadline: | {
date: string;
lang: string;
}
| null;
description: string;
due: | {
date: string;
datetime?: string | null;
isRecurring: boolean;
lang?: string | null;
string: string;
timezone?: string | null;
}
| null;
duration: | {
amount: number;
unit: "minute" | "day";
}
| null;
id: string;
isCollapsed: boolean;
isDeleted: boolean;
isUncompletable: boolean;
labels: string[];
parentId: string | null;
priority: number;
projectId: string;
responsibleUid: string | null;
sectionId: string | null;
updatedAt: Date | null;
url: string;
userId: string;
};
postedAt: Date | null;
postedUid: string | null;
reactions: Record<string, string[]> | null;
taskId: string;
uidsToNotify: string[] | null;
url: string;
};

A comment attached to a task, delivered in a webhook payload.

Type Declaration

NameTypeDefault value
contentstring-
fileAttachment| { fileDuration?: number | null; fileName?: string | null; fileSize?: number | null; fileType?: string | null; fileUrl?: string | null; image?: string | null; imageHeight?: number | null; imageWidth?: number | null; resourceType: string; title?: string | null; uploadState?: "completed" | "pending" | null; url?: string | null; } | null-
idstring-
isDeletedboolean-
item{ addedAt: Date | null; addedByUid: string | null; assignedByUid: string | null; checked: boolean; childOrder: number; completedAt: Date | null; content: string; dayOrder: number; deadline: | { date: string; lang: string; } | null; description: string; due: | { date: string; datetime?: string | null; isRecurring: boolean; lang?: string | null; string: string; timezone?: string | null; } | null; duration: | { amount: number; unit: "minute" | "day"; } | null; id: string; isCollapsed: boolean; isDeleted: boolean; isUncompletable: boolean; labels: string[]; parentId: string | null; priority: number; projectId: string; responsibleUid: string | null; sectionId: string | null; updatedAt: Date | null; url: string; userId: string; }TaskSchema
item.addedAtDate | null-
item.addedByUidstring | null-
item.assignedByUidstring | null-
item.checkedboolean-
item.childOrdernumber-
item.completedAtDate | null-
item.contentstring-
item.dayOrdernumber-
item.deadline| { date: string; lang: string; } | null-
item.descriptionstring-
item.due| { date: string; datetime?: string | null; isRecurring: boolean; lang?: string | null; string: string; timezone?: string | null; } | null-
item.duration| { amount: number; unit: "minute" | "day"; } | null-
item.idstring-
item.isCollapsedboolean-
item.isDeletedboolean-
item.isUncompletableboolean-
item.labelsstring[]-
item.parentIdstring | null-
item.prioritynumber-
item.projectIdstring-
item.responsibleUidstring | null-
item.sectionIdstring | null-
item.updatedAtDate | null-
item.urlstring-
item.userIdstring-
postedAtDate | null-
postedUidstring | null-
reactionsRecord<string, string[]> | null-
taskIdstringitemId
uidsToNotifystring[] | null-
urlstring-