How to create a custom ratio with story points and time spent

How to create a custom ratio with story points and time spent

Summary

This article provides a workaround for calculating a custom ratio (such as productivity) using story points and time spent in Rich Filters for Jira Dashboards. By default, these fields cannot be used together in a custom ratio due to their different field types. The solution involves using Jira automation to sync time tracking data into a numeric custom field.

Use case

A user wants to track team or individual productivity defined as Story Points / Time Spent. For example, if a user completes 160 story points in 160 hours, the productivity ratio is 100%.

Limitations

In Rich Filters for Jira Dashboards, the numerator and denominator of a custom ratio must be based on fields of the same type (for example, two numeric fields). Since Story Points is a numeric field and Time Spent is a time tracking field, they cannot be used directly in the same custom ratio.

Solution

To calculate a ratio using both fields, you must convert the time tracking data into a numeric format using a custom field and an automation rule.

Step 1: Create a custom numeric field

  1. In Jira, navigate to Settings > Issues > Fields.

  2. Click Create custom field.

  3. Select Number Field and click Next.

  4. Name the field (for example, Logged Work Hours) and associate it with the relevant screens.

Step 2: Configure an automation rule

Create an automation rule to sync the work log data to the new numeric field.

  1. Navigate to Project settings > Automation.

  2. Click Create rule.

  3. For the trigger, select Work logged.

  4. Add an action for Edit issue.

  5. Select the custom numeric field created in Step 1 (for example, Logged Work Hours).

  6. Use a smart value to capture the time spent in the desired unit (for example, hours).

  7. Save and publish the rule.

  8. For more details, review: Create automation flows in Jira | Cloud automation Cloud | Atlassian Support

Step 3: Define the custom ratio in Rich Filters

Once the numeric field is populated with data, use it to define the ratio.

  1. In the Rich Filter Configuration page, navigate to Custom Ratios.

  2. Click Create custom ratio.

  3. Set the Numerator to Story Points.

  4. Set the Denominator to your custom numeric field (for example, Logged Work Hours).

  5. Click Create. The settings update.

Step 4: Display the ratio on a dashboard

  1. Navigate to your Jira dashboard.

  2. Add or edit a Rich Filter Statistics gadget.

  3. In the Gadget Configuration, set the Statistic Type to a field like Assignee or a Smart Filter.

  4. In the Values section, select the custom ratio created in Step 3.

  5. Click Save. The productivity ratio appears in the gadget.