Manage custom widgets from the list view to update widget details; configure connections, variables, and probes; and control widget visibility.
Role Required: SDAdmin
Go to Setup > Developer Space > Custom Widgets to open the list view.
Quick Links
The Custom Widgets list view displays all uploaded widget packages. Each row represents a widget package and includes the following details:
|
Column |
Description |
|
Widget Name |
Name of the widget package |
|
Status |
Toggle to enable or disable the entire widget package |
|
Actions |
Options to edit, delete, or view widget details |
Expand a widget row to view its widget items, display locations, connections, variables, and probe settings.
Use the toggle in the Status column next to a widget package to enable or disable a widget.
Enable: Displays widget items at their enabled locations based on the configured visibility conditions.
Disable: Hides all widget items in the package from users.
Disabling a widget package overrides its widget item and display location settings. Enabling it again restores previous settings.
Click the action icon (⋮) next to a custom widget name to access the following options:
|
Action |
Description |
|
Edit |
Update the widget name and description or upload an updated widget package. |
|
Delete |
Permanently delete the widget package and its associated connections, variables, and custom modules. |
You cannot delete a custom widget associated with a custom menu or dashboard. Remove these associations before deleting the widget.
Click the expand icon (▶) next to a widget or click its name row to view its details and settings.
The quick view displays:
Widget package name and description
List of widget items and their configured locations
Connection names and authorization status
Variable keys and values, with secure values masked
Assigned probe, if configured
Connections allow custom widgets to access third-party services through OAuth and APIs. After you upload a widget package with connections, authorize them so the widget can use them to make API calls.
Click a connection name in the expanded widget row to open the authorization panel. You can perform the following actions:
Authorize: Grant access to the third-party service through the OAuth authorization process.
Revoke: Remove the connection’s existing authorization token.
The user access property in the widget’s plugin-manifest.json determines whether any user or only the SDAdmin who installed the widget can authorize a connection. To learn more, click Custom Widget Specifications - Connections.
For widget items with the configuration location, you cannot configure connections, probes, or variables from the UI.
Use the following JavaScript APIs to configure connections:
Connections: SDP.getConnection(), SDP.getConnections(), SDP.authorizeConnection(), and SDP.revokeConnection()
A probe is an on-premises agent that connects custom widgets to applications on internal or private networks. You can associate one probe with a custom widget at a time.
The probe selector appears in the list view when probe_config_required is set to true in the widget’s plugin-manifest.json.
Use the following JavaScript APIs to configure probes:
Probes: SDP.getProbeDetails() and SDP.setProbeId()
To configure a probe:
Expand the widget row in the list view.
Click the edit icon (✏) for the probe field.
Select an installed probe and save the configuration.
Learn more about how to install and configure probes.
Variables store values as persistent key-value pairs in the widget. They are defined in plugin-manifest.json, and admins set their values after the widget is installed.
Use the following JavaScript APIs to configure variables:
Variables: SDP.getVariable(), SDP.getVariables() and SDP.setVariable()
To edit a variable value:
Expand the widget row in the list view.
Click the edit icon (✏) for the variable field.
Enter the value and save.
Variable keys appear only if they are defined in the widget’s plugin-manifest.json. Values for secure variables ("secure": true) are masked in the UI.
After you upload a widget package, expand its row to view the widget items and their available display locations. Use the following options to control where each widget appears and who can view it.
Use the toggle for a display location to enable or disable the widget item at that location. When you disable a location, the widget item is hidden there, even if the widget package is enabled.
Click Configure for a display location to control widget visibility based on user roles and field values.
Choose one of the following options under Associated Roles:
|
Option |
Behavior |
|
All Roles |
Displays the widget to all users regardless of their role. |
|
Selected Roles |
Displays the widget only to users with the selected roles. |
|
Show to Requester |
Displays the widget to requesters. |
Choose one of the following options under Criteria:
|
Option |
Behavior |
|
Based on Condition |
Displays the widget when the configured field conditions match. |
|
No Condition |
Displays the widget without field-based criteria. |
To configure a condition:
Select Based on Condition.
Choose a field from the Select Column drop-down.
Choose an operator from the Select Operator drop-down.
Specify the required values.
Click Add to configure additional criteria.
Click Remove for a criteria row to delete it.
Use the grab handle to drag a criteria row and change its evaluation order.
Select Template from the Select Column drop-down to filter by request, change, or release template, where supported.
The Criteria field is unavailable for Dashboard and Web Tab display locations.
In addition to role and field conditions, certain modules support additional parameters to control where the widget appears.
|
Module |
Location |
Parameter |
|
Assets |
Asset Details — Tab, Asset Details — Right Pane |
Product Types |
|
CMDB |
CI Details — Tab, CI Details — Right Pane |
Configuration Item (CI) Types |
|
Changes |
Change Details — Stage Subtab |
Stages |
|
Releases |
Release Details — Stage Subtab |
Stages |
Select the required values when configuring these display locations.
For widget items with a custom menu location, configure visibility conditions in the associated Custom Menu instead of the list view.
Set the custom widget as the menu action, then use the Criteria field to specify when the menu item appears.
To learn more, click Custom Menus.
Widgets in the form's right pane are hidden by default. Use form rules or a JavaScript API call to display them.
In the form rules configuration, use the Show Widget or Hide Widget action to control visibility based on conditions.
If no form rule condition is configured, call SDP.showWidget() from the widget code to display the widget.
To learn more, click Form Rules.
Manage Widget Items
You can enable or disable individual widget items from the list view without disabling the entire package.
Expand the widget row and use the toggle for a widget item to enable or disable it. When you disable an item, it is immediately hidden from all its configured display locations.