• 57
    • 4
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      Currently, there is no API endpoint to manage repositories in Bamboo.

      Suggested Solution

      Implement a REST solution to create, update and get information from repositories.
      We could wrapper existing internal endpoints like: <bamboo-url>/admin/createLinkedRepository.action

      Workaround

      Please create repositories manually.

          Form Name

            [BAM-18453] Allow creating / updating linked repositories via REST API

            This would be really useful.  For those of us using Bamboo w/Bitbucket Server that's migrating to Bitbucket Cloud (rather than DataCenter).  The docs state you have to recreate the links "Bitbucket Cloud does not integrate with Bamboo in the same way as Bitbucket Server/Data Center does via Application links. Meaning that each repository needs to be created individually." 

            So how am I supposed to (easily) create hundreds (yah, we have hundreds) of repositories that have moved from Bitbucket Server to Bitbucket Cloud?  One by one in the UI?  It's bad enough that Bamboo already feels like a 2nd-class citizen w/Atlassian, making BBCloud harder to work with seems antithesis to what Atlassian would want.  

            I realize this isn't a support form (and I do have a BSP ticket on this) but if anyone knows how to do this, I'd appreciate a note. 

            PS

            Similarly for build plans to utilize the new Cloud repo vs the Server repo.  Looking at that too.

            Paul Hirose added a comment - This would be really useful.  For those of us using Bamboo w/Bitbucket Server that's migrating to Bitbucket Cloud (rather than DataCenter).  The docs state you have to recreate the links "Bitbucket Cloud does not integrate with Bamboo in the same way as Bitbucket Server/Data Center does via  Application links . Meaning that each repository needs to be created individually."  So how am I supposed to (easily) create hundreds (yah, we have hundreds) of repositories that have moved from Bitbucket Server to Bitbucket Cloud?  One by one in the UI?  It's bad enough that Bamboo already feels like a 2nd-class citizen w/Atlassian, making BBCloud harder to work with seems antithesis to what Atlassian would want.   I realize this isn't a support form (and I do have a BSP ticket on this) but if anyone knows how to do this, I'd appreciate a note.  PS Similarly for build plans to utilize the new Cloud repo vs the Server repo.  Looking at that too.

            Hi b53582a056cb - regarding how you license your plugin; how would it work if we have many Bamboo data centers with only a few users on each? Would we need to manage separate licenses of the plugin for each environment? I noticed that your plugin is licensed by number of users, so I was wondering. Thank you!

            Bill Torla added a comment - Hi b53582a056cb - regarding how you license your plugin; how would it work if we have many Bamboo data centers with only a few users on each? Would we need to manage separate licenses of the plugin for each environment? I noticed that your plugin is licensed by number of users, so I was wondering. Thank you!

            Philipp Göllner (XALT) added a comment - Hi f4d15988919d , we have a plugin for that: https://marketplace.atlassian.com/apps/1229986/advanced-repository-linking-api-for-bamboo?hosting=datacenter&tab=overview

            Bill Torla added a comment -

            +1 Not having an API for creating linked repositories is a hard blocker for automating other things such as importing specs

            Bill Torla added a comment - +1 Not having an API for creating linked repositories is a hard blocker for automating other things such as importing specs

            Is there still no way of creating a Linked Repository in Bamboo via API?

            Ricardo Martinez added a comment - Is there still no way of creating a Linked Repository in Bamboo via API?

            +1 I also need this functionality

            Antoine Ameline added a comment - +1 I also need this functionality

            @wayne You're probably right that this won't be fixed any time soon because of that. Well at least now it's the same code, just different license. Although DC has a clearer roadmap: https://www.atlassian.com/roadmap/data-center, which is at least partly nice

            Eduard Babayan added a comment - @wayne You're probably right that this won't be fixed any time soon because of that. Well at least now it's the same code, just different license. Although DC has a clearer roadmap: https://www.atlassian.com/roadmap/data-center , which is at least partly nice

            Since they are going to abandon server products by 2024 does that mean that the DataCenter version of Bamboo will have the same code? Maybe their efforts are focused there.

            Wayne.Mahon added a comment - Since they are going to abandon server products by 2024 does that mean that the DataCenter version of Bamboo will have the same code? Maybe their efforts are focused there.

            I see a lot of progress for YAML support in new Bamboo versions, but somehow this quite important part of it is left unnoticed. For anyone having more than handful repositories (and creating them often) not having any automated discovery defies the purpose of YAML specs (especially with integration with Bitbucket that Bamboo has now).

            Re-iterating on my comment from 2018 rest API should be clearly easy to add replicating what buttons in UI do, but that does not even solve the actual problem of "why don't Bamboo discover this automatically? ".

            Eduard Babayan added a comment - I see a lot of progress for YAML support in new Bamboo versions, but somehow this quite important part of it is left unnoticed. For anyone having more than handful repositories (and creating them often) not having any automated discovery defies the purpose of YAML specs (especially with integration with Bitbucket that Bamboo has now). Re-iterating on my comment from 2018 rest API should be clearly easy to add replicating what buttons in UI do, but that does not even solve the actual problem of "why don't Bamboo discover this automatically? ".

            If creating the linked repository as Bryan has above is it possible to set/update the user/group permissions on the linked repository?

            I've used that code to create linked repositories and make some changes in existing ones by, but not seeing how to update the permissions.

            jameshartleroad added a comment - If creating the linked repository as Bryan has above is it possible to set/update the user/group permissions on the linked repository? I've used that code to create linked repositories and make some changes in existing ones by, but not seeing how to update the permissions.

              Unassigned Unassigned
              2b4a5294599c florian.rathgeber
              Votes:
              205 Vote for this issue
              Watchers:
              120 Start watching this issue

                Created:
                Updated: