Gas central automation

Personally, I am unable to do the following automation: when a thermostat has reached the set temperature and in another room the temperature has not reached the set one, do not turn off the boiler. Only turn off the thermostat in the room where the temperature has reached the set one. The boiler should continue to run until the temperature in all rooms reaches the desired one.