- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2023 07:44 AM
Hi Team,
A change raised under the Expedited model cannot be sent for approval when the Planned Start Date is more than 5 days from the point of requesting approval
If a user attempts to request approval on an Expedited change where the Planned Start Date is more than 5 days in the future, display the following error message:
Planned Start Date must be less than 5 days from now. Please select a start before [Date - 5 days from now].
If your change is required more than 5 days from now, please amend the Model to Normal.
I tried to do business rule with before but there is issue in my code , please guide for the script
if(current.chg_model == 'expedited' && current.start_date > gs.daysAgoStart(5))
{
gs.addErrorMessage('Planned Start Date must be less than 5 days from now.');
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2023 08:58 AM
Manually filtering a list view gives this for the date part, so it's worth a shot:
gs.daysAgo(-5)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 06:40 AM