OpenProject Excel synchronization for bulk import and updates

Move task lists between Excel and OpenProject with the OpenProjectAPI macro workbook, including the required columns, hierarchy and relation handling, and the checks that prevent overwritten work.

On this page

How OpenProject Excel synchronization works for bulk import and updates

A planning team that keeps its task lists in Excel and needs them in OpenProject, or the reverse, can use the supported method: the OpenProjectAPI macro-enabled workbook from the OpenProjectExcel GitHub project. This is a workbook-driven integration, not a built-in OpenProject feature, so the workbook itself carries the logic that talks to your instance. You connect it with the instance URL, an API token, a project identifier and, if you want to work from a saved view, an optional query ID. Each of these values is a decision point: the token should belong to an account with only the rights the planners need, and the project identifier must match the project you intend to change, not a similarly named one. Confirm with your own administrator which account and token type your instance accepts before the first run.

In practice, the workbook downloads work packages for a project or for a saved query, so the team edits the current state in a familiar grid. It then uploads new work packages and changed existing ones. Changes are only as safe as the record each row points to, so the workbook relies on the Lock Version, ID and Subject columns together with the Update status column. Treat those four columns as non-negotiable and do not rename or delete them. The workbook also handles custom fields, parent and child hierarchies and relations, but only for attributes that already exist in the target project. If a custom field or work package attribute is missing, create it in OpenProject first, then download a fresh copy of the workbook so its column layout matches.

Before you rely on the workbook for production data, run a test with a small copy of a project and check what changed in OpenProject against what you intended. Confirm the workbook version against the current documentation and the macro settings your security team allows, because macro-enabled files are a common control question in regulated environments. The OpenProject Excel synchronization documentation sets out the exact setup steps and should be the reference for column names and connection settings at the version you run.

What you need before the first Excel sync

The workbook only works when the instance, the account, the workstation and the project's configuration line up before the first download. Check these four areas and the network path together, because a failure in any one of them looks like a workbook error.

The target OpenProject instance

Confirm the instance URL the workbook will connect to, and whether it is the production or a test instance. Ask the platform team which edition and version run there, since the workbook needs the instance URL, an API token and a project identifier to connect. Record the project identifier now, and decide whether you will use a saved query ID to limit the download. Test first on a non-production copy whenever the data matters.

Excel sync docs

A user with an API token

Create or select a named user account for the sync and generate an API token for it, so changes are attributed to a person or service identity in the audit trail. The account needs the role permissions to read and edit work packages in the target project, and nothing broader. Ask the platform team whether personal API tokens are allowed for that account, and store the token in your password manager rather than in the workbook.

Project permissions for read and edit

Check that the account can see every work package it will download and can edit those it will upload. A missing permission usually shows up as rows that silently fail to update or that never appear in the download. Confirm access to the project and to any saved query you plan to use, and test it with one row before running a full upload.

Macro-enabled Excel policy

The OpenProjectAPI workbook is macro-enabled, so your workstation policy must allow it to run. Confirm with your security team whether macros are allowed for files from this source, whether the workbook must be signed or stored in a trusted location, and whether the sync can run on managed devices. Plan for a workbook saved in the macro-enabled format, not the standard .xlsx format.

OpenProject on GitHub

Project attributes that must exist first

Every custom field, work package type and status used in a spreadsheet must already exist in the project before upload. Export the attribute list from the target project and compare it with the column headers in your file. Missing attributes are a common cause of failed rows, so create them in the administration area first, then reconcile the columns and the Update status, Lock Version, ID and Subject columns.

Network path and TLS trust

Confirm with the platform team that the workstation can reach the instance over the network, including any VPN, proxy or firewall rule on the path. Ask them to check that the TLS certificate chain for the instance URL is trusted by the workstation, including any internal certificate authority. A certificate error or a blocked port stops the connection before the workbook can read a single row.

Configuring the OpenProjectAPI workbook in sequence

