Skip to content

Migrating from Comala to Aura Workflows

Aura Workflows ships with a migration feature that transfers your existing workflow assignments from Comala Document Management (both Cloud and Data Center) into Aura Workflows. Each page’s current state is preserved, so content keeps moving from where it left off after the switch.

The importer reads a JSON file describing which page was running which workflow and what state it was in. The Comala migration script generates this file for you; if you’re moving from a different workflow app, the same JSON shape can be produced by any tool that knows your data. Reach out to support before starting a non-Comala migration so we can help shape the file.

Migration brings two things across: the link between a page and its workflow, and the page’s current state. Aura Workflows looks up the page by space key and title, finds the workflow by name, finds the matching state by name, and applies the workflow with that state set as current.

Approval history, prior reviewers, comments on past reviews, and the record of transitions in the legacy app do not come across; those stay in the source tool’s storage. A page halfway through an approval lands in that state cleanly in Aura Workflows, with no pending reviewers and no in-flight approval; anyone who needs to act starts fresh.

If you’re moving from Comala Data Center to Confluence Cloud, you can keep that history readable: the activity script writes each page’s Comala workflow activity into an HTML attachment on the page itself, so it travels to Cloud with the page. See Preserve Comala workflow history.

You’ll need Site Admin permissions in Confluence to access the migration UI. The target workflows must already exist in Aura Workflows before you migrate, ideally with state names that match what you used in Comala. We provide the migration script bundle on request: ask support and you’ll receive a small archive containing:

migration-bundle.js # The migration script
activity-bundle.js # Optional: attaches Comala history to pages (Data Center)
.env.example # Template for your configuration
README.md # Quick-start instructions

Preserve Comala workflow history (Data Center)

Section titled “Preserve Comala workflow history (Data Center)”

Aura Workflows doesn’t import Comala’s approval and transition history, and once Comala is gone from your Cloud site, its page activity report is gone too. To keep an auditable record, run the activity script on your Data Center instance before moving your spaces to Cloud with the Confluence Cloud Migration Assistant.

For every page and blog post with a Comala workflow, the script reads the page’s workflow activity from Comala and attaches it to that page as comala-workflow-activity.html: a plain HTML table you can open in any browser, with one row per event (date, page version, event, who did it, state, previous state, approval, participants, comment, due date). The Cloud Migration Assistant migrates the attachment like any other, so the history stays available on the page in Cloud without Comala installed.

The activity script is separate from the migration script. You can run either one without the other, and in any order, as long as the activity script runs before the Cloud migration.

Requirements

  • Comala Document Management for Data Center 7.0 or later. The script reads Comala’s document activity. Spaces that still use the legacy page activity must first be converted in Confluence Administration → Comala Document Management → Upgrade Activity. The script lists any space it can’t read.
  • The DC_* settings in .env, the same as for the migration script, with a Confluence administrator account. The script needs administrator rights to detect spaces that still use legacy page activity, and the user needs Comala workflow visibility on every page and permission to add attachments.
  1. Do a dry run. It reads and renders the activity of every page exactly like a real run, without touching Confluence. To keep the disk usage small on large instances, it saves only 10 pages as sample HTML files, in samples/<space key>/<page id>.html inside the run’s results folder (see below):

    Terminal window
    node activity-bundle.js --dry-run
  2. Open the sample files and check the content.

  3. Set Page Update Reset Approval to Ignore and disable attachment triggers in your Comala workflows (see the warning above).

  4. Attach the activity to the pages. Start with a single test space: --space limits the run to the spaces you name (repeat it for several), and pages in any other space are never touched. Before writing, the script checks each page’s space with Confluence itself, independent of Comala’s report. An unknown space key stops the run before anything is processed. The script lists the prerequisites from the warning above and only continues once you type yes:

    Terminal window
    node activity-bundle.js --space TEST
    node activity-bundle.js

    For unattended runs, add --yes to skip the confirmation once the prerequisites are in place.

  5. Restore Page Update Reset Approval and the triggers, then migrate your spaces to Cloud.

Each run writes its summary to a new folder, json/comala-activity-<date and time>/ (with a -dry-run suffix for dry runs), so a later run never overwrites the record of an earlier one:

FileContents
attached.jsonPages that received the attachment. In a dry run this is would-attach.json, the pages that would receive it; the 10 sample pages also list their sampleFile.
no-activity.jsonPages with a workflow but no recorded activity. No file is attached.
unavailable.jsonPages that were skipped because their space still uses legacy page activity, or because Comala refused the request (usually missing workflow visibility). Each entry includes the reason.
errors.jsonPages that failed for any other reason.
run.jsonWhen and how the run was started (instance, spaces, dry run).

If any page failed, was skipped, or might still have history the script couldn’t read, or a --space you passed matched no pages (usually a typo in the space key), the script ends with INCOMPLETE and a non-zero exit code. Only migrate once a run finishes with Success.

Running the script again is safe. If a page already has comala-workflow-activity.html, a new version of that attachment is uploaded instead of a second file, and the earlier exports stay in the attachment’s version history. Uploads are minor edits, so page watchers aren’t notified by Confluence.

