Importing time entries into Redmine from CSV

Loading historical timesheets into Redmine with the time entry importer, including activity and user mapping, issue matching and validation before billing reports depend on the data.

On this page

When a CSV time entry import into Redmine is worth doing carefully

Years of timesheets sitting in a spreadsheet, another tool or an older Redmine are only useful for billing and utilization reports once they are loaded in a form Redmine can filter and total. Redmine's time entry importer, added in 4.1, can load those rows from CSV, so the upload itself is rarely the hard part. The work is mapping and validation: matching each row to a user, an activity, a project and an issue, and confirming that dates, hours and amounts make sense before any report depends on them.

Redmine has no paid edition. The software is free under GPL v2, so the cost of this import is the preparation, review and testing time, whether an internal team or a partner does it. Ask for the work to be split into a mapping specification, a dry run on a copy of the database, a reconciliation of totals against the source system and a sign-off by whoever owns billing. Confirm the Redmine version you run first, because the importer depends on it and the supported line is covered in the Redmine download page.

Which matching approach fits your history

If your historical timesheets already record Redmine issue numbers, or the old tracker's ticket numbers were carried into Redmine as issue IDs, matching by ID is the most precise option. Each row points to one issue, so the importer has little to guess. The remaining work is confirming that each ID still exists and belongs to the project the time was logged against. Check the Redmine REST API documentation for how issues are identified if you plan to verify IDs by script.

  • Exact lookup: Each row maps to a single issue, which avoids ambiguity when several issues share a subject.
  • Identifier source: Confirm whether the IDs in the file are Redmine IDs or IDs from the old system. Old IDs need a mapping table before import.
  • Deleted or moved issues: Issues deleted, or moved to another project after the time was logged, will fail the lookup or point to the wrong project.
  • Project consistency: Compare the project column with the issue's project so hours are not charged to a project the issue does not belong to.
  • Migration mapping: When issues were imported earlier, reuse the ID mapping from that migration so both sets of identifiers stay aligned.

Before loading the full file, check a sample of rows against the live issues and confirm the result.

Import options and when each fits

This table compares the main configuration choices for a historical time entry import and the billing risk each one carries. Read each row as a decision: the option, when it fits, and what it can do to totals that finance relies on. The main takeaway is that activity and user mapping decide whether hours land in the right billing category and person, so resolve those before any test import runs.

ChoiceWhen it fitsRisk to billing reports
Map to existing activitiesYour timesheet categories already exist in Redmine as time tracking activities and match what finance reports onRows with an unmatched activity name fail or are skipped, so confirm the mapping table covers every name in the source file
Create activities firstThe source system uses categories that have no Redmine equivalent yet, and you want them defined before importNew activities also need to be enabled for the target projects, or entries may appear under a different category in reports
Match users by loginAccounts were created in Redmine with the same login names used in the historical exportA login that changed or was reused can attribute hours to the wrong person, which distorts cost and utilization figures
Match users by emailLogins differ between systems but work email addresses are stable and uniqueShared or retired mailboxes can map several people to one account, so check for duplicates before loading
Set date format explicitlySource exports use one consistent date layout that you can state in the import settingsDay and month swapped in an ambiguous format moves hours into the wrong billing period without an obvious error
Set decimal separator explicitlyExports use either a point or a comma for fractional hours, and the choice matches the fileA comma read as a thousands separator can inflate hours by large factors, so compare file totals with the imported sums
Import into open projects onlyBilling periods are still open and the team needs to correct entries after loadingEdits after import change invoiced figures if reports were already generated, so record the import date and totals
Import into closed projectsHistorical work belongs to projects that have since closed and you need complete records for audit or client disputesClosed projects may block new entries depending on settings, so confirm the import path with a test on a copy first

How to run a dry import before historical hours reach billing

