- 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-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 07:31 AM
Hi @Ankur Bawiskar,
Thank you for providing the links. In the second where you have provided a schedule job script, it is working fine in my scenario as well. But here, I have to check the close condition based on the "resolved at" time. so, the ticket should be closed after 3 days of resolving. But as this is custom table, "resolved at" is not there. Do I need to create this field. Can you please guide me on this.
Thank you in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 08:24 AM
so how would you know when it got resolved unless you store that date/time in some field.
create a custom field to store resolved date/time and then update your script as per link shared
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 10:44 PM - edited ‎04-12-2023 10:44 PM
@Ankur Bawiskar , Sure. I have created a custom field called "resolved_at" and storing the resolved time in the field. Thank you for your guidance.
I have a quick question here, can we hide the "closed" drop-down from the state field because Agent should only resolve the ticket, they should not be able to close the ticket directly. so, is there any way to hide this drop-down.
Thank you in Advance.