This sequence takes a team from a blank Excel file to a verified connection that can download work packages from OpenProject and upload changes safely. Each step closes with a check so that errors surface on a test project before live data is touched.

  1. Obtain the workbook from the OpenProjectExcel project

    An administrator or project lead downloads the OpenProjectAPI macro workbook from the OpenProjectExcel project on GitHub and stores a copy in a controlled location. Keep the file name and version recorded so that the team can tell which workbook produced which upload. The step is done when the file opens locally and its sheets match the layout described in the OpenProject Excel synchronization documentation.

  2. Enable macros under the organization policy

    Macros are disabled by default in many organizations, so the IT or endpoint team decides whether this macro-enabled workbook may run and under which trust settings or signing rules. Confirm the policy with your security team before users are asked to enable content, and document where the file may be stored. The step is done when the workbook runs its macros on a pilot machine without bypassing the policy.

  3. Enter instance URL, API token and project identifiers

    The user enters the OpenProject instance URL, a personal API token, the project identifier and, optionally, a query ID in the workbook's configuration area. Create the token under a service or named account that has only the permissions the sync needs, and confirm with your administrator how tokens are rotated and stored. The step is done when the workbook reports a successful connection to the instance without errors.

  4. Run a first download to a test project

    Before using a production project, create or choose a test project in OpenProject with a few work packages, then run the download with its identifier. Compare the rows returned with the work packages shown in OpenProject for that project or query, checking subjects, IDs and parent relationships. The step is done when the downloaded rows match the expected work packages one for one.

  5. Confirm Lock Version and ID values

    Check that the Update status, Lock Version, ID and Subject columns are present, because the workbook depends on them to match rows and detect conflicts. Compare the ID and Lock Version values for a sample of rows with the values on the work package pages in OpenProject. The step is done when those values agree exactly, and any missing column or attribute has been created in the project before going further.

  6. Edit rows and run a test upload

    Make a small, controlled change in the test project, such as adding one new row and editing the subject of one existing work package, then run the upload. Watch the Update status column for the result of each row, since failed rows usually indicate a missing attribute, a stale Lock Version or an invalid value. The step is done when one new row is created in the test project and the edited row shows the new subject.

  7. Verify results and repeat the download

    After the test upload, download the project again and check that the new work package appears with a valid ID and the expected parent or relation values. Review the OpenProject activity history for the changed items to confirm who made the change and when. The step is done when the fresh download reflects every test change and the team has agreed on the procedure before it is used on live projects.

How Excel columns map to OpenProject work package attributes

This table compares the workbook columns that identify, version and shape work packages in OpenProject, and shows what each one does during download and upload. Read it before preparing a bulk file, because the required columns and the custom field and relation columns decide whether a row updates an existing work package or fails. Confirm exact headers in the workbook version you use before building any template.

Column groupRole in the syncWhat to check before uploadWhere it usually fails
Update statusRequired. Marks whether a row is to be written back to OpenProject.Set it on every row you intend to change, and leave it unset on rows that should be ignored.Rows edited without the status set are skipped, so the change looks lost.
Lock VersionRequired. Carries the version the work package had when downloaded.Do not clear or edit it. Re-download the project after other users change work packages.Stale values trigger conflicts when someone else edited the same work package.
IDRequired. Identifies the existing work package to update.Keep the value from the download. New rows need the ID left empty so OpenProject creates them.Copied or typed IDs point to the wrong work package or to none at all.
SubjectRequired. The work package title.Fill it for every new row. Changes here update the title on existing rows.Blank subjects block creation of new work packages.
Parent and child columnsBuild the hierarchy between work packages in the project.Reference the parent by its ID. Confirm the header name in your workbook version.Parents created in the same upload may not have an ID yet, so create them in a first pass.
Relation columnsLink work packages to each other, such as predecessors or related items.Confirm which relation types the workbook supports and that both work packages exist.Relations to work packages outside the downloaded query or project are often rejected.
Custom field columnsCarry project-specific attributes into and out of OpenProject.Create each custom field in the project first, then confirm the column header matches it.A column for an attribute missing in the project has no target and will not write.

