Returns a new BreakdownSet with all of the original Breakdowns renamed with the supplied alternative. 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 openedMeta = opened.breakdown().filter('Priority').rename('Opened Priority');
var closedMeta = closed.breakdown().filter('Priority').rename(Closed Priority ');  

var breakdown = openedMeta.merge(closedMeta);

return {
   value : burndown,
   breakdown : breakdown

};
Did this answer your question?