Make one field editable after closing the incident

SAIRSM
Tera Contributor

I have a requirement like after incident closed also one field has to be editable for a particular group member.
In system properties, it is defined as after 5 days of resolution , state has to be chnages to closed. That field is editable when state is not closed/cancelled.

I want to make it editable as mentioned above. 
I tried so much like through Ui polices, acls and all, but all are failing, nothing able to make the field editable. It still in read-only mode.

Please let me know if any solutions are there for my requirement.


1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @SAIRSM 

 

Try this:

 

  1. Modify the Read-Only UI Policy

OOTB, ServiceNow locks down all fields on closed incidents via a UI policy.

  • Navigate to System UI > UI Policies in the left navigation pane.
  • Search for and open the UI policy named Make fields read-only on close.
  • Under the UI Policy Actions tab, locate your specific field.
  • Change the Read only setting to Leave alone instead of True. This ensures the policy does not force the field to be locked once the ticket closes.

 

  1. Create the Field-Level Write ACL

Even with the UI Policy updated, global table-level ACLs prevent editing closed incidents. You must create a specific write ACL for your field.

  • Navigate to System Security > Access Control (ACL).
  • Create a new record with the following configurations:
    • Type: record
    • Operation: write
    • Name: Incident.[select_your_field_name]
  • In the Requires role section, add the itil role.
  • In the Condition builder, define when this is allowed:
    • [State] [is] [Closed] OR [State] [is] [Cancelled]
  • In the Script section (Advanced check), add

 

answer = gs.getUser().isMemberOf('Your_Assignment_Group_Sys_id);

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti