Fetch tasks that doesnt belong to a group

Hey All, I would like to fetch a list of tasks that doesnt belong to a certain group using the camunda task service. I have see that the API provides methods that make use of the candidate group like taskCandidateGroup(String candidateGroup). I am just wondering if there is anything like taskCandidateGroupNotIn()

Hi, I don’t think there is a specific API for this. Out of curiosity, what is your use case? Seems very rare to me.
What if you first query for all the groups, remove the ‘notInGroup’ from that list and pass the new list to the taskCandidateGroup(). Be aware that this would not return the tasks which have no candidate groups at all.