Metric

What is lead time, and how do you measure it in Metabase?

Lead time is the elapsed time from when a work item is created to when it's done (completed_at − created_at). It captures the whole wait a request experiences — including time sitting in the backlog — which makes it the customer's-eye view of delivery speed. Measure it in Metabase from issue-tracker data synced into a database (Linear or Jira).

TL;DR — Lead time = created → done. It includes backlog wait.Cycle time = started → done (active work only). Report both as medians (p50) and p90, never averages.

Lead time vs. cycle time

Starts atEnds atAnswers
Lead timecreateddone"How long from request to delivery?"
Cycle timestarteddone"How long once we actually work on it?"

A big gap between the two means work waits a long time in the backlog before anyone starts it.

What data does lead time need?

  • created_at (always available) and completed_at / resolved (set when done).
  • A reliable "done" definition: state_type = 'completed' (Linear) or status_category = 'Done' (Jira).
  • No status history required for basic lead time — only created anddone timestamps.

SQL patterns

Median lead time by weekPostgreSQL
SELECT
  date_trunc('week', completed_at) AS week,
  percentile_cont(0.5) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (completed_at - created_at)) / 86400.0
  ) AS median_lead_days,
  percentile_cont(0.9) WITHIN GROUP (
    ORDER BY EXTRACT(EPOCH FROM (completed_at - created_at)) / 86400.0
  ) AS p90_lead_days
FROM issues
WHERE state_type = 'completed'
GROUP BY 1 ORDER BY 1;

Pitfalls

Using averages.→ Lead time is right-skewed; use median + p90.
Counting canceled work.→ Exclude canceled items.
Confusing it with cycle time.→ Label charts explicitly; they answer different questions.
Backlog-heavy distortion.→ Old backlog items completed today produce huge lead times — segment by created date.

Where this metric applies

Dashboards

Metrics

FAQ

Is lead time the same as cycle time?
No. Lead time includes backlog wait (created → done); cycle time is active work (started → done).
Do I need status history for lead time?
No — just created and done timestamps. Cycle time and time-in-status need history.