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
-
#initialize(block) ⇒ DailyWipByParentChart
constructor
A new instance of DailyWipByParentChart.
Methods inherited from DailyWipChart
#add_trend_line, #configure_rule, #group_issues_by_active_dates, #grouping_rules, #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, #icon_span, #label_days, #label_issues, #link_to_issue, #next_id, #random_color, #render, #render_top_text, #status_category_color, #wrap_and_render
Constructor Details
#initialize(block) ⇒ DailyWipByParentChart
Returns a new instance of DailyWipByParentChart.
6 7 8 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 6 def initialize block super(block) end |
Instance Method Details
#default_description_text ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 14 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
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 32 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
10 11 12 |
# File 'lib/jirametrics/daily_wip_by_parent_chart.rb', line 10 def default_header_text 'Daily WIP, grouped by the parent ticket (Epic, Feature, etc)' end |