VERGERONT, P.J.
¶ 1 The issue on appeal is whether the circuit court correctly concluded that Associated Electric & Gas Insurance Services Limited (AEGIS) was barred on the ground of claim preclusion from bringing this action against Arby Construction, Inc. AEGIS claims in this action that it is entitled to indemnification under an indemnification contract between Arby and AEGIS's insured, Wisconsin Public Service Corporation (WPS). The circuit court agreed with Arby that claim preclusion barred AEGIS's claim against Arby because of the stipulated judgment in a prior case in which AEGIS, Arby, and WPS were defendants.
¶ 2 We conclude that AEGIS's affirmative defense in the prior action asserting Arby's contractual obligation to indemnify AEGIS as WPS's insurer was the functional equivalent of a cross-claim for purposes of claim preclusion. For that reason and others that we explain below, we conclude that all elements for claim preclusion are met and that it is properly applied in this case. Accordingly, we affirm.
¶ 3 The prior action relevant to this appeal was a personal injury action arising out of explosions that occurred while Arby was providing excavation and boring services under a contract with WPS. Under the terms of that contract, Arby was required to defend and indemnify WPS and its insurers for certain losses. While performing services under the contract with WPS, Arby struck and damaged a portion of an underground propane gas line, causing explosions that resulted in the deaths of two people and injury to several others.
¶ 4 In the prior action, the injured persons and the estates of the deceased (collectively, Brooks) named WPS, Arby, AEGIS, and a number of other entities as defendants.
¶ 5 Three pleadings in the Brooks action raised the subject of the indemnification contract between WPS and Arby. First, before AEGIS made an appearance in the Brooks action, WPS filed a cross-claim against Arby under the indemnification contract. This cross-claim alleged that Arby and its insurers were obligated to
¶ 6 Second, WPS and AEGIS filed a joint answer in response to the amended complaint in which they raised the indemnification contract as an affirmative defense. They alleged that, based upon the contract between WPS and Arby, Arby and its insurers were required to fully defend and indemnify WPS and its insurers with respect to any negligence alleged against WPS and any damages asserted against WPS or its insurers.
¶ 7 Third, AEGIS filed its own answer to the amended complaint in which it incorporated any affirmative defense raised by its insureds. Specifically, AEGIS alleged that it was liable only if one or more of its insureds were liable, that "any affirmative defense available to its insureds [was] available to it," and that it was therefore "incorporat[ing] by reference any affirmative defense raised by any of its insureds." WPS was identified as one of its insureds.
¶ 8 The parties eventually settled the prior Brooks action in a confidential agreement pursuant to which various defendants, including Arby, WPS, and AEGIS paid certain sums. The order for dismissal entered pursuant to the settlement agreement provides in full:
¶ 9 After the Brooks action settled, WPS and AEGIS filed this action seeking indemnification from Arby under the indemnification agreement for the amounts each had paid in settlement in the Brooks action and for WPS's legal fees and expenses in defending that action. Arby moved to dismiss AEGIS's claim on the ground that the order of dismissal in the Brooks action bars AEGIS under the doctrine of claim preclusion from pursuing the contractual indemnification claim against Arby. Specifically, Arby argued that the dismissal was "with prejudice" except as to the specifically identified cross-claims, and, since these identified cross-claims did not include AEGIS's claim against Arby, that claim was dismissed with prejudice. Both parties submitted documents from the Brooks action and the court considered them in its decision.
¶ 10 The circuit court agreed with Arby and granted its motion to dismiss AEGIS's claim on the ground of claim preclusion.
¶ 11 AEGIS contends on appeal that the dismissal of its current claim against Arby was error because AEGIS did not in the prior Brooks action file a cross-claim against Arby for indemnification under the contract between WPS and Arby. According to AEGIS, without this cross-claim—which,
¶ 12 Arby responds that the affirmative defense AEGIS asserted in its joint answer with WPS and incorporated by reference in its own answer in the Brooks action was the functional equivalent of a cross-claim for contract indemnification against Arby in that action. This is so, asserts Arby, because in that affirmative defense AEGIS plainly sought recovery from Arby under the contract if AEGIS had any liability because of WPS. According to Arby, the requirements for claim preclusion are met and the dismissal with prejudice in the stipulated order in the Brooks action included AEGIS's claim for contractual indemnification from Arby.
¶ 13 We review the circuit court's order of dismissal as we would a decision granting a motion for summary judgment. Summary judgment procedure applies when a circuit court considers matters outside the pleadings on a motion to dismiss based on claim preclusion. WIS. STAT. § 802.06(2)(a)8 & (2)(b) (2009-2010).
¶ 14 Generally, under the doctrine of claim preclusion, previously called res judicata, "a final judgment is conclusive in all subsequent actions between the same parties [or their privies] as to all matters which were litigated or which might have been litigated in the former proceedings." Id., ¶ 22 (citations omitted). The purpose of the doctrine is to prevent repetitive litigation. DePratt v. West Bend Mut. Ins. Co., 113 Wis.2d 306, 311, 334 N.W.2d 883 (1983). To this end, the doctrine of claim preclusion seeks "to promote judicial economy and to `conserve the resources the parties would expend in repeated and needless litigation of issues that were, or that might have been resolved in a single prior action.'" Mrozek v. Intra Fin. Corp., 2005 WI 73, ¶ 28, 281 Wis.2d 448,
¶ 15 The elements of claim preclusion are: "(1) an identity between the parties or their privies in the prior and present suits; (2) an identity between the causes of action in the two suits; and (3) a final judgment on the merits in a court of competent jurisdiction." Wickenhauser, 302 Wis.2d 41, ¶ 22, 734 N.W.2d 855. The final judgment on the merits need not be the result of actual litigation. Great Lakes Trucking Co. v. Black, 165 Wis.2d 162, 168-69, 477 N.W.2d 65 (Ct.App.1991).
¶ 16 As a threshold matter we address AEGIS's contention that a cross-claim is permissive and therefore it was not required to file a cross-claim against Arby in the prior Brooks action. Arby does not appear to dispute this proposition and we agree it is correct. We explain why we agree in order to provide a more complete picture of the doctrine of claim preclusion as relevant to this appeal.
¶ 17 Although the general formulation of the doctrine of claim preclusion states that the final judgment is conclusive between the same parties or their privies on "all matters which . . . might have been litigated," it is settled law that we employ a different analysis when the matter that might have been litigated is a counterclaim. Wickenhauser, 302 Wis.2d 41, ¶ 22, 734 N.W.2d 855. As the court explained in Wickenhauser, counterclaims are generally permissive in Wisconsin and if we were to apply claim preclusion whenever a defendant in a prior action chose not to counterclaim, we would be improperly creating a compulsory counterclaim rule. Id., ¶¶ 23-24.
¶ 18 We conclude that, similar to counterclaims, cross-claims are generally permissive in Wisconsin. WISCONSIN STAT. § 802.07(3) provides:
Use of the word "may" indicates that pleading a cross-claim is not mandatory. Although AEGIS has not provided and we
¶ 19 Because a cross-claim is permissive, it would be an improper application of claim preclusion to bar a party from bringing a claim in a subsequent action solely because the party could have, but did not, file the claim as a cross-claim in a prior action. See Wickenhauser, 302 Wis.2d 41, ¶ 23, 734 N.W.2d 855; see also Heinz Plastic Mold Co., 114 Wis.2d at 60, 337 N.W.2d 189 (concluding that under federal law, claim preclusion does not bar a party from bringing a separate action in federal court on a claim that could have been a cross-claim in a previous action because cross-claims against co-parties are permissive under the federal rule).
¶ 20 However, in this case Arby does not contend that AEGIS is barred from asserting the contract indemnification claim because it did not assert a cross-claim on this ground in the prior Brooks action. The dispute in this case is whether the affirmative defense in the prior action, asserting Arby's obligation under the contract to indemnify AEGIS as WPS's insurer, had the same effect as a cross-claim for purposes of applying the doctrine of claim preclusion in the current action.
¶ 21 AEGIS's argument that none of the three elements of claim preclusion are met is based on the form of the pleading as an affirmative defense against Brooks in the prior action. According to AEGIS, there is no identity of parties because the affirmative defense was pled against Brooks, not Arby; the cause of action is not identical because an affirmative defense is not a cause of action; and the order for dismissal in the Brooks action was not a final judgment on the merits of AEGIS's claim for contract indemnification from Arby because AEGIS never asserted that as a cross-claim against Arby.
¶ 22 However, if we look at the substance of AEGIS's affirmative defense
¶ 23 AEGIS relies on U.S. Fidelity & Guaranty Co. v. Goldblatt Bros., 142 Wis.2d 187, 191, 417 N.W.2d 417 (Ct.App. 1987), in support of its position that claim preclusion cannot apply because it did not file a pleading in the prior Brooks action labeled as a cross-claim against Arby. In U.S. Fidelity we held that, in order for parties in a prior action to be identical to those in a subsequent action, they must have been adverse in the prior action. Id. We concluded that parties who were co-plaintiffs in a prior action where no cross-claim had been filed were not adverse parties in that action. Id. at 192, 417 N.W.2d 417.
¶ 24 We do not agree with AEGIS that U.S. Fidelity resolves the issue before us. The specific argument we rejected in U.S. Fidelity was that "the parties need not be literal adversaries, nor even functional adversaries" in the prior action. Id. at 191, 417 N.W.2d 417 (emphasis added). The rejection of this argument does not imply that "functional adversaries" are not adverse. Because in U.S. Fidelity there was no pleading that substantively raised an issue on which the parties were adverse in the prior action, we did not have occasion to address whether a cross-claim was the only way in which co-parties could be adverse. See id.
¶ 25 The purpose of the "adverse-in-prior-action" requirement can be discerned from Bakula v. Schwab, 167 Wis. 546, 555-56, 168 N.W. 378 (1918), which established this requirement and on which we relied in U.S. Fidelity.
¶ 26 In this case there is no issue concerning AEGIS's knowledge that it should attempt to hold Arby liable: AEGIS itself asserted Arby's liability under the indemnification agreement, albeit in the form of an affirmative defense. There is no unfairness to AEGIS in considering the substance of its own pleading. The reasoning in Bakula does not support a conclusion that the parties here were not adverse in the prior Brooks action simply because AEGIS asserted the substance of its claim against Arby in the form of an affirmative defense.
¶ 27 AEGIS also contends that we cannot treat its affirmative defense in the prior action as a cross-claim because, even if the designation as affirmative defense is mistaken, a court must redesignate it and the Brooks court did not do so. AEGIS relies on the federal rule and the Wisconsin equivalent that address the situation in which "a party mistakenly designates a defense as a counterclaim, or a counterclaim as a defense." Fed.R.Civ.P. 8(c)(2); see also WIS. STAT. § 802.02(3). Under the federal rule, "if justice requires," the court "must . . . treat the pleading as though it were correctly designated. . . ." Fed. R.Civ.P. 8(c)(2). Under the Wisconsin rule, "the court, if justice so requires, shall permit amendment of the pleading to conform to a proper designation." § 802.02(3). Putting aside the fact that we are concerned in this case with a cross-claim, not a counterclaim—a difference that AEGIS does not address—AEGIS does not explain why these rules prevent us from looking at the substance of the erroneously labeled pleading in the context of a claim preclusion analysis. Neither rule requires that the mislabeling governs for all purposes unless the court takes the specified action. Indeed, contrary to AEGIS's position, both rules suggest that the substance of the matter pleaded is important despite the mislabeling.
¶ 28 We conclude that AEGIS's affirmative defense in the prior action was the functional equivalent of a cross-claim against Arby for purposes of claim preclusion. The affirmative defense plainly stated that, based upon the contract between WPS and Arby, Arby was obligated to fully defend and indemnify WPS and its insurers with respect to any negligence by WPS and any damages against WPS and its insurers. There is no doubt, based on the affirmative defense, that AEGIS was seeking indemnification from Arby under the contract if AEGIS or WPS was found liable to Brooks. Plainly, AEGIS and Arby were adverse parties with respect to the issue of Arby's obligation under the contract. AEGIS's claim in this action is against Arby for indemnification under the same contract for amounts that AEGIS paid to Brooks as WPS's insurer in settlement of Brooks' negligence claim against WPS. Accordingly, the elements of identity of parties and cause of action are met.
¶ 29 The third element of claim preclusion requires that the final stipulated judgment in the Brooks action be a dismissal
¶ 30 AEGIS does not contend that its indemnification claim was specifically excepted. In particular, AEGIS does not contend that its claim was included in the exception for "the contractual indemnification claim asserted by Wisconsin Public Service Corporation against Arby Construction and its insurers." Such an argument would not be successful because the addition of the phrase "and its insurers" to Arby but not to WPS plainly shows an intent not to include WPS's insurers in the exception. It is undisputed that AEGIS made a payment as WPS's insurer to Brooks to settle the case. The only reasonable inference is that, had the parties intended that AEGIS be able to assert in a separate action a claim for indemnification from Arby for that payment, they would have included AEGIS in this exception.
¶ 31 We conclude, based on the undisputed facts, that the three elements for claim preclusion are met and that the doctrine is properly applied in this case to bar AEGIS's claim against Arby in this action.
¶ 32 We affirm the circuit court's order dismissing AEGIS's claim against Arby on the ground of claim preclusion.
Order affirmed.