This page relates to the Cloud version of Rich Filters for Jira Dashboards. Please see the documentation index for Server & Data Center versions.

Use custom values in your dashboards

Rich Filters for Jira Dashboards allows you to define custom values advanced user-defined values that can be used in rich filter gadgets. They provide the ability to use custom formulas (sum, average, minimum, and maximum) when aggregating values, custom display options for the results including label, color, and format, and JQL for further filtering. Custom values are available as columns in views and values in gadgets, alongside Jira fields. 

Prerequisites

Final result for this tutorial

Once you've worked through the steps in this tutorial, you should have a dashboard that contains five rich filter gadgets:

  • A Rich Filter Controller gadget to provide interactive filtering of your dashboard.
  • A Rich Filter Simple Counters Gadget to sum custom values.
  • A Rich Filter Flexi Charts gadget based on custom values.
  • A Rich Filter Statistics gadget based on custom values.
  • A Rich Filter Results gadget showing custom value-based columns in action.

A dashboard containing rich filter Controller, Simple Counters, Flexi Charts, Statistics, and Results gadgets, showing various uses of custom values

Rich filter and dashboard basic setup

In this section, you'll set up a basic rich filter and dashboard to work with.

  1. If you've already worked through other tutorials in our Learning Center, you can base any gadgets you create while following this article on a previously-created rich filter. Check that you have one available to use (find existing rich filters under Apps > Rich Filters). If not, follow the instructions in Get started with Rich Filters for Jira Dashboards to create a new rich filter before continuing.
  2. Create a new dashboard (Dashboards > Create dashboard).
  3. Make sure it is using the Left sidebar layout. You can set this using the Change layout menu at the top of the dashboard.

    New dashboard with the change layout menu open and left sidebar selected

  4. Add a Rich Filter Controller gadget to your dashboard based on your rich filter (Create a simple dashboard explains how to do this).
  5. After saving the configuration of your gadgets, make sure the controller is in the left column; drag and drop it if required.


If you want a more detailed explanation of creating a new dashboard, see Create a simple dashboard.

Your first custom value

