Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 12, 2026

Binary Exporter Reference

This is an early access feature. It is stabilising, and is not suitable for use in production at this time.

Overview

Binary data (such as attachments and other uploaded files) is packaged by Atlassian and made available to your cloud app during a Simplified App Migration. Unlike tabular exports (AO tables and mappings), binary files are transferred as their original file content rather than as JSONL records.

The binary exporter is scoped to files under the Jira home directory. It runs incrementally: an initial snapshot of the matching files is followed by incremental exports that capture only what changed since the previous run. Changes that trigger a new export include new files, deleted files, changes to file contents, and changes to the directories you have declared for export.

Onboarding

Please reach out to Atlassian to test the early access feature.

After reaching out to Atlassian, to receive binary data, declare the binary key under the migration:managedExports module in your cloud app's manifest.yml:

1
2
3
4
5
modules:
  migration:managedExports:
    - key: binary
      directoryPrefix: [ "assets", "uploads/app" ]

The directoryPrefix property lists the directory prefixes containing binary data that Atlassian should package for export. Only files under the listed prefixes are included, relative to the app's home directory.

For example, assets and uploads/app would include /jira/home/assets/upload.jpeg and /jira/home/uploads/app/my_doc.pdf respectively.

Running the binary exporter

During the early access program, the binary exporter is started manually with an API call against the Data Center instance.

Before you start, you must have consented to upload data and linked a Data Center instance to at least one cloud site.

The endpoints are exposed under the migration REST base path and are restricted to system administrators.

Start an export

Send a POST request to the app-incremental/start endpoint, listing the exporters to run. Use BINARY for the binary exporter:

1
2
3
4
curl -u admin:admin -X POST "http://localhost:8080/jira/rest/migration/latest/app-incremental/start" \
  -H "Content-Type: application/json" \
  -d '{"exporters": ["BINARY"]}'

The response is the current exporter status (see Check the export status).

Check the export status

Send a GET request to the app-incremental/status endpoint:

1
2
curl -u admin:admin -X GET "http://localhost:8080/jira/rest/migration/latest/app-incremental/status"

The response reports the state of each exporter:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "databaseExporter": {
    "running": false,
    "started": false,
    "message": "PLACEHOLDER"
  },
  "binaryExporter": {
    "running": true,
    "started": true,
    "message": "PLACEHOLDER"
  }
}
FieldDescription
runningtrue while an export is actively running on this node.
startedtrue if the exporter has been started at least once since the node started.
messageA human-readable status message. PLACEHOLDER

Consuming exported data

When exported data is ready, your cloud app receives an avi:ecosystem.migration:uploaded:event_file_list event with the BINARY label. To retrieve the exported files:

  1. Download the File Listing referenced by the event's key.
  2. Download the event files labelled BINARY to find the changed files.
  3. Download the binary files referenced by each event file.
  4. Report the status of the event files you processed.

Connect and Forge Remote apps request a short-lived presigned URL and download the file from it. Forge Native apps can't download these files yet. Support is coming soon in the @forge/migrations package.

Connect and Forge Remote apps send requests to the base URL https://api.atlassian.com. For example, the full URL of the File Listing endpoint is https://api.atlassian.com/app/migration/forge/v1/file-listing/download-url.

For more on the event and these endpoints, see the Event Specification. For how binary data is laid out in the export, see the DC Export Format.

Download the File Listing

The File Listing is a JSONL file with one line of metadata for each event file. Use the key from the event to download it.

Retrieve a presigned URL for the File Listing, then download the File Listing from that URL.

Endpoint: POST /app/migration/forge/v1/file-listing/download-url

Example request:

1
2
3
4
5
6
7
POST /app/migration/forge/v1/file-listing/download-url
Host: api.atlassian.com
Authorization: Bearer <app-system-token>
Content-Type: application/json

{"fileKey": "key-from-webhook"}
FieldTypeDescription
fileKeystringThe key from the avi:ecosystem.migration:uploaded:event_file_list event. Mandatory.

Example response:

1
2
3
4
5
HTTP/1.1 200 OK
Content-Type: application/json

{"url": "https://presigned.url/..."}
FieldTypeDescription
urlstringA presigned URL to download the File Listing.

Download the File Listing with a GET request to the presigned URL. Do not send an Authorization header, because the credentials are in the URL's parameters.

1
2
GET https://presigned.url/...

For how to get the app system token, see Calling Atlassian app APIs from a remote.

The File Listing isn't limited to binary event files. It includes every event file exported for your app so far, and each entry has its own label, so only process entries with the BINARY label here. File Listings are also cumulative: event files you have already processed appear again in later File Listings. Keep track of the event files you have processed and report them as SUCCESS again instead of processing them a second time.

For the fields of each File Listing entry, see Listing File Format.

Download the event files

Use the fileId of each BINARY entry in the File Listing to download its event file. Each event file is a JSONL file. The first line is the metadata header, and every other line is a data record for a changed file.

Retrieve presigned URLs for up to 100 event files at a time, then download each event file from its URL.

Endpoint: POST /app/migration/forge/v1/event-file/urls

Example request:

1
2
3
4
5
6
7
POST /app/migration/forge/v1/event-file/urls
Host: api.atlassian.com
Authorization: Bearer <app-system-token>
Content-Type: application/json

