youngmon/atlassian-qna huggingface dataset:
Bitbucket workspace API
Asked by Roman Sulyba:

Hello everyone.

I tried to add a new user into a group using bitbucket API. It works only for a users' who are in the certain workspace. So, my question is: are there any endpoints to add user into a workspace. I have investigated it in the Atlassian documentation, but haven't found any endpoint which I need.

Thanks in advance)


Answers:
author: Theodora Boudale
body: Hi [@Roman Sulyba](/t5/user/viewprofilepage/user-id/4760777),

We provide temporary support for 1.0 API resources for invitations, until we have ones available for 2.0 REST API.

You can take a look at the following documentation, specifically the section with the title "**Issue an invitation to a group**":

* <https://support.atlassian.com/bitbucket-cloud/docs/invitations-resource/>

Please feel free to let me know if that works for you and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud
How can i make my inactive account as active again?
Asked by Ahsan Butt:

This is what i got as a reply from bitbucket support:

I've checked your email, \<email removed due to privacy reasons\> and I can see that your account is disabled and inactive. This may be the problem why you can't access other repositories.  
Also, since you are on a **Free subscription** , I would recommend creating a post with this issue on the [Community](https://community.atlassian.com/?from-gsac=true) so a community member will help you soon.

Kindly guide me how can i make my account active again ?


Answers:
author: Caroline R
body: Hi, [@Ahsan Butt](/t5/user/viewprofilepage/user-id/4763646), welcome to the community!

Checking the Atlassian account linked to the email you shared here, I can see it is active. However, it had a block on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. I see you mentioned in an internal ticket you were not receiving an invitation email, so could you please ask your team to **remove** the invitation and send you a new one now? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline

comments: author: Ahsan Butt
body: HI Caroline,

I'm receiving the emails as expected on the mentioned email account now. Many thanks for your time and adjustments you made.

Regards,

Ahsan Butt


Tags: bitbucket-cloud

cloud
Where are the avatars?
Asked by Scott Molinari:

Along with my gripe about not being able to change the look and feel the same way across the products Jira, Confluence, Stash and Bamboo, the same concern goes for user avatars.

Why must a user go through Gravatar to change a user avatar in Stash and why can't a user even change an avatar in Bamboo?

If I am on Jira's user directory within all the applications, why can't the avatar the user saved in Jira be carried over to each application automatically?

Scott


Answers:
author: Scott Molinari
body: I am going to answer my own question as an answer, even though this isn't a solution to my question, just so the damn emails can stop telling me my question hasn't been marked as answered yet.

This system needs improvement.

How about staff from Atlassian get emails about unanswered questions and stop sending them to me? I don't need to be reminded I never got my answer to my question and in fact, it sort of pisses me off, when I am reminded and even bothered about the fact that I didn't get an answer.

Scott


author: Przemek Bruski
body: Bamboo uses Gravatar too. Check if Gravatar support is enabled in your General Configuration and that your email is registered with Gravatar.

comments: author: Scott Molinari
body: Thanks, but why use Gravatar, when the avatar is already sitting in Jira without Gravatar? Also, if Jira and Confluence have this function, why can't Stash and Bamboo have it too? It seems like the right hand of Atlassian doesn't know what the left hand is doing.

I can also imagine using Gravatar for companies with a tight security around their development is a no-no and it simply doesn't make sense for applications like Bamboo and Stash, which would stay mostly internal to a company.

I could, however, imagine it is much more useful for Confluence and Jira or any other software where the general public can be given permission to see content from those systems and where users from the general public (customers of Atlassian customers) register to comment in those systems, THEN use Gravatar for their avatars. That makes sense.

Oh, and the Gravatar function doesn't seem to work properly in our Bamboo either. Doesn't matter really. I don't want Gravatar, I want an avatar function in the system.

Scott


author: Sam Grooms
body: I agree with Scott on this. This is pretty dumb to have 2 of the 4 major Atlassian products using a different method for profile avatar management.


author: Craig Neth
body: Amen. Our usage of Jira/Confluence/Bamboo is all internal; all external access has to be vetted for business use; using an external service for pictures is not going to fly (beside, then my developers would all have to map their internal identities to external identities, also a non-starter). So Gravatar is not a 'solution'.


author: Peter Kahn
body: Nothing worked for me until I fiddle on gravatar's site with making my work email primary and then toggling back. I'll bet it's just an update issue.
Can't log in to Bitbucket
Asked by Kellen Hawley:

When trying to log in and set up a Bitbucket account, I run into the following error:

"We couldn't log you in. You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."


Answers:
author: Caroline R
body: Hi, [@Kellen Hawley](/t5/user/viewprofilepage/user-id/3552851), thank you for reaching out to Atlassian Community.

I confirmed that there is a Bitbucket account linked to the email you used to create this question and this account was set as inactive, so I reactivated it. Could you please try to access it now and let me know how it goes?

Looking forward to hearing from you.

Kind regards,   
Caroline

comments: author: Kellen Hawley
body: That fixed it, thank you for your help!


Tags: bitbucket-cloud

cloud
Is there a way to change the branch the PR is pointed to automatically
Asked by Meagan:

So right now, all our PR's point to our dev branch automatically.![test.png](https://community.atlassian.com/t5/image/serverpage/image-id/183909iCC9E3048EF947EBA/image-size/large?v=v2&px=999 "test.png")

However we have major branches for stories and branch off those story branches when doing subtasks.

dev branch -\> story branch -\> subtask branch

Is there a way to automatically point PR's to the branch the current one is branched off of and not dev?

Thank you!


Answers:
author: Caroline R
body: Hi, [@Meagan Hiatt](/t5/user/viewprofilepage/user-id/4760434), welcome to the community!

As [@Vishwas](/t5/user/viewprofilepage/user-id/1231381) said, currently, the destination branch is always the branch that is configured as the **Development branch** under the branching model. In order to change that, you can access Repository settings \> Branching model \> under **Development branch** , you can select the **main branch** or **a specific branch** \> click **Save** to apply the changes.

However, we have this feature request asking for this functionality as you can check on the link below:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,   
Caroline

comments: author: Meagan
body: Thank you! And I will add my vote to that feature request.


author: Vishwas
body: Hey [@Meagan Hiatt](/t5/user/viewprofilepage/user-id/4760434)

Welcome to Atlassian Community !!

My guess this is behaves because in "Repository Settings" --\> "Branching model" the development branch is set to "develop" branch hence. And in the settings i checked there isn't a option to set automatic.

Regards,

Vishwas

comments: author: Meagan
body: Yea that's what I figured. Thanks!


Tags: bitbucket-cloud

cloud
User dont reveice the invitation
Asked by Diego Marcano Lugo:

```
the user <email removed due to privacy reasons> does not receive the invitation to access the repository 
```


Answers:
author: Caroline R
body: Hi, [@Diego Marcano Lugo](/t5/user/viewprofilepage/user-id/4762847)! Welcome to the community!

I reviewed the email you shared here and confirmed that it had a block on the server that prevented emails from being sent to them. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason. In this case, I have removed the block from this email.

Now, could you please remove the invitation and send them a new one? You can do this by following the next steps:

In case you have invited them to a **specific repository**:

* Access the workspace \> Go to the repo you have invited them to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the email again to send a new invitation.

In case you have invited them to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group you have invited them to**;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How to recover my old mercurial repos?
Asked by oscarmy:

I want to recover my HG repos, seven in total. My Mercurial repos have no longer been accessible, and all be private.


Answers:
author: Caroline R
body: Hi, [@oscarmy](/t5/user/viewprofilepage/user-id/4760819), welcome to the community!

We can help you recover your mercurial repositories. In order to do that, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,   
Caroline

comments: author: oscarmy
body: Yep, i got that, thank you!


author: Theodora Boudale
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
What are the difference between branch delete, close or archive
Asked by Wojtek Pilwinski:

Hello,

I am quite new in git and I would like to ask for help in understanding the differences between deleting branch, closing it or moving to archive?

When I creating new pull request in Bitbucket cloud there is option to check "Delete My-Branch-Name after the pull request is merge".

But when I merging the same pull request in Bitbucket cloud then I have option to check "Close source branch".

Are those two options combine with each other, can I have here any conflicts here?

For example what will happen if I choose "Close source branch" when merging, but before (when I was creating pull request) I checked "Delete My-Branch-Name after the pull request is merge".

I am not even sure if those two actions are only Bitbucket's or at all Git's features?

But I've also heard about archiving branches on Git. And it seems to be for me the best option while I mainly want to archive branches instead deleting them. I would like to delete branch only manually. But not sure how to achieve that?

Or maybe "Close source branch" (when merging) is the same as archiving it? Or is it something else?

For any help in understanding those issues great thanks in advance.

Best Regards


Answers:
author: MutatedStrings
body: The close and delete options should do the same thing. Once the pull request is merged into the destination branch it should delete*(close)* the source branch if any of the options are selected.

Also if we do not choose to close/delete a branch then we can leave this option unchecked and bitbucket will not delete the branch once your pull request is merged. This means the branch would still be available in the repository and you can delete it manually when needed.


Tags: archive

bitbucket-cloud

branch

close

cloud

delete

pull-request
Remote repository exceed 4GB size, need a remote git gc
Asked by Marco Mantoanelli:

I'm currently working to reset a repository to a usable size on this repository \<information removed due to privacy reasons\> but the size limit of 4GB is reached and i can't do any push now.  
Can you please help?   
Thanks.  

m


Answers:
author: Caroline R
body: Hi, [@Marco Mantoanelli](/t5/user/viewprofilepage/user-id/4762294)! Welcome to the community!

I ran the GC against your repository and managed to reduce its size to 287.4 MB.

I also would like to share with you that we have a feature request to allow users to mark repositories for git GC, as you can check here:

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

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Marco Mantoanelli
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)   
my savior! Thanks really a lot.  
Thanks for the suggestions about community rules and behaviour too :)  

