This page describes how to send feedback from your cloud app to the server app, and how to fetch feedback in your server app about the migration.
This page relates to Connect app migrations only.
Your cloud app can use the Feedback channel API to send feedback about the migration to your server app.
New feedback will overwrite any existing feedback. The feedback object is a Optional<Map<String, Object>>
.
Use the following endpoint to send feedback from your cloud app to your server app:
Method | Endpoint |
---|---|
POST | migration/feedback/{transferId} |
In the endpoint above, specify the {transferId}
that you want to send feedback about.
Once the transfer is settled, the Feedback channel API will return an HTTP 403 error.
This section shows you an example of a request and response to send feedback.
Sample request
1 2curl -X POST "https://your-site.atlassian.net/rest/atlassian-connect/1/migration/feedback/26925583-10bd-49fb-b67c-15fc2447a97b" \ --header 'Content-Type: application/json' \ --data-raw '{"details": {"key1":["your feedback1"],"key2":"value"}}'
Sample response
1 2200 OK
The example above is part of our sample app.
Your server app can use the App cloud migration library to retrieve feedback about the migration sent by your cloud app. Please note, feedback messages are not instantaneous for performance reasons.
1 2Optional<Map<String, Object>> cloudFeedbackResponse = gateway.getCloudFeedbackIfPresent(transferId);
Rate this page: