Quarterly, Yearly Scheduled Entity intervals?

DonConley
Kilo Explorer

I'm trying to set up automated ticket generation, currently against Incident, that will create Quarterly, Semi-annually or Yearly generation of tickets from templates. So far, the best I can come up with is to use the Periodically and use a set number of days. However, our years aren't so tidy as that (this being one of the untidy years.) I'd like to be able to have additional choices so that I can say on the first day of a specific month or specific set of months, that the schedule should run. How do I do that?

Essentially, these should be requests since they are related to SOX controls, but we haven't really implemented beyond Incident at this point. Is there an easier way of generating tickets to specific people on set schedules using one of the other applications in Service-Now?

Thanks!

3 REPLIES 3

Jim Coyne
Kilo Patron

How about this - create a Schedule with the days you want the script to run on and then setup a Scheduled Script Execution (System Definition / Scheduled Jobs) to run everyday at midnight (or whatever) with the script from the following post on SNCGuru http://www.servicenowguru.com/system-definition/weekdaysonly-scheduled-job/ (look at my last post there).

You could use the script as the Condition or part of the "Run this script".


DonConley
Kilo Explorer

That's great information. Thanks!


Morbidpain
Giga Contributor


Run monthly set Day and time.
Condition:

//Set End of Quarter Script
var rc = false;
var now = new GlideDateTime();
var month = now.getMonth();
if (month == 3 || month == 6 || month == 9 || month == 12){
rc = true;
}