Condition and script parameters for menu actions
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Dependency Views
You can use the following condition and script parameters for menu actions.
Condition parameters
The Condition field contains a boolean expression that evaluates to true or false. If the condition is true or if there is no condition, the specified option appears in the menu when you right-click a CI or a relationship link. When you select the option from the menu, ServiceNow executes the associated script.
Condition | Description |
---|---|
item.is_collapsed | The node is a collapsed node. |
item.is_cluster | The node is a cluster node. |
Script parameters
Menu action scripts are executed on the client when a user clicks the menu option. You can use the same building blocks in scripts as in conditions. Menu action scripts do not function on separators. These are some additional, useful expressions for scripts:
On this page
Related Content
- Create or modify map indicators
Dependency Views maps and application service maps, use icons to display additional information for a CI by displaying its related records such as alerts, outages, incidents and problems. These icons are called map indicator.
- Create or modify map icons
Upload new icons or modify existing icons to customize the icon displayed for a CI in maps in Dependency Views, Service Mapping, and Event Management.
- Create a predefined filter
Create filters to narrow down the CIs that are displayed on a Dependency Views map. You can create filters that are based on CIs' class, CIs' attributes, or CIs' relationships.
- Set a predefined filter as default
You can set a custom predefined filter as the default predefined filter for viewing maps.
- Create or modify Map Related Items
The Map Related Items module relates referenced CIs to one another, which allows them to be displayed in a Dependency Views map.
- Create or modify Dependency Views menu actions
To modify an existing menu option, first you create a copy of the original menu action record, and then you modify the copy.
- Create or edit a dependency type
Use one of the dependency types provided, or create a custom dependency type with a script that will execute in real time to generate a custom view of a Dependency Views map for a specific CI.