# Is it possible to change assignee of a completed task using HistoricTaskService?

**URL:** <https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672>\
**Category:** Flowable Engine\
**Created:** [September 7, 2020, 7:40am UTC](https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672 "2020-09-07T07:40:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AkaiIto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/akaiito/32/1859_2.png) [@AkaiIto](https://forum.flowable.org/u/AkaiIto)\
**Post date:** [September 7, 2020, 7:40am UTC](https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672/1 "2020-09-07T07:40:13Z")

</div>

I am trying to change a Status and assignee of a completed task using HistoricTaskService. Is it even possible?

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [September 7, 2020, 11:59am UTC](https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672/2 "2020-09-07T11:59:12Z")

</div>

No, not through the API. The idea is that history, once created, is never changed (because of audit purposes).

If you really want to do it, you will need to execute a custom Command (fetching the task through the HistoricTaskInstanceEntityManager and updating the assignee) through the managementService#executeCommand method.

---

<div class="post-metadata">

**Author:** ![AkaiIto](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/akaiito/32/1859_2.png) [@AkaiIto](https://forum.flowable.org/u/AkaiIto)\
**Post date:** [September 7, 2020, 12:17pm UTC](https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672/3 "2020-09-07T12:17:01Z")

</div>

@joram Can we reopen a completed Task?

---

<div class="post-metadata">

**Author:** ![akki](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@akki](https://forum.flowable.org/u/akki)\
**Post date:** [September 8, 2020, 8:33am UTC](https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672/4 "2020-09-08T08:33:22Z")

</div>

May be you can draw the situation in workflow in which you would like to bring execution back to the completed task.  
Like a user task, followed by exclusive gateway, giving out to paths, one forward and one backward depending on given situation.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [September 13, 2020, 8:17pm UTC](https://forum.flowable.org/t/is-it-possible-to-change-assignee-of-a-completed-task-using-historictaskservice/6672/5 "2020-09-13T20:17:31Z")

</div>

Reoping a task indeed can only be done as describe by @akki above. Otherwise, you will have to resort to using a custom Command (see first response).