Regards,  
Marco


author: Tommy Dwi Putranto
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) can you help me too. my repository increased over 2GB different with my local repository. so i think i need to git gc on the server repo.  

this my repo:  
<https://bitbucket.org/tunaiku/senyumku-ios-version>  

Thanks


author: Patrik S
body: Hello [@Tommy Dwi Putranto](/t5/user/viewprofilepage/user-id/3526543) ,

Checking our internal tools I've noticed your repository is already under 2GB. In case you still need a GC to be run on our side, I would like to ask if you could please create a new question for your issue, as a question can become cluttered and difficult to follow if we try to troubleshoot multiple users' issues in it.

Thank you, [@Tommy Dwi Putranto](/t5/user/viewprofilepage/user-id/3526543) .

Kind regards,

Patrik S


author: ??ng B? T?
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I have similar problem. Could you support me ?   
I have posted a question at <https://community.atlassian.com/t5/Bitbucket-questions/My-repository-is-over-size-4GB-I-used-BFG-and-reduced-it-But-I/qaq-p/2379519#M94456>


author: Robert Wen_ReleaseTEAM_
body: Hello, [@Marco Mantoanelli](/t5/user/viewprofilepage/user-id/4762294)

I'm going to ping someone from Atlassian to see if manually doing garbage collection can help you out.

