How to Clear Assigned to if that user's shift has come to an end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2023 03:42 AM - edited ‎10-19-2023 03:43 AM
So, the requirement is to clear the Assigned to field from an incident form, if that user's shift has come to an end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2023 03:48 AM
Ideally you should not clear it.
Let the person from other shift change the assigned to
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2023 03:53 AM
But what if the next person in-shift doesn't change the "assigned to" to himself and remains with the user in the before shift.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2023 03:59 AM
Hello @sreeshsurendran ,
If you want to use this then you can achieve it using scheduled job which will run in every 8 hours.
Then glide into Incident records and use your logic, then remove assigned to and save it.
If my info helped you in any way, please mark this as BOOKMARK, HELPFUL & Accept Solution.
Best Regards,
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2023 12:16 AM - edited ‎10-23-2023 10:06 PM
Hello @sreeshsurendran ,
Ideally you should simply give an info message to the other shift person please change the assigned to but if you want to implement this functionality , please find below solution:
You can create a business rule or scheduled jobs and check will be as below :
Add a script that checks if the current time is after the end of the user's shift. If it is, then set `current.assigned_to` to null or an empty string value.
Thanks,
Amarjeet Pal