Getting a issue with linked server issue in Bamboo with Bitbucket

We are having Stash repository and it was integrated with Bamboo CI server. Now we migrated Stash repository to BitBucket repository latest version.

We created an app link of BitBucket server to bamboo and we removed the existing stash app link in the Bamboo server. After that, we are able to see all the repositories in the Bamboo server getting from Bitbucket server but while selecting any repository under server section it is showing Blank. we can able link the server repositories link and branches manually but we are using more than 100 repositories in the Bamboo server. Is there any way to link the server, repositories, and branches in an automated way like update the scripts or else any configurations, how it is working earlier with stash repository.