How Lock Version protects existing work from overwrites

Lock Version and ID are what keep a spreadsheet upload from silently overwriting work another person has already changed. Each work package in OpenProject carries a lock version that increases as the item is edited, and the workbook sends that value back with the row. The ID column identifies which work package the row updates. Together they tell the workbook which record the row refers to and which version of it the editor saw. When several people edit the same project, a row exported on Monday may describe a work package that someone has since changed in the browser. Its Lock Version then no longer matches the live record, so the update is the thing to check, not the assumption that the spreadsheet is current. Because the Update status, Lock Version, ID and Subject columns are required, do not remove or rename them when preparing a file.

The practical control is a freeze and a fresh download. Before a bulk upload, agree a window in which the people who edit the target project stop changing its work packages, and tell them when it closes. Then download the project or query again through the OpenProjectAPI macro so every row carries current Lock Version values, make the edits in that copy, and upload it. Do not re-upload a workbook that was downloaded earlier, even if you believe nothing has changed, because the stored versions are the only evidence of what the editor last saw. If a freeze is not possible, split the work so that rows for busy work packages are handled separately, and confirm with the team which records were touched during the window.

The facts supplied for this topic do not describe how the workbook reacts to a stale Lock Version, whether it skips the row, reports it, or overwrites it. Do not assume either outcome. Build a test in a staging instance: change a work package in the browser after downloading a copy, upload an edit to the same row, and record what happens to the value you changed. Repeat the test with a deleted work package and with a changed relation or parent to see how the workbook reports each case. Write the observed behavior into your upload runbook so operators know what a rejected row looks like before they run the process against production.

How data moves between the workbook and the instance

The flow starts on the analyst's workstation, where the macro-enabled OpenProjectAPI workbook holds the instance URL, an API token, a project identifier and an optional query ID. Downloads pull work packages from the target project or saved query over HTTPS into the sheet. Uploads send new and changed rows back, and OpenProject checks each row's Lock Version before it saves, so a row edited by someone else since the download is flagged rather than silently overwritten. Confirm that the token's user has the permissions needed for the project before you start.

Downloads and uploads between the macro workbook and the instance, with the Lock Version check.

Securing the API token and the workbook

The OpenProjectAPI workbook carries an API token that can read and write work packages, and it runs macros that change data. The controls below cover who the token belongs to, where it is kept, who may run the code and how changes stay traceable, so the spreadsheet does not become an unmanaged write path into your project data.

Scope the token narrowly

Issue the token to a dedicated service account or a named user who holds only the project roles the sync needs. A token inherits the rights of the account behind it, so an administrator token used for a routine task-list upload can edit far more than the team needs. Before you start, confirm with your OpenProject administrator whether personal API tokens are enabled on your instance, because that switch decides which token types you can issue. Decide token type and lifetime using the API token guidance, not this page.

Excel sync docs

Keep the token out of the workbook

Do not paste the API token into a cell, a sheet or a file name, because anyone who receives a copy of the workbook receives the credential with it. Store the token in the place your organization uses for shared secrets, and give it to users only for the session they need. If a token is exposed, revoke it in OpenProject and issue a new one, then update each workbook that used it. Ask your security team how they want shared secrets rotated, since the rotation schedule belongs to your policy.

Restrict who runs macros

The workbook depends on macros to read and write work packages, so anyone who can run them can change the connected project. Limit the file to the people who run the sync, and store the master copy in a location with controlled write access. Confirm how your Excel deployment handles macro settings, including whether users can enable macros from a trust prompt or whether a central policy blocks them. Restrict who may edit the macro code itself, separately from who may run it.

Review the OpenProjectExcel source

The OpenProjectAPI macro comes from the OpenProjectExcel project on GitHub, so treat it as third-party code. Before you enable macros, read the version you plan to use, check which hosts it contacts, and compare the code against the version you approved. Record the version and the source location in your change records. Re-review the code whenever you update the workbook, since an updated copy is a new piece of code running with your token.

Keep an audit copy

