Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

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;