Issues not demanded for trial by jury as provided in § 15-6-38 shall be tried by the court; but, notwithstanding the failure of a party to demand a jury in an action in which such a demand might have been made of right, the court in its discretion upon motion may order a trial by a jury of any or all issues.
SDCL 15-6-39(b)