This repository was archived by the owner on May 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
This repository was archived by the owner on May 23, 2025. It is now read-only.
[Issue]: Add upload validation for Start & End Date fields #3912
Copy link
Copy link
Open
Labels
Description
Why is this issue important?
In early 2024, treasury added two conditional fields for all projects: Project_Start_Date__c and Project_End_Date__c - these are conditional fields that are required based on the value of Completion_Status__c
Partners have noticed that staff users often forget to complete these fields, so would like if validation errors could run if they don't have a value input and they meet the conditions for the field to be required.
Current State
There is no validation error if project start date & project end date are blank when they meet the conditions to be required.
Expected State
Start Date
Project_Start_Date__cis required ifCompletion_Status__cis "Completed less than 50%", "Completed 50% or more" or "Completed". If a project has one of these statuses but a value is not submitted forProject_Start_Date__c, an error will generate for upload validation with the message: "Value is required for Project_Start_Date__c" and the relevant workbook tab, row, and column are listed with the location of the Start date field.- If
Completion_Status__cfor a project is "Not Started" or "Cancelled", and Start date is blank, no error will generate during validation. - If a project's
Completion_Status__cis "Completed less than 50%", "Completed 50% or more" or "Completed" and a value is entered forProject_Start_Date__c, no error will generate during validation
End Date
Project_End_Date__cis required ifCompletion_Status__cis "Completed". IfCompletion_Status__cis "Completed" but there is no value entered for the fieldProject_End_Date__c, an error will generate during upload validation with the message: "Value is required for Project_End_Date__c" and the relevant workbook tab, row, and column will be listed with the location of the End date field.- If
Completion_Status__cis "Not Started", "Completed less than 50%", "Completed 50% or more", or "Cancelled", and End date is blank, no error will generate - If
Completion_Status__cis "Completed" andProject_End_Date__chas a value entered, no error will generate during upload validation.
Implementation Plan
The following functions need to be added...
Relevant Code Snippets
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
📋 Scoping