Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bilanc.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Issue Metrics

Issue metrics provide insights into ticket management, story points, and team productivity in handling issues.

Available Metrics

issues-count
string
Number of issues
completed-issues-count
string
Number of completed issues
started-issues-count
string
Number of started issues
backlog-issues-count
string
Number of backlog issues
story-points
string
Story points
completed-story-points
string
Completed story points
started-story-points
string
Started story points
issue-cycle-time
string
Issue cycle time
issue-comment-interactions-count
string
Issue comment interaction count
issue-comments-count
string
Number of issue comments

Completed Issues Count Metric

This endpoint provides the count of completed issues based on specified filters.
curl -X POST 'https://api.bilanc.co/metrics/completed-issues-count' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "filters": {
      "team_id": "team123",
      "start_date": "2023-01-01",
      "end_date": "2023-12-31"
    },
    "group_by": ["team_name", "assignee_name"],
    "date_level": "month",
    "date_field": "completed_at",
    "time_series_data": true
  }'

Story Points Metric

This endpoint provides information about story points.
curl -X POST 'https://api.bilanc.co/metrics/story-points' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "filters": {
      "team_id": "team123",
      "start_date": "2023-01-01",
      "end_date": "2023-12-31"
    },
    "group_by": ["team_name"],
    "date_level": "quarter",
    "aggregation": "sum",
    "date_field": "created_at"
  }'

Issue Cycle Time Metric

This endpoint provides data on issue cycle time (from creation to completion).
curl -X POST 'https://api.bilanc.co/metrics/issue-cycle-time' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "filters": {
      "project_id": "project456",
      "start_date": "2023-01-01",
      "end_date": "2023-12-31"
    },
    "group_by": ["issue_type"],
    "date_level": "month",
    "aggregation": "avg",
    "date_field": "completed_at",
    "time_series_data": true
  }'

Parameter Notes

date_field
string
For issue metrics, the following date fields are available:
  • created_at: When the issue was created
  • started_at: When work on the issue started
  • completed_at: When the issue was completed
  • closed_at: When the issue was closed
aggregation
string
Different aggregation methods are appropriate for different issue metrics:
  • For issue counts: sum or count
  • For story points: sum or avg
  • For cycle time: avg, median, or p90
filters
object
Issue-specific filters:
  • issue_type: Filter by issue type (e.g., bug, feature, task)
  • priority: Filter by priority level
  • status: Filter by current status
  • assignee_id: Filter by assignee
  • project_id: Filter by project

Common Use Cases

  • Sprint Velocity: Track completed story points per sprint
  • Ticket Resolution: Monitor the number of completed issues over time
  • Cycle Time Analysis: Identify bottlenecks in issue resolution
  • Backlog Management: Track the growth or reduction of backlog issues
  • Comment Analysis: Analyze communication patterns through issue comments
  • Team Performance: Compare team productivity based on issues completed and story points