While holding office, a supreme court justice, court of appeals judge, district judge, or district associate judge shall not practice as an attorney or counselor or give advice in relation to any action pending or about to be brought in any of the courts of the state.
Iowa Code § 602.1604
83 Acts, ch 186, §1604, 10201; 2003 Acts, ch 151, §31