Recursive Issue Relations

Overview

This plugin extends the default issue relation functionality in Redmine. When adding multiple issues as a relation via a comma-separated string (e.g., 12, 13, 15), Redmine natively links the base issue to each of these targets. This plugin automatically extends this behavior by cross-relating all the newly provided issues with each other.

Features

  • Automatically creates cross-relations for comma-separated issue IDs (12, #13, 15 all work).
  • Only for "Related to": directional types (blocks, precedes, duplicates, copied to) are never cross-linked, since that would invent relations and could reschedule or close issues.
  • Only cross-links issues Redmine actually related to the base issue, and only where you're allowed to manage relations in both issues' projects.
  • Cross-links at most 10 issues per request (45 relations), to avoid flooding issue history and notifications.
  • Gracefully handles validation failures (e.g., missing issues, cross-project restrictions); problems are logged, never shown as an error page.
  • Lightweight, using standard Rails ActiveSupport::Concern to patch the controller without overriding core files.

Compatibility

Plugin Version Redmine Version
2026.8.0+ Redmine 5.x

Installation

1. Clone the Plugin

Install the plugin into your Redmine plugins directory.

cd /path/to/redmine/plugins  
git clone https://github.com/rickbarrette/redmine_recursive_relations.git  
cd redmine_recursive_relations  

# Optional but recommended: Checkout a specific tagged release for stability
git checkout <tag>

2. Restart Redmine

Because this plugin patches the core controller, no database migrations are required. Simply restart your Redmine application server (e.g., Puma, Passenger, or Unicorn) so the plugin and hooks are loaded.


Usage

Once installed and the server is restarted, there is no configuration needed.


License

The MIT License (MIT)

Copyright (c) 2026 Rick Barrette

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

S
Description
No description provided
Readme MIT
55 KiB
0 Stars 1 Watchers 0 Forks
Languages
Ruby 100%