- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 09:50 PM - edited ‎04-11-2023 09:50 PM
Hi All,
I have created a custom table in scoped application called "Service Desk Incidents" which is extended from Task table.I have a requirement for Auto Close these SD incidents after 3 business days(excluding sat and sun) of being resolved.
I know that we have an OOB business rule, property and scheduled job which closes incidents based on calendar days. It is not applicable for Business days. Also, do I need to create resolved at, resolved time or resolved by fields in the custom table to make this work?
Can anyone please guide me on this.
Thank you in Advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 09:57 PM
you will have to customize it to handle business days
this link has the solution
Auto closure of Task after 3 business days
also check this link where I shared solution few years ago
How to Auto close incidents in 5 working days, after incident state is resolved.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 11:24 PM
Glad to know.
Would you mind marking my response as correct if I answered your original question?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 11:25 PM
you can use onLoad client script and use g_form.removeOption() to remove that choice value
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2023 02:37 AM - edited ‎04-13-2023 02:45 AM
@Ankur Bawiskar , sure, will this client script affect the schedule job to set the state to closed after being resolved for 2 days. Because I can see that the state is looking like below when it is closed through script.
Any alternative for this? Is there any way to just show the closed option in the drop-down, but not let the user select it manually?
Please guide me, Thank you in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2023 03:08 AM
Hi @Ankur Bawiskar ,
Can you please have a look at this - https://www.servicenow.com/community/itsm-forum/auto-close-a-custom-table-incident-after-2-days-of-b...