youngmon/atlassian-qna huggingface dataset:
I want to use bitbucket api to get all 30 days old commits made in repository
Asked by Sonal Rakwal:

Hi,

I am using the below url and parameters in postman to get 30days old commits made in master branch of a repository.But this apicall is returning all commints and not 30 days old commits.

URL :  
<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/commits/master>?

q=date \> "2024-06-02T00:00:00+00:00"

Authorization : Basic auth(username and Personal access token)

Once i get 30ndays old commits,i want to filter for only merge commits.


Answers:
author: Ben
body: Hi Sonal,

Unfortunately - it is not possible to use filtering \& sorting against the commits endpoint, you can see a list of supported endpoints below:

* <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#filtering>

We have a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) raised with our developers to include this in the API, however, that you may **Watch** for future updates and **Vote**for to increase its visibility from a customer demand perspective:

* <https://jira.atlassian.com/browse/BCLOUD-17820>

You can achieve those results by using git commands as a workaround:

```
git log --before="30 days ago"
git log --merges --before="30 days ago"?
```

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How do I recover an account that was stolen?
Asked by Stoner Games:

How do I get support to give me back access to an account that was stolen?  

When I try to login to one of my accounts it says the email does not exist. However I know it does, I had committed code into it. But I had not yet enabled 2FA  

Someone has hacked my account please help point me in the right direction to contact support about it


Answers:
author: Syahrul
body: Hey [@Stoner Games](/t5/user/viewprofilepage/user-id/5533513)

I have raised a support ticket on behalf of you, you can track them at:

<https://support.atlassian.com/requests>

Regards,  
Syahrul


author: Laurie Sciutti
body: Hello [@Stoner Games](/t5/user/viewprofilepage/user-id/5533513) and welcome to the Community! This sounds like something with which you'll need to have [Atlassian Support](https://support.atlassian.com/contact/#/) assistance.

comments: author: Stoner Games
body: I've looked through there before posting here, and there is nothing about stolen accounts or even an email to contact...

Thanks


Tags: bitbucket-cloud

cloud
Bitbucket threatening to delete my not-empty workspace
Asked by Carlos Williams-Moreiras:

I received an email saying that my workspace would be deleted on July 31st if it was still empty. The only problem is, it isn't empty. Is my workspace going to get deleted?


Answers:
author: Mark C
body: Hi [@Carlos Williams-Moreiras](/t5/user/viewprofilepage/user-id/5533585)  

I went ahead and created a support request on your behalf.  
You should be able to receive an email notification regarding that.  

Regards,  
Mark C

comments: author: elliotthill
body: Hi Mark,  

We have the same issue, we received an email saying our "empty" workspace will be deleted, it contains all our repositories. Please advise.  

Thanks!  
Elliott

EDIT: It does seem that its my user workspace that is indeed empty. Could someone from Bitbucket clarify that no non empty workspaces will be deleted?


author: mkheinrich
body: Hi Mark,  
I have the same issue, received an email saying that my workspace would be deleted on July 31st if it was still empty. My workspace has my repositories in it - why would I be told it's being deleted?


author: Mark C
body: Hi [@elliotthill](/t5/user/viewprofilepage/user-id/5533903)  

I can confirm that non-empty workspaces won't be deleted.  

Hi [@mkheinrich](/t5/user/viewprofilepage/user-id/1896204)  

I went ahead and created a support request for you so that we can investigate this further. You should be able to receive an email regarding that.  

Regards,  
Mark C


