Making Type field on Change request form editable after copying a change using Copy Change UI button for itil users?

rajshekhar
Kilo Explorer

How to make Type field editable after copying a change using Copy Change UI button for ITIL users?
by default it copies all the details as from the source one. and the type field remains read-only from the beginning only.

1 ACCEPTED SOLUTION

Uncle Rob
Kilo Patron

The Client Script you're looking for is "Mark standard change fields readonly"


You're going to need to do a lot more work than just modifying that script though.   Typically an Interceptor will help a user decide the Type of Change prior to form rendering, so only the appropriate fields display for the given type.   You might have a bunch of back engineering to do there.



You may also need to factor for changes that still have certain fields populated despite not being useful for the given type.


View solution in original post

4 REPLIES 4

Uncle Rob
Kilo Patron

The Client Script you're looking for is "Mark standard change fields readonly"


You're going to need to do a lot more work than just modifying that script though.   Typically an Interceptor will help a user decide the Type of Change prior to form rendering, so only the appropriate fields display for the given type.   You might have a bunch of back engineering to do there.



You may also need to factor for changes that still have certain fields populated despite not being useful for the given type.


Actually the type of change is decided through an interceptor, and for all change request the Type field has been made read only. The requirement in my case is, that an ITIL user should have the ability to modify the 'Type' of a change request after he has copied a change from an existing change request by using the 'Copy Change' UI action. All the details get copied in a new Change Request form along with the Type also. I need to provide the ability to change its Type after it has been copied to a new one and after submitting that copied one, the Type field should be again set to read-only. Can you help me how to achieve this functionality?


I told you as much as I can without a significant look under the hood.   Type is read only for a reason.   Mainly, tons of stuff happens *immediately* as a consequence of the Type.   You're basically throwing a gigantic interrupt in your current change process because now you need a separate manual event to mark when the Type is certain.   At that point, and only that point, can workflows launch and/or continue properly.



Are there legitimate and frequent enough examples of a copied change being of a different type to justify that level of investment in development?


Michael Fry1
Kilo Patron

Once you change the field, you'll want to look at the business rule: SNC Approval - Reset conditions - to help trigger a reset of approvals, and workflows.