Getting Started with CloudBees Flow Metrics
Tags: flowmetrics, valuestreammanagement, tutorial, softwaredevelopment
Published: 2024-03-04 18:03:35

Flow metrics measure how value moves through a software product's end-to-end value stream. This tutorial explains how CloudBees uses flow metrics in our platform to provide a high-level view of the software development lifecycle (SDLC) through a business lens. 

Flow metrics can help businesses make more decisive decisions by showing the rate of value delivery concerning desired business outcomes. They can also provide a historical analysis of performance over time. CloudBees can aggregate data from your ticket management or work item management software like JIRA and connect it to your actual work in a code repository such as GitHub, and backtrack and put this information together and tell you how value is moving and progressing through your development lifecycle.

![CloudBees Platform Flow Metrics Dashboard ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/niqflzg73herpjd1nll3.png)

CloudBees categorizes work tasks for a given product value stream into four flow item types:

- 
Feature (a business value)

- 
Risk (possible lack of security or compliance)

- 
Bugs (a coding defect)

- 
Tech debt (a potential blocker to future delivery)

## Configuring your flow metric dashboards
Configuring flow metrics requires connecting your Jira using the Analytics Configuration side navigation. If you've never set up flow metrics, you must set this up the first time. 

<img width="150%" style="width:150%" src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExcHdwaWM5ZndrZXd1emF1OGY4OXlzejNhOXNnMHJtcHhvejl3eGNwMiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/xMQyUEmtdNvUNOiIIH/giphy.gif">

- 
From the side navigation, select Analytics → Analytics configuration 

- 
Click the Create Project button in the upper right corner. 

- 
Select a project management software, such as Jira.
If no options appear, navigate to Configurations → 
Integrations and create a JIRA integration. Once completed, your JIRA integration will appear. 
Once you choose your project management, you can select a project from JIRA. 

- 
Click Next

- 
In the next section, you must map feature, defect, risk, and tech depth to other issues. 
JIRA issue types include tasks, bugs, or epics. For example, features could be epics, and you can match them to an issue type. You can also map it to a full-blown JQL (Jira Query Language) instead of a ticket type. Similarly, you can do the same for defects, risks, and tech debt.
 
Here's my current configuration for the software delivery platform. 

![CloudBees platform flow metrics create project mapping criteria for demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7hb5mo0lpf8i63its2ln.png)

Having set this up correctly, I can return to my flow metrics report. 

Before moving into each widget, let’s discuss some common UI elements:

- 
Filtering: Use the filters to choose the component and the duration for which I want to see flow metrics down to the component level. When filtering, please note that weeks run from Monday to Sunday. 

- 
Drill downs: You can click any data point in the bold blue font for a deeper dive. These drill-downs will present you with all relevant Jira links for further investigation.

- 
Hovering: Each report has a tooltip explaining what it covers. For each graph type, you can hover over to get a breakdown.

- 
Viewing: all pages within the CloudBees platform can be viewed in light or dark mode. For the purposes of this blog, we use light mode.

<img width="150%" style="width:150%" src="https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExMWYxYWRwaG4xeWpsaWh3N3J3MTN2YWhidmI5bjdqdDZmMWpiMnUxeSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/rzVPwJyFTYlw0L06Jn/giphy.gif">

## Work load

This widget displays the work load, which is the amount of work that the team is managing, providing insights into the team's workload and capacity.

![CloudBees platform flow metrics work load widget](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhqrrsjka4zbfpgs3fbg.png)

The work load widget shows the average number of work items in progress within a specific value stream, including bugs, features, risk, and technical debt; these are indicators of productivity. 

When analyzing the graphic, we notice a few trends for October.

- 
There are about 80 features week over week that are always in progress. Towards the end of the month, this number dropped. 

- 
The number of bugs in progress increases throughout the month

- 
Tech debt and risk remained zero. 

An increasing work load suggests excess work in progress, which can lead to future delays in flow item completion time. Frequent software delivery reduces workload and improves cycle time and velocity.

## Work item distribution

![CloudBees platform flow metrics work items distribution widget](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xz3gy8fbxpemywcneowr.png)

This widget displays the distribution of work items, providing insights into the types and volume of work that the team is handling.

Work items distribution tells you the distribution of completed work items. When analyzing the prior example:

- 
You can see what percentage of time the team has been working weekly on bugs versus features, but not risk and tech debt, due to no data for the defined filter.

