Customize UI action behavior

You can customize the behavior of UI actions.

Before you begin

Role required: admin

About this task

The following example customizes the behavior of the Close Incidents UI action to close all incidents related to the current problem

Procedure

  1. Navigate to System UI > UI Actions.
  2. Select Close Incidents on the Problem [problem] table.
  3. Alter the script as necessary.
    For example, remove the following line to close all incidents related to the current problem, regardless of the incident state.
    incident.addQuery("incident_state", "=", 3);
  4. Click Update.