Skip to main content

Task

type Task = {
addedAt: null | string;
addedByUid: null | string;
assignedByUid: null | string;
checked: boolean;
childOrder: number;
completedAt: null | string;
content: string;
dayOrder: number;
deadline: | null
| {
date: string;
lang: string;
};
description: string;
due: | null
| {
date: string;
datetime?: null | string;
isRecurring: boolean;
lang?: null | string;
string: string;
timezone?: null | string;
};
duration: | null
| {
amount: number;
unit: "minute" | "day";
};
id: string;
isCollapsed: boolean;
isDeleted: boolean;
labels: string[];
noteCount: number;
parentId: null | string;
priority: number;
projectId: string;
responsibleUid: null | string;
sectionId: null | string;
updatedAt: null | string;
url: string;
userId: string;
};

Represents a task in Todoist.

Type Declaration

NameType
addedAtnull | string
addedByUidnull | string
assignedByUidnull | string
checkedboolean
childOrdernumber
completedAtnull | string
contentstring
dayOrdernumber
deadline| null | { date: string; lang: string; }
descriptionstring
due| null | { date: string; datetime?: null | string; isRecurring: boolean; lang?: null | string; string: string; timezone?: null | string; }
duration| null | { amount: number; unit: "minute" | "day"; }
idstring
isCollapsedboolean
isDeletedboolean
labelsstring[]
noteCountnumber
parentIdnull | string
prioritynumber
projectIdstring
responsibleUidnull | string
sectionIdnull | string
updatedAtnull | string
urlstring
userIdstring

See

https://todoist.com/api/v1/docs#tag/Tasks