Skip to content

GetTasksRequestDto ​

← Task DTO

Filters for GET Api/Tasks, GET Api/Tasks/Assigned and GET Api/Tasks/Owner. Every field except pagination is optional — an absent field means the condition is not applied.

In each facet available is the universe the counts are computed over and selected is the choice; an absent or empty selected means every value. A facet left out entirely yields no counts for it. A page of rows always comes back — to show nothing until the user picks a status, decide that in the UI.

The facet counts describe the slice left by the other filters, so narrowing by name or by a date range also moves the numbers in the status, type, area and priority chips.

On /Assigned and /Owner the server scopes the result to the caller and ignores assignedUserId and ownerUserId respectively, along with externalId, externalType and emailId.

Backend-источник: features.taskservice/Nuget.TaskApiClient/Dto/Requests/GetTasksRequestDto.cs (features.taskservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
paginationPaginationда—Pagination
statusTypeFilterPaginationFilter<StatusTypeDto>нет—PaginationFilter<StatusTypeDto>
taskTypeFilterPaginationFilter<TaskTypeDto>нет—PaginationFilter<TaskTypeDto>
taskAreaTypeFilterPaginationFilter<TaskAreaTypeDto>нет—PaginationFilter<TaskAreaTypeDto>
priorityFilterPaginationFilter<PriorityTypeDto> | nullнетFourth facet, alongside status, type and area. Omit it to get neither priority counts nor priority filtering. PriorityTypeDto.None is a stored value, but the facet counts use 0 as the "all" bucket, so tasks with no priority are counted by no chip. Selecting None still filters them.—
assignedUserIdnumber | nullнет—int?
ownerUserIdnumber | nullнет——
externalIdnumber | nullнет—int?
externalTypeExternalTypeDto | nullнет—ExternalTypeDto?
emailIdnumber | nullнет——
searchInputstring | nullнетFull-text search over the task name with a trigram fallback. Independent of name — passing both narrows by both.—
namestringнетSubstring match on the task name.—
externalTypesExternalTypeDto[]нетMulti-select form of externalType. Applies on its own, without externalId.—
createdAtPaginationRangeFilter<string>нетISO 8601 range over the creation timestamp.—
updatedAtPaginationRangeFilter<string>нетISO 8601 range over the last-update timestamp. Tasks never updated are excluded.—
deadlineDateStartPaginationRangeFilter<string>нетISO 8601 range over the planned start of the deadline window.—
deadlineDateFinishPaginationRangeFilter<string>нетISO 8601 range over the planned end of the deadline window. Overdue tasks are this with to set to now, plus a statusTypeFilter.selected that leaves out Done and Closed.—
dateStartPaginationRangeFilter<string>нетISO 8601 range over the actual start.—
dateFinishPaginationRangeFilter<string>нетISO 8601 range over the actual finish.—
estimationPaginationRangeFilter<string>нетRange over the estimate, as hh:mm:ss ("01:30:00" is an hour and a half).—
parentTaskIdnumber | nullнетExact match on the parent task, for listing subtasks of one task.—
chatIdnumber | nullнетExact match on the linked chat.—
idnumber | nullнетExact match on the task id — the number the task list shows in its first column.—
workResultstringнетSubstring match on the work result text.—

Пример ​

json
{
  "pagination": "<Pagination>",
  "statusTypeFilter": "<PaginationFilter<StatusTypeDto>>",
  "taskTypeFilter": "<PaginationFilter<TaskTypeDto>>",
  "taskAreaTypeFilter": "<PaginationFilter<TaskAreaTypeDto>>",
  "priorityFilter": "<paginationfilter<prioritytypedto>>",
  "assignedUserId": 0,
  "ownerUserId": 0,
  "externalId": 0,
  "externalType": "<externaltypedto>",
  "emailId": 0,
  "searchInput": "string",
  "name": "string",
  "externalTypes": [],
  "createdAt": "<PaginationRangeFilter<string>>",
  "updatedAt": "<PaginationRangeFilter<string>>",
  "deadlineDateStart": "<PaginationRangeFilter<string>>",
  "deadlineDateFinish": "<PaginationRangeFilter<string>>",
  "dateStart": "<PaginationRangeFilter<string>>",
  "dateFinish": "<PaginationRangeFilter<string>>",
  "estimation": "<PaginationRangeFilter<string>>",
  "parentTaskId": 0,
  "chatId": 0,
  "id": 0,
  "workResult": "string"
}