When a custom Redmine plugin with hooks is the right build
A custom Redmine plugin is the right build when a team needs behavior that core Redmine does not provide and must keep that behavior through upgrades. In Redmine's model, a plugin is a self-contained package in the plugins directory with its own init.rb registration file, its own version, permissions, menu entries, settings and, where needed, database migrations. Redmine loads it at startup, so the core application stays untouched. That separation is the main reason to prefer a plugin over a fork: a fork means every upstream security fix and release must be merged by hand, while a plugin can usually be carried forward by copying it to the new installation and running the plugin migrations as part of the upgrade. A theme solves a different problem. It changes how Redmine looks, not what it does, so workflow rules, custom fields with logic, notifications or integrations belong in a plugin.
Before writing code, check whether a configuration change already solves the need. Trackers, workflows, custom fields, roles and notification settings cover many requests that teams first assume need development. Check whether a maintained plugin already exists as well, and whether its declared Redmine 7.0 compatibility, maintenance activity and licensing fit your environment. Build your own only when the gap remains after both checks. Record the reason in writing, because that rationale determines how much maintenance the custom code will need later.
DeployOpen plans and builds self-hosted Redmine work inside the client's own infrastructure, including the test environment where upgrades are rehearsed. For a plugin build, the decision points to settle at the start are: which Redmine line the plugin must support, which hooks and extension points the feature needs, what data it stores, who can see and change it, and who will own the code after handover. Confirm these with your own team and your Redmine version before any build starts.
What a Redmine plugin can add, from the platform docs
Redmine lets a plugin extend the application without editing core files, and most plugin work touches the same handful of core objects. The cards below map the extension points to the features they change, so you can scope a plugin before writing code. Confirm specific hook and class names against the Redmine version you target, since they can change between releases.
Plugin registration and settings
A plugin declares itself to Redmine in its init file, giving it a name, version, author and an optional settings screen. Registration is where you also declare the module permissions and menu entries the plugin adds, so administrators can see and manage it from the standard plugin list. Check the registration API for your target version before you plan the settings page, because the options available have changed across releases.
Redmine download pageView hooks for issues and projects
View hooks let a plugin inject markup into defined points of existing pages, such as issue details, the issue form or project overview, without replacing the view file. This is the main reason to prefer hooks over overridden views: core templates can change between releases while hook locations are a narrower contract. Record every hook your plugin uses and test each one after an upgrade.
Model hooks and callbacks
Model-level extension points let a plugin react when issues, time entries or users are created, updated or saved, for example to validate a custom rule or write an audit record. Keep this logic small and well tested, because it runs on every save and can slow or block core workflows. Confirm the exact callbacks and their arguments for your target version.
Custom fields and their data
Custom fields are the core mechanism for adding structured data to issues, projects, users and time entries, and a plugin can extend how these fields are shown or validated. A plugin that stores data in its own tables needs a migration and a clear link back to the core record. Decide early whether the data belongs in a custom field, which core reporting and the API already understand, or in a plugin table.
Permissions and roles
A plugin can register its own permissions so that administrators grant them through the standard role editor. Checking those permissions in controllers and views keeps plugin pages inside the same access model as core Redmine, including private issues and project membership. Test each permission with a non-administrator role, because an unchecked controller action can expose data that core views would hide.
Redmine REST APIREST API resources
Plugins can add routes and API responses for their own data, which lets other systems read or write plugin records using the same authentication as core resources. Core resources such as issues, projects, users and time entries are documented as stable, but plugin endpoints carry no such guarantee. Confirm that the API is enabled by an administrator and decide which operations need API keys before exposing anything.
REST API referenceWhy hooks and view hooks beat overridden views
Overriding a view means copying a core Redmine template into your plugin or theme and changing it there. Redmine then renders your copy instead of the shipped file, so every later change to that template in a new release is invisible to your code. The override keeps working on the day you write it, but it stops reflecting what the core team changed. Nothing warns you at upgrade time, so the break often appears as a layout gap, a missing field or a form that submits incorrectly after users have already started using the new version.
- Hidden drift: the copied template freezes the markup of one release, while the core template keeps changing around it.
- Upgrade cost: each Redmine upgrade requires a manual diff of every overridden file against the new core version.
- Testing burden: you must exercise every screen that uses the overridden template, including edge cases the original author never saw.
- Silent failures: a changed partial or helper name can leave a page that loads but omits your change.
- Plugin conflicts: two plugins that override the same template cannot both apply cleanly.
Before accepting any override, ask the developer which core files it replaces, which Redmine version each copy was taken from, and how the upgrade diff will be reviewed.
Hooks let a plugin run code at defined points in Redmine, such as when a view renders or a model saves, without replacing core files. View hooks let a plugin inject markup into named locations in existing pages. The plugin declares what it extends, and Redmine calls that code when the page renders. Because the core template stays untouched, upgrades change the surrounding page but not your injected content, and the injection points are the contract you test against.
- Declared extension points: the plugin attaches to a named hook, so the dependency on core is explicit and reviewable.
- Smaller diff on upgrade: core templates change freely, and you only review the hooks that still exist in the new release.
- Composable plugins: several plugins can attach to the same hook without fighting over one file.
- Clear test surface: tests target the hook output and the behavior it adds, not the entire page.
- Limits to accept: a hook exists only where the core team placed one, so some changes may need a different approach.
Check the Redmine release notes and the plugin source for each hook you rely on, and confirm the hook still exists in the target release before the upgrade starts.
The practical difference shows up at upgrade time. With overridden views, effort grows with the number of copied templates and with how far each template has moved in the new release, so the work is unpredictable until someone runs the diff. With hooks, effort grows with the number of hooks and their behavior, and it is easier to estimate because each dependency is listed in one place. Neither approach removes the need to test, but the amount of code that needs human review differs substantially between them.
- Inventory first: list every template override and every hook in use, grouped by plugin.
- Review scope: compare overrides by full file diff, and hooks by whether the hook and its contract still exist.
- Compatibility declaration: confirm whether each plugin declares support for the target Redmine version.
- Staged rollout: upgrade a staging copy with the same plugins and data before production.
- Rollback plan: keep the pre-upgrade backup and the previous plugin versions available.
Ask the plugin author or your partner to produce this inventory as a written deliverable, because the count of overrides is the best early predictor of upgrade cost.
Testing differs because the two approaches fail in different ways. An override can break any page that uses the copied template, so tests need broad coverage of screens and roles. A hook breaks where its injection point or the code it calls changes, so tests should target the affected pages, the hook output and the data the hook reads or writes. Automated tests in the plugin's own test suite should run against the Redmine version you intend to deploy, and manual checks should cover permissions because hooks often show or hide content by role.
- Automated tests: cover model behavior, hook output and permission checks against the target release.
- Role-based checks: verify injected content for administrators, project members and users with restricted roles.
- Visual review: check overridden pages in each supported browser, since template copies often drift in layout.
- Data checks: confirm that any migration or saved data still reads correctly after the upgrade.
- Regression list: keep a written list of pages and workflows to retest after every Redmine release.
Ask for the plugin's test results against the exact Redmine version you plan to run, not against the version it was first released for.
The right choice depends on what the customization must do and how long the deployment will stay on the current base. Hooks are the default when the requirement can be met at a supported extension point. Overrides may be justified for a narrow, well-documented change that no hook covers, but they should be recorded with their source version and reviewed at every upgrade. A plugin that depends on many overrides should be treated as a maintenance liability, and its cost should be included in the decision.
- Hook first: start by searching for a supported hook that delivers the behavior.
- Justify overrides: record the reason, the copied file, and the Redmine version it came from.
- Limit scope: keep each override as small as possible to reduce the diff at upgrade time.
- Plan ownership: name who reviews the plugin at each Redmine release.
- Budget the upgrade: include plugin review in the upgrade estimate, not only Redmine core.
Before building, ask your implementation partner for the hook list, the override list and the upgrade test plan as part of the written scope.
How a Redmine plugin is built, step by step
The sequence turns a single requirement into a plugin that is pinned to a known Redmine version, migrates its own data, enforces its own permissions and can be handed to an operations team with documentation.
Define the requirement and the Redmine target
Write down the behavior the plugin must add, the Redmine version it must run on, and the Ruby and database versions in your environment. The Redmine 7.0 line is the only fully supported line, and the installation guide lists supported Ruby versions for it, so confirm those first. Compare the requirement against core features and existing plugins before writing code. The output is a short requirements note signed off by the business owner and the Redmine administrator, with the target version named explicitly.
Scaffold the plugin structure
Create the plugin directory under the Redmine plugins folder with an init.rb file that registers the plugin name, version, author and minimum Redmine version. Add folders for hooks, views, locales, assets and lib code, keeping each concern in its own file. Hooks are placed in a dedicated file so that core views stay untouched and upgrades do not conflict with your changes. The output is a plugin that Redmine loads without errors on a development instance, shown in the administration plugin list.
Write the hooks and view extensions
Attach the behavior to Redmine's view and model hooks instead of copying and editing core templates. Keep each partial small and name the hook point it targets so a reviewer can check it against the Redmine version in use. Where a hook does not exist for the change you need, record that gap as a risk instead of overriding the view silently. The output is a list of hook points with the file that implements each one, which becomes the basis for upgrade testing later.
Write migrations for plugin data
Create database migrations for any tables or custom columns the plugin needs, and keep them namespaced to the plugin so they can be rolled back cleanly. Test each migration up and down on a copy of the database, because the upgrade and removal procedures depend on migrations running in both directions. The output is a migration set that applies on a fresh database and reverses to the previous schema without leftover data.
Register permissions and menus
Declare the plugin's permissions and project menu entries in init.rb so that administrators can grant them through roles, the same way they manage core permissions. Check each permission on the controller and view side, not only in the menu, so that hidden links cannot be used to reach restricted actions. The output is a role configuration where a test user sees the new menu only with the granted permission, and is refused the action when the permission is absent.
Add automated tests
Write tests for the model logic, the controllers and the permission checks, and run them against the Redmine version you declared in step one. Add at least one test for each hook point so that a later Redmine release shows which hook broke. Run the suite after each Redmine upgrade and record the result. The output is a passing test run on the target version with a report that a maintenance owner can rerun without help from the original author.
Stage, document and hand over
Install the plugin on a staging copy of production, including a restored database backup, and run the migrations and the test suite there first. Document the install, upgrade and removal steps, the migration names, the permissions, the hook points and the Redmine versions tested. The output is a staging sign-off record and a maintenance document that the operations team can follow for the next upgrade without contacting the developer.
How a plugin's hooks and migrations sit between Redmine core and your data
A request starts at the browser and reaches Redmine core, which checks the plugin's registered permissions and menu entries before handing control to the plugin's hook listeners. Those listeners read and write the plugin's own tables, created by its migrations. The dashed boundary marks where your code ends and core begins: check that the plugin touches core only through hooks and declared extension points, and that its schema changes live in its own migration files. Anything crossing that boundary is what an upgrade can break.
Requests flow through core, which calls plugin hooks; plugin schema lives in its own migrations.
Migrations, permissions and data ownership in a plugin
A Redmine plugin that stores its own data needs a migration, and that migration runs on a separate track from core. Core schema changes are applied with rake db:migrate, while a plugin's migrations are applied with rake redmine:plugins:migrate, which is the same task the upgrade procedure relies on after a core upgrade. The plugin's migration files live in its db/migrate directory and carry their own version numbers, so Redmine tracks each plugin's schema state separately from core. Before you run any plugin migration on a live instance, confirm that the plugin's migrations are idempotent in both directions and that your database and uploaded files are backed up. Rollback steps, migrating down to version 0 and the backup sequence are covered in the sibling topic on installing and removing Redmine plugins safely.
Keep every table a plugin creates under a name that identifies the plugin, and keep plugin data out of core tables wherever possible. Adding columns to core tables such as issues or projects couples your plugin to the core schema, so a later core migration can conflict with your change and removing the plugin leaves orphaned columns behind. Separate tables with foreign keys back to core records let you drop your data cleanly when the plugin is retired, and they make it obvious to a reviewer which records your plugin owns. Decide early who owns the data and how it is exported, since the answer determines whether a later replacement plugin or core feature can read it.
Permissions are declared in the plugin's init.rb with permission calls, which register a named permission that administrators can then assign to roles in the role editor. Once registered, the permission appears alongside core permissions, so a project manager can grant or deny access to your plugin's pages through the same roles that govern issues and wikis. Use project_module to group permissions under an enableable project module, and check the permission in your controllers with authorize rather than with custom role logic. Workflows control issue field transitions, not feature access, so do not rely on them to hide plugin screens. Test each permission with a role that has it and one that does not, and confirm the result for members, non-members and anonymous users. Permission names used by a plugin are a contract, so renaming one later silently removes access from every role that holds it.
Build decisions that shape the plugin's upgrade cost
This table compares five build decisions for a Redmine plugin and the upgrade work each one adds over time. Read each row as a fork: pick the option that fits your requirement, then budget for the maintenance it creates. The main takeaway is that hooks, core data models and background jobs usually cost less to keep upgrade-safe than view overrides, custom schema changes and synchronous integrations.
| Decision | Fits when | Maintenance cost | Confirm before building |
|---|---|---|---|
| Hooks only versus view overrides | The change adds fields, panels, menu items or validation next to existing screens | Hooks depend on named extension points, so each Redmine upgrade needs a check of those points; view overrides copy whole templates and break on any markup change | Which hook points the target Redmine line exposes and whether the plugin needs any full-view replacement |
| Plugin-owned tables versus custom fields | You need data that does not fit a single issue attribute, such as multi-row records or external IDs | Plugin tables add migrations, a down path for removal and backup scope; custom fields stay within core upgrade and export paths but have limits on structure | Whether the data must be queried, reported or exported alongside issues, and who owns the migration history |
| In-plugin REST API endpoints versus client scripts | Other systems or scripts need to read or write plugin data through a stable interface | Endpoints must follow Redmine's API conventions and be tested on each release; client scripts that scrape pages or call undocumented routes break silently after upgrades | Whether core REST resources cover the need, and whether the API must be enabled by an administrator for the integration account |
| Background jobs versus synchronous requests | Work is slow, calls external services, or runs on a schedule such as sync or reminders | Jobs need a worker and queue in production, failure monitoring and idempotent retries; synchronous code is simpler but can time out and needs fewer moving parts | Which optional queue component your deployment already runs and how failures will be surfaced to administrators |
| Building in-house versus with a partner | Your team owns Ruby on Rails skills and can review each Redmine release diff | In-house builds carry ongoing testing and upgrade work for the life of the plugin; a partner adds a written support scope but still needs a named owner on your side | Who performs upgrade testing, who holds the source code, and what documentation and handover are included in the written scope |
Keeping a custom plugin upgrade-safe after launch
Keeping a hook-based plugin upgrade-safe starts with a written support target. Pin the plugin to the Redmine line you have tested it against, and treat Redmine 7.0.x as the only fully supported line, with new features, bug fixes and security updates. Redmine 6.1.x receives only bug fixes and security updates, and 6.0.x receives only important security updates, so a plugin that must run on 6.x carries a narrower patch window. Do not target 5.1 or older releases, which are unsupported. Name one owner for the plugin who decides when to move the target, who signs off the staging results, and who tracks the plugin's init.rb version and declared Redmine compatibility on each release.
Every Redmine release needs a rehearsal on staging with a copy of production data. Run the upgrade steps from the upgrade guide in order: back up the database and uploaded files, copy configuration, uploads and third-party plugins to the new installation, run rake db:migrate and then rake redmine:plugins:migrate, clear the cache and restart. Your plugin's own migrations in db/migrate are the step most likely to fail, so confirm that they run cleanly on a copy and that the plugin's permissions, menu items and hook registrations still load. Keep a rollback path that includes a database backup taken before the migration, because a plugin migration that is reversed without care can remove data the plugin created.
Hooks reduce breakage, but they do not remove it. Track deprecations in the Redmine release notes and in the plugin's own test suite, and review any view partial or helper your plugin still depends on, since those change more often than the hook API. Ask the team that builds the plugin to confirm which Redmine APIs it calls, whether the test suite covers the hook listeners and the migrations, and how long a fix typically takes after a Redmine release. Budget the recurring work as an ongoing cost: each Redmine release is a retest cycle, and the effort grows with the number of plugins and views you have customized. Record the outcome of every staging run so the next upgrade starts from evidence rather than memory.
How a Redmine plugin connects to the rest of the platform
Does a Redmine plugin change how users sign in with LDAP or SSO?
Usually not directly, but it can if the plugin touches the authentication layer, so check that first. Core Redmine authenticates against LDAP natively, and SAML or OpenID Connect single sign-on is not part of core, so it depends on a plugin or an authenticating reverse proxy. A plugin that hooks into login, session handling or user creation can change who gets an account, how roles are assigned and whether two-factor prompts still apply. Confirm which authentication path the plugin touches, test a new user, a returning user and a locked account against your LDAP directory or identity provider, and confirm that group-based role mapping still works after an upgrade.
How does a plugin affect the Redmine REST API?
A plugin can add endpoints or change responses, so external systems may depend on behavior you did not write. The REST API must be enabled by an administrator in the settings, and it authenticates with HTTP basic authentication or a per-user API key sent as a parameter or in the X-Redmine-API-Key header. Core resources such as issues, projects, users and time entries are marked stable, but custom fields and plugin-added attributes may not appear in every response format, which is a common source of broken integrations. Confirm whether the plugin adds API routes, whether it requires a separate permission, and whether the API key of a service account still works after the plugin is installed on staging.
Will a custom plugin break Redmine email notifications?
It can, because notifications are built from issue and journal events that plugins often extend. A plugin that adds fields, workflows or status changes may alter what recipients see, or it may fire extra mails that clutter inboxes. Some plugins also send their own email through the same SMTP settings, so a bad configuration affects everything. Confirm which events the plugin hooks into, check that core notifications still render with the plugin's custom fields, and send a test issue update to a sample account before enabling the plugin for everyone. Review notification defaults, since the plugin may add watchers or recipients automatically.
Can a Redmine plugin interfere with SCM repository integration?
Yes, when the plugin touches changesets, repository models or the fetching of commits. Redmine integrates with Subversion, Git, Mercurial, Bazaar and CVS, and it links commits to issues through references in commit messages. A plugin that changes how changesets are parsed, stored or displayed can break those links, or slow repository fetching on large codebases. Ask whether the plugin reads repository data, whether it runs during scheduled repository fetching, and whether it depends on a specific SCM adapter version. Test a commit that references an issue, then confirm the changeset appears on the issue and in the repository view.
What must a backup include when a Redmine plugin stores its own data?
The backup must include the plugin's database tables and any uploaded files the plugin writes, not only the core Redmine database. The Redmine upgrade procedure calls for backing up the database and uploaded files, then copying configuration, uploads and third-party plugins to the new installation before running the migrations. Plugins that keep attachments or documents in their own storage paths need those paths added to the backup list. Confirm where the plugin writes files, confirm that a restore recreates the plugin tables at the same migration version, and perform a test restore on a separate host before relying on the backup.
How much does it cost to connect a plugin to LDAP, the API and email?
The cost comes from analysis and testing of each connection point, plus any custom code needed to make the plugin behave correctly. Redmine has no paid edition, so the software itself adds no license cost, but a plugin may have its own license terms. One-time costs include reviewing the plugin's code paths, writing test cases for each integration and fixing conflicts. Recurring costs include retesting these connections after every Redmine and plugin upgrade. To compare quotes, ask for each connection point to be listed separately with the test cases, the environments used and whether the upgrade retest is included. The scope is set in writing before work starts.
Can our own team check these connections before we install a plugin?
Yes, a team with Redmine administration skills can run the core checks, though the plugin's own code paths need a developer who can read them. Start with a staging copy built from a recent backup, then test each connection point in turn: sign in through LDAP or SSO, call the REST API with a service account, send a notification, commit with an issue reference and restore the database and uploads to a second host. Record the result of each test, keep the Redmine version and plugin version together, and repeat the same checklist on every upgrade. Engage a partner when the plugin changes authentication or data storage in ways your team cannot verify.
Which connection points should a plugin review cover first?
Review authentication, the REST API and backups first, because they carry the most access and data risk, then notifications and SCM links. Authentication decides who can enter the system and with which roles. The REST API exposes data to other systems through keys that may belong to service accounts. Backups determine whether you can recover plugin data at all. Notifications and repository links affect daily use and are easier to notice when they fail. Ask the plugin's maintainer which of these it touches, and document the answer in your change record so later reviewers can see which connections were tested and when.
What the team should receive at handover
The handover package should let an internal team maintain the plugin without the person who built it. That means the source repository with a tagged release for each Redmine line it supports, a README that states which Redmine versions it was tested against, and the plugin's init.rb version and requirements block kept current. Ask for a written list of every hook, view partial and model extension the plugin uses, since that list is what a future upgrade reviewer will check first. Ask also for the permission matrix: each permission the plugin registers, the default roles it is granted to, and the screens or actions it controls, so administrators can verify access without reading Ruby code.
Migration and rollback notes are the artifacts teams most often lack. They should list every database migration the plugin adds, whether each one can be reversed, and the exact order of steps for a clean removal, including the migrate-down-to-version-0 step and the asset cleanup. Pair these notes with the test suite, the commands used to run it, and the most recent results on a named Redmine version. Include the upgrade checklist for the next Redmine line, covering the Ruby and Rails versions it targets, hook signatures to recheck, and any dependency that must be confirmed before a release. Confirm the exact supported Redmine versions with the Redmine download and upgrade guides before you accept the checklist.
Finally, name the owners. Record who holds the repository admin rights, who approves releases, who runs the test suite after each Redmine patch, and who decides whether the plugin is retired. A plugin with no named owner tends to stay on an old Redmine line until an upgrade is blocked. Agree on a review date for the handover documents and make the internal team run a small change, such as adding a setting, from the documentation alone before the builder's involvement ends. That rehearsal shows whether the package is complete.
How DeployOpen scopes, builds and supports Redmine plugins
DeployOpen approaches a Redmine plugin as a fixed-scope piece of work inside your own infrastructure, starting with the functionality you need and the upgrade line you run. The plugin is built on hooks and documented so your team can review, test and maintain it through each Redmine release.
How we scope
- Written scope names the Redmine version line, the features the plugin adds and the views where hooks attach.
- Scope lists migrations, permissions and roles the plugin introduces, so access decisions are reviewed before any build starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- Functionality is built with hooks and plugin extension points, avoiding overridden core views that break on upgrade.
- Migrations are written to run cleanly on a staging copy of your database, with a documented rollback path.
- Permissions are tested against each role in your roles model, including private and restricted project access.
How we hand over
- Handover includes source code, installation steps, a migration and permissions reference and a test checklist.
- Documentation records each Redmine version the plugin was tested against and the upgrade steps for the next release.
- Your team receives a runbook for running db:migrate and redmine:plugins:migrate during upgrades.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial build.
- Retainers cover re-testing the plugin when Redmine 7.0.x receives updates and when new releases ship.
- Ask any partner to confirm the upgrade path, test environment and who owns the source code in the written scope.

