# Ticket #6186 (new enhancement)

Opened 4 years ago

## Possibility to create Burndown chart with mutiple lines

Reported by: Assigned to: victorhg@gmail.com osimons normal EstimationToolsPlugin normal burndown victorhg@gmail.com, fcorreia@gmail.com, falkb, osimons 0.11

### Description

Hello,

In my company we are trying to use EstimationToolsPlugin - it's working, but we would like to have the possibility to diferenciate tickets by ticket_type attribute.

We have a specific type of ticket that represents unplanned activities, and I would like to represent them on another line, just like the following image:

One way to represent that would be adding an attribute line_attribute to the burndown line setup:

[[BurndownChart(milestone=Sprint 045, startdate=2009-11-01, enddate=2009-11-13,


Hope that u consider this feature request.

Thank you

## Change History

### 03/11/10 04:25:29 changed by scottj@cs.umn.edu

This would be incredibly useful for my project as well.

### 04/08/10 14:37:20 changed by anonymous

• cc changed from victorhg@gmail.com to victorhg@gmail.com, fcorreia@gmail.com.

### 03/08/11 10:31:04 changed by falkb

I'd like to see as second graph line: the growing of the sum of ticket-field 'total_hours' over all tickets during the time period.

This leads us to a more general approach where one can setup any countable ticket-field as second line.

### 04/21/11 12:07:09 changed by falkb

• cc changed from victorhg@gmail.com, fcorreia@gmail.com to victorhg@gmail.com, fcorreia@gmail.com, falk.brettschneider@gmx.de.

Hi, my attached patch should solve this ticket and supports a second chart graph line. Please, apply it to SVN trunk!

Given a custom ticket field 'planned' with possible values 0 and 1, then, for example, you can set the following Burndown graph:

[[BurndownChart(milestone=Foo, startdate=2011-04-21,label=planned activities,condfield=planned,cond=1,graph2_field=remaininghours,graph2_label=unplanned activities,graph2_condfield=planned,graph2_cond=0)]]


If you just want to see the growing of the totalhours in a second graph line, you simply set the following. (This solves my own request in comment 3):

[[BurndownChart(milestone=Foo, startdate=2011-04-21,graph2_field=totalhours)]]


### The options

• graph2_fieldname defines a ticket field name for the second graph line.
• condfield and graph2_condfield define the ticket field name to be tested for a value.
• cond and graph2_cond define an appropriate value to be tested.
• You can set condfield=myfield,cond=myvalue,graph2_condfield=myfield!,graph2_cond=myvalue to divide a set of tickets into two sets. Note the "!" right beside "myfield" which negates the according condition.
• label and graph2_label set user-defined labels for the burndown chart

### 04/21/11 12:08:35 changed by falkb

patch solving this ticket

### (follow-up: ↓ 7 ) 04/21/11 12:10:02 changed by falkb

• cc changed from victorhg@gmail.com, fcorreia@gmail.com, falkb to victorhg@gmail.com, fcorreia@gmail.com, falkb, osimons.

Hi osimons, please review my patch!

### 05/10/11 06:04:26 changed by AdrianFritz

• owner changed from hoessler to osimons.

Hi, osimons, I guess this worth including into trunk. I'm available for further test after into trunk.

[]'s

### (in reply to: ↑ 5 ) 09/02/11 14:38:50 changed by falkb

Hi osimons, please review my patch!

Maybe it's possible to at least commit the 3 helper functions from the patch to trunk. It's the same functionality but more generalized and would not change the current functionality. But it would help to prevent that in the meanwhile the trunk gets incompatible to this patch.

The second part in my patch, the actual extension to multiple lines, uses the 3 functions as prerequisite.

### Add/Change #6186 (Possibility to create Burndown chart with mutiple lines)

Change Properties