Phabricator/Project management

''Good practices for Phabricator project management. Coming soon. See T558''

You have a new project. Now what? There are many possible ways to run project successfully. This document focuses on the common expectations for Wikimedia projects. Following this guideline should help you being productive and interacting better with other contributors and projects in the Wikimedia community.

Scope of tasks
The basics: Phabricator/Help.

Ideally, tasks are defined with a scope that can be resolved by one person with a decent amount of effort. Huge tasks that take several people and several days will be more manageable when you identify the subtasks required to complete them. Trivial subtasks that one person can complete in a moment but should be documented can be just added as a checklist in a description of the main task.

Assigning tasks
Ideally, only active tasks are assigned to someone. There is no use in having a task assigned to a user that hasn't worked on it for years.

You can assign a task to yourself if you have some plan to fix it in the short term (say a few weeks, a couple of months, the upcoming sprint...). Assigning to yourself tasks that you won't touch for longer periods of time has a risk of ending up in cookielicking.

You can assign tasks to others when you are both in agreement, in team meetings or similar chats. Otherwise, it is better to leave the task unassigned.

Setting priorities
One task can have only one priority at a time. This limitation leads to the art and science of prioritizing tasks keeping multiple perspectives in sync: project level, sprint level, team level, individual level...

Priority should normally be set by product managers, maintainers or developers who plan to work on the bug, or by the bugwrangler or experienced community members, not by the reporter filing the bug report or by outside observers.

When an assignee is already set for a task, its priority should not be changed without agreement of the assignee or development team first.

Priority levels
Wikimedia Phabricator offers these priority levels: Usually the tricky part is to handle High - Normal - Low in a consistent way, especially for tasks that are still unassigned. One way to approach this:
 * Needs Triage - Default option, signaling that the priority is to assign a priority.
 * Unbreak Now! - Something is broken and needs to be fixed immediately, setting anything else aside.
 * High - Someone is working or planning to work on this task soon.
 * Normal - Less priority than High, but you are still planning to work on it.
 * Low - Less priority than Normal, but you are still planning to work on it.
 * Needs Volunteer - You are explicitly saying that you don't plan to work on this task, even if you would be happy if someone does.
 * High priority for tasks committed for the current sprint, or that need to find an owner who can start working on them soon.
 * Normal priority for tasks that are not critical for the current sprint or candidates for a next sprint.
 * Low priority for tasks that we can live without, usually sitting in the backlog, sometimes added to a sprint.

Limiting high priority tasks assigned to a single person
The first perspective that must be sensible is the personal perspective. If the priorities at a personal level are not accurate or realistic, the other views aggregating personal priorities will be directly affected.

The "Assigned to Me" task view needs to be always realistic. For instance, having 17 high priority tasks assigned to one person is not realistic. Defaulting to three high priority tasks makes a lot more sense, committing to five or so in exceptional times. More than this it is probably not realistic, or not sustainable.

Associating tasks to projects
A task in Phabricator can be associated with multiple projects. Any Phabricator user will be able to create a task in a project corresponding to the old bugzilla "Component", for example MediaWiki_extensions-Flow. The one task can be associated with additional projects: keywords such as easy or design, and project management boards such as Flow-design-backlog or sprint-Flow-current.

Workboards
Workboards are useful to follow the development status of tasks within a project.

A project can have a workboard, such as tag/mediawiki-core-team/board/. The default workboard has a single column, "Backlog".

You can create arbitrary columns in this such as In development, Blocked with questions, Code review, Product review, and Done. Then much like other project management tools you can drag and drop tasks to move and reorder them.

If you name a project sprint-some-name, it will automatically (as the Burndown extension is available) gain a story point display so you can estimate and track how much effort each task takes.

A project in Phabricator can only have one workboard, e.g. the Phabricator project itself has  one workboard. In comparison Mingle directly supports identifying tasks in the current sprint, and in Trello it's common to have separate boards for the current sprint and backlog, or even a separate board for each sprint.

One approach in Phabricator is to have a MyProject-currentSprint project as well as MyProj, and add the former project to the tasks you plan to work on in the current sprint.

The default workboard filter is to only show open tasks, but you can change Filter to "All Tasks" to see Done tasks.

Setting up a workboard
Different types of columns corresponding to different types of project, types of teams, purposes of the workboard...

Good examples that you can use to import your own workboard (you can also create your own columns, but check out these alternatives before):
 * Backlog, Need Discussion, Ready To Go, Doing (links to examples)
 * Please add more

Maintaining workboards
In principle, people assigned to tasks of a project are the ones managing the board of such project, and especially the position of the tasks they are working on.

Formal teams might have formal meetings to update the workboard, and they might also have a product/project owner in charge of keeping the workboard up to date.

Sprints
Some projects with stable teams organize their work around sprints. Depending on the teams, sprint might have a bi-weekly or a monthly duration. In Phabricator, each sprint requires the creation of a new project.

Frequently teams have a long backlog of tasks, from which they pick the tasks that they aim to complete in the next sprint, not caring much about precise long term delivery plans.