Whenever it appears to the court before which any proceedings under this chapter are pending that the ends of justice require that other parties shall be brought before the court, the court may cause them to be made parties defendant and summoned, whether or not they reside in the county where such action is pending.