Save a dated copy of each workbook before an upload and a copy of the downloaded state after it. Those copies let you show what was sent, which rows changed and who ran the sync when a work package value is questioned later. Keep the copies in a store with access logging and a retention period that matches your records policy. The OpenProject audit trail on each work package shows the change, but the copy shows the input that produced it.

Test changes on a non-production project

Run the first upload of a new workbook version against a test project on a non-production instance, using the same token scope planned for production. Confirm that the workbook writes only to the intended project and that a dry run of unchanged rows does not modify work packages. Keep the test results with the approval for the production rollout. This check verifies the controls above, not just the mapping of columns.

Testing an Excel import before it touches production

A first load creates work packages that do not yet exist, so the main risk is that the workbook creates the wrong number of items, assigns the wrong types or statuses, or fails on a column that the target project does not have. Run the first test in a separate test project that has the same work package types, statuses and custom fields as the production project. Use a small sample of rows that covers each type, each status and at least one row with a custom field value, and confirm that attributes missing in the project are created before the upload rather than during it.

  • Test project: Create a dedicated project for the test and give it a clear name so the test set can be found and removed later.
  • Sample selection: Choose rows that represent every work package type, status and custom field used in the source list, not just the first rows of the file.
  • Count comparison: After upload, compare the number of created work packages with the number of rows marked as new in the workbook, then download the project again and confirm the counts match.
  • Field comparison: Check subjects, types, statuses and custom field values against the source for each sampled row, including dates and text with special characters.
  • Rollback: If the test is wrong, delete the test set or restore the test project from a backup taken before the run, then repeat the sample with the corrected workbook.

Before the production load, confirm that the workbook's ID and Lock Version handling behaves as the documentation describes for newly created rows in your version of the workbook.

Why Excel uploads fail and how to fix them

This table lists the failures teams most often hit when uploading work packages from the OpenProjectAPI workbook, with the cause and fix for each. Read it before a bulk load, and use it as a checklist when a run rejects rows or returns errors.

FailureLikely causeFix
Missing required columnsUpdate status, Lock Version, ID or Subject column was removed, renamed or left out of the sheetRestore the four required columns with their original headers before downloading or uploading again
Rows rejected for stale Lock VersionWork packages changed in OpenProject after the workbook was downloaded, so the Lock Version no longer matchesDownload the project or query again, reapply the edits to the fresh copy, then upload
Attribute or custom field not foundThe attribute is not enabled for the project or the custom field does not exist yetCreate or enable the attribute in OpenProject first, then download again so the column appears
Wrong project identifier or query IDTypo in the project identifier, or a query ID copied from another instance or deleted queryConfirm the identifier in the project URL and the query ID in the saved query, then reconnect the workbook
Macros blocked by policyEndpoint or Office policy disables macros, or the file was saved as a non-macro workbookAsk the IT team to allow the signed or approved macro workbook, and save as a macro-enabled file
Token lacks permissionsAPI token belongs to a user without view or edit rights in the project, or the token has expiredUse a token from a user with the needed project roles, and confirm the account can edit work packages
Parent or relation references a missing IDChild or related row points to a new work package that has not been created yet, so no ID existsCreate parent rows first, upload in passes, then fill parent and relation columns once IDs are assigned

Questions teams ask before running Excel synchronization

Can an internal team run OpenProject Excel synchronization without a partner?

Yes, a team with OpenProject administration skills and someone comfortable with macro-enabled workbooks can usually run the OpenProjectAPI workbook alone. The workbook connects with the instance URL, an API token, a project identifier and an optional query ID, so the setup itself is small. The harder part is the surrounding work: agreeing the column set, creating missing attributes in each project, checking how hierarchy and relations are written, and testing on a copy before touching live data. Teams without that experience, or with many projects to load, often choose a partner for the mapping and test cycle. Confirm the workbook setup steps against the OpenProject Excel synchronization docs before you commit.

What drives the effort of an Excel synchronization project?

