Dashboard filters

Dashboard filters make one dashboard work for many objects. Instead of hard-coding objects into each tile, a filter lets viewers switch between objects on the fly. Filters also work on shared dashboards.

Dashboard filters were previously called dashboard variables. In expressions they're still referenced as {{variable1}}.

Use case examples

The following examples show some of the ways you can use dashboard filters.

Create a template dashboard for pipelines

You can create a reusable dashboard template that allows viewers to select the specific pipeline they want to investigate.

For example, instead of building a separate dashboard for each pipeline, add a dashboard filter that controls which pipeline every tile shows. Viewers switch pipelines from the filter dropdown and the dashboard updates to match.

This approach reduces duplication, keeps dashboards easier to maintain, and ensures teams always work from a consistent layout.

Create a filterable dashboard for microservices

You can create a dashboard that displays information about all your microservices by default, then allow viewers to narrow the view to a specific service when needed.

For example, a dashboard might show alert activity, deployment status and performance across your whole microservice environment. With a dashboard filter, viewers can select one microservice to focus on without leaving the dashboard.

This makes the dashboard useful both as a high-level overview and as a focused troubleshooting workspace.

Create a dashboard filter

Add a filter while the dashboard is in edit mode. Each dashboard can have one filter.

  1. Navigate to a dashboard or create a new one.
  2. Ensure you are in edit mode. To edit a dashboard click the Edit button at the top of the dashboard.
  3. Click Add filter next to the dashboard title.
  4. Configure the following settings in the Add filter window:
    1. Collection:
      Select an existing collection from the dropdown, or click Add collection to create one. The objects in the collection are the options viewers can choose from. See Collections.
      Note

      To view and edit a workspace's collections, click Collections in the workspace's left-hand menu, then click edit next to the collection.

    2. Default value: Select what the filter shows when the dashboard opens. Choose from:
      • All: The dashboard opens with every object in the collection selected.
      • None: The dashboard opens with no objects selected. Viewers are prompted to pick from the filter dropdown. If the collection has only one object, the dashboard selects it regardless of this setting.
        • Allow multiple selection: Enable to let viewers select more than one object from the filter dropdown. It's always on when Default value is All, and optional when it's None.
  5. Click Add. The filter dropdown appears next to the dashboard title.
  6. Set up the tiles on the dashboard to use the filter, as described below.

Use a dashboard filter

Once you've added a dashboard filter, connect it to the tiles that should follow it.

How you connect a tile depends on how it's configured and which data stream it uses.

When you create a tile on a dashboard that already has a filter, SquaredUp usually offers to use it. Tiles created before the filter was added need connecting by editing the tile and pointing one of its inputs at the filter.

There are three ways to connect a tile to a dashboard filter.

If your data stream supports scoped objects, connect the filter on the Objects step of the tile editor.

To use the filter here:

  1. Create / edit a data tile as normal.
  2. On the Objects step, select the collection marked with the filter icon . That icon shows the collection is the one behind the dashboard filter. The step then reads Dashboard Filter.


    Note

    If the tile was created before the dashboard filter was added, deselect its current collection, then select the collection with the filter icon.

  3. Complete the tile configuration as normal.
  4. Click Save. The tile now updates whenever a viewer changes the dashboard filter.

    Note

    Monitoring and KPIs run in the background, without anyone viewing the dashboard. So they're only available when the dashboard filter has a default value, and monitoring uses that default (for example, all objects) to work out health.

Some data streams expose their object scope selection via the Parameters step of the tile editor instead of the Objects step (for example, the Project context field of the WIQL Query data stream).

If the dashboard has a filter, you can select it when choosing the objects to scope to.

To use the filter here:

  1. Add a filter to the dashboard, if it doesn't have one.
  2. Create / edit a data tile as normal.
  3. On the Parameters step, open the object picker and click Use dashboard filter.
  4. Complete the tile configuration as normal.
  5. Click Save. The tile now updates whenever a viewer changes the dashboard filter.

Expressions let you manipulate, format and parameterize data throughout SquaredUp, using JavaScript inside {{ }} placeholders.

Insert the dashboard filter's value into an expression wherever expressions are supported, such as the JQL query field or a script. The filter is always referenced as {{variable1}}.

See Expressions for more information.

Was this article helpful?


Have more questions or facing an issue?