{"eventFileIds": ["uuid-1", "uuid-2"]}
FieldTypeDescription
eventFileIdsarray of stringThe fileId values from the File Listing. Up to 100 per request. Mandatory.

Example response:

1
2
3
4
5
6
7
8
9
10
HTTP/1.1 200 OK
Content-Type: application/json

{
  "eventFiles": [
    {"fileId": "uuid-1", "presignedUrl": "https://host.domain/..."},
    {"fileId": "uuid-2", "presignedUrl": "https://host.domain/..."}
  ]
}
FieldTypeDescription
eventFiles[].fileIdstringThe fileId of the event file.
eventFiles[].presignedUrlstringA presigned URL to download the event file.

Download each event file with a GET request to its presigned URL, without an Authorization header.

1
2
GET https://host.domain/...

Download the binary files

Each data record in a BINARY event file has a fileId (for example, binary_file/a5719733-df98-491d-ae34-8dc3da59530c) that references the content of the file. If fileId is null, for example for a deleted file, there is no content to download.

Larger customers may have many binary files. As a best practice, download binary files in parallel rather than one at a time.

Retrieve a presigned URL for the binary file, then download the file's content from that URL.

Endpoint: POST /app/migration/forge/v1/binary-file/download-url

Example request:

1
2
3
4
5
6
7
POST /app/migration/forge/v1/binary-file/download-url
Host: api.atlassian.com
Authorization: Bearer <app-system-token>
Content-Type: application/json

{"fileId": "binary_file/a5719733-df98-491d-ae34-8dc3da59530c"}
FieldTypeDescription
fileIdstringThe fileId from the event file's data record. Mandatory.

Example response:

1
2
3
4
5
HTTP/1.1 200 OK
Content-Type: application/json

{"url": "https://presigned.url/..."}
FieldTypeDescription
urlstringA presigned URL to download the binary file.

Download the binary file with a GET request to the presigned URL, without an Authorization header. The URL's parameters contain credentials that let you download the file for a short time after it is generated. The request can include a Range header to download a specific range of bytes from the file.

1
2
3
GET https://presigned.url/...
Range: bytes=0-1048575

Example response:

1
2
3
4
HTTP/1.1 206 Partial Content
Content-Range: bytes 0-1048575/5242880
Content-Length: 1048576

A ranged request returns 206 Partial Content, and the total file size is the value after the / in the Content-Range header. To download the whole file, keep requesting the next range until you have received that many bytes. If the presigned URL expires before the download finishes, request a new URL from binary-file/download-url and continue from the next byte range.

During the early access program, the Connect binary-file/download-url endpoint returns 404 Not Found until binary file downloads have been enabled for your cloud site.

Report the event file status

After processing an event file and the binary files it references, report SUCCESS or FAILED for it with POST /app/migration/forge/v1/event-files/status. See Report Event File Status.

Multi-node Data Center instances

The binary exporter runs on a single Data Center node and holds its runnable state in memory for the duration of a run. It is not designed to run across multiple nodes at the same time, and running it on more than one node simultaneously is not supported.

During an export, the exporter generates high disk IOPS and high network bandwidth on the node it runs on. If you run Jira on burstable instances (for example, t3-tier EC2 instances) on the assumption that load is spread evenly across the fleet, be aware that this load is concentrated on the single node that runs the export.

Follow this guidance when running against a multi-node Data Center:

  • Start the export on the node you want to target. The start endpoint acts on the node that receives the request, so send it directly to that node rather than through a load balancer.
  • Run only one export at a time. Do not start the exporter on another node while a run is in progress.
  • Check status on the same node. Exporter status is tracked in memory on the node that started the export, so poll the status endpoint on that node to see the state of the run.

Event file specification

Each binary event file currently contains up to 250 data records, one for each file, plus the metadata header. A binary event file therefore currently has at most 251 lines.

Metadata Header (First Row)

The header row contains the following fields:

FieldTypeDescription
exportTimestringThe ISO 8601 timestamp of when the event file was exported.
typestringAlways "objects" for binary event files.
columnsarrayAn array of column descriptor objects (see below).
primaryKeysarray of stringsThe names of the primary key fields. Always ["filepath"] for binary event files.

Each object in the columns array has the following fields:

FieldTypeDescription
namestringThe field name in the data records.
typestringThe field's data type, for example "String", "boolean", or "integer".
sizenumberThe size or precision of the field. -1 indicates no fixed length.
nullablebooleanWhether the field can be null.

Example metadata line (formatted for readability)

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "exportTime":"2026-08-18T00:16:51.915527507Z",
  "type":"objects",
  "columns":[
    {"name":"fileId","type":"String","size":-1,"nullable":true},
    {"name":"filepath","type":"String","size":-1,"nullable":false},
    {"name":"objectType","type":"String","size":-1,"nullable":false},
    {"name":"DELETED","type":"boolean","size":1,"nullable":false},
    {"name":"TXN_SEQUENCE","type":"integer","size":19,"nullable":false}
  ],
  "primaryKeys":["filepath"]
}

Data Record Lines

The data records lines contain the data from the file system.

Example data record line (formatted for readability)

1
2
3
4
5
6
7
8
{
  "fileId": "binary_file/a5719733-df98-491d-ae34-8dc3da59530c",
  "filepath": "assets/upload.jpeg",
  "objectType": "FILE",
  "DELETED": false, 
  "TXN_SEQUENCE": 1
}

Rate this page: