Change status Task automatic

Hi @thunq,

Here, we share the reference of the code, and how it works.

I hope this helps.

Thank You!