This sequence moves historical timesheets through a copy of the Redmine database first, so totals per user, project and month can be reconciled against the source before any billing report depends on the imported hours. Each step ends with a check that the team can record and sign off.

  1. Export the source timesheets with full context

    The finance or delivery lead who owns the billing records exports time entries from the old system, covering every period that will feed invoices. The export should include the date, user, project, issue reference, activity, hours and comments, and it should be saved unchanged as the reference copy. Record the row count, the total hours and the date range in a short control sheet. The step is done when that reference file and its control figures are stored where the reconciliation team can reach them.

  2. Clean and normalize the CSV

    The data owner works on a copy of the export, not the original, to trim whitespace, standardize date formats, convert decimal separators, and remove test or duplicate rows. Each user name and project name is mapped to the Redmine login and project identifier, and any entry that cannot be matched is listed on an exception sheet instead of being guessed. Hours are checked for negative or zero values and for entries longer than a working day. The step closes when the cleaned file's row count plus the exception count equals the reference row count, and the hour total differs only by the rows moved to exceptions.

  3. Confirm users, projects, issues and activities in Redmine

    The Redmine administrator confirms that every user, project, issue and time tracking activity referenced in the cleaned file exists on the target instance, and creates any that are missing. Activities must be enabled for the projects where historical hours will be logged, and users must hold a role with the Log time permission on those projects. Imported issues should be identified by their Redmine IDs so the importer can link each entry correctly. The step is complete when a lookup of every distinct reference in the file returns a match, and the list of created objects is recorded for review.

  4. Run the importer against a copy of the database

    The administrator restores a recent backup of the production database into a separate environment that uses the same Redmine version and plugins, then runs the time entry importer from the Redmine interface on the cleaned CSV. Reviewing the importer's result page, the administrator notes any rows it rejects and the reason for each rejection. Rejected rows are corrected in the CSV and imported again on the copy rather than edited by hand in the database. The step ends when the copy imports without unexplained rejections and the entry count matches the expected count from the cleaned file.

  5. Compare totals per user, project and month

    The reconciliation team compares the imported copy against the reference export using Redmine's time report, grouped by user, project and month, and checks the results against the control sheet. Totals must match the source to the same precision, and any difference must trace back to a named exception row. They also sample a set of entries, including the first and last entries of each month and entries with unusual activities, and confirm the date, hours, user, issue link and comment match the source. The step closes when every grouped total reconciles or has a documented explanation, and the sample shows no mismatches.

  6. Confirm billing reports on the copy

    Before production, the finance lead runs the billing reports that will rely on these hours against the copy and compares them with figures from the old system for a sample of invoice periods. This check confirms that rates, activities, and project filters produce the same results after import. Any mismatch is traced back to the import data, corrected in the CSV, and the dry run is repeated. The step produces a signed reconciliation record stating the file version, the import date and the checks passed.

  7. Run the import on production and verify

    Once the dry run is signed off, the administrator takes a fresh backup of production, runs the importer with the same file version approved in the dry run, and repeats the row count, hour total and sampled entry checks on the live instance. The administrator keeps the backup and the reconciliation record together so the import can be reversed if a discrepancy is found. The step is complete when the production totals match the approved copy and the reconciliation record is filed with the billing team.

What to check before billing reports depend on imported hours

Imported timesheets feed billing, so errors that look minor in a CSV become invoice disputes later. The checks below run in order: totals first, then the rows that were rejected, then dates, activities and issue links. Each one catches a different way historical hours can drift from the source.

Reconcile totals by period and user

Before anyone runs a billing report, compare the sum of imported hours per user and per month against the source system's export. Use the same date boundaries on both sides, or a single day of hours will move into the wrong month. A mismatch here usually means a dropped row, a decimal separator read as a thousands separator, or a duplicate import run. Keep the reconciliation sheet with the import log so the figures can be explained later.

Review and log every rejected row

The importer refuses rows that fail validation, such as an unknown user, a missing activity, or a date outside the allowed range. A rejected row that nobody reads is hours that silently vanish from billing. Export the list of rejected rows, assign each one a cause, and fix the source file before re-running. Record the counts and the fixes in the import log so the decision to accept any remaining exceptions is traceable.

Check dates across time zones and locks

Source timestamps often carry a time zone, while Redmine stores a calendar date on each entry. An entry logged late in the evening in one zone can land on the next day after conversion, which shifts it into a different billing period. Also confirm whether any closed or locked periods block writes, and whether imported entries fall inside them. Agree the date convention with finance before the import, not after the first invoice run.

