Skip to content

Commit

Permalink
Merge pull request #10 from maedadev/feature_58666
Browse files Browse the repository at this point in the history
sort story by issues.subject for each sprint at taskboard page
  • Loading branch information
fuminori-ido-m authored Aug 8, 2022
2 parents cbd9276 + 625dcaa commit 078d78d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions app/views/backlogs/_settings.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@
<%= check_box_tag("settings[show_project_name]",'enabled',
Backlogs.setting[:show_project_name]) %>
</p>
<p>
<%= content_tag(:label, l(:rb_taskboard_view_story_order)) %>
<%= select_tag("settings[taskboard_view_story_order]",
options_for_select([
[l(:rb_label_taskboard_view_story_order_by_position), 'position'],
[l(:rb_label_taskboard_view_story_order_by_alpha), 'alpha']
], Backlogs.setting[:taskboard_view_story_order])) %>
</p>
</fieldset>

<fieldset>
Expand Down
4 changes: 3 additions & 1 deletion app/views/rb_taskboards/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
</table>

<table id="tasks" class="board" cellspacing="0">
<%- @sprint.stories.each do |story| %>
<%- stories = @sprint.stories
stories = stories.reorder("issues.subject") if Backlogs.setting[:taskboard_view_story_order] == 'alpha'
stories.each do |story| %>
<tr id="swimlane-<%= story.id %>" class="story-swimlane">
<td>
<div class="story <%= mark_if_closed(story) %>" <%= build_inline_style(story).html_safe %>>
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en-GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ en-GB:
rb_label_copy_tasks_none: None
rb_label_copy_tasks_open: Open
rb_label_link_to_original: "Include link to original story"
rb_label_taskboard_view_story_order_by_position: "position(default)"
rb_label_taskboard_view_story_order_by_alpha: "alphabetical"
rb_label_timelog_disable: Disable
rb_label_timelog_enable: Enable
rb_project_settings_update_error: "Error while updating settings"
Expand All @@ -196,6 +198,7 @@ en-GB:
rb_task_cards_story_follows_tasks: "Tasks followed by their story"
rb_task_cards_tasks_follow_story: "Story followed by their tasks"
rb_taskboard_card_order: "Card print order"
rb_taskboard_view_story_order: "Story order on taskboard"
rb_timelog_from_taskboard: "Timelog from taskboard"
remaining_story_points: "Remaining story points"
story_description: Description
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ en:
rb_label_copy_tasks_none: None
rb_label_copy_tasks_open: Open
rb_label_link_to_original: "Include link to original story"
rb_label_taskboard_view_story_order_by_position: "position(default)"
rb_label_taskboard_view_story_order_by_alpha: "alphabetical"
rb_label_timelog_disable: Disable
rb_label_timelog_enable: Enable
rb_project_settings_update_error: "Error while updating settings"
Expand All @@ -200,6 +202,7 @@ en:
rb_task_cards_story_follows_tasks: "Tasks followed by their story"
rb_task_cards_tasks_follow_story: "Story followed by their tasks"
rb_taskboard_card_order: "Card print order"
rb_taskboard_view_story_order: "Story order on taskboard"
rb_timelog_from_taskboard: "Timelog from taskboard"
remaining_story_points: "Remaining story points"
story_description: Description
Expand Down
3 changes: 3 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ ja:
rb_label_copy_tasks_none: なし
rb_label_copy_tasks_open: 開く
rb_label_link_to_original: 元のストーリーへのリンクを含める
rb_label_taskboard_view_story_order_by_position: "従来通り(default)"
rb_label_taskboard_view_story_order_by_alpha: "アルファベット順"
rb_label_timelog_disable: 無効
rb_label_timelog_enable: 有効
rb_project_settings_update_error: 失敗しました。
Expand All @@ -204,6 +206,7 @@ ja:
rb_task_cards_story_follows_tasks: ストーリー、タスクの順に印刷
rb_task_cards_tasks_follow_story: タスク、ストーリーの順に印刷
rb_taskboard_card_order: カードの印刷順
rb_taskboard_view_story_order: "カンバン上のストーリー表示順"
rb_timelog_from_taskboard: かんばんのタイムログ
remaining_story_points: 残りのストーリーポイント
story_description: 説明
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
name 'Redmine Backlogs'
author "friflaj,Mark Maglana,John Yani,mikoto20000,Frank Blendinger,Bo Hansen,stevel,Patrick Atamaniuk"
description 'A plugin for agile teams'
version 'v1.3.4'
version 'v1.4.0'

settings :default => {
:story_trackers => nil,
Expand Down

0 comments on commit 078d78d

Please sign in to comment.