{1} This case involves a mandamus action brought in the district court seeking to enforce adjudicated rights to water in the Mimbres River Stream System in southwestern New Mexico. San Lorenzo Community Ditch Association appeals from a district court order quashing a peremptory writ of mandamus after the district court determined that a peremptory writ of mandamus was not proper because the pleadings raised issues of fact and that San Lorenzo otherwise has a plain, speedy, and adequate remedy in the ordinary course of the law. We conclude that we do not have jurisdiction over this case because no final, appealable order is before us. We dismiss the appeal.
BACKGROUND AND PROCEDURAL HISTORY
{2} The history of this case began in 1970 when the State Engineer filed a complaint in intervention to adjudicate all water rights having as their source of water the public surface or underground waters of the Mimbres River Stream System or Mimbres Underground Water Basin. In 1993, the final decree adjudicating those rights was filed in the district court. The final decree determined in part that San Lorenzo has water rights that are senior to those of other upstream individuals and entities who also own water rights enabling them to divert water from the Mimbres River. All defendants, their successors, assigns, lessees, and any other person having actual or constructive knowledge of the decree were “permanently enjoined from any diversion or use of the public waters of the Mimbres River Stream System and Mimbres Underground Water Basin, except in accordance with the adjudication orders and this decree.” The final decree further provided that the court would appoint a Water Master to administer the orders within the decree and that the court would retain jurisdiction of the case to enforce its adjudication orders and to otherwise administer its provisions. The district court then appointed the Water Master requested by the State Engineer.
{3} In September 2003, San Lorenzo filed a petition for preliminary and permanent injunction to enjoin upstream surface water users from diverting water from the Mimbres River when the flows of the river were insufficient to satisfy its own diversion requirements as adjudicated in the final decree. While the petition alleged that upstream surface water users were diverting surface water from the Mimbres River in derogation of its superior rights, it also acknowledged that it was not possible to determine if the cause of San Lorenzo’s water supply shortages was due to the Water Master failing to measure or monitor the diversions or because of drought conditions. In part, San Lorenzo’s petition for preliminary and permanent injunction requested the district court to enter its order:
A. Granting its preliminary and permanent injunction requiring that the respondents, their agents and employees from diverting the surface waters of the Mimbres River until and so long as the flow of the Mimbres River arriving at the San Lorenzo Community Ditch diversion dam is 6.7 cubic feet per second;
B. Issuing a mandatory injunction requiring the respondents to construct head-gates, if one does not exist, and install measuring devices on their ditches[.]
{4} The district court then filed an order of reference to the Water Master directing the Water Master to convene a meeting of San Lorenzo and private upstream ditches in an effort to apportion the water so that San Lorenzo could get its rightful priority and if no agreement among the ditches was reached, “the Water[M]aster may specify a rotation period for the allocation of water among the ditches.” A meeting was subsequently convened and the representatives of the ditches were unable to agree upon a rotation schedule for distribution of water. Accordingly, the Water Master ordered a rotation system of water distribution on April 8, 2004. San Lorenzo refused to abide by the rotation schedule established by the Water Master, and the Water Master filed a motion requesting that San Lorenzo show cause why it should not be held in contempt for failure to comply with the rotation system. The show cause hearing was set for June 29, 2004.
{5} On June 28, 2004, the day before the show cause hearing, San Lorenzo filed a petition for peremptory writ of mandamus. The petition alleges that San Lorenzo requested that the Water Master administer priorities on the Mimbres River pursuant to the final decree and its Priority Call and Demand for Water but, because the Water Master refused to perform his duties, junior upstream water users were diverting water from the Mimbres River in violation of its senior rights. The petition alleged that the maximum diversion rate for the San Lorenzo Community ditch was computed to be at least 6.7 cubic feet per second during the month of July and that San Lorenzo had already filed a petition for preliminary and permanent injunction asking the court to enjoin the upstream holders of junior priority rights from diverting any water from the Mimbres River when the flow of the river at the San Lorenzo Community Ditch Diversion was 6.7 cubic feet per second or less. Therefore, San Lorenzo requested that the court issue a peremptory writ of mandamus to the Water Master “ordering him to administer water rights by priority in times of shortage when requested to do so by water right owners or community ditches having priority to divert and use water and to curtail or terminate the diversion and use of water by junior priority water rights that take water out-of-priority.”
{6} A “Peremptory Writ of Mandamus” was then issued by the district court. In pertinent part, the writ recites that San Lorenzo does not have a remedy at law and that San Lorenzo “makes a prima facie showing that the petitioner may be entitled to the relief sought by the Petition.” The “Peremptory Writ of Mandamus” then simply states, “IT IS THEREFORE ORDERED that the Petition for Writ of Mandamus in the above case be and hereby is granted[,]” and that the Water Master file a response to the petition within thirty days after being served with the writ.
{7} The State Engineer filed the answer on behalf of the Water Master, which admitted and denied various allegations made in the petition for peremptory writ of mandamus. In pertinent part, the Water Master asserted that the petition should be denied because San Lorenzo had an adequate remedy at law, namely the pending petition for preliminary and permanent injunctions which San Lorenzo had failed to prosecute. Further, the Water Master disputed San Lorenzo’s factual claim of a maximum diversion rate of 6.7 cubic feet per second and asserted that “reliance on a calculated maximum diversion rate alone is not dispositive of the actual rate of flow Petitioner’s [sic] require to meet existing soil and crop conditions, rather it is a maximum rate when conditions so require.”
{8} The district court held a hearing and issued a memorandum opinion after it “considered everything submitted on the Petition
ANALYSIS
{9} The issue of whether the trial court’s order is appealable has not been raised by the parties. However, “an appellate court has the duty to determine whether it has jurisdiction of an appeal,” therefore “it will examine the record and, if required, will sua sponte question its jurisdiction.” Rice v. Gonzales,
{10} A mandamus proceeding is technical in nature and closely regulated by statute. See In re Grand Jury Sandoval County,
{11} Mandamus lies only to compel a public officer to perform an affirmative act where, on a given state of facts, the-public officer has a clear legal duty to perform the act and there is no other plain, speedy, and adequate remedy in the ordinary course of the law. See West v. San Jon Bd. of Educ.,
[T]o compel the performance of an act which the law specially enjoins as a duty resulting from an office, trust or station; but though it may require an inferior tribunal to exercise its judgment, or proceed to the discharge of any of its functions, it cannot control judicial discretion.
Section 44-2-4. Further, “[t]he writ shall not issue in any case where there is a plain, speedy and adequate remedy in the ordinary course of law.” Section 44-2-5. In light of its characteristics, it is settled that “ ‘Mandamus is a drastic remedy to be invoked only in extraordinary circumstances.’ ” State ex rel. Shell W. E & P, Inc. v. Chavez,
{12} A mandamus action is initiated by the filing of a verified application or petition for writ of mandamus. See Brantley Farms,
{13} The statute specifies what must be contained in the writ:
The alternative writ shall state concisely the facts showing the obligation of the defendant to perform the act, and his omission to perform it, and command him, that immediately after the receipt of the writ, or at some other specified time, he do the act required to be performed, or show cause before the court out of which the writ issued, at a specified time and place, why he has not done so; and that he then and there return the writ with his certificate of having done as he is commanded. The peremptory writ shall be in a similar form, except that the words requiring the defendant to show cause why he has not done as commanded, shall be omitted.
Section 44-2-6 (emphasis added).
{14} The writ itself is therefore required to set forth the full and complete allegations which entitle the petitioner to the writ. See City of Sunland Park v. N.M. Pub. Regulation Comm’n,
{15} If the writ is not legally sufficient because it lacks the necessary allegations of fact, but the respondent nevertheless answers the allegations contained in the petition as if they were set forth in the writ, then this defect in the writ is waived and the allegations contained in the petition itself are considered. City of Sunland Park,
{16} In this particular ease, San Lorenzo filed a verified “petition for peremptory writ of mandamus” alleging that the Water Master was failing to perform his clear legal duty to administer the adjudicated water right priorities of the Mimbres River to its detriment and that it had no plain, speedy, and adequate remedy in the course of the law. The district court thereupon issued a “Peremptory Writ of Mandamus.” However, the writ was not a true peremptory writ because it directed the Water Master to “prepare and file with [the district] court and serve on the interested parties within thirty days after the date of service of this Writ a response to the Petition for Peremptory Writ of Mandamus.” Instead, the writ which was actually issued was in the nature of an alternative writ by directing that an answer be filed. Moreover, the writ itself was defective because it did not set forth the full and complete facts which demonstrated that San Lorenzo was entitled to the writ. Nevertheless, the Water Master answered the factual allegations contained in the petition. Thus, San Lorenzo’s petition and the Water Master’s answer constituted the pleadings in the case, setting forth the issues that were before the court.
{17} Pertinent to this case, San Lorenzo’s petition alleges:
9. The court adjudicated under the San Lorenzo Community Ditch a total of 398.5 acres with a priority of December [1869] and 16.5 acres with a priority of 1875.
17. In December 2002 or early January 2003 the San Lorenzo Community Ditch installed three measuring devices to determine the rate of flow and the volume of water diverted by the ditch.
18. The maximum diversion rate for the San Lorenzo Community Ditch is computed to be at least 6.7 cubic feet per second during the month of July. This maximum monthly diversion rate is based on a consumptive irrigation requirement of 4.47 inches per acre, an on-farm irrigation efficiency of 50 percent, a farm delivery requirement of 0.74 feet per acre, an off-farm conveyance efficiency of 75 percent, and a total irrigated acreage of 415.4 acres. If the off-farm conveyance efficiency is 65 percent rather than 75 percent, the maximum diversion rate would be at least 7.8 cubic feet per second.
25. The Watermaster has a present ability to administer priorities using the computed maximum diversion requirement for the San Lorenzo Community Ditch and the measuring devices that have been installed on the Ditch.
In response to these allegations, the Water Master answered:
9. ... [U]pon information and belief that the original adjudicated acreage for the San Lorenzo Community Ditch Association was 415.40, 16.5 acres of which have an 1875 priority date, and that water rights have been transferred off of 46.17 acres adjudicated a December 1869 priority date, pursuant to permits issued by the Office of the State Engineer, leaving 352.73 acres with a December 1869 priority date currently entitled to irrigation rights. Based on 352.73 acres instead of 415.4 acres, the Office of the State Engineer hydrologist calculates a maximum diversion rate of 5.7 cubic feet per second when it is needed, but not as a continuous rate.
14. Respondentsdeny that the maximum diversion rate described in paragraph 18 of the Petition is accurate. As noted, based on 352.73 acres instead of 415.4 acres, the Office of the State Engineer hydrologist calculates a maximum diversion rate of 5.7 cubic feet per second when it is needed, but not as a continuous rate. Respondents further state that reliance on a calculated maximum diversion rate alone is not dispositive of the actual rate of flow Petitioner’s require to meet existing soil and crop conditions, rather it is a maximum rate when conditions so require.
19. Respondents deny paragraph 25 of the Petition and affirmatively state that, while the maximum diversion rate alone is sufficient to establish the maximum amount of water San Lorenzo may require, field investigations are necessary to establish the acreage and crops actually being irrigated and the amount of the flow required in order to determine which juniors may be subject to curtailment and the duration of the curtailment. The State admits that the measuring devices at San Lorenzo could be used in administering a priority call but states that the measuring devices, standing alone, are not sufficient for strict priority administration.
20. In response to paragraph 25 of the Petition, Respondents further state that there is no device on the river itself to indicate when flows reach a certain level at the San Lorenzo Community Ditch; rather, as noted in Petitioner’s paragraph 17, the measuring devices determine only the rate of flow and volume of water diverted by the ditch. Moreover, effective administration will require a more detailed analysis of the entire Mimbres surface water system, including more comprehensive measurement or estimation of flows, demands, diversions, and returns. Finally, San Lorenzo has failed and refused to provide the Water[M]aster or his assistants with access to the measuring devices installed on the San Lorenzo ditch.
{18} The memorandum opinion filed by the district court states that it appears that the answer filed by the Water Master raises questions of fact and that mandamus should not issue when issues of fact are raised. “ ‘The rights of the parties may not be adjudicated by mandamus.’ ” (quoting Concerned Residents for Neighborhood, Inc. v. Shollenbarger,
{19} Where issues of fact are raised by the alternative writ and answer, a trial must first be held to resolve those factual issues to determine if the petitioner is entitled to the extraordinary writ of mandamus. “Relevant rights and duties must be established before a writ of mandamus can issue.” Schein v. N. Rio Arriba Elec. Coop., Inc.,
[I]n all eases of proceedings by mandamus in any district court of this state, the final judgment of the court thereon shall be reviewable by appeal or writ of error in the same manner as now provided by law in other civil cases.
{21} A mandamus proceeding is treated in the same way as any other civil action to determine if a final, appealable order has been filed. In Board of Trustees of Village of Los Ranchos de Albuquerque v. Sanchez,
{22} We hold that no final, appealable order was entered in the district court because further proceedings are contemplated. The petition and answer raise issues of fact that have not been decided, and no determination has been made concerning whether the Water Master has a clear duty to perform an act and whether he was performing that ministerial act. In light of our holding, we need not decide whether the pending petition for preliminary and permanent injunction San Lorenzo filed, but has not pursued, constitutes a plain, speedy, and adequate remedy in the ordinary course of the law.
CONCLUSION
{23} The appeal is dismissed and the case is remanded to the district court for further proceedings.
{24} IT IS SO ORDERED.
