when task is finished added id to the tasks array of parent project