By clicking the Add New Policy button, the Add New Policy form will be displayed.
Input Fields
1. Product Name
- Validation:
- Required field.
- If left empty, a ‘Required’ alert will be shown.
- Note: This field must be selected first to enable the Customer Name field.
- Validation:
2. Customer Name
- Validation:
- Displayed only after selecting a Product Name.
- If the Product Name is not selected first, a ‘Product Name is required’ alert will be shown.
- If left empty, a ‘Required’ alert will be displayed.
- Validation:
3. Issue Priority
- Values:
- Urgent
- Critical
- High
- Medium
- Low
- If left empty, a ‘Required’ alert will be displayed.
- Values:
4. SLA Time
- Validation:
- Must be a valid number in hours.
- Represents the agreed-upon response or resolution time for the SLA policy.
- Validation:
5. SLA Policy Name
- Auto-Fill:
- The SLA Policy Name will be auto-filled based on the selected Product Name, Customer Name, and Issue Priority.
- Users can easily modify the name directly if needed.
- Validation:
- Required field.
- If left empty, a ‘Required’ alert will be displayed.
- Auto-Fill:
Functionality :
i. Buttons and Visibility
- Add:
- The Add button validates all fields and, upon successful validation:
- Displays a success popup indicating that the new SLA policy has been created.
- Refreshes the SLA Policy List to display the newly created SLA policy.
- If a policy already exists with the same Product Name, Customer Name, and Issue Priority, an error message will be displayed:
- “Policy already exists”.
- Displays a success popup indicating that the new SLA policy has been created.
- The Add button validates all fields and, upon successful validation:
- Add: