Automatic status change in task

It would be nice to click on the icon of a created task so that it gets a check mark.

But at the same time the status is automatically set to “done” and “done on” gets the date of this day.