Skip to main content

countsTowardsPersonalProjectLimit()

function countsTowardsPersonalProjectLimit(project:
| {
canAssignTasks: boolean;
childOrder: number;
color: string;
createdAt: Date | null;
defaultOrder: number;
defaultOrderKey?: string | null;
description: string;
id: string;
inboxProject: boolean;
isArchived: boolean;
isCollapsed: boolean;
isDeleted: boolean;
isFavorite: boolean;
isFrozen: boolean;
isShared: boolean;
name: string;
orderKey?: string | null;
parentId: string | null;
updatedAt: Date | null;
url: string;
viewStyle: string;
}
| {
access?: {
visibility: "restricted" | "team" | "public";
};
canAssignTasks: boolean;
childOrder: number;
collaboratorRoleDefault: string;
color: string;
createdAt: Date | null;
defaultOrder: number;
defaultOrderKey?: string | null;
description: string;
folderId: string | null;
id: string;
isArchived: boolean;
isCollapsed: boolean;
isDeleted: boolean;
isFavorite: boolean;
isFrozen: boolean;
isInviteOnly: boolean | null;
isLinkSharingEnabled: boolean;
isShared: boolean;
name: string;
orderKey?: string | null;
role: string | null;
status: string;
updatedAt: Date | null;
url: string;
viewStyle: string;
workspaceId: string;
}): boolean;

Whether a project counts towards the plan's limit on active personal projects: an active personal project other than the Inbox. Shared projects and sub-projects count; workspace projects do not.

Parameters​

ParameterTypeDescription
project| { canAssignTasks: boolean; childOrder: number; color: string; createdAt: Date | null; defaultOrder: number; defaultOrderKey?: string | null; description: string; id: string; inboxProject: boolean; isArchived: boolean; isCollapsed: boolean; isDeleted: boolean; isFavorite: boolean; isFrozen: boolean; isShared: boolean; name: string; orderKey?: string | null; parentId: string | null; updatedAt: Date | null; url: string; viewStyle: string; } | { access?: { visibility: "restricted" | "team" | "public"; }; canAssignTasks: boolean; childOrder: number; collaboratorRoleDefault: string; color: string; createdAt: Date | null; defaultOrder: number; defaultOrderKey?: string | null; description: string; folderId: string | null; id: string; isArchived: boolean; isCollapsed: boolean; isDeleted: boolean; isFavorite: boolean; isFrozen: boolean; isInviteOnly: boolean | null; isLinkSharingEnabled: boolean; isShared: boolean; name: string; orderKey?: string | null; role: string | null; status: string; updatedAt: Date | null; url: string; viewStyle: string; workspaceId: string; }The project to check

Returns​

boolean

True if the project counts towards the limit