In actions cognizable in equity, wherein issues of fact are joined, the court may order the evidence or any part thereof to be taken in the form of depositions, or either party may take depositions as authorized by law, and may in the discretion of the court be granted a continuance for that purpose.
Iowa Code § 624.3