comments: author: Marco Mantoanelli
body: Hello [@Robert Wen_ReleaseTEAM_](/t5/user/viewprofilepage/user-id/3970316)  
thanks a lot!  

Looking forward for any updates from support :)  

m


Tags: atl-rvw

bitbucket-cloud

cloud
Not receiving bitbucket invitation emails
Asked by jeff_miralles:

I am not receiving an invitation from my primary email address, it only works when the invitation is sent through it's alternate email address.  

When accepting invite sent from the alternate email address, i can't accept the invitation due to an issue where email address does not match to the one that is invited. (primary vs alternate)


Answers:
author: Theodora Boudale
body: Hi Jeff,

Are the invitations sent to the same email address as your community account?

I can see in our system a Bitbucket Cloud account with the same email as your community account.  
This Bitbucket account has no secondary email address, but its primary email address is in one of our suppression lists with the message:

```
550: 550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces.
```

A verification for that email address also shows that a mailbox doesn't exist for that email at the moment.

Can you talk with your email administrator regarding activating that email?  
Once the email account is active, please let me know and I can remove the email address from our suppression list so you can receive Atlassian emails.

Kind regards,  
Theodora


Tags: atl-rvw

bitbucket-cloud

cloud
fatal: remote error: Not licensed
Asked by Mark Deschamps:

