I want a report for incidents which have are opened since 7 days excluding weekends and bank holiday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2025 02:59 AM
Hi everyone,
@Ankur Bawiskar could you please help me on this post.
I want a report of incidents which are opened since 7 days excluding weekends and bank holidays that is 7 business days.
I created a scheduled email of report but the issues is that the schedule of the report is being modified as per below script and not the data/records in the report.
I need incident data to be like I mentioned.
Below is my script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2025 07:11 AM
Hi Harsha,
I think you'll want to use something like this (see link below and refer to the section titled "Calculate duration given a schedule") assuming:
1) you have your schedule created to exclude weekends and holidays
2) the end parameter would be the current date/time, so use new GlideDateTime()