Skip to main content

TaskStore.list()

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

Warning: This API is now obsolete.

Make sure to pass createdBy and status in the filters parameter instead

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; }>