Step 1: Prepare your workflows in Aura Workflows

Section titled “Step 1: Prepare your workflows in Aura Workflows”
  1. Create the corresponding workflows in Aura Workflows, global or space-scoped, matching your Comala setup.
  2. Use the same state names you had in Comala wherever possible. Any state name that doesn’t match drops the page into the workflow’s initial state.

The script connects to your Comala instance, extracts every active workflow assignment, and writes a JSON file. Aura Workflows never talks to Comala directly; credentials stay on the machine that runs the script.

  1. Copy .env.example to .env and fill in your Data Center credentials:

    DC_BASE_URL=https://your-confluence-dc.example.net
    DC_USER=your_username
    DC_PASSWORD=your_password
  2. Run the script:

    Terminal window
    node migration-bundle.js
  3. The script generates json/comala-workflow-instances.json. Pages that Comala’s report lists without a workflow or state (usually untouched pages still in their initial state) can’t be imported and are listed in json/comala-workflow-instances-skipped.json instead.

  1. Run the script:

    Terminal window
    node migration-bundle.js
  2. The script generates json/comala-cloud-workflow-instances.json.

Each entry in the generated file describes one page or blogpost and the workflow assignment it should land on:

[
{
"contentTitle": "Project Plan Q4",
"contentType": "page",
"currentStateName": "In Review",
"spaceKey": "PROJ",
"workflowName": "Approval Workflow",
"workflowScope": "space"
}
]
FieldDescription
contentTitleTitle of the Confluence page or blogpost.
contentTypeEither "page" or "blogpost".
currentStateNameThe current workflow state in Comala.
spaceKeyThe Confluence space key.
workflowNameThe name of the target workflow in Aura Workflows.
workflowScope"global" for global workflows, "space" for space-scoped workflows.

Before uploading, confirm three things: workflowName matches an existing Aura Workflows workflow exactly, workflowScope reflects whether it’s global or space-scoped, and currentStateName matches a state in the target Aura Workflows workflow. Anything that doesn’t match falls back to the initial state, or, for unmatched workflows, fails the entry outright.

The format is general. Any export tool that produces this shape can feed the importer; this is how migrations from other workflow apps work in practice. The Comala script is the supported path, but the JSON is the contract.

  1. Open Aura Workflows in Confluence and navigate to Administration → Migration (Site Admins only).
  2. Drag the JSON onto the upload area or click to select it, then click Start upload. Large files are uploaded in chunks automatically.
  3. Once the upload completes, click Start migration to begin processing.

The migration UI shows live counts of applied pages, failed pages, and elapsed time. Pages are processed in batches in the background, so you can close the page and come back later. Stop migration halts the run cleanly and leaves unprocessed entries in place; Continue picks up from where you left off.

Every migrated page records a “migrated” event in its workflow history, attributed to the app rather than a user. This distinguishes pages that came through the importer from those started by hand.

Workflows are looked up by name and scope. Global workflows are matched across all global workflows in Aura Workflows. Space workflows are matched within the specified spaceKey. If no matching workflow is found, the entry fails.

States are matched by currentStateName against the names in the target workflow. An exact match places the page in that state; no match falls back to the workflow’s initial state.

Pages are matched by exact title within the specified space. Pages that have been renamed or deleted since the JSON was generated are skipped.

Successfully migrated pages have the Aura Workflows workflow applied with the correct state. The migration history event is visible in the page’s workflow history. If some pages failed, Retry reruns the failed entries; already-applied entries are skipped automatically, so retry only touches what’s left. For a small leftover, applying the workflow from the page’s Aura Workflows panel and picking the right state takes seconds.

IssueWhat to do
Many pages show as failedCheck that workflow names and scopes in the JSON match your Aura Workflows configuration exactly.
Pages are in the wrong state after migrationVerify that your Aura Workflows state names match the Comala state names. Unmatched states fall back to the initial state.
Upload fails or is very slowEnsure a stable network connection. Large files are uploaded in chunks; cancel and restart if needed.
Migration seems stuckMigrations process in batches. For large jobs, the run can take a while; check that the progress counter is advancing.
Activity script reports unavailable spacesThose spaces still use Comala’s legacy page activity. Convert them in Upgrade Activity in Comala’s administration, then re-run the activity script with --space for those spaces. Also check that the script’s user has workflow visibility on the listed pages.
Cloud JSON has placeholdersExpected. Replace every "<workflowId>-name" and "<workflowId>-scope" with the matching Aura Workflows workflow name and scope before uploading.

Can I run the migration multiple times? Yes. The migration is idempotent: if a workflow is already applied to a page, it’s replaced with the migrated state.

Is Comala’s approval history migrated? Not into Aura Workflows. On Data Center, the activity script can attach it to each page as an HTML file before you move to Cloud; see Preserve Comala workflow history.

Will the migration affect pages that aren’t in the JSON? No. Only pages listed in the uploaded file are touched.

Do I need to remove Comala before migrating? No, but disabling Comala workflows after a successful migration is recommended to avoid conflicts.

What permissions do I need? Site Admin permissions in Confluence. Anyone with less can run individual workflow apply actions but not the migration UI.