Automatically creating recurring tasks at specified intervals throughout the year
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2017 06:34 AM
Hi All,
I am looking for guidance/advice more than a technical solution.
I have a requirement from our facilities team to have repetitive tasks to be automatically created at specified intervals. For example, an 'office cleaning' task would be raised daily. 'Air Con maintenance' would be raised every 6 months and so on.
The 2 options I have considered thus far are scheduled jobs & a parent/child type workflow.
Scripted jobs
I have found examples on the community of people using scripts in scheduled jobs to create tasks. However, looking at the default interval choices it seems to be somewhat restrictive. I need to be able to schedule tasks to be raised every 2 workdays, once every 5 years, bi-annually, etc. I guess I could calculate the number of days & use that...
This method also requires the jobs to be set up by the admin team, which isn't the end of the world, but ideally the Facilities team (or any other team) would be able to create their own.
Workflow
The other method I explored briefly was a catalog item to raise a request/item (which would remain open indefinitely) and have the workflow create tasks on the item when needed.
This would be great if it works because the team would be able to view the job details at item level & have a list of previous tasks that have been completed, with all the notes, in one place.
I expect that others have had a similar requirement in the past & I'm hoping people can share what solutions they came up with?
Any help would be appreciated.
- Labels:
-
Best Practices
-
Scripting and Coding
- 14,182 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2020 08:07 PM
looking for same were you able to create recurring tasks?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2020 02:57 AM
Hello,
i can only repeat: Do not use a script to create reoccuring tasks. Instead use the link provided and utilize task templates: https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/reference_pages/task/t...
Regards
Fabian