UI action visibility

You can use conditions to control UI action visibility by role. You can use the UI Action Visibility related list to restrict a UI action by view.

Control UI action visibility by role

Use this syntax to check for a role:
gs.hasRole('role_name')
Note: This role is deprecated, starting with the Geneva release. See Mandatory roles.
Example: Require the admin role
gs.hasRole('admin')
Example: Require the itil_incident or itil_problem role
gs.hasRole('itil_incident')||gs.hasRole('itil_problem')
Example: Require the itil_incident and itil_problem role
gs.hasRole('itil_incident')&&gs.hasRole('itil_problem')

Control UI action visibility with views

You can use the UI Action Visibility related list to restrict a UI action by view. A UI action is available for a given view according to the following rules.
  1. If there are no visibility rules, the action appears on all views.
  2. Any exclude rule on a given view means that the action does not appear on that view.
  3. If there is at least one include rule, then the action appears only on views that are specifically included.
Example: Show an action everywhere except the Cost Management view
Add an exclude rule for the Cost management view.
Figure 1. Example exclusion UI action view
Example exclusion UI action view
Example: Show an action on the Routine and ITIL views, but nowhere else
Add include rules for the Routine and ITIL views.
Figure 2. Example inclusion UI action views
Example inclusion UI action views