OPINION ON REHEARING
We withdraw our opinion and judgment issued July 17, 2008, and issue the following opinion and new judgment instead. We deny the City of Houston’s motion for rehearing en banc as moot.
*852 The City appeals the trial court’s order granting the plea to its jurisdiction. The City contends that the trial court erred in granting the plea because the City’s pleadings sufficiently set out facts establishing jurisdiction under the Declaratory Judgment Act. According to the City, it did not ask the trial court to issue a declaratory judgment that a decision by the Police Officers’ Civil Service Commission (the “Commission”) to request a memo regarding misconduct be removed from an officer’s permanent personnel file was wrong. Instead, the City contends that its request for declaratory relief asked the Court to declare that the Commission’s decision should be overturned because the Commission never had the jurisdiction to issue such an order in the first place. In essence, the City seeks a declaration from the district court as to the scope and effect of the Commission’s decision. Because the City’s pleadings sufficiently set out facts establishing jurisdiction under the Declaratory Judgment Act, we reverse and remand.
Background
In 2006, an investigation conducted by the Houston Police Department (“HPD”) determined that officer Joseph A. Buttitta had engaged in conduct that violated various HPD policies. In lieu of other disciplinary action, the City accepted Buttitta’s request to receive a voluntary two-level demotion. A letter from the chief of police explaining Buttitta’s misconduct and demotion was prepared and placed in Buttit-ta’s permanent personnel file, pursuant to Local Government Code section 148.089. 1 Buttitta filed a motion with the Police Officers’ Civil Service Commission (“Commission”), requesting that the letter be removed from his personnel file. After hearing oral argument on the motion, the Commission granted Buttitta’s request and ordered that the letter be removed from his personnel file. The letter was removed and returned to the chief of police, who, after consultation with the City’s legal department, directed that the letter be placed back in Buttitta’s file.
Due to the controversy as to whether the letter should be placed in Buttitta’s file, the City filed a petition in district court requesting a declaration that (1) the Commission did not have jurisdiction to order that the letter be removed and (2) the letter be returned to Buttitta’s file. Buttitta filed a plea to the court’s jurisdiction. The court granted Buttitta’s plea and the City’s petition was dismissed. The City now appeals.
Plea to the Jurisdiction
In its sole issue, the City complains that the trial court improperly granted Buttit-ta’s plea to the jurisdiction. Specifically, the City argues that its petition set out sufficient factual allegations to establish jurisdiction under the Declaratory Judgment Act.
Standard of Review
A plea to the jurisdiction is a dilatory plea by which a party challenges a court’s authority to determine the subject matter of the action.
Bland ISD v. Blue,
Because the question of subject matter jurisdiction is a legal question, we review the trial court’s ruling on a plea to the jurisdiction under a de novo standard of review.
Hoff v. Nueces County,
The plaintiff bears the burden to allege facts affirmatively demonstrating the trial court’s jurisdiction to hear a case.
See Tex. Ass’n of Bus. v. Tex. Air Control Bd„
Analysis
The City contends that its petition sufficiently alleged facts establishing questions of statutory construction regarding the rights, status, and legal relations of the parties, specifically about whether the Commission’s order is legal and enforceable and whether the letter must be removed from Buttitta’s personnel file. According to the City, it showed that there is a substantial justiciable controversy between the parties that involves a genuine conflict of tangible interests.
See Bonham State Bank v. Beadle,
It is well settled that the DJA is not a grant of jurisdiction, but “merely a procedural device for deciding cases already within a court’s jurisdiction.”
Che-nault v. Phillips,
We hold that the dispute over the scope and effect of the Commission’s decision is a justiciable controversy over which the district court would have had proper subject matter jurisdiction.
See, e.g., Nueces County v. Nueces County Civil Serv. Comm’n,
Conclusion
We reverse the judgment of the trial court, and remand this case for further proceedings.
Notes
. Tex. Loc. Gov’t Code Ann. § 143.089 (Vernon 2008).
. Under the DJA, "[a] person ... whose rights, status, or other legal relations are affected by a statute, municipal ordinance, contract, or franchise may have determined any question of construction or validity arising under the instrument, statute, ordinance, contract, or franchise and obtain a declaration of rights, status, or other legal relations thereunder.” Tex. Civ. Prac. & Rem.Code Ann. § 37.004(a) (Vernon Supp.2008).
