Unassign Workflows task

Hi,

Workflows supports assigning a task using the assignTask action in the client, which in turn calls the AssignTaskOperation in the server. Yet I see no obvious way to unassign a user (removing the assignee). Both of these interfaces expect an assignee as a string and do not permit null, and there don’t seem to be other methods specifically for unassigning.

How should we go about unassigning a user here? Submit null anyway?

Moin @marcel-calm-dew,
did you already try to unassign the task by setting the empty string "" as assignee?

The Workflows component expects an empty string for unassigning a specific task.
I agree that a dedicated section for the ASSIGN_TASK would be beneficial here.

Kind regards,
Jan

Hi @marcel-calm-dew,
did the suggested solution work?

Hi @katerina-icy-token, it “works” in the sense that it can be interpreted as an intent to mark the task as “unassigned”, but we’ve used custom logic to accomplish this in the backend. I.e. the “” / empty string as a constant to signify “unassigned”. However, I believe the most idiomatic or correct approach would be to either use Unassign a task | Camunda 8 Docs or allow submitting a null value for assignee.