Bulk importing data into OpenProject through the API
If your historical projects and work packages sit in a system OpenProject has no importer for, you will need to load them through the API yourself. The only built-in importer documented is the OpenProject Jira Migrator, and it covers Jira Data Center 10.x and 11.x only, not Jira Cloud. Any other source, whether a spreadsheet, another tracker or a custom database, needs a scripted load against the API. The OpenProject API and webhooks documentation is the starting point for that work. Before you commit to a build, confirm with your own environment which fields you must carry across and whether the source exposes stable identifiers for every record.
The main technical hurdle is that several attributes of imported records are read-only in normal use, including creation timestamps and the author. Administrators can enable write access to these read-only attributes, and the documentation describes this as useful for data imports. Treat this as a deliberate, time-limited control: decide who may switch it on, record when it was enabled and disable it once the load is verified. Confirm the exact setting name and where it lives in your OpenProject version against the API documentation, since the toggle is an administrative change that affects every user of the instance.
Plan the load as a repeatable script with a dry run against a non-production instance, a mapping table from source IDs to OpenProject IDs, and a reconciliation report that compares record counts, authors and dates after each batch. Batching matters because the API returns results in pages, so confirm the page size limits for each collection before you write the loop. Attachments need their own limits check, since the size and count your instance accepts may differ from the source. The checks you run after the load, and the sign-off on them, are what make the migrated history defensible to the teams who depend on it.
What the API load needs before the first record is written
A bulk load through the API writes records under an admin identity, into a specific OpenProject release, from a host that can reach the instance. Settle these preconditions first, because each one decides whether the load can preserve history and whether a failed run can be repeated safely.
Target version and edition
Record the exact OpenProject version and edition the load targets before writing any code. Confirm the version against the release notes, since API behavior and fields can change between releases. The Community and Enterprise editions differ in add-ons, so confirm that every feature your load touches exists in the target edition. Test against the same version you will run in production.
Release notesAdmin account and API credential
The load runs under a dedicated admin account so that the audit trail shows one clear actor. Create a credential scoped to that account and store it in your secrets manager, not in a script or shell history. Confirm the admin can create projects, work packages and users in the target instance. Plan to revoke the credential as soon as the load is signed off.
Admin switch for read-only attributes
Writing author, creation timestamp and similar read-only attributes depends on an administrator enabling that write access in the target instance. Check the switch in the staging instance and in production before the first test run, because a load that silently sets the current time as creation date will misstate the project history. Document who approved the setting and when it was turned on.
API and webhooks docsNetwork path from the loading host
The host that runs the load needs a reachable route to the OpenProject API, usually over HTTPS through the reverse proxy. Confirm the proxy allows the request sizes and timeouts a bulk run produces, and that firewall rules permit the loader's address. Test with a single read request before scheduling any writes, and confirm whether the loader traffic needs an allowlist in your network policy.
Staging instance for test loads
Run every load first against a staging instance built from the same version, configuration and identity setup as production. Use it to measure throughput, find rejected fields and check attachment handling. Reset it to a known state between runs so that each rehearsal starts from the same data. Production should only receive a load that has completed on staging with a clean reconciliation.
Source export format
Agree on the export format from the legacy system before mapping begins. Decide which fields are kept, how user identifiers are represented, and how parent and child items are linked. Ask the source owner for a sample export with edge cases such as deleted users, long descriptions and missing dates. A clean, documented export shortens the mapping work and reduces rework on the loader.
How to sequence a bulk load without losing history
The load order keeps authorship, creation dates and hierarchy intact, because each object exists before anything that references it is written. Each step ends with a check against the source so gaps surface while they are cheap to fix.
Enable write access on a staging instance
An administrator turns on the setting that allows writing read-only attributes such as author and creation timestamps, and does this on a staging instance first, never on production. The docs describe this switch as useful for data imports, so it is the starting point for preserving history. Confirm in the current API and webhooks documentation which attributes the switch covers for your release, and record the setting so it can be reversed after the load. The step is done when a test work package created through the API carries the author and creation date you supplied.
Map and create users and groups
Build a mapping table from each source account to an OpenProject user, matching on a stable identifier such as email address, and resolve duplicates and departed staff before writing anything. Create the users and groups first, because every later record stores an author, assignee or watcher that must already exist. Confirm with the owner of the identity system whether accounts should be created as active, locked or invited. The step closes when every source author and assignee resolves to exactly one OpenProject user, and the count of unmapped identities is zero or documented.
Create projects in dependency order
Create projects with their identifiers, statuses and parent-child structure, so that subprojects are written after their parents. Keep a log that maps each source project key to the new OpenProject identifier, since every later step depends on that mapping. Assign project memberships and roles from the group mapping created in the previous step. The step is complete when the project count and hierarchy in OpenProject match the source export, and a sample of project memberships is checked by hand against the source.
Load work packages parent first
Write parent work packages before their children, then write children in a second pass so each parent reference points to an existing record. Store the mapping from source issue key to new work package ID as each record is created, because relations, comments and attachments will refer to it. Set the historical author and creation date only where the staging check confirmed they are accepted. Pages of results should be read and written within the API page size limits, so batch sizes must be tested against the documented limits for your version. The step closes with a record count per project compared to the source, plus a reconciliation of twenty or so randomly chosen issues covering subject, status, assignee, author, and created date.
Add relations, comments and attachments
Write relations, comments and then attachments once all work packages exist and their IDs are mapped. Check the attachment size limits configured on the instance and the file types it accepts before the run, because a file rejected here leaves a silent gap in history. Keep the original timestamps and authors where the API accepts them, and note any item that could not be written with its reason. The step is done when attachment counts per work package match the source and a sample of files opens correctly and matches its checksum.
Run checks against the source
Compare totals for projects, users, work packages, comments and attachments against the source export, and investigate every difference rather than accepting an approximate match. Re-run a reconciliation of sampled records, checking status history, dates and assignees, since these show whether the historical attributes survived the write. Review the log of failed and skipped records with the business owner who can decide whether each one is acceptable. The step is complete when the differences are either zero or signed off in writing by the project owner.
Reverse staging settings before production
Repeat the same sequence on production only after a staging run has passed its checks, and then return the read-only attribute setting to its prior state so routine users cannot rewrite history afterwards. Record the exact versions, mapping tables and scripts used, so the load can be reproduced or audited later. Take a backup before the production run so a failed load can be reverted. The step closes when the production checks repeat the staging results and the setting is confirmed to be off in the admin configuration.
Why author and creation date need special handling
Out of the box, OpenProject treats attributes such as creation timestamps and author as read-only, so a naive API load stamps every imported record with the account that ran the script and the date of the load. For a historical migration, that means years of project and work package history would appear to have been created on a single day by a single service account. The fix is an administrator setting that enables write access to these read-only attributes, which the OpenProject API and webhooks documentation describes as useful for data imports. Confirm the exact setting name and where it lives in your installed version before you plan the script, because the import logic depends on it.
Treat that write access as a temporary state. Enable it only for the import window and revert it afterward. Scope the window in your runbook: enable the setting, run the load against a staging copy, verify, then repeat on production with the same steps, and switch the setting back off as the final step of the cutover. Anyone with administrative rights who leaves the switch on can later create records with backdated authorship, so the change should be logged in your change management system and checked during the post-load review. Ask whether your OpenProject installation's audit or log output records the setting change itself, since that record is what an auditor will ask for.
Writing historical authorship has audit consequences. Imported work packages will show the original authors and dates, which is what most teams want for continuity, but the record of who actually performed the load must still exist somewhere. Keep the migration script, its input file and the mapping from source users to OpenProject accounts as part of the project's evidence. Note that backdated entries can make the activity history look like it was produced by people who were not active in the system at that time, so the mapping must be reviewed with the business owners before loading. Under data protection rules, historical user data may also carry retention limits, which should be settled before records are imported.
How source fields map to OpenProject attributes
This table compares common source fields from a legacy tracker with the OpenProject attribute or API endpoint that receives them, and marks whether each target is writable by default. Read it as a checklist: any row marked read-only or admin-gated must be handled by your load script, and any row the Jira Migrator covers is one you may not need to build yourself.
| Source field | OpenProject target | Write behavior | Covered by Jira Migrator |
|---|---|---|---|
| Project name, identifier, description | Project resource (name, identifier, description) | Writable through the projects endpoint; identifier is fixed once set | true |
| Issue summary and description | Work package subject and description | Writable on create and update | true |
| Issue status | Status resource, set via the work package status link | Status must exist in the target workflow for the type | true |
| Issue type | Type resource, set via the work package type link | Type must be enabled for the project | true |
| Fix version or release | Version resource, linked from the work package | Versions are created per project before linking | true |
| Custom field values | Custom field attributes (customField1 and so on) | Field must exist and be enabled for the type and project first | true |
| Original reporter or author | Work package author link | Read-only by default; needs the admin write setting for imports | false |
| Original creation date | Work package createdAt timestamp | Read-only by default; needs the admin write setting for imports | false |
| Assignee and watchers | Assignee link and watcher relations | Assignee must be an active member of the project | null |
| Users and group membership | Users and groups endpoints, memberships | Users must exist before assignment; deactivated users cannot be assigned | null |
| Attachments | Attachments endpoint on each work package | Upload is per file, with the instance file size limit applying | false |
Protecting the load credentials and the imported data
A bulk load runs with more privilege than daily use: it can write authorship and timestamps, and it places historical files where users will open them. The controls below limit who can do that, for how long, from where, and with what record, so the load leaves nothing open once it finishes.
Dedicated integration account
Create a separate user for the load instead of reusing an administrator's account. Give it only the project roles the import needs, scoped to the target projects, and no global admin rights. Confirm in your own instance which permissions each role grants before you assign it, because a role that can edit work packages in one project should not also manage users or settings. Remove the account when the load ends.
API and webhooks docsShort-lived, scoped credentials
Use a personal API token tied to the integration account and set an expiry that matches the load window. Store the token in your secrets manager, not in scripts or shell history, and rotate or revoke it immediately after the final batch. Ask your administrator to confirm whether API token authentication is enabled on your instance, since that setting is controlled by an admin.
Revoking the write setting after the load
The setting that allows writes to read-only attributes such as author and creation timestamps should be on only for the load. Record who enabled it and when, switch it off once the final batch is verified, and confirm with a test write that the attribute is now protected again. Leaving it on lets any future integration or user with access to the API backdate or reattribute records.
Restricting the loading host
Run the import script from a fixed host or a small set of addresses, and allow those addresses through your reverse proxy or firewall for the API path only. Use TLS for every call and avoid running the load from a laptop on an open network. Confirm with your network team which hosts can reach the OpenProject API before the load starts and remove the rule after the final batch.
Logging every API write
Keep a record of each create, update and attachment upload the script makes, with the time, account, target project and returned identifier. Compare that log with OpenProject's own activity history after the load. Store the log outside the OpenProject host so a failed or rerun load cannot overwrite it, and agree the retention period with your records and compliance owners.
Scanning imported attachments before users see them
Historical attachments come from systems that may never have scanned them. Pass each file through an antivirus or malware scan before upload, quarantine anything flagged, and keep rejected files out of the load. Confirm whether your OpenProject edition includes a virus scanning feature or whether scanning must run in your own pipeline, and document the decision with the scan results.
Questions teams ask before writing their own import
Can our internal team write a bulk import for OpenProject without a partner?
Yes, a capable internal team can write one, because OpenProject's API v3 accepts writes that a normal user interface cannot make. The harder part is not the HTTP calls but knowing which attributes are read-only, which need an administrator to enable write access, and how your old records map onto work package types, statuses and users. Teams that own a script usually also own its maintenance, reruns and verification. Before committing, ask whether your staff have time to build a mapping, test against a non-production instance and sign off on the results. A partner's fixed-scope quote should list those same tasks so you can compare them with your own effort.
What makes a bulk import to OpenProject take more effort?
Four factors drive effort most. Source complexity matters first: custom fields, hierarchies, relations and workflow states each need a mapping decision. Volume matters next, because large histories require paginated reads and writes that must be retried safely. Attachments add storage checks and per-file limits to plan around. User matching is often the largest hidden task, since authors, assignees and watchers must exist as OpenProject users before their records load. Ask any provider to break its estimate down along these four factors, and to state which assumptions depend on your export format.
What do we need to provide before an import engagement starts?
The work needs four inputs from your side. First, complete exports of the source projects, with field definitions and any attachment archives. Second, a current list of users with their names, email addresses and group memberships, so matching can be agreed. Third, the target structure: which projects, work package types, statuses and custom fields should exist in OpenProject. Fourth, a named person who signs off the field mapping and the trial load before the full run. Without that sign-off, a load can succeed technically and still place history under the wrong project or author.
How long does a bulk import take?
Duration depends on the scope you agree, not on a standard number. The main variables are how many projects and work packages are in scope, how many attachments need to move, how many source fields need mapping decisions, and how many rounds of trial loads your team needs to approve. A narrow import of one project with clean exports is a different job from a multi-year history with custom fields and many users. Ask for a schedule with separate phases for mapping, trial loads, the full run and verification, and confirm which phases depend on your review turnaround.
Can we use the built-in Jira Migrator instead of writing our own import?
Use it only if your source matches what it supports. The OpenProject Jira Migrator imports from Jira Data Center 10.x and 11.x, not Jira Cloud. It covers projects, issues, versions, custom fields, users, groups, statuses and types. Issue relations and sprint assignments are listed as coming soon, and workflows and permissions are planned for later. The documentation is in beta and advises use only in test setups. If your source is Jira Data Center 10.x or 11.x and you can accept those gaps, evaluate the migrator first. Otherwise, a custom API import is the realistic route, and the migrator's documentation is a useful checklist of what to map.
Which OpenProject attributes can an import script not write by default?
Read-only attributes such as creation timestamps and author cannot be set through normal API use. OpenProject's documentation says administrators can enable write access to these read-only attributes, and describes this as useful for data imports. Enabling it is an administrator decision with a visible effect on record integrity, so record who approved it and when. Confirm the exact setting name and its location in your installed version before you write the script, because the admin area can change between releases. After the load, check that historical authors and dates appear as intended, not the account that ran the script.
How do we check an import after it finishes?
Verification should compare counts and samples against the source, then check the fields that the import is most likely to get wrong. Compare the number of projects, work packages, comments and attachments with the export. Spot-check parent and child links, custom field values, statuses, assignees and dates, including historical authors and creation timestamps. Keep the load log, the mapping file and the list of skipped records so the sign-off is evidence rather than a judgment call. Ask any provider how the verification report will show failed records and how reruns avoid duplicates.
Failures that appear during and after a bulk load
This table lists the failures teams most often hit when loading historical projects and work packages through the API, with the cause and fix for each. Read it before the first test load, then use it to triage rejected records and count mismatches after each run.
| Failure | Likely cause | Fix |
|---|---|---|
| Writes to read-only attributes rejected | The administrator setting that allows writing read-only attributes such as author and creation timestamps is off | Enable the setting in the administration area for the load, load historical attributes, then switch it back off and record when you did so |
| Large reads cut off partway | The API returns pages up to a size limit, so a single request does not return every record | Paginate every read using offset and page size parameters, and confirm the total count matches the source before trusting the result |
| Attachments rejected | The file exceeds the configured maximum size or the work package reached its attachment count limit | Confirm the instance limits with your administrator, split or compress oversized files, and log each rejected file for a manual decision |
| Children loaded before parents | Work packages reference a parent that does not yet exist in the target, so the relation or hierarchy write fails | Load in two passes: create all parents first, store the source-to-target ID map, then attach children and relations |
| Duplicate users after matching | Source users are matched to accounts by inconsistent keys such as email case, display name or username, so one person gets several accounts | Define one matching key before the load, normalize it, run a dry-run report of matches and near-matches, and resolve conflicts by hand |
| Counts drift between source and target | Failed records are skipped silently, pagination is incomplete, or retries create duplicates | Compare record counts per project and type after each run, reconcile against the ID map, and rerun only the failed set using stored keys |
Which checks confirm the load is complete and correct
This sequence turns a finished API load into evidence that the right projects and work packages arrived, with the historical attributes intact and the write setting returned to its original state. Each check produces a record that the team can sign off against the source system.
Reconcile project and work package counts
Compare the number of projects, work packages and types loaded against the counts exported from the source system for the same scope. Run the counts per project and per work package type, not only in total, so a gap can be traced to one batch. The step is done when every project has a matching count or each difference is explained by a logged rejection from the load script. Keep the query and the output in the run record.
Sample authors and creation dates against source
Pick a sample of work packages, including the oldest, the most active and those touched by departed staff, and compare the author, assignee and creation timestamp with the source record. Confirm that the historical values were written and not replaced by the account that ran the import. Any mismatch points back to the write setting or to the mapping of user identifiers, so record which one you suspect before fixing it. The step is done when the sample passes or each failure has a documented cause and fix.
Confirm parent-child and version links
Check that child work packages point to the correct parents, that hierarchies match the source tree, and that work packages sit in the intended versions. Walk a few deep hierarchies from top to bottom in the interface and compare them with the source outline. Orphaned children or links to the wrong version usually come from load order, so confirm that parents were created before their children. The step is done when the hierarchy checks match the source and the orphan list is empty or explained.
Check custom field values
Verify that custom fields were populated with the converted values, including list options, dates, numbers and user references. Compare a sample of records per custom field against the source, and confirm that empty source values did not become default values by accident. Pay attention to fields that exist only on some work package types, because the load may have skipped them where they are not enabled. The step is done when each custom field has been checked on a sample and every conversion gap is recorded.
Open a sample of attachments
Download and open a sample of attachments from different projects, file types and sizes, and confirm that each file is complete and readable. Compare file names and sizes with the source manifest, and check the attachments that were close to your configured size limit, since those are the most likely to be truncated or rejected. Record every attachment that failed and whether it was retried. The step is done when the sampled files open correctly and the failure list is closed or accepted by the owner.
Review audit trail entries
Review the journal entries and audit records created by the load to confirm that the imported history reads correctly and that the load's own activity is identifiable. Check that the dates on journal entries follow the source timeline and that the load account is recorded where you expect it. This review also shows whether any unexpected changes, such as status transitions triggered by workflows, occurred during the run. The step is done when the audit review finds no unexplained changes or each one has been reviewed and accepted.
Revert the write setting and document the run
Turn off the administrator setting that allowed writes to read-only attributes, then confirm that the setting is off and that a test write of those attributes is refused by the API. Store the load script version, the source extract, the counts, the sample results, the failure list and the time of the revert in one run record. Note the OpenProject version the load ran against so future runs can be compared. The step is done when the setting is confirmed off and the run record is complete.
Sign off the load with named owners
Present the run record to the business owner of each migrated project and to the administrator who ran the load. Each owner confirms in writing that their scope is complete or lists the open items with a planned fix, and the administrator confirms that the write setting was reverted. Keep the signed record with the project archive so auditors and future teams can see what was loaded and who accepted it. The step is done when every owner has signed off or the open items have named owners and a fix date.
How the loading host, OpenProject API and checks fit together
The flow starts with the source export, which is transformed and validated on a loading host before anything reaches OpenProject. The loading host calls the API v3 with a scoped credential, first against a staging instance and then against production, so each batch is proven before it touches live data. The final step compares record counts and sampled work packages back to the source, and that comparison is what decides whether the load is accepted. Confirm the credential scope and the write-access setting for read-only attributes before the first run.
Data moves from export through validation to staging and production, then reconciles against the source.
How DeployOpen scopes and delivers an API-based import
DeployOpen treats a bulk import into OpenProject as a fixed-scope piece of engineering, not a data dump. We agree the source data, the target projects and the attributes that must be preserved in writing, then build, test and verify the load in a staging instance before it touches production. Each step is documented so your team can rerun or audit it.
How we scope
- Inventory the source systems, export formats and the projects, work packages and history that must move.
- Agree in writing which read-only attributes, such as author and creation date, need write access and who approves that change.
- Define the page size, attachment limits and volume per run, and the post-load checks that count as acceptance.
How we build
- Write the loader against the OpenProject API v3 with a mapping file that ties each source field to a target attribute.
- Test each run in a non-production instance, including attachment handling, parent and relation links and user matching.
- Keep the importer repeatable, with logs that record which source record created which OpenProject record.
How we hand over
- Deliver the mapping, the loader code, the run runbook and the verification scripts under your repository.
- Document how the write access to read-only attributes was enabled and how it is switched back off after the load.
- Walk your administrators through a dry run and the reconciliation report that shows counts and exceptions.
How we support
- Engagements are fixed-scope, so changes to the mapping or volume are priced through a written change request.
- Ongoing support, upgrades and continuous testing are available as a retainer, including checks after OpenProject upgrades.
- Confirm with your own team how long the source data must stay available and who signs off the final reconciliation.

