Hello,
I’m implementing the automated migration using JCMA to our application and it seems the webook for event app-data-uploaded isn’t called.
I’m using the local server Jira on my laptop. The plugin has the same app key as the plugin in the marketplace. The cloud version of the app is hosted in the AWS and I created a development instance with an app key that is different than the key for production. But I don’t think this should matter, because the implementation of method getCloudAppKey returns correct key of development instance.
Anyway, when I set up the dev mode on my server Jira, running the migration using JCMA correctly executes the onStartAppMigration and I’m able to upload application data to cloud.
OutputStream firstDataStream = accessor.getCloudMigrationGateway().createAppData(transferId, "is-enabled-per-project");
firstDataStream.write(gson.toJson(isEnabledPerCloudProject).getBytes());
firstDataStream.close();
The cloud version of the app registers the webhook in the atlassian-connect.json.
"webhooks": [
{
"event": "app-data-uploaded",
"url": "/migration-data-uploaded",
"excludeBody": false
}
]
And if I understand it correctly, the finished upload process using OutputStream should trigger this webhook, yet the endpoint is not called. It would really help me, if someone from Atlassian could check the logs, if the endpoint was really called. This should be helpful to identify my migrations:
Cloud Jira: http://closeit-tests.atlassian.net
Cloud app key: cz.closeit.atlassian.subtasks-navigation-Development
migrationId: 537a1ab7-0596-4593-b037-f68ec4c11455
migration name: Test Migration 06
migration date: today
In the past few days, I run several migrations with the same name but different number (01-06). When I’m writing this, the 06 is the latest one from today. All of them are still in progress because I wasn’t able to return the migration status from the cloud (because the webhook wasn’t called). Any help would be appreciated. Thank you.