- 
You can hover over the graph to get week-by-week views. The trends here show that the team spent much more time on features than bugs at the beginning of October. As the weeks progressed, the team focused more on bugs and fewer features.  

Monitoring work items distribution helps prioritize specific types of work during different product lifecycle stages. For new business features, this helps to balance the mitigation of risk, bugs, and technical debt

## Velocity

This widget displays the work velocity, which is the rate at which the team is completing work items, providing insights into the team's productivity and efficiency.


![CloudBees platform flow metrics velocity widget](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q76mo5rlxlyzb71w4c4c.png)

The Velocity widget displays the number of completed work items by type. While the work item distributions widget tells you the distribution and the percentage of work items by type, velocity tells you the number of items completed on time. 

In this example,  you can see that the team completed 241 work items. Most of the feature work was completed in early-mid month. Towards the end of the month, we worked less on features and will spend more time on bugs, which is the red line here.

An increase in velocity over time signals that productivity is improving. Tracking velocity helps forecast software delivery rates and uncover any problems at an early stage.

## Cycle time 

This widget displays the cycle time, which is the time taken to complete a work item from start to finish, providing insights into the team's efficiency in completing work items.

![CloudBees platform flow metrics cycle time widget](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khkeyti0e4wtuv484l6c.png)

Cycle time conveys how long the team takes to achieve a specific item type. You would assume that features are larger to fix than bugs. But that is only sometimes the case.  This example displays the average time to create and close an issue in Jira.

As you increase the speed of your software delivery, you reduce the cycle time. With detailed data on flow item completion times, you can confidently predict future cycle times and better understand the efficiency of your value stream. 

## Work efficiency

_This widget displays the trend of flow efficiency over time, providing insights into how the team's efficiency and productivity are evolving._

![CloudBees platform flow metrics work efficiency widget](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kqpmmep10ev82un5zf2k.png)

Work efficiency tells you how much time the team spent actively working on it and how much time these bugs and features typically were in the waiting period. The work efficiency and cycle time widgets can be used together.

- 
Average active work: provides a breakdown by issue type of active work.  In this example, bugs were 95%, and features were 65%.  

- 
Work wait time: The chart explains what makes up the waiting time. In this example, 22% is due to code review, while 15% was in a Blocked state. 

## Next steps

You should better understand flow metrics, how to set them up, and how to interpret the results. Now, it’s time to get started. [Try the CloudBees platform for free](http://cloudbees.io/?_gl=1*1qnheoy*_ga*MTQwMDc3MjgxNS4xNjk4NzU2NTk2*_ga_37TX6SE1FC*MTcwODQ1MjQ3NS44OC4xLjE3MDg0NTQ3MTIuMC4wLjA.) to put these steps into practice. For complete documentation on flow metrics, click [here](https://docs.cloudbees.com/docs/cloudbees-saas-platform/latest/analytics/flow-metrics?_gl=1*1qnheoy*_ga*MTQwMDc3MjgxNS4xNjk4NzU2NTk2*_ga_37TX6SE1FC*MTcwODQ1MjQ3NS44OC4xLjE3MDg0NTQ3MTIuMC4wLjA.).

To learn more about additional CloudBees analytics reports, visit the below documentation.

- 
[Software delivery activity
](https://docs.cloudbees.com/docs/cloudbees-saas-platform/latest/analytics/software-delivery-activity?_gl=1*1qnheoy*_ga*MTQwMDc3MjgxNS4xNjk4NzU2NTk2*_ga_37TX6SE1FC*MTcwODQ1MjQ3NS44OC4xLjE3MDg0NTQ3MTIuMC4wLjA.)
- 
[Security insights
](https://docs.cloudbees.com/docs/cloudbees-saas-platform/latest/analytics/security-insights?_gl=1*1qnheoy*_ga*MTQwMDc3MjgxNS4xNjk4NzU2NTk2*_ga_37TX6SE1FC*MTcwODQ1MjQ3NS44OC4xLjE3MDg0NTQ3MTIuMC4wLjA.)
- 
[DORA metrics](https://docs.cloudbees.com/docs/cloudbees-saas-platform/latest/analytics/dora-metrics?_gl=1*1qnheoy*_ga*MTQwMDc3MjgxNS4xNjk4NzU2NTk2*_ga_37TX6SE1FC*MTcwODQ1MjQ3NS44OC4xLjE3MDg0NTQ3MTIuMC4wLjA.)