v2

latestOpenAPI 3.0.02026-08-013312111.4 MB
Issue tracker

Import issues

A POST request to this endpoint will import the zip file given by the archive parameter into the repository. All existing issues will be deleted and replaced by the contents of the imported zip file.

Imports are done through a multipart/form-data POST. There is one valid and required form field, with the name "archive," which needs to be a file field:

$ curl -u <username> -X POST -F archive=@/path/to/file.zip https://api.bitbucket.org/2.0/repositories/<owner_username>/<repo_slug>/issues/import
post/repositories/{workspace}/{repo_slug}/issues/import

Response

Import job accepted

typestring
status'ACCEPTED' | 'STARTED' | 'RUNNING' | 'FAILURE'

The status of the import/export job

phasestring

The phase of the import/export job

totalinteger

The total number of issues being imported/exported

countinteger

The total number of issues already imported/exported

pctnumber

The percentage of issues already imported/exported