grant external JIRA access to only one Bitbucket repository
Asked by Felix H?nger:

Hi,

our customer Polo Motorrad (<https://polo-motorrad.atlassian.net/>) wants to synch their JIRA with our Bitbucket repo (<https://bitbucket.org/beexcellent/polo/>) so that they are able to see the commits on the JIRA issue on their side.

Is there an option to only grant them access to one repository?

I only found the option to link the JIRA with our Bitbucket cloud account, but then they would have access to all other repositories and admin rights which we don't want.

Is it enough if I create on our Bitbucket account an additional group only for this repo and grant them access only to this group?

Many thanks,

Felix


Answers:
author: Theodora Boudale
body: Hi Felix,

When you create such an integration, all repos owned by this workspace will be listed in the DVCS accounts page of the JIRA Cloud instance. I'm afraid that it is not possible to link a specific repo only.

However, JIRA admins that can see this list, will still not be able to see the content of any repo that they have not been given access to in Bitbucket Cloud. They will see all workspace repos listed, but if they try to open a repo they don't have access to, they will see a message "We can't let you see this page".

You can create a special User Group in the Bitbucket workspace and grant access to this repo only, but this won't affect the integration.

I imagine that you may not want them to see the names of the rest of the repos show up either. In this case, it is possible to remove them from the DVCS accounts page in JIRA. However, I am unsure if they show up again later, I will check with our development team and let you know when I have an update.

Another thing to consider is that the integration between a JIRA Cloud instance and a Bitbucket workspace must be done from a user that has admin rights in both JIRA and the Bitbucket workspace. Do you have admin access to the customer's JIRA instance? Or is there any user that has admin access both to this JIRA Cloud instance but also to the workspace you mentioned?

Kind regards,  
Theodora

comments: author: Felix H?nger
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Many thanks for the quick update. I am also a bit afraid that your system is not able to do such a simple administration task.

Nevertheless, I have admin rights in both systems, and yes, it is not an option that a customer is able to see other repositories even if it is only the name and I am very interested in the answer from your dev team.

Thanks a lot,

Felix


author: Theodora Boudale
body: Hi Felix,

I checked with our development team and here is what I found out: if you connect a JIRA Cloud instance with a Bitbucket workspace, then all repos will be listed in the DVCS accounts page in JIRA. If you remove certain repos from this page afterwards, they will not show up again later unless the whole integration is removed and then re-added. This is how it works at the moment, but there is a possibility it may change in the future.

At the moment, this could be used as a workaround. However, it's important to take into account that another JIRA admin may view the list of repos (their names) before you remove them, if the integration is removed and re-added then all the repos will show up again, and also that the ability to remove repos from this page may get removed in the future.

The integration is focused on linking JIRA with a Bitbucket workspace rather than single repos. However, I can most certainly open a feature request for this, for our product managers and development team to take into account. Please feel free to let me know if you'd like me to proceed with this.

Kind regards,  
Theodora


author: JeromeGWS
body: Is there any update to this? It seems ridiculous to me to have to link *all* my repositories when we are using a team-managed project that maps to a singular repo.

Suppose I used a singular Bitbucket account for all companies I worked for, and for personal repositories. This would mean my current company would be able to see all the names of all repositories I have created for previous companies, which could void NDAs.

Thankfully I use separate accounts for each company, but I don't think this is an unlikely scenario.


author: Marta Cuva
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) are there any updates?

Thanks a lot


author: Theodora Boudale
body: Hi Marta,

I'm afraid that I don't have any updates on this. This feature request is tracked in the following ticket:

* <https://jira.atlassian.com/browse/JSWCLOUD-25311>

When there is an update, it is going to be posted there.

In the meantime, a way to work around this issue would be by creating a separate workspace for that one repo, transferring the repo there, and then integrating the new workspace with the Jira instance.

Kind regards,  
Theodora


author: Marta Cuva
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

thank you for the update!


Tags: access

bitbucket-cloud

cloud

repository