# Sprint Ops — dependency-free sprint analytics

A working proof for Agile operations: turn a Jira-like CSV or JSON export into a Markdown or JSON report with:

- velocity by sprint in completed story points;
- average cycle time (`started_at → completed_at`);
- average lead time (`created_at → completed_at`);
- blocked open issues;
- open workload by assignee;
- assignment recommendations for unassigned, unblocked issues, balancing open points and priority.

No third-party packages, credentials, cloud account or tracking. Python 3.11+ standard library only. Recommendations are decision support, not a fabricated accuracy or uptime guarantee.

## Run

```bash
python3 sprint_ops.py sample.csv
python3 sprint_ops.py sample.csv --format json
python3 sprint_ops.py sample.csv --output sample-report.md
python3 -m unittest -v
```

## Input

CSV headers or JSON keys:

```text
id, sprint, points, status, created_at, started_at, completed_at,
assignee, priority, blocked
```

Dates use ISO 8601. `key`/`issue`, `story_points`, `created`, `started`, and `completed` are accepted aliases. JSON can be an array or `{ "issues": [...] }`. Done statuses: `done`, `closed`, `resolved`, `complete`, `completed`.

## Integration path

1. Map one Jira export to the input schema and validate the report with the team.
2. Replace the file input with read-only Jira/GitHub API pulls using project-scoped credentials.
3. Send the Markdown report to Slack or email on a schedule.
4. Tune assignment rules with the team's real capacity and definitions of done/cycle time.

## Evidence

- `sample.csv`: 12 issues over two sprints, including blocked, unassigned and completed work.
- `test_sprint_ops.py`: seven tests for metrics, blockers, balancing, input aliases and report generation.
- `sample-report.md`: report generated from the included sample, not a hand-written mock.
