Empty assignee

How to create a filter on tasks for tasks that have an empty assignee

@MarceloCP You can refer this example.

@Autowired
private FilterService filterService;

public void createUnassignedTaskFilter(String processDefinitionKey) {
	TaskQuery taskQuery = taskService.createTaskQuery().processDefinitionKey(processDefinitionKey).taskUnassigned();
	Filter newFilter = new FilterEntity(ResourceTypes.RUNTIME.getName());
	newFilter = newFilter.setName("unassigneTaskFilter").setQuery(taskQuery);
	Filter savedFilter = filterService.saveFilter(newFilter);
	log.info("Unassigned task filter created: {}", savedFilter.getName());
}

I wanted to filter directly on the tasklist. has an option in the unassigned filter, but it didn’t work

Hi @MarceloCP,

Below criteria should work unless user doesn’t have the permission to read the task(s)