You can use the following condition and script parameters for menu actions.

Condition parameters

Note: The usual regular expression conventions are valid in the condition field, such as ! for NOT, && for AND, and || for OR.

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.

Table 2. Valid Conditions for Condition Parameters
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: