RULE 12. DEFENSES AND OBJECTIONS: WHEN AND HOW PRESENTED: BY PLEADING OR MOTION: MOTION FOR JUDGMENT ON PLEADINGS
Every defense, in law or fact, to a claim for relief in any pleading, whether a claim, counterclaim, cross-claim, or third-party claim, shall be asserted in the responsive pleading thereto if one is required, except that the following defenses may at the option of the pleader be made by motion in writing: (1) lack of jurisdiction over the subject matter, (2) lack of jurisdiction over the person, (3) improper venue, (4) insufficiency of process, (5) insufficiency of service of process, (6) failure to state a claim upon which relief can be granted, (7) failure to join a party under Rule 19, and (8) specific negative averments made pursuant to Rule 9.01. A motion making any of these defenses shall be made before pleading if a further pleading is permitted. No defense or objection is waived by being joined with one or more other defenses or objections in a responsive pleading or motion. If a pleading sets forth a claim for relief to which the adverse party is not required to serve a responsive pleading, the adverse party may assert at the trial any defense in law or fact to the claim for relief. If, on a motion asserting the defense numbered (6) to dismiss for failure to state a claim upon which relief can be granted, matters outside the pleading are presented to and not excluded by the court, the motion shall be treated as one for summary judgment and disposed of as provided in Rule 56, and all parties shall be given reasonable opportunity to present all material made pertinent to such a motion by Rule 56.
Advisory Commission Comment 
12.02. Effective July 1, 2012, Tennessee Code Annotated Section 20-12-119 was amended to add subsection (c) which authorizes the trial court, under certain circumstances, to award costs and resonable and necessary attorney's fees to a party who prevails on a motion to dismiss for failure to state a claim upon which relief may be granted. Section 20-12-119(c) requires the party or parties whose claim or claims were dismissed to pay the awarded costs and fees.