Confirm activity mapping is consistent

Each source activity, such as development, review or support, must map to one Redmine activity, and the same label must never map to two. Inconsistent mapping splits hours across activities so that rate tables and billable flags apply unevenly. Build the mapping table once, review it with the people who own billing rates, and check the activity totals against the reconciled figures. Activities that are disabled in Redmine may also reject rows, so verify their status first.

Verify issue links point to the right work

A time entry tied to the wrong issue reports hours against the wrong client or project, even when the totals balance. Match issues by a stable external identifier where the source has one, not by title, because titles repeat and get edited. Spot-check a sample of entries against the original tickets, and confirm the project on each linked issue matches the project the hours were logged to. Recheck any entries that point to issues moved or closed during the migration.

How a timesheet CSV moves through mapping, validation and reporting

The flow starts with a timesheet export from the source system, which is cleaned into one CSV. Columns are then mapped to Redmine users, projects, issues and activities before anything touches production. The same import runs first on a database copy, where totals are reconciled against the source before the production import feeds time reports. Each hand-off is a point to check, because a wrong user or activity mapping is hard to unwind once billing reports depend on the data.

The path from source timesheets to billing reports, with the reconciliation gate before production.

Permissions, personal data and audit trail during the import

Timesheets record who worked on what and for how long, so the import touches personal data and billing evidence at the same time. The cards below cover who runs the import, who can read the source file, how the backup and source CSV are kept, and how imported entries stay identifiable afterward.

Choose the account that runs the import

The importer needs rights to log time for other users, so it is usually run by an administrator or a tightly scoped account created for the job. Confirm which role permits editing time entries on behalf of others in your version, and that the account is disabled or its key revoked after the load. Do not run bulk imports under a shared personal login, because the audit trail will then attribute hundreds of entries to one person.

REST API docs

Limit who can read the CSV

A timesheet export contains names, work dates, hours and often free-text descriptions of client work, which may itself be confidential. Store the file in a restricted location, avoid email attachments and shared drives open to the whole company, and delete working copies once the import is verified. Ask your data protection lead whether the import counts as processing that must appear in your records.

Back up the database before loading

Take a database dump and a copy of the files directory immediately before the first real import run, and record the time and Redmine version alongside it. Because the importer writes time entries directly, a failed or partial load is easiest to undo by restoring that backup rather than deleting rows by hand. Test the restore on a copy so you know the procedure works before you depend on it.

Upgrade step, not import
db:migrate

Keep the source file as evidence

Retain the exact CSV that was loaded, with a checksum, the mapping decisions and the list of rejected rows, under the same retention rule as your billing records. When a client disputes an invoice later, this file shows what was entered at migration time versus what staff logged afterward. Agree the retention period with finance and legal before the import, not after.

Mark imported entries as migrated

If billing or audit reviews need to separate historical entries from live ones, decide the marker before the load. Options include a dedicated custom field on time entries, a reserved activity name or a comment prefix, and each option must survive reports and exports. Confirm with your Redmine administrator whether the chosen field is visible in the reports finance uses.

Restrict access to imported history

Historical time entries may cover projects or clients that current staff should not see. Review project membership and the time tracking permissions in each role before the load, and confirm that reports and the API do not expose hours to users who lack access to the underlying project. Test with a non-administrator account after the import finishes.

Questions buyers ask before importing historical timesheets

What drives the cost and effort of a Redmine time entry import?

The main drivers are how clean the source timesheets are, how many activities, users and projects must be mapped, and how many validation rounds finance and project leads need before they accept the data. Cleanup is usually the largest share of effort when the source is a spreadsheet kept by several people over years. Mapping work grows with the number of distinct activity names and with users who changed names or left the company. Costs are paid for analyst and engineering time, and the import script or template is a one-time item. Ask any partner for a quote that lists data profiling, mapping, test loads on a copy, validation passes and cutover as separate line items, with who signs off each one.

Can an internal team import historical timesheets into Redmine alone?

