If the affidavit for change is against a judge or magistrate who is to preside who was not regularly scheduled to do so, the provision of § 15-12-27 shall govern if there be sufficient time after the party has knowledge or notice of such change of judge or magistrate, and if there is not sufficient time, the request for disqualification and the affidavit may be filed promptly after such knowledge or notice, but must be filed prior to the time set for the trial of such action.
SDCL 15-12-28