Project

General

Profile

Plugins Directory » Smart issues sort

Author: Vitaly Klimov
Website: http://www.redmine.org/boards/3/topics/29545
Code repository: -
Registered on: 2012-03-15 (almost 13 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

0.3.0 (2012-06-07)

Compatible with Redmine 1.3.x, 1.4.x.

0.2.5 (2012-03-21)

Compatible with Redmine 1.3.x, 1.4.x.

  • Fixed minor compatibility issues

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

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

0.2.2 (2012-03-15)

Compatible with Redmine 1.3.x, 1.4.x.

User ratings

  by Isabela Cristina Teles Terra over 9 years ago

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

  by Nguyen Ba Tan almost 10 years ago

Good. Ok redmine 2.6

  by ivy micheli about 10 years ago

Thank you very much!
It solves my problem!

  by Andrew Hackley over 10 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