Returns a new BreakdownSet with all of the original Breakdowns renamed with the supplied prefix. This is useful when merging two or more BreakdownSets that have the same named Breakdowns but they should be treated as distinct and their values should not be summed.

var opened = metrics.get('Issues Opened');
var closed = metrics.get('Issues Closed');

var burndown = opened.latest(0) - closed.latest(0);

var openPriority = opened.breakdown().prefixWith('Opened ');
var closedPriority = closed.breakdown().prefixWith('Closed ');

var breakdown = openPriority.merge(closedPriority);

return {
   value : burndown,
   breakdown : breakdown
Did this answer your question?