List edit acl on related list dependant on task.state

Mike62
Tera Guru

I am trying to stop all editing of a related list when an incident is closed or cancelled. The related list is 'related services' which appears on Incident and I want to make the list view of related services read only when incident is in one of two states. I cant get this to work and it seems to ignore what task.state is. Any help is appreciated

Mike62_0-1701440193031.png

 

1 ACCEPTED SOLUTION

Mike62
Tera Guru

Thanks for everyone's input. The answer was to manually script it:

 

if(current.task.sys_class_name == 'incident'){

   if(current.task.state == 7 || current.task.state == 8){

       answer = false;

View solution in original post

10 REPLIES 10

Dan Covic2
Tera Contributor

What's the script? Can you show it?

The script just has answer=false: I tried scripting the condition but nothing changed

Mike62_0-1701677198548.png

 

Why aren't you using the Condition builder?  What I offered up should work if your Condition is correct.

I am using the condition builder and the script now just says answer=false. I tried the above script but nothing changed

Here are screen shots of our two write ACLs for Incident.  The first disallows write for itil once the record is closed.

 

ShaneJ_1-1701713756901.png

 

This one disallows write for the Caller or Opened By once the record is closed.

ShaneJ_0-1701713740778.png