Following the upgrade of Bitbucket to patch the log4j vulernability, we have begun having issues pushing to the repos. Initially we were having issues authenticating through JIRA , but that was resolved by updating cacerts. Now when users attempt to login to Bitbucket, they can do so, but in attempting to push changes to the repo, receive the message:

"fatal: remote error: Not licensed. You do not have permission to access Bitbucket. Please contact your administrator to resolve this issue."

We are currently only using 14 out of 25 licenses.


Answers:
author: Pramodh M
body: [@Mark Deschamps](/t5/user/viewprofilepage/user-id/4761033)

Can you check with re-authenticating to Bitbucket and let me know if it works

<https://community.atlassian.com/t5/Bitbucket-questions/User-not-licensed/qaq-p/1617969>

Thanks


Tags: bitbucket-server

licence

server
BitBucket API
Asked by Roman Sulyba:

Hello. I'm trying to add user into mine bitbucket group, using Atlassian API. For doing that, I haven't found any endpoints in a current official documentation - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-users/#api-users-username-members-get>. After investigating that issue, I have found an 1.0 version endpoints. For several endpoints (get all users from group and etc.) it works, but for the  
`PUT `<https://api.bitbucket.org/1.0/groups/{workspace_id}/{group_slug}/members/{uuid}/>` --data '{}'`  
from the website - <https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/>  
it doesn't work. Returns 404 code  
Please, help me with that problem. Is there any others endpoints to cope with that problem?


Answers:
author: Pramodh M
body: Hi [@Roman Sulyba](/t5/user/viewprofilepage/user-id/4760777)

I just tried with the API and its working

```
curl --user 'your-username:token' \
--request PUT https://api.bitbucket.org/1.0/groups/{workspace-id}/{group-name}/members/{username}/ --data '{}'
```

Pass the parameter workspace-id, groupname, and username in the URL

Suppose if you need to the user with george the API Call goes like this

```
curl --user 'your-username:token' \
--request PUT https://api.bitbucket.org/1.0/groups/{workspace-id}/{group-name}/members/george/ --data '{}'
```

It doesn't take GUID, go with a username

Let me know if you have any queries

Thanks,  
Pramodh

comments: author: Pramodh M
body: Hi [@Roman Sulyba](/t5/user/viewprofilepage/user-id/4760777)

Were you able to get this working?


author: Roman Sulyba
body: Hello [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)

Yes I was. Thank you very much.


author: Pramodh M
body: [@Roman Sulyba](/t5/user/viewprofilepage/user-id/4760777)

Please mark the answer as accepted ?


author: Pramodh M
body: [@Roman Sulyba](/t5/user/viewprofilepage/user-id/4760777)

Here's a resolution

<https://community.atlassian.com/t5/Bitbucket-questions/Adding-users-groups-to-a-repository-using-REST-API-2-0/qaq-p/1545205>

Thanks

comments: author: Roman Sulyba
body: [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)

Thank you for a quick response. I have read an answering in that URL and found an endpoint which I have used previously. Unfortunately it returns me 404 status code. But another endpoint (GET <https://api.bitbucket.org/1.0/groups/{workspace_id}/{group_slug}/members>) works ideally)![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/183587i8C1C637340386C1F/image-size/large?v=v2&px=999 "image.png")


Tags: bitbucket-cloud