Using script include in SLA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2025 02:59 PM
I am creating an SLA with a Stop condition that checks if the "Updated by" field of an incident is set to the same person who it is assigned to.
Best practice seems to be to create a Script Include and reference it in the SLA Condition field (Class Name). How do I call the script from the SLA Definition?
I have tried adding the field Condition Type and selecting the sla condtionfrom the drop-down list. However, the script does not appear to be triggering.
We are using the Yokohama Patch 7 version.
(BTW: I was able to make this work using a custom true/false field updated by a Business Rule, but we would prefer not to rely on custom fields on the Incident table.)
Regards Tore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 05:53 AM
Hi Tore,
You can review how Script Includes can be referenced from SLA Definitions and how conditions are evaluated using the official ServiceNow documentation below:
These explain the recommended approach for using Script Includes within SLA condition logic and how to ensure they trigger properly.
Hope this helps!
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it helpful & accept the solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 06:01 AM
so if Updated by = Assigned To then you want to stop
If yes then this should work -> Dot Walk Assigned to.user ID [IS SAME AS] Updated by
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
10-07-2025 07:34 PM
Hope you are doing good.
Did my reply answer your question?
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
10-07-2025 10:37 PM
Thanks for taking the time to answer. First I don't see a way to dot walk i SLA defintion. Also I found this article:
Why dot walk should never be used in SLA definition
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0827004
Regards Tore
