Article
How to Automatically Create Incident Tickets When Service Fulfillment Includes a Due Date in ServiceNow
Author: Agus Budi Harto, 2025-06-20 01:26:50
In certain scenarios, service catalogs require a completion date that must be followed up by the fulfiller. Examples include catalogs for temporary software installations, notebook loans, USB port openings, and similar tasks. If these tickets are left unattended, fulfillers tend to forget to take necessary follow-up actions, such as uninstalling temporary software, ensuring borrowed notebooks are returned, or re-closing USB ports that should remain disabled.
To address this issue, it is essential to implement a method that prompts fulfillers to take action. One effective approach is to automatically generate incident tickets once the due date specified in the service catalog has passed. This can be achieved by creating a Scheduled Job in ServiceNow that runs under the following conditions:
-
The current date matches the due date.
-
The ticket status is already marked as “Closed Complete.”
-
If a ticket consists of multiple tasks, the Scheduled Job should target the final task, which usually contains a description such as “Execute Request.”
Steps to Set Up a Scheduled Job in ServiceNow
Follow these steps to create the automated process:
-
Navigate to All > System Definition > Scheduled Jobs.

-
Click New and select Automatically run a script of your choosing.
-
Enter a meaningful name in the Name field.
-
Make sure to check the Active box.
-
Set Run frequency to Daily.
-
Specify your Time zone.
-
Choose the preferred Time for the script to run.
-
In the Run this script section, input your custom script that checks for tickets meeting the criteria and creates incident tickets accordingly.
var currentdate = new GlideDate();currentdate.getByFormat("yyyy-MM-dd");var gr = new GlideRecord("sc_item_option");//add the variable id of your catalog belowgr.addEncodedQuery("item_option_new=150b618c1b85ca107bfd2022f54bcbed^ORitem_option_new=f7b85b4f1b748210f2c2dc61f54bcb56^ORitem_option_new=7176fbca77663300edfc0ff9ba1061e8^ORitem_option_new=cdcf850a1b09c614f2c2dc61f54bcba2");gr.addQuery("value",currentdate);gr.query();while (gr.next()){var assGrp = "";var id = gr.sys_id.toString();var gr2 = new GlideRecord("sc_item_option_mtom");gr2.addQuery("sc_item_option",id);gr2.query();if(gr2.next()){var ritm = gr2.request_item.getDisplayValue();var ritmid = gr2.request_item.toString();var gr3 = new GlideRecord("sc_req_item");gr3.addQuery("number",ritm);gr3.query();if(gr3.next()){var req = gr3.request.getDisplayValue();var reqid = gr3.request.toString();var req_for = gr3.requested_for.toString();}var state = "";var gr6 = new GlideRecord("sc_request");gr6.addQuery("sys_id",reqid);gr6.query();if(gr6.next()){state = gr6.state.getDisplayValue();}var gr5 = new GlideRecord("sc_task");gr5.addQuery("request_item",ritmid);gr5.query();while(gr5.next()){var short_desc = gr5.short_description.getDisplayValue();if(short_desc=="Execute Request"){assGrp = gr5.assignment_group.toString();if(state=="Closed Complete"){var gr4 = new GlideRecord('incident');gr4.newRecord();gr4.short_description = "This incident was created because "+ritm+" of "+req+" had expired.";gr4.impact = '1'; // High impactgr4.urgency = '1'; // High urgencygr4.category = 'Software';gr4.assignment_group = assGrp;//assign to each asigneegr4.caller_id = req_for;gr4.setWorkflow(false);gr4.insert();gr4.work_notes = 'Updated work notes';gr4.setWorkflow(true);gr4.update();}}}}} -
Save the Scheduled Job.
With this setup, ServiceNow will proactively create incident tickets on due dates to ensure fulfillers don’t overlook critical follow-up tasks, thereby maintaining smooth and efficient service operations.
Tags: Opinion Servicenow
Add comment
- Other Article
- Song of: Mariana Istriku13 May 2026
- Organisasi Pensiunan di Indonesia: Dari Komunitas Sosial Menuju Kekuatan Ekonomi Berbasis Pengalaman12 May 2026
- Corporate Risk Management: Why Modern Companies Invest Millions to Prevent Invisible Threats07 May 2026
- The Mining Spirit: A Powerful Mindset for Excellence in the Mining Industry25 Apr 2026
- The Double-Edged Sword: Navigating Competition in the Modern Corporate Landscape22 Apr 2026
- AI Chatbot untuk UMKM: Peluang Besar di Era Digital17 Apr 2026
- AI Chatbots in Business: The Global Revolution09 Apr 2026
- The Heartbeat of Your Business: Why the P&L Statement is Non-Negotiable31 Mar 2026
- Why Your New Business Needs a Financial System on Day One26 Mar 2026
- The Link Between Startup Capital, Business Survival, and the Role of Investor Information21 Mar 2026
- Digital Transformation, Digitalization, and Digitization: Why the Difference Matters More Than You Think14 Mar 2026
- From Business Need to Technology Solution07 Mar 2026
- Bridging the Digital Divide: Starlink and the Future of Internet Access in Indonesia27 Feb 2026
- A Long Weekend Getaway to Yogyakarta16 Feb 2026
- Understanding ERP Systems: A Comprehensive Guide for Modern Businesses16 Feb 2026
- Building a Culture of Awareness: Strategic Approaches to HSE and Information Security Campaigns in Modern Organizations10 Feb 2026
- Building an Effective IT Organization in Coal Mining: A Strategic Framework for Growth02 Feb 2026
- The Art and Science of Color Themes in Modern Web Design17 Jan 2026
- IT Outsourcing vs Internal Resources: A Comprehensive Cost and Risk Analysis05 Jan 2026
- The Hidden Dangers of Mishandled Employee Data: When Internal Tables Fall Into the Wrong Hands05 Jan 2026
- Securing SQL Server: A Complete Guide to Database Access Control05 Jan 2026
- Beyond Human Error: Understanding the Complete Security Chain in Information Security01 Jan 2026