The group went extinct at the end of the Permian and the niche was subsequently filled by other , new temnospondyls , later joined by reptiles such as the phytosaurs in the Triassic period .
In the Triassic , the niche was filled by other temnospondyls and by reptiles such as the phytosaurs .