{
  "RequestType": {
    "Name": "Bug Fix Request",
    "Description": "Request to fix software bugs or issues",
    "Icon": "\uD83D\uDC1B"
  },
  "FormDefinition": {
    "Name": "Bug Fix Request Form",
    "Description": "Form for reporting bugs and requesting fixes",
    "Fields": [
      {
        "FieldName": "severity",
        "FieldType": "select",
        "Label": "Bug Severity",
        "PlaceholderText": "How severe is this bug?",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 1,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "affected_module",
        "FieldType": "text",
        "Label": "Affected Module/Feature",
        "PlaceholderText": "Which part of the system is affected?",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 2,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "steps_to_reproduce",
        "FieldType": "textarea",
        "Label": "Steps to Reproduce",
        "PlaceholderText": "Detailed steps to reproduce the bug",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 3,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "expected_behavior",
        "FieldType": "textarea",
        "Label": "Expected Behavior",
        "PlaceholderText": "What should happen instead?",
        "DefaultValue": null,
        "IsRequired": true,
        "IsVisible": true,
        "DisplayOrder": 4,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "browser_environment",
        "FieldType": "text",
        "Label": "Browser/Environment",
        "PlaceholderText": "Browser version, OS, etc.",
        "DefaultValue": null,
        "IsRequired": false,
        "IsVisible": true,
        "DisplayOrder": 5,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      },
      {
        "FieldName": "error_message",
        "FieldType": "textarea",
        "Label": "Error Message/Screenshot",
        "PlaceholderText": "Any error messages or description of visual issues",
        "DefaultValue": null,
        "IsRequired": false,
        "IsVisible": true,
        "DisplayOrder": 6,
        "FieldConfig": null,
        "ValidationConfig": null,
        "DisplayConfig": null,
        "DependentFields": null
      }
    ],
    "ConditionalRules": [
      {
        "RuleName": "Show Root Cause Analysis for Critical Bugs",
        "TriggerCondition": "fields.severity_level === \u0027Critical\u0027 || fields.severity_level === \u0027High\u0027",
        "Actions": "[\n    {\n        \u0022type\u0022: \u0022show\u0022,\n        \u0022target\u0022: \u0022root_cause_analysis\u0022\n    },\n    {\n        \u0022type\u0022: \u0022require\u0022,\n        \u0022target\u0022: \u0022root_cause_analysis\u0022\n    }\n]",
        "Priority": 1
      },
      {
        "RuleName": "Show Workaround for Production Issues",
        "TriggerCondition": "fields.affected_environment === \u0027Production\u0027",
        "Actions": "[\n    {\n        \u0022type\u0022: \u0022show\u0022,\n        \u0022target\u0022: \u0022temporary_workaround\u0022\n    },\n    {\n        \u0022type\u0022: \u0022require\u0022,\n        \u0022target\u0022: \u0022temporary_workaround\u0022\n    }\n]",
        "Priority": 2
      },
      {
        "RuleName": "Show Testing Strategy for Complex Bugs",
        "TriggerCondition": "fields.complexity_estimate === \u0027High\u0027 || fields.complexity_estimate === \u0027Very High\u0027",
        "Actions": "[\n    {\n        \u0022type\u0022: \u0022show\u0022,\n        \u0022target\u0022: \u0022testing_strategy\u0022\n    },\n    {\n        \u0022type\u0022: \u0022require\u0022,\n        \u0022target\u0022: \u0022testing_strategy\u0022\n    }\n]",
        "Priority": 3
      }
    ],
    "ValidationRules": [
      {
        "RuleName": "Bug Description Minimum Length",
        "TargetFields": "bug_description",
        "ValidationExpression": "fields.bug_description.length \u003E= 20",
        "ErrorMessage": "Bug description must be at least 20 characters",
        "ValidationLevel": "Error"
      },
      {
        "RuleName": "Steps to Reproduce Required",
        "TargetFields": "steps_to_reproduce",
        "ValidationExpression": "fields.steps_to_reproduce.length \u003E= 15",
        "ErrorMessage": "Steps to reproduce must be detailed (15\u002B characters)",
        "ValidationLevel": "Error"
      },
      {
        "RuleName": "Expected vs Actual Behavior",
        "TargetFields": "expected_behavior,actual_behavior",
        "ValidationExpression": "fields.expected_behavior.length \u003E= 10 \u0026\u0026 fields.actual_behavior.length \u003E= 10",
        "ErrorMessage": "Both expected and actual behavior must be described (10\u002B characters each)",
        "ValidationLevel": "Warning"
      }
    ],
    "LookupLists": [
      {
        "Name": "Bug Severity",
        "DataSource": "static",
        "Configuration": null,
        "Items": [
          {
            "Value": "cosmetic",
            "DisplayText": "Cosmetic - Minor visual issues",
            "ParentValue": null,
            "DisplayOrder": 1,
            "ItemConfig": null
          },
          {
            "Value": "minor",
            "DisplayText": "Minor - Low impact on functionality",
            "ParentValue": null,
            "DisplayOrder": 2,
            "ItemConfig": null
          },
          {
            "Value": "major",
            "DisplayText": "Major - Significant functionality impact",
            "ParentValue": null,
            "DisplayOrder": 3,
            "ItemConfig": null
          },
          {
            "Value": "critical",
            "DisplayText": "Critical - System down",
            "ParentValue": null,
            "DisplayOrder": 4,
            "ItemConfig": null
          }
        ]
      }
    ]
  }
}