Unassigned tasks in Single API

Hi Team,
I am looking for a single api to get the unassigned tasks, currently i am calling two different api and merging the response. Below are the api details.

  • /task?unassigned=true&candidateGroups=XXX,YYYY

  • /task?unassigned=true&candidateUser=user1

we are in the process of improving the performance. and would like to have the single call api to get the candidate group tasks and candidate user tasks. i tried orQueries but no luck as orQueries seems to be working for task level variables.

Best Regards
Yuvaraj

Hi @rajesh.yuvaraj and welcome to the forum,

You can use a post request to express more complex queries:
https://docs.camunda.org/rest/camunda-bpm-platform/7.19/#tag/Task/operation/queryTasks
Check the orQueries, they may serve your purpose.