Tasklist filter for all assigned tasks

I have been asked to create a filter for assigned tasks. Seems like this should be quite easy given there is a filter for unassigned tasks. But I cannot figure out how to build this. I don’t care what specific user it is assigned to, just want to filter on all tasks that are assigned.

Is there a way to say the AssignedUser is not empty or something similar?

@marksy99 yes it’s possible. You can use below camunda rest api’s to query for all assigned tasks.

Refer the docs: Get Tasks | docs.camunda.org

You can query for assigned tasks by filtering with query parameters like this:

GET /task?assigned=true & <you can add additional query parameters here....>

(or) you can query with json payload for multiple filters like below:

{
  "active" : true,
  "assigned" : true,
  "processDefinitionKey" : "< processDefinitionKey>"
}

I am trying to do this in the Task List UI using the filters. When I choose the Criteria section under Edit Filter, the only Assigned options require a Userid or other criteria to be entered. Was trying to figure out if I can use the filters are create a criteria expression to get all Assigned tasks. So the opposite of the “Unassigned” filter.

Hi @marksy99,

Indeed, we don’t have this filter yet. I created a Feature Request for it: https://app.camunda.com/jira/browse/CAM-10971

In the meantime, you can achieve the same behavior with Assignee like: %. The % will match any assignee.

Hope this helps!

2 Likes