AnsweredAssumed Answered

I am trying to write a taskquery which has the condition like assignee==null OR (taskUnassigned() AND taskCandidateGroupIn(list)). Can anyone help me with this. It would be a great help

Question asked by kbojewar on Mar 21, 2017
Latest reply on Mar 22, 2017 by jearles


taskService.createTaskQuery().or().taskUnassigned().taskAssigned(name).endOr().list();

 

I was just testing the functioning of or(). But it is behaving weird when I try to run above statement it gives me all the task which are assigned to some name and all the unassigned tasks.

 

But when I try to run the below command it doent give me the desired result. Can someone help me on this.And how should I include AND and OR in the taskQuery

 

taskService.createTaskQuery().or().taskUnassigned().taskCandidateGroupIn(roles).endOr().list();

Outcomes