Skip to main content

Query for tasks

Swagger UIyaml
post/cmmn-api/cmmn-query/tasks

All supported JSON parameter fields allowed are exactly the same as the parameters found for getting a collection of tasks (except for candidateGroupIn which is only available in this POST task query REST service), but passed in as JSON-body arguments rather than URL-parameters to allow for more advanced querying and preventing errors with request-uri’s that are too long. On top of that, the query allows for filtering based on task and process variables. The taskVariables and processInstanceVariables are both JSON-arrays containing objects with the format as described here.

Request body application/json · TaskQueryRequest

startinteger
sizeinteger
sortstring
orderstring
taskIdstring
namestring
nameLikestring
nameLikeIgnoreCasestring
descriptionstring
descriptionLikestring
priorityinteger
minimumPriorityinteger
maximumPriorityinteger
assigneestring
assigneeLikestring
ownerstring
ownerLikestring
unassignedboolean
delegationStatestring
candidateUserstring
candidateGroupstring
candidateGroupInstring[]
ignoreAssigneeboolean
involvedUserstring
caseInstanceIdstring
caseInstanceIdWithChildrenstring
planItemInstanceIdstring
propagatedStageInstanceIdstring
scopeIdstring
scopeIdsstring[]
withoutScopeIdboolean
subScopeIdstring
scopeTypestring
caseDefinitionIdstring
caseDefinitionKeystring
caseDefinitionKeyLikestring
caseDefinitionKeyLikeIgnoreCasestring
caseDefinitionKeysstring[]
createdOndate-time
createdBeforedate-time
createdAfterdate-time
excludeSubTasksboolean
taskDefinitionKeystring
taskDefinitionKeyLikestring
dueDatedate-time
dueBeforedate-time
dueAfterdate-time
withoutDueDateboolean
activeboolean
includeTaskLocalVariablesboolean
includeProcessVariablesboolean
tenantIdstring
tenantIdLikestring
withoutTenantIdboolean
withoutProcessInstanceIdboolean
candidateOrAssignedstring
categorystring
rootScopeIdstring
parentScopeIdstring
categoryInstring[]
categoryNotInstring[]
withoutCategoryboolean

Responses

Indicates request was successful and the tasks are returned. · DataResponseTaskResponse

totalinteger
startinteger
sortstring
orderstring
sizeinteger

requiredGrey names have no description in the spec