Class: DailyWipByParentChart
- Inherits:
-
DailyWipChart
- Object
- ChartBase
- DailyWipChart
- DailyWipByParentChart
- Defined in:
- lib/jirametrics/daily_wip_by_parent_chart.rb
Instance Attribute Summary
Attributes inherited from DailyWipChart
Attributes inherited from ChartBase
#aggregated_project, #all_boards, #board_id, #canvas_height, #canvas_width, #data_quality, #date_range, #file_system, #holiday_dates, #issues, #settings, #time_range, #timezone_offset
Instance Method Summary collapse
- #default_description_text ⇒ Object
- #default_grouping_rules(issue:, rules:) ⇒ Object
- #default_header_text ⇒ Object
Methods inherited from DailyWipChart
#add_trend_line, #configure_rule, #group_issues_by_active_dates, #grouping_rules, #initialize, #make_data_set, #run, #select_possible_rules, #trend_line_data_set
Methods inherited from ChartBase
#aggregated_project?, #canvas, #canvas_responsive?, #chart_format, #collapsible_issues_panel, #color_block, #color_for, #completed_issues_in_range, #current_board, #daily_chart_dataset, #describe_non_working_days, #description_text, #format_integer, #format_status, #header_text, #holidays, #html_directory, #icon_span, #initialize, #label_days, #label_issues, #link_to_issue, #next_id, #random_color, #render, #render_top_text, #status_category_color, #wrap_and_render
Constructor Details
This class inherits a constructor from DailyWipChart
Instance Method Details
#default_description_text ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 10 def default_description_text <<-HTML <div class="p"> How much work is in progress, grouped by the parent of the issue. This will give us an indication of how focused we are on higher level objectives. If there are many parent tickets in progress at the same time, either this team has their focus scattered or we aren't doing a good job of <a href="https://improvingflow.com/2024/02/21/slicing-epics.html">splitting those parent tickets</a>. Neither of those is desirable. </div> <div class="p"> The #{color_block '--body-background'} shading at the top shows items that don't have a parent at all. </div> #{describe_non_working_days} HTML end |
#default_grouping_rules(issue:, rules:) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 28 def default_grouping_rules issue:, rules: parent = issue.parent&.key if parent rules.label = parent else rules.label = 'No parent' rules.group_priority = 1000 rules.color = '--body-background' end end |
#default_header_text ⇒ Object
6 7 8 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 6 def default_header_text 'Daily WIP, grouped by the parent ticket (Epic, Feature, etc)' end |