Design a Project Management Tool
📋 What is a project management tool? It is the board a team uses to track work. A project holds tasks; each task has a title, a priority, a person working on it and a status like "To do" or "In review". People move tasks across the board, leave comments, and look at "what is assigned to me?". Every change is recorded, so you can see who did what.
You may hear this prompt as "design Jira", "design Trello" or "design a task manager". They are the same design: projects, members, tasks, a status with rules about how it can change, and a history. They differ in how strict the status rules are. Jira has a workflow that forbids some moves ("you cannot close a task that was never reviewed"). Trello has free columns: any card can go to any list. A personal to-do app is one project with one member and two statuses. We build the Jira version, because it has the most rules, and show in Extensibility that Trello is the same classes with a looser workflow.
Requirements
"Design a project management tool like Jira. Teams have projects with tasks. Tasks can be assigned, moved between statuses and commented on."
The prompt names the nouns but none of the rules. The rules are where the design lives, so spend your first minutes on them.
Clarifying Questions
You: What statuses does a task have, and can it jump between any two?
Interviewer: To do, In progress, In review and Done. No free jumps: work starts, goes to review, and review either sends it back or closes it. You can go back from In progress to To do, and a Done task can be reopened.
You: Are there rules beyond the arrows? For example, can unassigned work be started?
Interviewer: Good catch. A task cannot go to In progress without an assignee.
You: Who can do things to a task?
Interviewer: Members of its project. Anyone else is rejected. Assume no roles beyond that.
You: How are tasks identified?
Interviewer: Like Jira: the project key and a number, WEB-1, WEB-2. Numbers count per project.
You: What lists do people need?
Interviewer: Two: a board column (the tasks of one project in one status) and "my open tasks" across every project. Both sorted by priority, high first, then oldest first.
You: Do comments have replies or edits? Do we need a history of changes?
Interviewer: Flat comments, no edits. And yes, every task has an activity log: who created it, assigned it, moved it and commented, in order.
You: Can each project define its own statuses?
Interviewer: One workflow for everyone for now. Teams will ask for their own soon.
The last answer is a hint. "One workflow now, custom ones soon" tells you the workflow should be data you can swap, not code spread over if statements.
💡 Interview tip: For any problem with a status field, ask for the allowed transitions and draw them as a state diagram before you write a class. The arrows become your rules, and the missing arrows become your test cases.
Final Requirements
- A user can create a project with a unique key and becomes its first member. Members can be added.
- A member can create a task in a project with a title and a priority (high, medium, low). It starts in To do with no assignee and gets the id
<key>-<n>, numbered per project. - A member can assign a task to a member of the same project. Done tasks cannot be reassigned.
- A member can move a task along the workflow: To do → In progress → In review → Done, with In progress → To do, In review → In progress and Done → To do as the way back. A task needs an assignee to enter In progress.
- A member can comment on a task.
- Every successful change is recorded in the task's activity log, in order.
- Anyone can list a project's tasks in one status, and a user's open (not Done) tasks across all projects, both sorted by priority and then by creation order.
- The workflow will become configurable per project, so changing it must not touch the rest of the system.
Out of scope
- Roles and permissions beyond "is a member".
- Sprints, due dates, estimates, labels and attachments.
- Editing or deleting tasks and comments, and removing members.
- Search, and notifications (we come back to notifications in Extensibility).