Class: ThroughputByCompletedResolutionChart
- Inherits:
-
ThroughputChart
- Object
- ChartBase
- ThroughputChart
- ThroughputByCompletedResolutionChart
- Defined in:
- lib/jirametrics/throughput_by_completed_resolution_chart.rb
Constant Summary
Constants inherited from ChartBase
Instance Attribute Summary
Attributes inherited from ThroughputChart
Attributes inherited from ChartBase
#aggregated_project, #all_boards, #atlassian_document_format, #board_id, #canvas_height, #canvas_width, #data_quality, #date_range, #file_system, #fix_versions, #holiday_dates, #issues, #settings, #time_range, #timezone_offset, #x_axis_title, #y_axis_title
Instance Method Summary collapse
- #default_grouping_rules(issue, rules) ⇒ Object
-
#initialize(block) ⇒ ThroughputByCompletedResolutionChart
constructor
A new instance of ThroughputByCompletedResolutionChart.
Methods inherited from ThroughputChart
#calculate_custom_periods, #calculate_time_periods, #run, #throughput_dataset, #throughput_forecaster_url, #weekly_throughput_dataset
Methods included from GroupableIssueChart
#group_issues, #grouping_rules, #init_configuration_block
Methods inherited from ChartBase
#aggregated_project?, #before_run, #call_before_run, #canvas, #canvas_responsive?, #chart_format, #collapsible_issues_panel, #color_block, #color_for, #completed_issues_in_range, #current_board, #cycletime, #cycletime_for_issue, #daily_chart_dataset, #date_annotation, #describe_non_working_days, #description_text, #format_integer, #format_status, #header_text, #holidays, #html_directory, #icon_span, #label_days, #label_hours, #label_issues, #label_minutes, #link_to_issue, #next_id, #normalize_annotation_datetime, #not_visible_text, #random_color, #render, #render_axis_title, #render_top_text, #seam_end, #seam_start, #stagger_label_positions, #status_category_color, #to_human_readable, #working_days_annotation, #wrap_and_render
Constructor Details
#initialize(block) ⇒ ThroughputByCompletedResolutionChart
Returns a new instance of ThroughputByCompletedResolutionChart.
6 7 8 9 10 |
# File 'lib/jirametrics/throughput_by_completed_resolution_chart.rb', line 6 def initialize block super header_text 'Throughput, grouped by completion status and resolution' description_text nil end |
Instance Method Details
#default_grouping_rules(issue, rules) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/jirametrics/throughput_by_completed_resolution_chart.rb', line 12 def default_grouping_rules issue, rules status, resolution = issue.status_resolution_at_done if resolution rules.label = "#{status.name}:#{resolution}" rules.label_hint = "Status: #{status.name.inspect}:#{status.id}, resolution: #{resolution.inspect}" else rules.label = status.name rules.label_hint = "Status: #{status.name.inspect}:#{status.id}" end end |