Design a Jira-like Issue Tracker
HardReal World SystemsWorkflow ManagementSprintReportingObserver PatternCRUD
Problem Statement
Design a project issue tracking system like Jira where teams manage bugs, features, and user stories across sprints with full reporting capabilities.
Requirements
Functional Requirements
- Issue types: BUG, FEATURE, STORY, SUBTASK — each with title, description, priority, assignee, reporter, labels
- Issue workflow: OPEN → IN_PROGRESS → IN_REVIEW → RESOLVED → CLOSED (custom transitions allowed)
- Epic management: group related stories and features
- Sprint planning: create sprints, move issues to sprint backlog
- Sprint reports: completed issues, delayed issues, velocity (story points)
- Assignments: assign/reassign issues to team members
- Comments and activity log on each issue
- Filtering: by type, priority, assignee, label, sprint, date range
- Notifications on assignment, status change, comment
- Time tracking: log work hours against an issue
Non-Functional Requirements
- Thread-safe concurrent issue updates
- Singleton IssueTrackerService
Key Entities
- Issue: id, type, title, priority, status, assignee, reporter, sprint, epic, storyPoints, comments, workLog, labels
- Sprint: id, name, startDate, endDate, status, issues
- Epic: id, name, description, issues
- Comment: author, content, timestamp
- WorkLog: author, hoursLogged, description, date
- IssueTrackerService: Singleton
Constraints
- Subtasks cannot have their own subtasks
- Closing a sprint moves all non-RESOLVED issues back to backlog
- Story points can only be set on STORYs and FEATUREs
- Only OPEN/IN_PROGRESS issues can be added to an active sprint
!Constraints
- Subtasks are single-level only
- Sprint close moves unresolved issues to project backlog
- Only STORY and FEATURE issue types carry story points
- Active sprint only accepts OPEN or IN_PROGRESS issues
- Thread-safe status transitions
Output
Run or submit your code to see output here.