Plugins Directory » Smart issues sort

Author: Vitaly Klimov
Website: http://www.redmine.org/boards/3/topics/29545
Code repository: -
Registered on: 2012-03-15 (over 5 years ago)
Current version: 0.3.1
Compatible with: Redmine 1.3.x, 1.4.x, 2.0.x
User ratings:   (4)

Smart issues sort plugin

Smart issues sort plugin is a Redmine plugin that replaces default sort with one more intellegent.
This sort method honors issue tree and parent - child relationships.

Also this plugin adds category support for queries and several parent sort options.

Smart sorting

Plugin replaces default Redmine issues sorting with one more intellegent. This type of sorting always puts children issues of parent issue after parent.

Also it eleminates inconvenience when root issues sorted by parent issue are sorted by their ids instead.

Because this kind of sorting has to sort all the issues in query it could be quite long compared to default for big (>3000 issues) queries.

Plugin solves following issues in Redmine: #7907, #10048, #7417

New query options

  • Plugin adds categories support for Redmine queries and displays queries grouped by categories.
  • Plugin adds new option to queries which allows to always sort query by parent first thus keeping hierarchical issues structure

Global plugin options

  • By default sort by parent issue first
    Automatically sorts issues by parent issue first if not explicitly disabled in named query
  • Use default Redmine sort if no parent sort involved
    Allows to fallback to default Redmine sorting if no parent sorting involved for speeding up query process
  • Put issues without values in sort fields on top (default Redmine behavior)
    Puts issues with empty fields (ie Start Date or Due date) foremost, otherwise puts them in the end of the list

System files modifications

  • Plugin aliases Query's methods issues and issue_ids
  • Plugin aliases Gantt method sort_issues!
  • Plugin aliases BetterGantt method sort_issues' if plugin redmine_better_gantt_chart installed
  • Plugin adds two new columns to the Query model (:category and :sort_by_parent_first)
  • Plugin modifies following Redmine view: queries/_form.html.erb. Changes are between VVK comment lines

Installation notes

  1. Install plugin Plugin views with revisions if you do not have it installed
  2. Follow the Redmine plugin installation steps at: http://www.redmine.org/wiki/redmine/Plugins
  3. Run rake task
    rake redmine:plugins:process_version_change RAILS_ENV=production
  4. Restart your Redmine web servers (e.g. mongrel, thin, mod_rails)

Compatibility

  • Plugin runs in production mode only
  • Please perform plugins migrations before running the plugin
  • During migration plugin turns on option sort by parent first for all existing queries

Changelog

0.3.1 (2012-06-25)

Compatible with Redmine 1.3.x, 1.4.x, 2.0.x.

  • Redmine 2.x compatibility

redmine_smart_issues_sort_v031.zip (24.9 KB) Vitaly Klimov, 2012-06-25 15:47

0.3.0 (2012-06-07)

Compatible with Redmine 1.3.x, 1.4.x.

redmine_smart_issues_sort_v030.zip (24.2 KB) Vitaly Klimov, 2012-06-07 18:36

0.2.5 (2012-03-21)

Compatible with Redmine 1.3.x, 1.4.x.

  • Fixed minor compatibility issues

redmine_smart_issues_sort_v025.zip (21.9 KB) Vitaly Klimov, 2012-03-21 14:30

0.2.4 (2012-03-17)

Compatible with Redmine 1.3.x, 1.4.x.

  • Compatibility with Redmine versions prior to 1.3.2 added

redmine_smart_issues_sort_v024.zip (21.6 KB) Vitaly Klimov, 2012-03-17 13:57

0.2.3 (2012-03-16)

Compatible with Redmine 1.3.x, 1.4.x.

  • Trackers now sorted by their position, not their name - the way Redmine does

redmine_smart_issues_sort_v023.zip (21.5 KB) Vitaly Klimov, 2012-03-16 09:37

0.2.2 (2012-03-15)

Compatible with Redmine 1.3.x, 1.4.x.

redmine_smart_issues_sort_v022.zip (21.6 KB) Vitaly Klimov, 2012-03-15 11:46

User ratings

  by Isabela Cristina Teles Terra over 2 years ago

Hi,
Are there any plans to make this module compatible with Redmine 3.x?
Thanks

  by Nguyen Ba Tan almost 3 years ago

Good. Ok redmine 2.6

  by ivy micheli about 3 years ago

Thank you very much!
It solves my problem!

  by Andrew Hackley about 3 years ago

Does exactly what it says it does!

The linked zip file of the plugin from 2012-03 is not compatible with Redmine 2.4.x. Download the 2.4.x compatible version on GitHub:
https://github.com/logical-and/redmine_smart_issues_sort