Configuring list view

robbcmd1234
Tera Expert

How to make all fields in the list view of incident list read-only but the following fields should be editable by the itil role: short description, state, category, and assignment group.

 

I have made 2 access control rules:

 

- incident.short_description:

incident short description acl - 1.png

incident short description acl - 2.pngincident short description acl - 3.png

 

- incident.*

incident asterisk acl -1.pngincident asterisk acl - 2.png

 

When incident.short_description is active and not the incident.*, it is working as expected. Any user without an itil role cannot edit the short description field in the list view cell, but as Beth Anglin with the itil role it can. But if i set incident.* as active, Beth Anglin cannot edit the short description in the list view anymore.

10 REPLIES 10

Hi @robbcmd1234 can you check admin role contains itil role or inherits it? if it doesnt work

in advance script put

if(gs.hasRoleExactly('itil'))

{

answer = true;

}

else

{

answer = false;

}

Regards
Harish

I dont see any admin role containing itil or inheriting it. For the script I dont think GlideSystem has a hasRoleExactly method. I did this instead: 

!gs.hasRole("admin") && gs.hasRole("itil")

Nilesh Pol1
Giga Guru

Hi @robbcmd1234 

 

You can add one Listedit ACL with adding itil role in required role, that help you to solve your question. so that only itil users can edit 'short desc' field in list view.

reference:

NileshPol1_0-1710914624643.png

If this response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

 

Hi, I already tried it but the admin role can edit the field. I dont want the admin editing the fields that only the itil role can edit.

Hi @robbcmd1234 

for only itil user you can unchecked admin override checkbox on acl and user following script in advanced condition

NileshPol1_0-1710916655562.png

If this response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.