How to hide incident description field data for specific record in list view

Sahil Khan1
Tera Guru

Hello Everyone,

 

I'm attempting to hide the data in the description field for certain records. Specifically, I want to hide it when the assignment group is "CAB," and the incident was generated by the "Create Incident" record producer. I've tried using ACLs, but they affect all records, not just the ones I want to target. Additionally, I've created some business rules, but they hide the entire record rather than just the field.
To clarify with an example: If I'm a non-assignment group member, I should be able to see the descriptions for most records in the list view, but not for that particular record.

1 ACCEPTED SOLUTION

Hi @Sahil Khan1 ,

Besides, the ACL above you also need one more ACL to provide the access READ to other cases. (Here is the ones not created via record producer)

Sample below:

Screenshot 2023-10-05 at 16.27.30.png

Result:

TaiVu_0-1696497948944.png

 

You can also achieve it through one ACL through script. The logic should be

  1. If the current Incident is not created via Record Producer => answer = true
  2. If the current Incident is created via Record Producer
    1. If the Assignment Group is CAB => answer = false
    2. Else (Assignment Group is not CAB) => answer = true

Sample script:

 

 

if(current.getValue('u_catalog_sys') !== '3f1dd0320a0a0b99000a53f7604a2ef9'){
	answer = true;
}else{
	if(current.getValue('assignment_group') === 'b85d44954a3623120004689b2d5dd60a'){
		answer = false;
	}else{
		answer = true;
	}
}

 

Let me know if it works for you.

 

 

Cheers,

Tai Vu

View solution in original post

6 REPLIES 6

Hi @Sahil Khan1 ,

Besides, the ACL above you also need one more ACL to provide the access READ to other cases. (Here is the ones not created via record producer)

Sample below:

Screenshot 2023-10-05 at 16.27.30.png

Result:

TaiVu_0-1696497948944.png

 

You can also achieve it through one ACL through script. The logic should be

  1. If the current Incident is not created via Record Producer => answer = true
  2. If the current Incident is created via Record Producer
    1. If the Assignment Group is CAB => answer = false
    2. Else (Assignment Group is not CAB) => answer = true

Sample script:

 

 

if(current.getValue('u_catalog_sys') !== '3f1dd0320a0a0b99000a53f7604a2ef9'){
	answer = true;
}else{
	if(current.getValue('assignment_group') === 'b85d44954a3623120004689b2d5dd60a'){
		answer = false;
	}else{
		answer = true;
	}
}

 

Let me know if it works for you.

 

 

Cheers,

Tai Vu

Thanks for your support it's help me a lot, I added one more condition in it, now it's working fine.