Notifications

138 views

Symptoms


1. How to remove  Template Management from category field as an option?
2. How to enable/display user criteria on standard change templates?

Cause


Expected behavior

Resolution


1. How to remove  Template Management from category field as an option?

if you do not wish to deactivate the Template Management category the reference qualifier will need to be updated accordingly. 

<Instance name>/nav_to.do?uri=item_option_new.do?sys_id=4b027814932002009ca87a75e57ffb47

Below is an example of how the current reference qualifer could be customized to hide this option:
 
javascript:'active=true^title!=Template Management^sc_catalog=' + new StdChangeUtils().getValue('catalog') + '^' + new StdChangeUtils().getCategoriesInHierarchy(new StdChangeUtils().getValue('category'), 5)
 
This is just adding another condition to the beginning of the script that filters out categories with the title 'Template Management'. Again, this is simply an example of how this customization can be created. If this does not suit your business requirements, your team will have to implement/customize the reference qualifier. There is also the option of changing this qualifier to dynamic. 
 
2. How to enable/display user criteria on standard change templates?
 
The user criteria is not displaying for standard change templates due to the following system property:
----
Use "User Criteria" to define access to catalog items and categories ( glide.sc.use_user_criteria)
Use user criteria to define access to catalog items and categories. Entitlements are not honored if set to true:
Type: true | false
Default value: true
 
Service Catalog properties
----
 
This is currently set to false in dev instance. When this is set to false, user criteria will be ignored. This is why the client script hides the 'Available for' 'Not available for'.
 

Additional Information


Reference Qualifiers
https://docs.servicenow.com/bundle/kingston-platform-administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html
 
Create a dynamic filter option
https://docs.servicenow.com/bundle/kingston-platform-administration/page/use/using-lists/task/t_DynamicFilterOptions.html#t_DynamicFilterOptions
 
Service Catalog security

Article Information

Last Updated:2018-08-28 05:26:49
Published:2018-08-28