{
  "jira_key": "AN-92",
  "summary": "Qualified Lead Email Validation",
  "approach": "1. Overview: Prevent saving a Lead with Status Qualified when Email is blank.\n2. Scope: Add one Lead validation rule. No Apex class or other automation is included.\n3. Data Model: Use the standard Lead Status and Email fields; no fields are added or changed.\n4. Picklist Configuration: None. The rule checks the existing Lead Status value Qualified.\n5. Page Layout Configuration: None.\n6. Validation Rule: Use AND(ISPICKVAL(Status, \"Qualified\"), ISBLANK(Email)). Display \u201cEnter an email address.\u201d at the Email field.\n7. Processing Behavior: Salesforce blocks the save when both conditions are true. Qualified Leads with a non-blank Email are not blocked by this rule.\n8. Security and Access: No permission or access changes. The validation rule applies during record saves subject to standard Salesforce platform behavior.\n9. Deployment Components: Deploy the Lead validation rule only.\n10. Testing Strategy: Verify a Qualified Lead with blank Email is rejected with the specified message; a Qualified Lead with non-blank Email saves; other Lead statuses are not blocked by this rule.\n11. Acceptance Criteria Traceability: Lead object\u2014rule is on Lead; blocking condition\u2014formula checks Qualified and blank Email; message\u2014prompts user to enter an email address; success case\u2014non-blank Email does not trigger this rule.\n12. Implementation Summary: Create the validation rule and test its negative and positive cases. Do not add an Apex class.",
  "metadata_plan": [
    {
      "metadata_type": "ValidationRule",
      "api_name": "Qualified_Lead_Requires_Email",
      "action": "create",
      "object": "Lead",
      "notes": "Purpose: Prevent saving a Lead when Status is Qualified and Email is blank. Formula: AND(ISPICKVAL(Status, \"Qualified\"), ISBLANK(Email)). Error message: Enter an email address. Error location: Email field."
    }
  ],
  "dependencies": [
    "Uses the standard Lead Status and Email fields; the repository inventory does not list standard fields.",
    "No existing Lead Apex, Flow, or trigger was identified in the provided repository inventory or code hits as potentially interacting with this change."
  ],
  "risks_or_escalations": [],
  "out_of_allowlist": false,
  "confidence": 1.0,
  "notes": null
}