You can customize your pre-migration checks by including or excluding checks using the create migration task api.
1 2{ "task": "Check", "options": { "checkTypes": { "includeKeys": ["AnonPermission","MissingAttachments"] } } }
1 2{ "task": "Check", "options": { "checkTypes": { "excludeKeys": ["AnonPermission","MissingAttachments"] } } }
You can ignore certain failed pre-migration checks by excluding them from migrate task. Adding checks to the exclude list will override the check status from ERROR to WARNING.
This API is supported since the following CMA versions:
You need to check the response of failed checks using the get task status endpoint. It returns a boolean field excludable
which says whether you can override that check or not.
1 2{ "data": { "status": "FINISHED", "outcome": "FAILED", "message": "At least one Preflight check has failed.", "children": { "AnonPermission": { "status": "FINISHED", "outcome": "FAILED", "message": "Project settings will allow public access", "details": { "excludable": true, "description": "Some items like projects, boards or filters have settings that allow anonymous access. In case you exclude this check, such items will have public access on cloud, This means they will be available to anyone on the internet after you migrate." } } } } }
You can then override only those checks that are marked as excludable = true
by adding check types in the excludeKeys
list of create migration task request.
1 2{ "task": "Migrate", "options": { "checkTypes": { "excludeKeys": ["AnonPermission","MissingAttachments"] } } }
Migration APIs support error logs and reports called artifacts. Artifacts are generated as a result of executing the task. Some of the artifacts supported by MAPI are:
You can use the get task details endpoint to check all artifacts generated. It returns artifactId
in the location path which can be used to download artifact.
1 2{ "taskId": "00000132-0319-a3cb-a391-52d37934632d", "taskType": "check", "createdAt": "2024-09-20T01:02:19.000+00:00", "results": { "artifacts": [ { "name": "pre-migration-reports.zip", "location": "https://api.stg.atlassian.com/migrations/public/v1/artifacts/ae74a7f-asab-42sa-9s82-03s2f3a3b330", "expireAt": 1223769308339 } ] } }
You can then use the get artifact endpoint to download the artifact file by providing the artifactId
obtained from the response of the get task details endpoint.
Rate this page: