Skip to main content

Development Metrics

Development metrics focus on the time spent in different phases of the development process, helping teams understand and optimize their development workflow.

Available Metrics

string
Time spent coding (from first commit to PR open)
string
Time between PR open and first review
string
Time from first commit to PR open
string
Time between PR open and first review
string
Time between first review and merge
string
Total time spent in the review phase
string
Time spent on rework after a review
string
Full cycle time from first commit to merge
string
Time from PR open to the first comment
string
Percentage of PRs that required rework after review

Cycle Time Metric

This example demonstrates how to retrieve the cycle time metric, which measures the full development cycle from initial commit to merge.

Review Time Metric

This example demonstrates how to retrieve the review time metric, which measures the total time spent in the review phase.

Parameter Notes

string
For development metrics, the following date fields are available:
  • created_at: When the PR was created
  • merged_at: When the PR was merged (recommended for cycle time)
  • first_review_at: When the PR received its first review
string
Required for all development time metrics. Accepted values: SUM, MAX, MIN, AVG.
object
Applicable filters for development metrics:
  • repositories: Array of {"repository_name": "..."} objects
  • member: Filter by author merged user IDs
  • team: Filter by team IDs
  • squad_ids: Filter by squad IDs
  • squad_levels: Filter by squad hierarchy level
  • manager_ids: Filter by manager user IDs
  • departments: Filter by department names
  • sources: VCS source — github, gitlab, bitbucket
  • pr_states: PR states — open, closed, merged
  • pr_categories: PR category classifications
  • pr_ids: Filter by specific PR IDs
  • pull_requests_search_term: Full-text search across PR fields
  • locations: Filter by employee location
  • levels: Filter by employee level

Common Use Cases

  • Track Cycle Time Trends: Monitor how development cycle time changes over time
  • Identify Bottlenecks: Find which part of the development process takes the longest
  • Compare Team Performance: Compare cycle times across different teams or repositories
  • Set Performance Goals: Establish baseline metrics and set improvement goals