author: mkheinrich
body: Thanks Mark,  
On further investigation (based on Elliot's findings) I too found a user workspace matching the one noted in the email and it is indeed empty.

Apologies.


author: shoefather
body: I have exactly the same issue, I off course don't want my workspace to be deleted!

comments: author: shoefather
body: I might have reacted too soon: I thought I only had 1 workspace, but then I noticed that I could navigate to all my workspaces via my profile. Apparently I had an extra workspace equal to my name, and that workspace was empty. So my guess is that the email was send because of that one.


author: Laurie Sciutti
body: Hi [@Carlos Williams-Moreiras](/t5/user/viewprofilepage/user-id/5533585) \~ you might want to reach out to [Atlassian Support](https://support.atlassian.com/contact/#/) for this one...

comments: author: Carlos Williams-Moreiras
body: Will do. Thank you!

Edit: Actually the support link just sends me here to the community. Hopefully someone from Atlassian reads this..


author: Laurie Sciutti
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) \~ would you be able to assist [@Carlos Williams-Moreiras](/t5/user/viewprofilepage/user-id/5533585) ?


Tags: bitbucket-cloud

cloud
Invitation emails are not received
Asked by Vivian Esquivias:

Hi, I'm trying to add my colleague to a user group. But he does not seem to get the invites, I have resent a couple now and he has checked the spam-box. Any tips?

I can see that he is listen in the Invitations pending list.

BR

Vivian


Answers:
author: Patrik S
body: Hello [@Vivian Esquivias](/t5/user/viewprofilepage/user-id/5533347) ,

and welcome to the Community!

Usually, when a user is invited right after their email account is created, the invitation email is sometimes bounced by the email provider with an "Email not found" error. If that is the case, I would suggest that you try resending the invitation now, as a considerable amount of time has passed since your previous attempt, and check if the user receives it now, as I wasn't able to find any error on our internal logs.

In case you are still facing the issue after the resend, I would suggest raising a support ticket with us, as you have access to 2 workspaces with active Bitbucket Cloud subscriptions, which are entitled to Standard support. To open a ticket, you can follow the below steps:

1. Navigate to <https://support.atlassian.com/contact/>
2. Select "*Technical Issues and Bugs" \> "Bitbucket Cloud"*Product
3. In the workspace URL, provide one of the workspaces where you have an active subscription
4. Fill the rest of the form with information about the issue (include the user's email address to help in the troubleshooting)
5. Click on ***Submit support request***

Once the ticket is created, one of the support engineers will be in touch with you soon.

Thank you, [@Vivian Esquivias](/t5/user/viewprofilepage/user-id/5533347) !

Patrik S

comments: author: Vivian Esquivias
body: Thank you Patrik, resending the invitation did not work. I will try to create a support ticket.

BR / Vivian


Tags: bitbucket-cloud

cloud
Meaning of the warning on top of transfer bitbucket documentation
Asked by Dirk Vanhaute:

The [documentation about transfering a repository](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repositories-and-groups-to-a-workspace/) contains a warning that is unclear for me.

> **If you are an Atlassian Cloud account holder** , Atlassian automatically created a Bitbucket Cloud workspace for you when you signed up for Cloud. You *must* use this workspace as your KEEP_ACCOUNT when merging two Bitbucket accounts.

Is this still valid ? In our situation, everyone is an Atlassian Cloud account holder. ( Can you still not be ? ) We want to split up 5 repositories from our main workspace to a new one. The first transfer will not be a merge, but the 4 following are by definition merging.  


Answers:
author: Patrik S
body: Hello [@Dirk Vanhaute](/t5/user/viewprofilepage/user-id/1453674) ,

thank you for bringing that to our attention.

The warning is no longer applicable as Bitbucket Cloud no longer automatically creates workspaces for users during signup. Bitbucket is also fully integrated with the Atlassian account login, meaning that to use Bitbucket, a user has to be an Atlassian account holder.

As for the repository transfer, any Administrator of the source workspace can initiate a transfer to another workspace.

I will reach out internally to the concerned team to make sure that the document is updated.

Thank you, [@Dirk Vanhaute](/t5/user/viewprofilepage/user-id/1453674) !

Patrik S

comments: author: Dirk Vanhaute
body: Hi Patrik,  

We found another descripion in the support KB that could replace the doc.  
<https://confluence.atlassian.com/bbkb/how-to-migrate-a-bitbucket-cloud-workspace-to-another-workspace-1229035601.html>

Dirk.


Tags: bitbucket-cloud

cloud

documentation
substitute variables in appsettings.json file
Asked by rajputj3@bv.com:

I have DONTNET code pipeline and I need to substitute variables from appsettings.json file.

Can you please give me an example?

This is part of my json file for dotnet core web app.

"ConnectionStrings": { "Redis": "" },

Thank you.


Answers:
author: Patrik S
body: Hello [rajputj3@bv.com](/t5/user/viewprofilepage/user-id/5467490) ,

thank you for reaching out to the Community!

The way and syntax used to reference an environment variable very depends on the language/tools you are using, and not the the pipeline itself.

When you create an environment variable in your repository/workspace, this variable will be available to be referenced by any process during your build step, but the way and syntax used to reference variables is up to the language/tool you're using.

With that in mind, I'm not really familiar with the DotNet core variable syntax, but I found the following article that may help you with the variable substitution on the appsettings.json :

* [Take your .NET configuration to the next level with value substitution](https://medium.com/workleap/take-your-net-configuration-to-the-next-level-with-value-substitution-d772f3b4d127)

In case that doesn't help, I would suggest reaching out directly to the [DotNet community](https://techcommunity.microsoft.com/t5/net/ct-p/dotnet) for additional suggestions on how the variable substitution works in that language/framework.

Thank you, [rajputj3@bv.com](/t5/user/viewprofilepage/user-id/5467490) !  
Patrik S


Tags: bitbucket-cloud

cloud
[push issue] Please make sure you have the correct access rights and the repository exists.
Asked by Fikra Systems:

Issue reproduce  

- I logged in into my Atlassian account.  
- I create new repo.  
- I generated an ssh key.  
- I add it into my personal account settings -\> add ssh key \[ valid \], added successfully.  
- Clone the repo.  
- Added some changes to push it \[issue happened\].  

error message:  

"The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists."  

Note:  
my OS is Win 10.


Answers:
author: Patrik S
body: Hello [@Fikra Systems](/t5/user/viewprofilepage/user-id/5532947) ,

and welcome to the Community!

The fact that you're able to clone but not push suggests the following possible issues:

1. Your user does not have write access to that repository: this does not seem to be the case as your user is admin in the workspace
2. You have multiple SSH keys in your machine, and the wrong one is being used.

For #2, to confirm which SSH key is being used, could you try executing the push using the verbose flags and sharing the logs with us here?

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git push
```

We would be especially interested in the part of the log output where it says something similar to below snippet:

```
debug1: Will attempt key: /Users/<user>/.ssh/id_rsa RSA SHA256:<SHA>
debug1: Will attempt key: /Users/<user>/.ssh/id_ecdsa 

debug1: Will attempt key: /Users/<user>/.ssh/id_ecdsa_sk 

debug1: Will attempt key: /Users/<user>/.ssh/id_ed25519 ED25519 SHA256:<SHA>

debug1: Will attempt key: /Users/<user>/.ssh/id_ed25519_sk 

debug1: Will attempt key: /Users/<user>/.ssh/id_xmss 

debug1: Will attempt key: /Users/<user>/.ssh/id_dsa 

debug2: pubkey_prepare: done

debug1: Offering public key: /Users/<user>/.ssh/id_rsa RSA SHA256:<SHA>
```

As this will contain the sequence of SSH keys that were attempted for authentication.

Thank you, [@Fikra Systems](/t5/user/viewprofilepage/user-id/5532947) !

Patrik S


author: Fikra Systems
body: i run the following:  

remote -v  
origin git@bitbucket.org:gateway-group/moit-companies.git (fetch)  
origin git@bitbucket.org:gateway-group/moit-companies.git (push)  

<br />

its valid  

------------------------------------------------  
I checked

ssh -T git@bitbucket.org  

i got  

<br />

authenticated via ssh key.  
You can use git to connect to Bitbucket. Shell access is disabled.  

<br />

but the issue still  

<br />

how to fix it please


Tags: bitbucket-cloud

cloud
APP upgrade for DC upgrade from server
Asked by Haneena Fathima:

Hi team,

We are in the process of upgrading our Bitbucket from sever to Data centre. While I was going through the upgrade steps, there was a step where we have to upgrade our apps that are on sever to DC version to support the transition. While I do not have many user installed apps on Bitbucket, do I have to check for support versions and upgrades for the **system apps** as well ? or does it support DC by default after upgrade?

Thanks.


Answers:
author: Robert Wen_ReleaseTEAM_
body: The system apps are compatible when you perform the upgrade from server to DC.


Tags: bitbucket-data-center

bitbucket-server

data-center

server
Collaborative project management with large files
Asked by Taylor_Bushell:

Hello,

I am new to Atlassian products, and I am unsure how to best approach this problem.

I am using Bitbucket to host a large project file for unreal engine. I have it working with LFS, source tree and UE's revision control.

The issue I have is, we are hosting a collaborative project with 50 students working in teams of 6. I have no issue with distributing the repository to them. But I don't know how to allow students to contribute to their teams' projects, without having to host separate 8-10 large repositories, as we are nearing storage capacity with only 1.

I am unsure how to best manage this group projects and whether this will even be possible to host in 1 Academic workspace.

Should I be using pipelines to distribute projects, setting up forks for teams or creating 8 branches within the repository?

Thank you for taking the time to read through this query,

Any thoughts on what I should be looking into to manage this workspace would be greatly appreciated.

Regards,


Answers:
author: Patrik S
body: Hello [@Taylor_Bushell](/t5/user/viewprofilepage/user-id/5519649) ,

and welcome to the Community!

Given the limitation that[forks do not natively copy the LFS content](https://support.atlassian.com/bitbucket-cloud/docs/current-limitations-for-git-lfs-with-bitbucket/#Git-LFS-files-are-not-copied-when-a-repo-is-forked), I recommend using separate branches in the main repository to track each team's development. This way, teams can work in isolation on their branch and later merge their changes back to the main branch when ready. This would remove the need of having to "duplicate" the LFS files in a forked repository, which would likely exceed the available LFS storage in your current plan.

Another option, in case you're willing to get more LFS space, is to buy additional LFS storage for the price of $10 per 100 GB of LFS as needed. If you're interested in that option, you can find more details in the below article:

* [Overage Protection for Free plans](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Overage-protection-for-Free-plans)

I hope that information helps! Should you have any questions, feel free to ask.

Thank you, [@Taylor_Bushell](/t5/user/viewprofilepage/user-id/5519649) !

Patrik S


Tags: bitbucket-cloud

cloud
Issue creating first workspace
Asked by Roztta Devops:

Hello Atlassian forum team,

I'm experiencing an issue while trying to create a workspace on Bitbucket with the email **\<email_removed_for_privacy\>**. I recently created an account from scratch, but I'm unable to create even the first default workspace. When attempting to create a new workspace, I either receive an error message or nothing happens at all. I have checked my account settings and found no apparent blocks. I have attached some images that illustrate the screens and error messages I am encountering.

Could you please advise on how to resolve this issue?

Thank you in advance for your assistance.

Best regards, Claudio

![Captura de tela 2024-06-30 124737.png](https://community.atlassian.com/t5/image/serverpage/image-id/332614iD4C925B4C105C823/image-size/large?v=v2&px=999 "Captura de tela 2024-06-30 124737.png")![Captura de tela 2024-06-30 124504.png](https://community.atlassian.com/t5/image/serverpage/image-id/332611iDC611F7AE20280F9/image-size/large?v=v2&px=999 "Captura de tela 2024-06-30 124504.png")![Captura de tela 2024-06-30 124554.png](https://community.atlassian.com/t5/image/serverpage/image-id/332612iDE31E2F198C98F6B/image-size/large?v=v2&px=999 "Captura de tela 2024-06-30 124554.png")![Captura de tela 2024-06-30 124613.png](https://community.atlassian.com/t5/image/serverpage/image-id/332613i8F124F6972D931CA/image-size/large?v=v2&px=999 "Captura de tela 2024-06-30 124613.png")


Answers:
author: Hana Ku?erov?
body: Hi [@Roztta Devops](/t5/user/viewprofilepage/user-id/5532539) ,

welcome to the Atlassian community.

There has been recent changes, Bitbucket Cloud is now in Atlassian Administration.

If you don't have any cloud organization yet, I suggest to create one (<https://support.atlassian.com/organization-administration/docs/get-started-with-an-atlassian-organization/>) and add Bitbucket to it (<https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/>).


Tags: bitbucket-cloud

cloud
Bitbucket create workspace 404
Asked by Luthfi Fitra Musyaffa:

I just created this account but i got 404 when opening the <https://bitbucket.org/workspace/create/> page, i have an account before that also got this same issue, tried changing browser but it still doesnt work, is there a bug happening or is there any fix ?


Answers:
author: Hana Ku?erov?
body: Hi [@Luthfi Fitra Musyaffa](/t5/user/viewprofilepage/user-id/5532429) ,

welcome to the Atlassian community.

There has been recent changes, Bitbucket Cloud is now in Atlassian Administration.

If you don't have any cloud organization yet, I suggest to create one (<https://support.atlassian.com/organization-administration/docs/get-started-with-an-atlassian-organization/>) and add Bitbucket to it (<https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/>).


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
Bitbucket?????????
Asked by ????:

SourceTree????????????????? Bitbucket?????????????????????404????????????????????????????????????????

1_Bitbucket?????????????

2_??????????

3_SourceTree?????

???????????????????????????????

?????????????


Answers:
author: Patrik S
body: Hello [@????](/t5/user/viewprofilepage/user-id/5411224) ,

thanks for reaching out!

I noticed that you triggered the deletion of your account. Could you please confirm if you managed to create a new workspace or if you are still facing issues during its creation?

If you are still interested in creating a workspace, but are facing errors, please let me know so I can raise an internal support ticket to assist you further.

Thank you, [@????](/t5/user/viewprofilepage/user-id/5411224) !

Patrik S


Tags: sourcetree

workspace
how can we create a new user?
Asked by VIJAY KIRAN KALAVALA:

How can we create a new user?


Answers:
author: Yogesh Mude
body: Hi [@VIJAY KIRAN KALAVALA](/t5/user/viewprofilepage/user-id/1412079),

In Admin --\> User settings --\>Users--\> Add User.

You will find more information [here](https://confluence.atlassian.com/fisheye/creating-a-user-298976863.html)..

comments: author: VIJAY KIRAN KALAVALA
body: Hi yogesh,

Thanks for the answer. I don't have access to admin link


author: Yogesh Mude
body: Hi [@VIJAY KIRAN KALAVALA](/t5/user/viewprofilepage/user-id/1412079),

Have you Installed new server?

If yes, at the bottom/footer you will find Administrator.

Click on it, then try to login as Admin then you can be able to Create New user.
Restarting Crucible but lost Configuration. How to restore from cache?
Asked by Mike Sheehan:

We had a PostgreSQL crash and had to fix and restart.  
We were able to restart JIRA and Confluence no problem.  
But Crucible came up and appears to have lost all configuration including license.  
/var/Atlassian/crucible files all appear to be fine.  
**Can you please tell us how to restart Crucible in order to restore all of our repositories and "reviews"?**


Answers:
author: Mike Sheehan
body: SOLVED. I solved my issue by copying the config.xml file from my /var/atlassian/application-data/crucible directory to my FISHEYE_HOME directory. And then restarting. It appears everything is back to normal.


Tags: fisheye-crucible-administration

server
Can crucible support multiple authors?
Asked by Scott Suppan:

Our changes being reviewed have multiple authors. Is there a way to specify multiple authors? If not, perhaps you will change the UI to support multiple authors just like the reviewers field supports multiple reviewers.


Answers:
author: Caterina Curti
body: Hi [@Scott Suppan](/t5/user/viewprofilepage/user-id/1390989),  
Fisheye/Crucible only supports one single author.

The authors in Crucible page (<https://confluence.atlassian.com/crucible/authors-in-crucible-298977326.html>) provides more context on the expected usage of this field:  
"The author is the person primarily responsible for acting on the outcomes of the review. In the vast majority of cases the author will be the person who made the code change under review."

Since this is not a common request, could you please help us in understanding the workflow that would benefit from this? What is currently not possible because of the availability of a single author?

<br />

Cheers,

Caterina - Atlassian

comments: author: Scott Suppan
body: I understand what the primary author is in this context however our projects don't exactly working like that.

We are conducting reviews at the end of each sprint in our mobile development. We have multiple authors contributing during that sprint. One author is working on business logic while another is working on user interface controls and another is working on the web portal which accompanies the mobile app. As a result, the code is reviewed in a branch and has different authors.

While one author might be the "main" author, he cannot necessarily comment on some of the defects mentioned because he is not an expert on that subject. So he would like the other authors to comment. The tool prohibits that because they are not part of the review. In order to work around this prohibition, I have to make them reviewers just so that they can comment. While this works, it can be confusing since they are really authors in addition to one chosen as the main author.

You might advise us to have multiple smaller individual reviews but then that takes some of the code out of the context for us. The code is better understood in the context of the stories worked off in that sprint.

I think it would make your tool more flexible to permit multiple authors. Surely, this would make the tool stand apart from pull requests.