# Create Task and attach it to Existing Active Case instance

**URL:** <https://forum.flowable.org/t/create-task-and-attach-it-to-existing-active-case-instance/7426>\
**Category:** Flowable Engine\
**Created:** [January 30, 2021, 11:35am UTC](https://forum.flowable.org/t/create-task-and-attach-it-to-existing-active-case-instance/7426 "2021-01-30T11:35:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidwaf](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@davidwaf](https://forum.flowable.org/u/davidwaf)\
**Post date:** [January 30, 2021, 11:35am UTC](https://forum.flowable.org/t/create-task-and-attach-it-to-existing-active-case-instance/7426/1 "2021-01-30T11:35:20Z")

</div>

Hi,  
I can create a new task via REST api just fine. How do I attach it to an existing active case instance? This is the closest I could find: [CMMN plan item injection by mkiener · Pull Request #2117 · flowable/flowable-engine · GitHub](https://github.com/flowable/flowable-engine/pull/2117) but could not really get any way to do it.

Thanks.

---

<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:** [February 8, 2021, 12:16pm UTC](https://forum.flowable.org/t/create-task-and-attach-it-to-existing-active-case-instance/7426/2 "2021-02-08T12:16:54Z")

</div>

The PR mentioned above adds the possibility to inject plan items dynamically in a case instance. If the plan item is a human task, activating it should make it a real task. We do plan to add a higher-level API on top of this in the future.
