mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
use all the filter fields to count the elements (#7595)
This commit is contained in:
parent
abd540325f
commit
3f7316f393
@ -259,9 +259,25 @@ export class TaskFilterCloudService extends BaseCloudService {
|
|||||||
if (taskFilter.appName || taskFilter.appName === '') {
|
if (taskFilter.appName || taskFilter.appName === '') {
|
||||||
const queryUrl = `${this.getBasePath(taskFilter.appName)}/query/v1/tasks`;
|
const queryUrl = `${this.getBasePath(taskFilter.appName)}/query/v1/tasks`;
|
||||||
const queryParams = {
|
const queryParams = {
|
||||||
|
processInstanceId: taskFilter.processInstanceId,
|
||||||
|
processDefinitionId: taskFilter.processDefinitionId,
|
||||||
|
processDefinitionName: taskFilter.processDefinitionName,
|
||||||
assignee: taskFilter.assignee,
|
assignee: taskFilter.assignee,
|
||||||
status: taskFilter.status,
|
status: taskFilter.status,
|
||||||
|
taskName: taskFilter.taskName,
|
||||||
appName: taskFilter.appName,
|
appName: taskFilter.appName,
|
||||||
|
assignmentType: taskFilter.assignmentType,
|
||||||
|
owner: taskFilter.owner,
|
||||||
|
taskId: taskFilter.taskId,
|
||||||
|
parentTaskId: taskFilter.parentTaskId,
|
||||||
|
priority: taskFilter.priority,
|
||||||
|
lastModifiedFrom: taskFilter.lastModifiedFrom,
|
||||||
|
lastModifiedTo: taskFilter.lastModifiedTo,
|
||||||
|
standalone: taskFilter.standalone,
|
||||||
|
createdDate: taskFilter.createdDate,
|
||||||
|
completedDate: taskFilter.completedDate,
|
||||||
|
completedBy: taskFilter.completedBy,
|
||||||
|
dueDate: taskFilter.dueDate,
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
};
|
};
|
||||||
return this.get<TaskCloudNodePaging>(queryUrl, queryParams).pipe(
|
return this.get<TaskCloudNodePaging>(queryUrl, queryParams).pipe(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user