How to disable the ability to copy a change or create a template?

Robert Campbell
Kilo Sage

We have a problem where people are creating changes by copying an old change.  The problem is the new change has a service that is no longer active.  I believe the same would happen if they were to create a template with an expired service.  Is there a way to either allow copy or insert and stay but not copy any field that uses a cmdb_ci... reference field?

3 REPLIES 3

Musab Rasheed
Kilo Patron

Mike_R
Kilo Patron

You can edit this system property

Mike_R_0-1668186083613.png

 

Sebas Di Loreto
Kilo Sage

You should first do (control) what the other responses are suggesting.

If services are changing status often (meaning not "active" anymore) then you could also have an advanced BEFORE INSERT business rule in the change_request table with a condition Service NotEmpty AND Service.status IsNot Installed, then Abort and send a message.

 

Check this example with no code.

 

SebastianDL_0-1668186533902.png

 

SebastianDL_1-1668186553636.png