Effort rises with the number of projects, the number of custom fields, how deep the parent and child hierarchy goes, and how many relations must be carried over. Each project needs its own inventory of attributes, because the workbook requires attributes missing in the project to be created first. Macro approval also adds effort: your security team may need to review the OpenProjectAPI macro, sign it or allow it through policy before users can run it. Ask for a field inventory per project, a list of relation types in use, and a decision on whether the workbook is the long-term editing tool or a one-time loader.

How long does a first Excel load take?

The duration depends on the row count, the number of projects, how many custom fields need mapping, and how much testing you require before live loads. No duration figure is supplied for this topic, so treat any number you see elsewhere as unverified. A practical approach is to plan a test instance run with a representative subset, record every error, fix the mapping, and then schedule the full load in a window agreed with the project owners. Ask any provider for a written plan with the test rounds, the acceptance checks and the cutover steps, rather than a single overall number.

What must our team provide before the synchronization work starts?

Three things unblock the work quickly: a test instance of OpenProject that mirrors production, an API token for an account with the permissions needed on the target projects, and a field inventory listing each project, its work package types, custom fields, statuses and the query IDs you want to download. Without the field inventory, the mapping stalls, because the workbook needs the exact attribute names and columns. Also provide a sample export of the source task list and the names of the people who will approve the test results.

Is the Excel workbook supported on both Community and Enterprise editions?

The supplied facts do not state edition support for the OpenProjectAPI workbook, so confirm it before you plan. Check the OpenProject Excel synchronization docs for any edition note, then test the exact version you run on a test instance. Also confirm that your API token settings allow the access the workbook needs, since token handling depends on your administration setup. Record the answer in writing, including the OpenProject version tested, because the workbook depends on the API behavior of that release.

When is a bulk importer or the API a better fit than Excel?

Use the Excel workbook when business users need to load and edit task lists in a familiar format, and when the data set is modest and the attributes are stable. Consider a bulk importer when you are moving data from another tool. The OpenProject Jira Migrator, for example, imports from Jira Data Center 10.x and 11.x only, is in beta, and its documentation advises test setups only, so it does not fit every move. Consider direct API loading when you need repeatable scripts, read-only attributes such as author or creation date, or checks you can run automatically after each load. Both paths need a test run first.

What breaks most often during Excel synchronization?

The most common failures come from mismatched attribute names, missing required columns and stale lock versions. The workbook requires the Update status, Lock Version, ID and Subject columns, so a file with a renamed or dropped column will fail. A lock version that no longer matches the server means someone changed the work package after the download, so the upload must be rerun from a fresh download. Parent and relation columns fail when the referenced work package is not in the same batch or the relation type is not set up. Test each of these cases on the test instance and write the fix into the runbook.

How DeployOpen scopes and delivers Excel synchronization work

DeployOpen approaches OpenProject Excel synchronization as a fixed-scope piece of work agreed in writing before any build starts. We set up the OpenProjectAPI workbook against your own OpenProject instance, test it on your projects, and document how your teams run each import and update.

How we scope

  • Confirm which projects, work package types and queries the workbook will download and upload
  • List the custom fields and parent or relation columns that must exist in each project first
  • Agree in writing who runs syncs, which API tokens are used and where the workbook is stored
  • Engagements are fixed-scope, with deliverables and timelines agreed before work begins

How we build

  • Configure the workbook with your instance URL, project identifier and optional query ID
  • Check that Update status, Lock Version, ID and Subject columns are present and correctly mapped
  • Test download, new-row upload and changed-row upload on a copy of real project data
  • Verify parent, child and relation handling against a sample hierarchy before wider use

How we hand over

  • Deliver a written runbook covering the sync steps, column rules and common upload errors
  • Document which attributes must be created in OpenProject ahead of each bulk load
  • Walk your project leads and administrators through a supervised import and update
  • Record the macro-enabled workbook version and the configuration values used for the handover

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Review the workbook again when OpenProject releases change API or attribute behavior
  • Retest custom field and relation handling after your project templates change
  • Ask any provider to confirm the workbook's current support status and compatibility with your release

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.