Fork me on GitHub

Magpie: A Github Project Management Extension for Google Apps

Magpie allows you to track Github projects using Google Spreadsheets -- all you have to do is link a spreadsheet to a specific milestone on your Github project and it will be automatically updated every hour.

Features

Magpie allows you to track your github projects using a Google Spreadsheet -- all you have to do is link a spreadsheet to a specific milestone on your Github project and it will be updated hourly.

  1. A dashboard showing milestone progress by assignee and labels
  2. Milestone progress derived from checklist items in body
  3. An activity stream that shows newly added/completed tasks (by detecting checklist item changes)
  4. Progress graphs for milestone, team members and labels (based on checklist items completed)
  5. Magpie comes with a development methodology and a philosophy to help you get the most out of it (though you're free to use your own)
  6. A simple, open source API, if you want to extend Magpie's capabilities
  7. Here is a demo (note that due to current security limitations, you need to create your own if you want to see the graphs feature)
  8. And the live source

Dashboard

Progress charts

Activity stream

Getting Started!

  1. Create a new Google Spreadsheet
  2. Go to Tools > Script Editor...
  3. Under Create script for, select Spreadsheet
  4. Go to Resources > Libraries... in script editor
  5. Enter the following project key to search for Magpie: MdUOEJMGCt-W-kWU7C0gsZNZrzsJqypJa
  6. In the results, select the latest version of Magpie
  7. Under identifier, enter include (you can enter any other identifier, but this is what I have used with the sample code below. So if you want to copy and paste the initialization code below, use include).
  8. Replace the auto generated code from Google with the following code:

     

     

  9. Remember to replace the sample token above with your actual Github token. Magpie will not store this anywhere.
  10. Select Run > onOpen from the script editor menu.
  11. Click Accept to allow Magpie to run on your spreadsheet. This is a one-time step.
  12. You should now see 'Magpie' on the menubar within a few seconds.
  13. Click Magpie > Update
  14. A new sheet called conf will appear and you'll be prompted to add data.
  15. On some browsers, Google Sheets may freeze while Magpie is initializing sheets for the first time. Close and reopen the sheet if this happens.
  16. Fill in the Github repo owner (e.g. hliyan), repo (e.g. enterprise), milestone (e.g. 1) and your timezone data (e.g. 0, GMT).
  17. Enter milestone start and end dates in 'yyyy-MM-dd' format (if Google Spreadsheet messes with the format, set the cell format to 'Plain Text')
  18. Click Magpie > Update again and wait for all the new sheets to be added
  19. Consider hiding gridlines (View > Gridlines) - dashboard looks nicer without them

Philosophy

Magpie has been tested in small to medium sized real world projects. Those projects relied on a certain methodology. Here is that methodology and the philosophy behind it:

I've seen developers forced to enter the same information multiple times -- once when they provide task breakdowns and effort estimates, once when they're updating the issue/ticket tracking system and once again when they're filling out their timesheets. And sometimes, when they have a lot of work, they also have their own to-do lists. I searched years for a system -- preferably free and open source -- that could collapse all this into one system. Obviously I didn't find it. So I built my own.

This is the process that I use with Magpie. It is what I recommend, but if you find better (and simpler) alternatives, do let me know. Remember: simplicity is the most important thing.

Milestones

  • Milestones are two weeks long, unless there is a specific reason to make it longer or shorter.
  • Milestones are internally named according to alphabetical themes (e.g. Aardvark, Barracuda, Coyote, Dragonfly, or Almond, Butterscotch, Cinnamon, etc.). This gives us 2 x 26 = 52 weeks or exactly a year's worth of milestones.

Priorities

  • There are four issue priorities, assigned to issues as Github labels:
    • 1 - "Show stopper" - critical bugs, things that are holding back the entire team etc.
    • 2 - "Must have" - required deliverable for this milestone
    • 3 - "Good to have" - make best effort to deliver, but can be deferred to next milestone if necessary
    • 4 - "When free" - Attempt only when free or when all 1-3 priority issues for the current release have been completed
  • Criticality and priority are one and the same. I have previously used systems where these attributes were represented separately - e.g. a UI fix the client wants right now is high priority but low criticality and a crash that is being deferred for some reason is low priority but high criticality. This only added to the paperwork and did not really contribute anything. The reasoning in Magpie: measure impact of an issue in terms of impact to the project and the client, rather than the system. If the system is in beta, a crash is lower priority than when it's in full production. A missing form label in production is higher priority than a crash in beta.

Timeboxing

  • We timebox - deadlines cannot be extended; only deliverables can be reduced. Every milestone must contain a percentage of "Good to have" and "When free" issues that can act as a buffer if there is a risk of schedule overrun. When you start running out of time, you start by moving "When free" issues to the next milestone. When those are gone, you start moving "Good to have" issues. If you still suffer a schedule overrun, something is wrong with your planning.
  • Checklists in Github issues are central to the process. Once an issue has been attached a priority, a milestone and an assignee, a checklist of tasks must be added to the issue description. This represent both a task breakdown and a rough design which the architect / program manager can review.
  • The general guideline for tasks is that no task represented by a checklist can be longer than two hours, although more fine grained breakdowns are perfectly fine. If an issue has four checklist items attached, it's a full day task (assuming an 8 hour work day, which is another thing recommended in the philosophy behind Magpie).
  • By trial and error I discovered that for teams like mine, 2 hours is the optimal minor time unit and 2 weeks is the optimal major time unit. 2-hour tasks mean that a person only has to enter and update only 4 tasks a day on average -- a very minor load.

Checklist items

  • Checklist items are not set in stone. If you run into a debugging issue that takes 2 hours, you may append a checklist item to the issue to reflect that. If you have to change the design, you can add new checklist items to reflect that as well. The only requirement here is that your architect / program manager should have, at any given moment, a rough idea of your workload and what you're currently working on.
  • Checklist items are to be updated at commit time, not pull request time, so that the architect / program manager sees gradual progress even for potentially large pull requests.

Metrics are evil

  • Measuring people based on metrics (beyond checklist items) is heavily discouraged. Management based on summaries and reports is considered lazy and discouraged. Summarization is lossy compression and metrics are the worst form of summarization. This philosophy rejects the idea that "a good manager can manage anything" -- you cannot manage what you don't understand. A team should be small enough for the person in charge to review all tasks in detail. If not, the team needs to be split to smaller units and more people with review and oversight skills need to be developed within the team. For the type of work I manage, I find that I start losing details if the team is larger than 12.

For developers

If you want to learn some interesting bits about the Magpie code, read on.

Magpie is built on three layers:

  • A jQuery-like Google App Script library that allows easy access to Google spreadsheets and their cells
  • A convenient Javascript wrapper on top of the Github API that can be used from within Google App Script
  • The actual Magpie application, which fetches Github data every hour and renders a dashboard and other reports for your Github project

GASP!

The lowest layer is an extension that is to Google App Script what jQuery is to Javascript. Tongue in cheek, it's called GASP - Google App Script Plugin.

GAGA

The second layer, also named tongue in cheek, is called GAGA - Github API for Google Apps. The following example will illustrate what it does:

GAGA makes a few assumptions about how you manage projects, explain in the 'philosophy' section. If you don't like them, you can always fork this and mould it to fit your needs.

Limitations, future plans

  • For now, need one spreadsheet per milestone. Partly deliberate because large projects may result in huge ScriptDb datasets.
  • In the future, it may be possible to implement the UI as a Google Web App.
  • More graphs and reports.
  • Github notification hooks were not used because they don't notify on the most important event for Magpie -- checklist item changes.