wiki:ScrumBurndownPlugin

Version 75 (modified by anonymous, 17 years ago) (diff)

--

Scrum Burndown in Trac

Notice: This plugin is unmaintained and available for adoption.

Description

A plugin to enable burndown chart capabilities, a common part of Scrum and other agile development methodologies.

This plugin is now integrated with the TimingAndEstimationPlugin.

Current Version: 01.04.10 -- attachment:TracBurndown-01.04.10-py2.3.egg
Note that version 01.04.10 and later should work with python 2.4. The egg file just says py2.3 because that's what I had installed on the computer that built it. Note to the note: But you will have to manually fix up the EGG-INFO, otherwise python will ignore that egg!!

Who's Using It

I'm interested to know how many people are using this plugin. If a lot of people are using it or at least evaluating it, I will be able to justify spending more time on it to my boss. If you download it, please increment this counter: 50

Also, feel free to drop me an e-mail if you've got any questions that aren't answered here and aren't really ticketable.

Installation Instructions

Installing this plugin is a four-step process.

  1. Install the TimingAndEstimationPlugin
  2. Install the egg
  3. Create a cron/pycron job to run a daily/hourly/however-often-you-want-to-update-the-burndown-ly python script
  4. Assign permissions

Installing the egg

Install just like you would any other Trac plugin. Drop the egg into your plugins or site-packages folder and then try to access Trac in your browser. You will get an error message saying that the database needs to be upgraded and telling you to use the trac-admin command to do it. (I think it's something like 'trac-admin YourProjectName.db upgrade'). Perform the upgrade.

Pycron/cron job

Download the this file: attachment:burndown_job.py and place it into a directory where you can run it with python. For example,

C:\Python23\Scripts\

Set up a job to run the burndown_job.py script once a day. I personally am using Windows, so I used pycron. Here is an example pycron tab file to run the job at noon on weekdays: attachment:crontab.txt

This job totals up all the remaining time for given milestones and components and saves the information into the trac burndown table so that the plugin can use it to draw charts. Per suggestions from the user community, this job can now be run multiple times per day. If the given day already has a burndown entry, an UPDATE will be performed instead of an INSERT.

Assign Permissions

Assign permissions to users for 'BURNDOWN_VIEW' and 'BURNDOWN_ADMIN' The BURNDOWN_ADMIN permission gives users access to the 'Start Milestone' and 'Milestone Complete' buttons.

Using the plugin

No image "burndown.jpg" attached to ScrumBurndownPlugin

At the beginning of a sprint, after the tickets have been inputted and estimated in Trac an admin user should click the 'Start Milestone' plugin. This inputs a datetime integer into the milestone table to indicate when the milestone was started. The daily burndown_job.py script will only record hours_remaining entries for milestones that have started, but have not been completed. It should be fairly obvious, then, that an admin user should click the 'Milestone Complete' button at the end of the milestone to prevent the burndown_job from continuing to collect data.

You can view different burndown charts, selectable by milestone and component by choosing from the dropdowns and clicking the 'Show Burndown Chart' button.

In order for this to work, it is imperative that developers keep the 'Estimated Hours' and 'Total Hours' fields accurate and up-to-date on the tickets they are working. The 'Total Hours' field itself should never be manually edited, but rather, it can be changed by inputting positive and negative values into the 'Hours to Add' field.

Bugs/Feature Requests

Existing bugs and feature requests for ScrumBurndownPlugin are here.

If you have any issues, create a new ticket.

Download

Download the distributable Python egg here.

Download the pycron/cron job here.

Download an example pycron crontab.txt file here.

Related Plugins

Source

You can check out ScrumBurndownPlugin from here using Subversion, or browse the source with Trac.

Recent Changes

16778 by rjollos on 2017-08-26 04:31:01
TracBurndown 2.0.0dev: Fix incorrect types for milestone timestamp columns

Fixes #13257.

13150 by rjollos on 2013-05-16 23:38:18
Fixes #11089:

  • Fixed incorrect package_data specification (regression from [13076]).
  • Renamed config.html to admin_burndown.html in order to better ensure that we'll meet the requirements that template names are unique.
  • Changed url in setup.py to point to the trac-hacks site.

Thanks to Jun Omae (jun66j5) for these fixes.

13148 by rjollos on 2013-05-15 23:40:27

Refs #7066, #11069:

  • Removed Trac pre-0.11 compatibility code.
  • Changed module names to follow Trac naming conventions.
  • Updated source file headers and added where missing.

Note: If you enabled the plugin through the web admin, or by providing the full module name, you'll need to re-enable the plugin or edit the [components] section:

burndown.burndown_admin_milestones.burndownmilestonesadminpanel = enabled
burndown.burndown.burndowncomponent = enabled

->

burndown.admin.burndownadminpanel = enabled
burndown.burndown.burndownmodule = enabled
(more)

Author/Contributors

Author: sambloomquist
Contributors:

Questions

  1. The link to add 'integer' doesn't appear to add integer custom type, am I missing something?? (2006/08/24)
    Answer: Removed the 'integer' type requirement because the patch for it is gone. Using text seems to work fine and is simpler. I may add some of the validation brought by the integer type back into the plugin at a future date.

Attachments (1)

Download all attachments as: .zip