Scheduled job to close REQ,RITM,SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2024 09:09 PM
Hello community,
I have a requirement, I need to close to SCTASK'S which are not updated in past 120 days along with associated Requests and RITM through Scheduled jobs
Here I have some scenarios to handle
Scenario 1: I need to close the SCTASK'S which are not updated in past 120 days and exclude the sctask configuration item starting with "abc" after closing the sctask,I need to close the RITM associated with the sctask and Request associated with the above RITM
Scenario 2: For example we have a RITM which has three SCTASK'S one is not updated in past 120 days and another 2 are updated recently so we need to close only the sctask not updated in past 120 days and in this scenario we should not close RITM and Request.( Here also we need to check the sctask and exclude the configuration item starting with "abc" sctask)
Scenario 3: For example we have a request that contains more than one RITM here also we should check if both RITM s are closed we need to close request and if one RITM is closed and another is open it should not close the Request
Thankyou
Sanath K.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2024 11:25 PM
Can you share an example of what you mean?
It looks to work here.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2024 11:28 PM - edited 05-19-2024 11:30 PM
Ahh , my mistake we need check configuration item doesn't starts with "ABC" so that option is not there @Mark Roethof .
Thanks
Sanath k

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 02:20 AM
You can just script that in the condition in Flow Designer. And by using Flow Designer, still benefitting from all the other positives of Flow Designer above a scripted Scheduled Job.
So still no good reason to go for Scheduled Job.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field