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

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Sahil Khan1 ,

You can create an ACL & in the script part of ACL, you can mentioned your conditions on top of it. So ACL will work only in specific cases.

Let me know if you need more

Mark my answer as Helpful & Accepted if it suffice the requirement

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Thanks for your response
Could you please explain how I do this

Tai Vu
Kilo Patron
Kilo Patron

Hi @Sahil Khan1 

The condition regarding the Group should be "is not" as you'd like to hide it if the Assignment Group is CAB.

TaiVu_0-1696494582501.jpeg

 

Thanks for your response.

it is not working as expected.