jirametrics 2.5 → 2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/jirametrics-mcp +5 -0
- data/lib/jirametrics/aggregate_config.rb +16 -3
- data/lib/jirametrics/aging_work_bar_chart.rb +193 -133
- data/lib/jirametrics/aging_work_in_progress_chart.rb +138 -42
- data/lib/jirametrics/aging_work_table.rb +63 -19
- data/lib/jirametrics/anonymizer.rb +81 -6
- data/lib/jirametrics/atlassian_document_format.rb +160 -0
- data/lib/jirametrics/bar_chart_range.rb +17 -0
- data/lib/jirametrics/blocked_stalled_change.rb +6 -4
- data/lib/jirametrics/board.rb +73 -20
- data/lib/jirametrics/board_config.rb +10 -2
- data/lib/jirametrics/board_feature.rb +14 -0
- data/lib/jirametrics/board_movement_calculator.rb +155 -0
- data/lib/jirametrics/cfd_data_builder.rb +108 -0
- data/lib/jirametrics/change_item.rb +54 -18
- data/lib/jirametrics/chart_base.rb +203 -30
- data/lib/jirametrics/css_variable.rb +2 -2
- data/lib/jirametrics/cumulative_flow_diagram.rb +208 -0
- data/lib/jirametrics/cycle_time_config.rb +137 -0
- data/lib/jirametrics/cycletime_histogram.rb +17 -38
- data/lib/jirametrics/cycletime_scatterplot.rb +18 -87
- data/lib/jirametrics/daily_view.rb +306 -0
- data/lib/jirametrics/daily_wip_by_age_chart.rb +5 -8
- data/lib/jirametrics/daily_wip_by_blocked_stalled_chart.rb +15 -5
- data/lib/jirametrics/daily_wip_by_parent_chart.rb +4 -6
- data/lib/jirametrics/daily_wip_chart.rb +36 -16
- data/lib/jirametrics/data_quality_report.rb +251 -42
- data/lib/jirametrics/dependency_chart.rb +8 -6
- data/lib/jirametrics/download_config.rb +17 -2
- data/lib/jirametrics/downloader.rb +177 -108
- data/lib/jirametrics/downloader_for_cloud.rb +287 -0
- data/lib/jirametrics/downloader_for_data_center.rb +95 -0
- data/lib/jirametrics/estimate_accuracy_chart.rb +75 -14
- data/lib/jirametrics/estimation_configuration.rb +25 -0
- data/lib/jirametrics/examples/aggregated_project.rb +5 -8
- data/lib/jirametrics/examples/standard_project.rb +54 -38
- data/lib/jirametrics/expedited_chart.rb +10 -9
- data/lib/jirametrics/exporter.rb +51 -16
- data/lib/jirametrics/file_config.rb +21 -6
- data/lib/jirametrics/file_system.rb +96 -4
- data/lib/jirametrics/fix_version.rb +13 -0
- data/lib/jirametrics/flow_efficiency_scatterplot.rb +115 -0
- data/lib/jirametrics/github_gateway.rb +115 -0
- data/lib/jirametrics/groupable_issue_chart.rb +12 -4
- data/lib/jirametrics/grouping_rules.rb +26 -4
- data/lib/jirametrics/html/aging_work_bar_chart.erb +8 -17
- data/lib/jirametrics/html/aging_work_in_progress_chart.erb +24 -5
- data/lib/jirametrics/html/aging_work_table.erb +13 -4
- data/lib/jirametrics/html/collapsible_issues_panel.erb +2 -2
- data/lib/jirametrics/html/cumulative_flow_diagram.erb +503 -0
- data/lib/jirametrics/html/daily_wip_chart.erb +41 -15
- data/lib/jirametrics/html/estimate_accuracy_chart.erb +4 -12
- data/lib/jirametrics/html/expedited_chart.erb +7 -24
- data/lib/jirametrics/html/flow_efficiency_scatterplot.erb +81 -0
- data/lib/jirametrics/html/hierarchy_table.erb +1 -1
- data/lib/jirametrics/html/index.css +336 -62
- data/lib/jirametrics/html/index.erb +16 -21
- data/lib/jirametrics/html/index.js +164 -0
- data/lib/jirametrics/html/legacy_colors.css +174 -0
- data/lib/jirametrics/html/sprint_burndown.erb +18 -25
- data/lib/jirametrics/html/throughput_chart.erb +43 -21
- data/lib/jirametrics/html/time_based_histogram.erb +123 -0
- data/lib/jirametrics/html/{cycletime_scatterplot.erb → time_based_scatterplot.erb} +16 -21
- data/lib/jirametrics/html/wip_by_column_chart.erb +250 -0
- data/lib/jirametrics/html_generator.rb +32 -0
- data/lib/jirametrics/html_report_config.rb +83 -76
- data/lib/jirametrics/issue.rb +481 -97
- data/lib/jirametrics/issue_collection.rb +33 -0
- data/lib/jirametrics/issue_printer.rb +97 -0
- data/lib/jirametrics/jira_gateway.rb +96 -16
- data/lib/jirametrics/mcp_server.rb +531 -0
- data/lib/jirametrics/project_config.rb +374 -130
- data/lib/jirametrics/pull_request.rb +30 -0
- data/lib/jirametrics/pull_request_cycle_time_histogram.rb +77 -0
- data/lib/jirametrics/pull_request_cycle_time_scatterplot.rb +88 -0
- data/lib/jirametrics/pull_request_review.rb +13 -0
- data/lib/jirametrics/raw_javascript.rb +17 -0
- data/lib/jirametrics/self_or_issue_dispatcher.rb +2 -0
- data/lib/jirametrics/settings.json +7 -1
- data/lib/jirametrics/sprint.rb +13 -0
- data/lib/jirametrics/sprint_burndown.rb +47 -39
- data/lib/jirametrics/sprint_issue_change_data.rb +3 -3
- data/lib/jirametrics/status.rb +84 -19
- data/lib/jirametrics/status_collection.rb +83 -38
- data/lib/jirametrics/stitcher.rb +81 -0
- data/lib/jirametrics/throughput_by_completed_resolution_chart.rb +22 -0
- data/lib/jirametrics/throughput_chart.rb +73 -23
- data/lib/jirametrics/time_based_histogram.rb +139 -0
- data/lib/jirametrics/time_based_scatterplot.rb +107 -0
- data/lib/jirametrics/user.rb +12 -0
- data/lib/jirametrics/value_equality.rb +2 -2
- data/lib/jirametrics/wip_by_column_chart.rb +236 -0
- data/lib/jirametrics.rb +101 -66
- metadata +72 -16
- data/lib/jirametrics/cycletime_config.rb +0 -69
- data/lib/jirametrics/discard_changes_before.rb +0 -37
- data/lib/jirametrics/html/cycletime_histogram.erb +0 -47
- data/lib/jirametrics/html/data_quality_report.erb +0 -126
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module DiscardChangesBefore
|
|
4
|
-
def discard_changes_before status_becomes: nil, &block
|
|
5
|
-
if status_becomes
|
|
6
|
-
status_becomes = [status_becomes] unless status_becomes.is_a? Array
|
|
7
|
-
|
|
8
|
-
block = lambda do |issue|
|
|
9
|
-
trigger_statuses = status_becomes.collect do |status_name|
|
|
10
|
-
if status_name == :backlog
|
|
11
|
-
issue.board.backlog_statuses.collect(&:name)
|
|
12
|
-
else
|
|
13
|
-
status_name
|
|
14
|
-
end
|
|
15
|
-
end.flatten
|
|
16
|
-
|
|
17
|
-
time = nil
|
|
18
|
-
issue.changes.each do |change|
|
|
19
|
-
time = change.time if change.status? && trigger_statuses.include?(change.value) && change.artificial? == false
|
|
20
|
-
end
|
|
21
|
-
time
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
issues_cutoff_times = []
|
|
26
|
-
issues.each do |issue|
|
|
27
|
-
cutoff_time = block.call(issue)
|
|
28
|
-
issues_cutoff_times << [issue, cutoff_time] if cutoff_time
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
discard_changes_before_hook issues_cutoff_times
|
|
32
|
-
|
|
33
|
-
issues_cutoff_times.each do |issue, cutoff_time|
|
|
34
|
-
issue.changes.reject! { |change| change.status? && change.time <= cutoff_time && change.artificial? == false }
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<div class="chart">
|
|
2
|
-
<canvas id="<%= chart_id %>" width="<%= canvas_width %>" height="<%= canvas_height %>"></canvas>
|
|
3
|
-
</div>
|
|
4
|
-
<script>
|
|
5
|
-
new Chart(document.getElementById('<%= chart_id %>').getContext('2d'),
|
|
6
|
-
{
|
|
7
|
-
type: 'bar',
|
|
8
|
-
data: {
|
|
9
|
-
datasets: <%= JSON.generate(data_sets) %>
|
|
10
|
-
},
|
|
11
|
-
options: {
|
|
12
|
-
responsive: <%= canvas_responsive? %>, // If responsive is true then it fills the screen
|
|
13
|
-
scales: {
|
|
14
|
-
x: {
|
|
15
|
-
type: 'linear',
|
|
16
|
-
stacked: true,
|
|
17
|
-
title: {
|
|
18
|
-
display: true,
|
|
19
|
-
text: 'Cycletime in days'
|
|
20
|
-
},
|
|
21
|
-
grid: {
|
|
22
|
-
color: <%= CssVariable['--grid-line-color'].to_json %>
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
y: {
|
|
26
|
-
stacked: true,
|
|
27
|
-
title: {
|
|
28
|
-
display: true,
|
|
29
|
-
text: 'Number of items that had that cycletime'
|
|
30
|
-
},
|
|
31
|
-
grid: {
|
|
32
|
-
color: <%= CssVariable['--grid-line-color'].to_json %>
|
|
33
|
-
},
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
plugins: {
|
|
37
|
-
tooltip: {
|
|
38
|
-
callbacks: {
|
|
39
|
-
label: function(context) {
|
|
40
|
-
return context.dataset.data[context.dataIndex].title
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
</script>
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
problems = problems_for :discarded_changes
|
|
3
|
-
unless problems.empty?
|
|
4
|
-
%>
|
|
5
|
-
<p>
|
|
6
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> have had information discarded. This configuration is set
|
|
7
|
-
to "reset the clock" if an item is moved back to the backlog after it's been started. This hides important
|
|
8
|
-
information and makes the data less accurate. <b>Moving items back to the backlog is strongly discouraged.</b>
|
|
9
|
-
<%= collapsible_issues_panel problems %>
|
|
10
|
-
</p>
|
|
11
|
-
<%
|
|
12
|
-
end
|
|
13
|
-
%>
|
|
14
|
-
|
|
15
|
-
<%
|
|
16
|
-
problems = problems_for :completed_but_not_started
|
|
17
|
-
unless problems.empty?
|
|
18
|
-
percentage_work_included = ((issues.size - problems.size).to_f / issues.size * 100).to_i
|
|
19
|
-
%>
|
|
20
|
-
<p>
|
|
21
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> were discarded from all charts using cycletime (scatterplot, histogram, etc) as we couldn't determine when they started.
|
|
22
|
-
<% if percentage_work_included < 85 %>
|
|
23
|
-
Consider whether looking at only <%= percentage_work_included %>% of the total data points is enough to come to any reasonable conclusions. See <a href="https://en.wikipedia.org/wiki/Survivorship_bias">Survivorship Bias</a>.
|
|
24
|
-
<% end %>
|
|
25
|
-
<%= collapsible_issues_panel problems %>
|
|
26
|
-
</p>
|
|
27
|
-
<%
|
|
28
|
-
end
|
|
29
|
-
%>
|
|
30
|
-
|
|
31
|
-
<%
|
|
32
|
-
problems = problems_for :status_changes_after_done
|
|
33
|
-
unless problems.empty?
|
|
34
|
-
%>
|
|
35
|
-
<p>
|
|
36
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> had a status change after being identified as done. We should question whether they were really done at that point or if we stopped the clock too early.
|
|
37
|
-
<%= collapsible_issues_panel problems %>
|
|
38
|
-
</p>
|
|
39
|
-
<%
|
|
40
|
-
end
|
|
41
|
-
%>
|
|
42
|
-
|
|
43
|
-
<%
|
|
44
|
-
problems = problems_for :backwards_through_status_categories
|
|
45
|
-
unless problems.empty?
|
|
46
|
-
%>
|
|
47
|
-
<p>
|
|
48
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> moved backwards across the board, <b>crossing status categories</b>. This will almost certainly have impacted timings as the end times are often taken at status category boundaries. You should assume that any timing measurements for this item are wrong.
|
|
49
|
-
<%= collapsible_issues_panel problems %>
|
|
50
|
-
</p>
|
|
51
|
-
<%
|
|
52
|
-
end
|
|
53
|
-
%>
|
|
54
|
-
|
|
55
|
-
<%
|
|
56
|
-
problems = problems_for :backwords_through_statuses
|
|
57
|
-
unless problems.empty?
|
|
58
|
-
%>
|
|
59
|
-
<p>
|
|
60
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> moved backwards across the board. Depending where we have set the start and end points, this may give us incorrect timing data. Note that these items did not cross a status category and may not have affected metrics.
|
|
61
|
-
<%= collapsible_issues_panel problems %>
|
|
62
|
-
</p>
|
|
63
|
-
<%
|
|
64
|
-
end
|
|
65
|
-
%>
|
|
66
|
-
|
|
67
|
-
<%
|
|
68
|
-
problems = problems_for :status_not_on_board
|
|
69
|
-
unless problems.empty?
|
|
70
|
-
%>
|
|
71
|
-
<p>
|
|
72
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> were not visible on the board for some period of time. This may impact timings as the work was likely to have been forgotten if it wasn't visible.
|
|
73
|
-
<%= collapsible_issues_panel problems %>
|
|
74
|
-
</p>
|
|
75
|
-
<%
|
|
76
|
-
end
|
|
77
|
-
%>
|
|
78
|
-
|
|
79
|
-
<%
|
|
80
|
-
problems = problems_for :created_in_wrong_status
|
|
81
|
-
unless problems.empty?
|
|
82
|
-
%>
|
|
83
|
-
<p>
|
|
84
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> were created in a status not designated as Backlog. This will impact the measurement of start times and will therefore impact whether it's shown as in progress or not.
|
|
85
|
-
<%= collapsible_issues_panel problems %>
|
|
86
|
-
</p>
|
|
87
|
-
<%
|
|
88
|
-
end
|
|
89
|
-
%>
|
|
90
|
-
|
|
91
|
-
<%
|
|
92
|
-
problems = problems_for :stopped_before_started
|
|
93
|
-
unless problems.empty?
|
|
94
|
-
%>
|
|
95
|
-
<p>
|
|
96
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> were stopped before they were started and this will play havoc with any cycletime or WIP calculations. The most common case for this is when an item gets closed and then moved back into an in-progress status.
|
|
97
|
-
<%= collapsible_issues_panel problems %>
|
|
98
|
-
</p>
|
|
99
|
-
<%
|
|
100
|
-
end
|
|
101
|
-
%>
|
|
102
|
-
|
|
103
|
-
<%
|
|
104
|
-
problems = problems_for :issue_not_started_but_subtasks_have
|
|
105
|
-
unless problems.empty?
|
|
106
|
-
%>
|
|
107
|
-
<p>
|
|
108
|
-
<span class="quality_note_bullet">⮕</span> <%= label_issues problems.size %> still showing 'not started' while sub-tasks underneath them have started. This is almost always a mistake; if we're working on subtasks, the top level
|
|
109
|
-
item should also have started.
|
|
110
|
-
<%= collapsible_issues_panel problems %>
|
|
111
|
-
</p>
|
|
112
|
-
<%
|
|
113
|
-
end
|
|
114
|
-
%>
|
|
115
|
-
|
|
116
|
-
<%
|
|
117
|
-
problems = problems_for :issue_on_multiple_boards
|
|
118
|
-
unless problems.empty?
|
|
119
|
-
%>
|
|
120
|
-
<p>
|
|
121
|
-
<span class="quality_note_bullet">⮕</span> For <%= label_issues problems.size %>, we have an issue that shows up on more than one board. This could result in more data points showing up on a chart then there really should be.
|
|
122
|
-
<%= collapsible_issues_panel problems, :hide_board_column %>
|
|
123
|
-
</p>
|
|
124
|
-
<%
|
|
125
|
-
end
|
|
126
|
-
%>
|