Incident state in closed should not be editable in list view

catchdini
Tera Expert

I have an UI policy to make the incident state field read only when the state is closed. However I noticed that, in the list view, Im able to change the status from Closed to whatever available I want i.e) when I click on 'Closed' in Incident application or when I query for incident state is closed, the state in the query are editable or can be changed. How do I restrict this?

1 ACCEPTED SOLUTION

Hi,



I can see the error now.


Please remove the numbers from your client script(on the left side green one like 02,03....)


Please copy the below script and paste it


View solution in original post

10 REPLIES 10

Hi catchdini,



If your Incident   table contains write ACL for entire table (Incident or incident.*) .


Then just add 1 more condition there:



if(current.state == 7)   {     //Closed


answer = false;


}



Then I think there is no need of Cell Edit Client Script.



Thanks,


Darshan