Query for tasks not assigned

I’d like to query for tasks not yet assigned (or claimed) using taskService. What is the correct way?

I tried

taskService.createTaskQuery().taskAssignee(null).list()

but the error “Assignee is null” tells me the method taskAssignee() should be used only to query for assigned tasks.

Hi,

you could use the taskUnassigned() method of the task query.

Cheers,
Sebastian

2 Likes

Hi @menski is there a way to query only assiegned tasks?