Often yes, if one or two people understand both the source data and Redmine's data model, and if the volume is modest. The built-in CSV importer added in Redmine 4.1 handles time entries, but it expects columns that match Redmine's fields, existing users, active projects, and activities that already exist in the target project. Teams without someone comfortable with the Redmine REST API or Rails console may find the matching and rejection handling slow. A useful test is whether your team can explain, for a sample of 20 rows, which project, issue, user and activity each row will land on and why.

What does the import need from finance and project leads?

Finance needs to confirm which historical periods are billable, which rates or cost centers apply, and which totals must reconcile against the old system or invoices. Project leads need to confirm which issues or projects the hours belong to, whether closed work should be linked, and how activities such as design or testing map to the new activity list. Both groups should sign off a reconciliation report before any billing report uses Redmine data. Agree in advance who approves exceptions, because unresolved rows are the most common reason the schedule slips.

How long does a time entry import take?

Duration depends mostly on the number of rows, the number of years of history, and how consistent the source is. A clean export with stable user IDs and a fixed activity list takes far less time than a history with renamed projects, free-text activities and duplicate accounts. Test loads on a copy of the database usually take more cycles than the final load, so schedule them before a billing cutover. Ask for a timeline that shows profiling, mapping, at least one full test load and the reconciliation pass, and check whether it assumes your own sign-off windows.

What happens to rows the importer rejects?

Rejected rows are not written to Redmine, so they must be recorded and handled outside the import. Common causes include unknown user logins, inactive projects, issues that do not exist or are not visible to the user, activities not enabled for the project, invalid dates, and hours outside the allowed range. A good process writes each rejection to an error file with its source line number and reason, then fixes the source data or mapping and reruns only those rows. Keep the error log with the reconciliation report, because auditors and billing reviewers will ask how every source hour was accounted for.

Can imported hours be corrected or removed after the import?

Yes, imported time entries are ordinary Redmine time entries, so they can be edited or deleted by users with the right permissions, and administrators can change them through the interface or the REST API, which must be enabled first. The practical limit is process, not software: once billing reports or invoices use the data, a correction needs an audit trail and a reason. Before the production load, agree who may edit imported entries, whether corrections are made in Redmine or the source, and how a correction is reflected in past reports. Keep a copy of each source file and the import log so any batch can be traced and, if needed, reversed.

What should we check in Redmine before running the import?

Confirm the Redmine version and its supported line, because the importer behavior and the API are the foundation of the work. Check that the users who will own imported time exist and are active, that each target project enables the activities used in the source, and that time tracking is enabled on those projects. Verify the custom fields and roles that determine who can log time, and back up the database and uploaded files before the test load. Redmine's upgrade guidance recommends the same backup discipline, and it applies here too.

How DeployOpen scopes and delivers a timesheet import

Every timesheet import starts with a written scope agreed before any data moves. DeployOpen's engagements are fixed-scope, so the scope document names the source files, the date range, the Redmine instance and projects receiving entries, and the reports that will depend on the result. Before quoting, DeployOpen builds a source inventory: every CSV or spreadsheet export, its delimiter and encoding, the columns that carry user, project, issue, activity, date, hours and comment values, and the rows that already contain errors. Ask for this inventory in writing from any partner, and confirm which of your own systems can produce a consistent export, since the time entry importer added in Redmine 4.1 only accepts the fields it is given.

The mapping decisions come next and need sign-off from the people who own billing and project reporting, not only from engineers. The mapping covers how each source user maps to a Redmine account, how source activities map to the activities enabled for each project, how issue references are matched to existing issues or left as project-level entries, and how dates and hour formats are normalized. Each rejected or ambiguous row should have a documented disposition. Before any import runs against your production database, DeployOpen performs a dry run on a copy of the Redmine database, and the client reviews the results. Your team should also confirm which Redmine version and database the copy must match, because the copy has to behave like production for the validation to mean anything.

Delivery ends with reconciliation evidence rather than a successful import message. The evidence typically compares total hours per user, project and month between the source export and Redmine, lists every skipped row with its reason, and records the import run and the mapping file version used. Retainer support is optional and covers the periods after the import, such as re-running a corrected batch, answering billing questions about specific entries, or retesting after a Redmine upgrade. Ask any provider to state in writing what the fixed scope includes, what a retainer would cover, and how an additional batch or correction is quoted.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.