User can't fork repository

Aleksandre Rukhadze December 13, 2023

User can't fork repository. User is added into the project and repository with admin permission, forking is set to enable. but still retuns with the error shwon below

f7fbc25f-7b80-4a66-b968-68ef8fe7711b.png

2 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2023

Hello @Aleksandre Rukhadze 

thank you for reaching out to Community!

When forking a repository you will be prompted to provide the destination workspace and project of the new repo (fork repo) that will be created. So besides having a fork enabled in the source repository, the user doing the fork also needs to have permission to create a new repo in the destination project/workspace

Since the fork can be saved in a different project or even a different workspace,  could you please confirm the user in question has Admin or Create access in the destination project and workspace? 

To check that you can Navigate to the destination project in the UI > select Project Settings > Project permissions. Make sure the user has direct Admin or Create permission, or is part of a user group in the project that includes those permissions.

Thank you, @Aleksandre Rukhadze !

Patrik S

Aleksandre Rukhadze December 15, 2023

Hi Patrick,
user has only admin permission in some projects and repositories, he is not a worksapce admin.

He was trying to fork inside the project where he has admin permission.

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2023

Hello @Aleksandre Rukhadze ,

thank you for the confirmation.

It seems you are being affected by a bug in the platform where having admin or create permission in the project is not allowing to fork a repository inside the project. This is being tracked in the following ticket on Bitbucket public issue tracker : 

I would suggest you to add your vote there, since this helps both developers and product managers to understand the impact. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all bug fixes are implemented with this policy in mind.

In the meantime, the user needs to be part of a group that has Admin permission in the workspace to be able to create the fork, or they can create the fork in a different workspace where they have admin permission.

Thank you, @Aleksandre Rukhadze !

Patrik S

Aleksandre Rukhadze December 20, 2023

Thank you

Like Patrik S likes this
0 votes
Aleksandre Rukhadze December 13, 2023

* update * this was fork not a new repo

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events