How to Clear Assigned to if that user's shift has come to an end

sreeshsurendran
Tera Guru

So, the requirement is to clear the Assigned to field from an incident form, if that user's shift has come to an end.

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@sreeshsurendran 

Ideally you should not clear it.

Let the person from other shift change the assigned to

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.

Harsh_Deep
Giga Sage
Giga Sage

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

Amarjeet Pal
Kilo Sage
Kilo Sage

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