Can we assign multiple tasks to assignee at once ( bulk assign)

cancel
Showing results for 
Search instead for 
Did you mean: 
divyajanarthana
Member II

Can we assign multiple tasks to assignee at once ( bulk assign)

I am trying to assign multiple tasks(i have a list of taskIds)  to a user at once. Right now i do it one bye one using the API

PUT runtime/tasks/{taskId}
{   "assignee" : "assignee"
}

Is there a better way to do the bulk assign?

1 Reply
jearles
Established Member II

Re: Can we assign multiple tasks to assignee at once ( bulk assign)

Divya,

Given my exposure to the system, and some extensive searching through documentation - it seems that the only OOTB task update option (for assignees, variable data, etc) is the one you have found. However, creating and exposing the logic for a bulk assign on your own would not be exceptionally difficult if you'd like to go that route.

Take a look at the org.activiti.rest.service.api.runtime.task.TaskResource.Java class to see how that call is already being performed, and you could simply extend that functionality with your own custom code.

-JEarles