I can not filter tasks by multiple states in Camunda’s Tasklist API using the /v1/tasks/search endpoint. The state parameter only allows me to specify the state of the tasks you want to filter.
Is there any easy way to search multiple states? Similar questions to the other input parameters such as assignee.
state string
The state of the tasks.
Possible values: [CREATED, COMPLETED, CANCELED, FAILED]
@Lucia_Wang , Currently the Tasklist api (/v1) and Camunda Rest api (/v2) both supports filtering the tasks by one state only. You can create feature request to support filtering the tasks by multiple states.
in v1 you can filter by multiple values using assignees field, same is supported for candidateGroups and candidateUsers. However, this is not supported for status field.
In the v2 version of the api (planned for 8.8), we have an advanced search feature that includes more filtering operations for some fields