How to insert missed entries in the atlassian_host_mapping table in connect?

Hi,

We have a situaltion here, where we have released out connect on forge app. however the connect framework was not upgraded to latest and we missed table “atlassian_host_mapping” entries. Now most of our clients have already upgraded to forge, however i do not have entries in this table. i understand that this mapping is done with /installed hook.

How can i insert the entries in this table? i tried sending scheduled trigger to connect but only information i get it installationId from the request. how do i get the clientKey as well?

Thanks

Hey @shiv,

The approach taken to remedy this is going to depend upon the current state of your app - is your app entirely a Forge app, or is it Connect on Forge?

it’s Connect on Forge currently. It is connect app moved to forge. we are replacing connect modules one by one with forge modules.

Thanks for the clarification, that’s good - it will make things easier.

Connect on Forge apps won’t resend a lifecycle event for a minor update, but there is a way for us to invoke a major update, roll it out to users and receive an updated event.

  1. Add one or more Forge scopes which your app will require which can be inherited by your existing Connect scopes.
  2. Once you’ve deployed your new version, you’ll want to run the forge version bulk-upgrade command to roll it out existing installations.
  3. The background job will progressively update customers and you should see the Connect lifecycle event with the installationId being received.