# How to changed already assigned actor of a task

**URL:** <https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071>\
**Category:** Q&A\
**Created:** [25 April 2018 15:51 UTC](https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071 "2018-04-25T15:51:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![josegante](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@josegante](https://community.ofelia.com/u/josegante)\
**Post date:** [25 April 2018 15:51 UTC](https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071/1 "2018-04-25T15:51:45Z")

</div>

Hi,

I’m using BonitaStudioCommunity-7.6.0 and my new requirement is to change the actor already assigned to a task when a timeout has been reached.

(i.e: assign the approval of holiday request to the manager supervisor in case of the manager doesn’t answer)

Could you please provide some guidance to this task?

Thanks,  
Jose.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [27 April 2018 16:40 UTC](https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071/2 "2018-04-27T16:40:36Z")

</div>

Hello Jose,  
You can reassign tasks in the Administrator console. For more information see:

[[https://documentation.bonitasoft.com/bonita/7.6/tasks](https://documentation.bonitasoft.com/bonita/7.6/tasks)]   
[[https://documentation.bonitasoft.com/bonita/7.6/tasks](https://documentation.bonitasoft.com/bonita/7.6/tasks)]: [https://documentation.bonitasoft.com/bonita/7.6/tasks](https://documentation.bonitasoft.com/bonita/7.6/tasks)

---

<div class="post-metadata">

**Author:** ![josegante](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@josegante](https://community.ofelia.com/u/josegante)\
**Post date:** [27 April 2018 16:47 UTC](https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071/3 "2018-04-27T16:47:09Z")

</div>

Thanks for your help!  
I need to do it in a Groovy script of a task.  
Thanks,  
Jose

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [27 April 2018 16:57 UTC](https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071/4 "2018-04-27T16:57:57Z")

</div>

In a groovy script

apiAccessor.getProcessAPI().assignUserTask(userTaskId, userId)

Obviously, you’ll need the id of the task and user in order to make it work

---

<div class="post-metadata">

**Author:** ![josegante](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@josegante](https://community.ofelia.com/u/josegante)\
**Post date:** [21 May 2018 13:56 UTC](https://community.ofelia.com/t/how-to-changed-already-assigned-actor-of-a-task/9071/5 "2018-05-21T13:56:18Z")

</div>

Thanks a lot Joe… and what about for iterating on all active tasks in order to reassign any? (groovy, please)
