Task Timer and task status update

Task Timer and task status update

Is there a way to automatically change task status when its timer is stopped?