When a case is originally within the jurisdiction of the courts of two or more counties, the court which first takes cognizance of the case by the commencement of the proceedings shall retain jurisdiction throughout the case.
Iowa Code § 633.14
2020 Acts, ch 1063, § 334