For criminal defendants, the right to a jury trial is found in the Sixth Amendment of the U.S. Constitution. This right and the others enshrined in the Constitution are intended to keep the country from instituting an oppressive government.
Arizona has a similar right to a trial by jury found in Ariz. Const. Art. VI § 17. The right to a jury trial in criminal cases is recognized in felony cases in Arizona.
There are four ways to undo a guilty plea in the Arizona state court system. The first way is to simply withdraw the plea. This can be done prior to the court accepting the plea. The second method is to file a Motion to Withdraw the Plea to Avoid a Manifest Injustice. The third is to file an appeal. And fourth is through Rule 33, Post-Conviction Relief (PCR).
A writ of habeas corpus is filed to bring a prisoner before the court for any of the following reasons: to determine the legality of their imprisonment; to allow them to argue there is not sufficient cause to imprison them; to give testimony, or...