Filter and breadcrumb not visible on sysapproval_approver list

chr_kluge
ServiceNow Employee
ServiceNow Employee

Hi everyone

I've checked the other posts in the community and found that I can either use a ScriptInclude "DisplayFilter" or the list control to restrict users to use the breadcrumb and filter.

But on our list control for sysapproval_approver no roles were set and the property "omit filter" was disabled.

The only scrit include, business rulle, or whatever with "DisplayFilter" was the incidentDisplayFilter Script Include.

The first thing I tried was setting the list control property "Filter roles" to public. After clearing the cache and reloading the navigator the filter and breadcrumb were still not visisble for ess users.

Then I created the following script include to achieve my goal and I also cleared the cache and reloaded the navigator. But still ess users aren't able to see it.

ScriptIncludeDisplayFilter.PNG

Any further suggestions? I tried it with different itil users...

1 ACCEPTED SOLUTION

chr_kluge
ServiceNow Employee
ServiceNow Employee

Hi all



I think the solution is:



You need to actively allow an ess user the filter. Either by setting the list control filter roles to pbulic or by adding a script inlcude that returns always true.



BUT: it's not working right away. Even if you clear the ServiceNow cache and the browser cache you have to wait several hours till it works.



In my case I recognized on the next work day that "by magic" it worked now.



So to all of you a big thank you for your posts.



Christina


View solution in original post

7 REPLIES 7

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Christina,



What list are you trying to get the filter from? Is it a module or a gauge on a homepage? Also, are you wanting to give filter access to itil or ess users? I duplicated your script include in my dev instance and it appeared to work for ess users, but it shouldn't even be necessary for itil users.


Hi Brad



I want to give filter access to ess users. For itil users it's working.


The module to open the list is configured as a list of records with the arguments


        state=requested&sysparm_fixed_query=approver=javascript:getMyApprovals()^ORapprover.manager=javascript:gs.getUserID()




By the way the Requested Items list also shows no filter for ess users... Only the incident list and there the script include is working.


sysparm_fixed_query parameter used to make the filter non editable. Remove this and should become editable again.



You can define the query using the condition field of the module.


Hi Kalai



That's not correct. At the moment it's not visibe at all for ess users (filter and breadcrumb). I want a fixed and a variable part in the filter.


noFilter.PNG



Christina