How to create a schedule job it should automatically close after 2 weeks/.

bharath3014
Kilo Contributor

Hi,

How to create a schedule job it should automatically close after 2 weeks after issue is resolved ? can someone help with scripts.

Thank you very much in advance.

1 ACCEPTED SOLUTION

lks
ServiceNow Employee
ServiceNow Employee

Hello Bharat,



There is an OOB scheduled job in table sys_trigger with name "Autoclose Incidents". Use it as a template and create a copy of it by using "Insert and Stay". Then replace "incident autoclose" in below statement with your BR script name and set the run schedule as per your choice...



fcScriptName=incident autoclose



And, you're done....



Hope this is what you were looking for?


View solution in original post

17 REPLIES 17

lks
ServiceNow Employee
ServiceNow Employee

Perfect Bharat!



Glad to know that you were able to achieve your objective!!!



I would say please close this thread when you have no further questions and keep enjoying ServiceNow community 🙂


bharath3014
Kilo Contributor

Thanks Lalit..Sorry to ask..where i can close this thread..?


lks
ServiceNow Employee
ServiceNow Employee

It's already done Bharat when you select one of the answers as correct otherwise your post continue appearing as "Not answered" in community.


No further actions required, enjoy 🙂