Let's start by creating a custom value based on a time-tracking field. You'll create one called "Time Spent (h)" that sums total time spent working on your issues, based on the Time Spent Jira field, which has:

  • A custom label and color.
  • Custom formatting in hours (many people want an option to change Jira's default time formatting).

To do this:

  1. Go back to your rich filter config and select the Custom Values tab.

    Rich filter config screen showing default Custom Values tab with no custom values created yet

  2. Click Create custom value.
  3. In the resulting dialog box, enter the following values:
    1. Name: "Time Spent (h)". Also select a custom color from the color picker to the left of the entered name value. We've chosen orange.
    2. Base value: This is the Jira field you are basing your custom value on. Select Time Spent from the dropdown.
    3. Total formula: This is the formula used to calculate the totals shown when aggregating this custom value in gadgets (for example, the values shown in statistics and charts). Select Sum total — we want to show the total number of hours.
    4. Time display format: This gives you options for displaying time tracking fields in days, hours, minutes, or seconds, in addition to Jira's display format. Select Hours.

      Create a custom value dialog box with Time Spent details filled in

  4. Click Create.

At this point, your Custom Values tab should display a summary of the custom value you just created. You can edit or delete it using the pen and trash can buttons at the right-hand end of the row.

Numeric custom values

Now let's look at a numeric custom value; here you'll create a "Resolved Story Points" value, based on the Story Points Jira field, that uses a JQL query to provide the necessary filtering right inside the custom value itself.

  1. Create a new custom value with the following configuration values:
    1. Name: "Resolved Story Points". Give it a green color.
    2. Base value: Select Story Points from the dropdown.
    3. Total formula: Select Sum total.
    4. Decimals: This allows you to choose between showing no decimal portion in your values, a maximum number of decimal places, or an exact number of decimal places (with trailing zeros if required). Leave this at the default value.
    5. JQL: This is where you can enter a JQL query to filter the issues to which this custom value applies. We want to show resolved story points, therefore this custom value should apply only to resolved issues. To achieve this, insert "resolution is not EMPTY" into this field.
  2. Click Create.

    Rich filter config custom values tab showing two custom values, Time Spent (h) and Resolved Story Points

Display your custom value totals in counters and statistics gadgets

Now you've created some custom values, you need to actually use them somewhere.

First, you'll use a Rich Filter Simple Counters gadget to display some useful totals.

  1. Add a Rich Filter Simple Counters gadget to your dashboard (Create a simple dashboard explains how to add gadgets).
  2. If required, move the gadget to just below your controller gadget by dragging and dropping it.
  3. Configure the following fields in the gadget config form:
    1. Rich filter: Set this to your rich filter.
    2. Values: From the Pick a value... dropdown, select the Jira Issue Count value, and your custom Time Spent (h) and Resolved Story Points values.

      Rich Filter Simple Counters gadget config form with rich filter and three values selected, Issue Count, Time Spent (h), and Resolved Story Points

  4. Click Submit. Your Rich Filter Simple Counters gadget should look like so:

    Rich Filter Simple Counters gadget showing the sum total of three values, Issue Count, Time Spent (h), and Resolved Story Points

Now let's use a Rich Filter Statistics gadget to break down the same data further, showing these custom values for each assignee.

  1. Add a Rich Filter Statistics gadget to your dashboard.
  2. Move the gadget to the right-hand column by dragging and dropping it.
  3. There are several fields you should configure in the gadget config form:
    1. Rich filter: Set this to the same rich filter as your other gadgets.
    2. Breakdown by > Statistic type:  Select Assignee from the dropdown.
    3. Values: Again, select Issue Count value, Time Spent (h), and Resolved Story Points.

      Rich Filter Statistics gadget config form with rich filter, Assignee Statistic type, and three values selected, Issue Count, Time Spent (h), and Resolved Story Points

  4. Click Submit. Your Rich Filter Statistics gadget should look like so:

    Rich Filter Statistics gadget showing three values, Issue Count, Time Spent (h), and Resolved Story Points, broken down by Assignee

Before we move on, let's consider for a moment what we just did. We defined a notion of "Time Spent (h)" and started to use that instead of the native Time Spent field. This is preferable because it provides a custom time display in hours, and a custom label and color. We then defined a notion of "Resolved Story Points" that provides a useful filter on top of the native Story Points field and used that in our gadgets.

This has started to give you a glimpse into the power of custom values — you can define a custom value to suit your needs, and then use it everywhere. And you can do all this without being a Jira administrator. Let's continue.

Duration-based custom values

Let's explore creating some more advanced custom values based on computed durations provided by rich filters. We'll create new custom values based on the Issue age / resolution time calculated duration value. Issue age / resolution time brings two closely related values together in one. If an issue isn't resolved, the value will be Issue age — i.e the time that has passed since the issue was created, until now. If it is resolved, then the age will stop increasing on the resolution date, and the value will become a static resolution time value — i.e. the time between the created date and the resolution date.

We'll now create two new custom values based on Issue age/resolution time:

  • Age, which will contain the age of issues, whether they have been resolved or not. You'll display this in a Rich Filter Results gadget view later on.
  • Avg Resolution Time, which will contain the resolution time of issues, hence it will only be shown for resolved issues. This can then be used to display the average issue resolution time for each assignee in your Rich Filter Statistics gadget.

Create a custom value dialog box showing the Issue age resolution time base value

Let's do this:

  1. Go back to your rich filter config's Custom Values tab.
  2. Create a new custom value with the following configuration values (as illustrated in the picture above):
    1. Name: "Age". Give it a blue color.
    2. Base value: Select Issue age / resolution time.
    3. Total formula: Select Average Value.
    4. Duration display format: Select Days.
  3. Create another custom value, with the following configuration values:
    1. Name: "Avg Resolution Time". Give it a gray color.
    2. Base value: Select Issue age / resolution time.
    3. Total formula: Select Average Value.
    4. Duration display format: Select Days.
    5. JQL: Insert "resolution is not EMPTY" — we want this custom value to apply only to resolved issues.
  4. Your Custom Values tab should now look like this. Check it before moving on:

    Rich filter config custom values tab showing four custom values, Time Spent (h), Resolved Story Points, Age, and Avg Resolution Time

Add Avg Resolution Time to your statistics

  1. On your dashboard, open your Rich Filter Statistics gadget config form (as described in Easier configuration with the Rich filter menu).
  2. Add your new Avg Resolution Time value in the Values section and click Submit.
  3. Your Rich Filter Statistics gadget should now look like this:

    Rich Filter Statistics gadget showing four values, Issue Count, Time Spent (h), Resolved Story Points, and Avg Resolution Time, broken down by Assignee

Now, the gadget also shows the average resolution time for each assignee. Note that in this case, the percentage bar is not displayed — it does not make sense for values using the average aggregation formula.

Display custom values in a results gadget

Let's display some custom values as columns in a Rich Filter Results gadget.

To be able to do that, you'll first need to set up a View to display those columns.

  1. Open your rich filter config (as described in Easier configuration with the Rich filter menu).
  2. Select the Views tab.
  3. Add a view called "Delivery status check".
  4. Inside Delivery status check, add the columns Issue Type, Key, Priority, Summary, Assignee, Time Spent (h), Status, Resolution, and Age. We've chosen custom values that make sense to display in Rich Filter Results gadget columns.
  5. Turn your attention to the Show totals row toggle switch above the columns list. Click the toggle to turn this on — a Rich Filter Results gadget will now display this view with a Total row at the bottom containing the totals for all the value columns in the view, including the custom value columns.

In the same way as the other columns, you can edit the display of your custom value columns using the edit (pen) icons on the right-hand side of the display, for example to customize the column headings.

Your Delivery status check config should look like this:

Delivery status View config with 9 columns included and the Show totals row toggle turned on

Now it's time to show your new view inside a Rich Filter Results gadget.

  1. Add a Rich Filter Results gadget to your dashboard.
  2. Move the gadget to the right-hand column below the Rich Filter Statistics gadget, by dragging and dropping it.
  3. In the gadget config form, set the Rich filter to the same rich filter as your other gadgets, and click Submit. Your Rich Filter Results gadget should look like so:

    Rich Filter Results gadget showing 9 columns, which includes our custom values Time Spent (h) and Age. Results table also includes Totals row

Have a look at the columns based on your custom values. Note the Total row, which displays totals for your custom values calculated according to the Total formula setting you specified for each one.

Create a custom value based on a custom duration

Now we will create a Due In custom value that shows how far away the deadline for each issue is. This will be based on Custom duration — this is a special advanced base value that allows you to select a start and an end time/date from a list of options (which includes the current time), with the final value being the computed duration between the two.

Let's look at how this works:

  1. Go back to your rich filter config's Custom Values tab.
  2. Create another custom value with the following configuration values:
    1. Name: "Due In". Give it a red color.
    2. Base value: Select Custom duration from the dropdown. This causes two additional dropdown fields to appear to allow you to specify your start and end values:
      1. Start: Select Current time.
      2. End: Select Due date.
    3. Total formula: Select Minimum value. When aggregating this custom value on multiple issues, we'd like to see the one which is due next: the minimum Due In value.
    4. Duration display format: For the chosen Start and End values, this field is fixed at Days — non fractional.
    5. JQL: Insert "resolution is EMPTY". It makes no sense to show Due In values for issues that are resolved.

      Create a custom value dialog box with Due In details filled in

  3. Go back to your rich filter config's Views tab.
  4. In the Delivery status check view, add a new Due In column, and drag and drop it so it sits in between the Summary and Assignee columns.
  5. Go back to your dashboard and refresh it. You should see your Due In column in action:

    Rich Filter Results gadget showing 10 columns, which includes our custom values Due In, Time Spent (h), and Age. Results table also includes Totals row

The Total row value for Due In is particularly interesting — because you selected Minimum Value for the Total formula, this acts as a useful signal of when the next task is due for completion.

Further exercises

To complete this tutorial, we'd like you to create a bar flexi chart that shows the Avg Resolution Time for each Priority.

Your finished chart should look something like this:

Rich Filter Flexi Charts gadget showing the Avg Resolution Time of each separate priority

We'd also recommend that you add some filters to your controller to provide additional interactive filtering of the issues shown in your gadgets:

  1. Add static filters as described in Get started with Rich Filters for Jira Dashboards.
  2. Add dynamic filters as described in Enhance your Jira dashboards with dynamic filters.
  3. Add a Teams smart filter as described in Create a Teams smart filter.
  4. Update your previous flexi chart to use your new smart filter as the Statistic type – this will allow you to display the Average Resolution Time by Team.