Skip to main content

DatabaseTaskStore.list()

Home > @backstage/plugin-scaffolder-backend > DatabaseTaskStore > list

Signature:

list(options: {
createdBy?: string;
status?: TaskStatus;
filters?: {
createdBy?: string | string[];
status?: TaskStatus | TaskStatus[];
};
pagination?: {
limit?: number;
offset?: number;
};
order?: {
order: 'asc' | 'desc';
field: string;
}[];
}): Promise<{
tasks: SerializedTask[];
totalTasks?: number;
}>;

Parameters

Parameter

Type

Description

options

{ createdBy?: string; status?: TaskStatus; filters?: { createdBy?: string | string[]; status?: TaskStatus | TaskStatus[]; }; pagination?: { limit?: number; offset?: number; }; order?: { order: 'asc' | 'desc'; field: string; }[]; }

**Returns:**

Promise<{ tasks: SerializedTask[]; totalTasks?: number; }>