The CreatorCon Call for Content is officially open! Get started here.

Lock incidents when other user is viewing them. Only one user can edit an incident at a time.

thakkallapallay
Tera Contributor

Hi Team,

Please help me with this.

How to lock incidents from editing when other user has opened the same incident. This functionality is present for workflows by default. I want it for incidents.

Thanks,

Ramya

6 REPLIES 6

I hope this helps.



Thanks,


Berny


The SN Nerd
Giga Sage
Giga Sage

While this requirement is probably do-able, there is no easy way to do it.


The time it would take to design and implement this requirement is probably far greater than the value it would provide.



I'd raise this with the requester before proceeding down this path.


Perhaps show them the new functionality in Geneva instead.



I would only implement this if it is a security requirement that is embedded to the culture of the organisation that is outside your circle of influence or a mandatory for regulatory purposes, in which case I would do something like the following:



  • Add a User field called 'Checked out by'.
  • Modify the ACLS for 'incident.* and 'incident' (write) with condition
            gs.getUserID() == current.getValue('u_checked_out')
  • Create an on Display business rule that sets 'u_checked_out' to the current user, or perhaps a check out UI action
  • Create a business rule that clears u_checked_out when an incident is updated


Good luck



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022