youngmon/atlassian-qna huggingface dataset:
How can I make other users see branches?
Asked by Lutz Andersohn:

I am new to bitbucket. I created a project and a repository in this project.

I created 2 branches in my repo and I gave admin access to a collaborator.

This collaborator sees my repo but only the master branch. I am very confused and was wondering what I have to configure/enable to make all branches visible to the collaborator.

Thanks


Answers:
author: Theodora Boudale
body: Hi Lutz and welcome to the community!

Any user with access to a repo (no matter the type of access) should be able to view all branches.

We'll need some further info to figure out what the issue is.

Which page of the repo is the collaborator not seeing the branches?

Is it the **Branches** page, [https://bitbucket.org/\<workspace-id\>/\<repo-slug\>/branches/](https://bitbucket.org/<workspace-id>/<repo-slug>/branches/) ?

If so, please note that by default this page shows branches that are ahead or behind master. If those new branches don't have any commits yet, they'll need to click the dropdown that shows "Active branches" and switch it to "All branches" to see the new ones.

If the issue is different, could you please give us some more details on where the issue occurs and perhaps a screenshot that demonstrates the issue? (Please make sure to blur any sensitive/private info from the screenshot)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Users experiencing intermittent 502 error message when trying to access bitbucket, bamboo and jira
Asked by P:

As stated in the title.

Users are experiencing this intermittent 502 error, that comes and goes away.

I'm not sure on how to troubleshoot this, I was hoping the community may be able to recommend some things.

We have only started to hear about this since we went offline - I think something is trying to access the internet and timing out - however it is holding on to the client request while it waits for this timeout.

To expand more, we recently migrated our network to an offline network, meaning it cannot be reached via the internet. Could this be the source of these errors?  

Anyway to pinpoint the culprit.


Answers:
author: Daniel Ebers
body: Hi Rob,

if it is not happening all the time it might be related to overload situations - probably due to high peak hours with users accessing the systems.

Are all of the three products behind a [reverse proxy](https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-753894340.html) - probably the same? In other words, is the reverse proxy generating the 502 error?  
If so, I would start looking into this first.

In case you have no proxy in front of the services I'd suggest to look into the logfiles first - one after the another and to compare if anything suspicious is recognizable by viewing them.

<https://confluence.atlassian.com/bitbucketserver/bitbucket-server-debug-logging-776640147.html>  
<https://confluence.atlassian.com/adminjiraserver/logging-and-profiling-938847671.html>  
<https://confluence.atlassian.com/bamboo/logging-in-bamboo-289277239.html>

The network change should not be related to it when the error only happens sometimes - in case it would have caused the issue I suspect the error would be of permanent nature.  

In any case here comes the link with the general troubleshooting documentation for Jira (but the high-level steps apply for Bamboo and Bitbucket as well):  
<https://confluence.atlassian.com/jirakb/troubleshoot-performance-issues-in-jira-server-336169888.html>

Cheers,  
Daniel


Tags: bamboo

bitbucket-server

error

jira

jira-server

server
Deploy to AWS kubernetes fails at kubectl apply command
Asked by Mafer Su?rez:

I am trying to make a deployment to the eks aws, this is my pipeline:  

```
- step:        
 name: "Deploy to TEST"        
 deployment: test        
 script:          
  - pipe: atlassian/aws-eks-kubectl run:1.3.1            
 variables:              
 AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}              
 AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}              
 AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}              
 CLUSTER_NAME: "cluster-name"              
 KUBECTL_COMMAND: "apply"              
 RESOURCE_PATH: "file.yaml"
```

but I get this:  

error: you must be logged in to the server (the server has asked for the client to provide credentials)

Please can you help me, I don't know what I'm doing wrong!


Answers:
author: eric.jatiwaseso
body: Hi,

I solved this issue after changed

```
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}              
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}   
```

with aws access key and aws secret access key of the user who was created the EKS cluster


author: Mafer95
body: I solved the problem by updating the version of kubernetes, I was using version 1.16 and now with version 1.18 everything works fine.


Tags: aws

bitbucket-pipelines
Adding users/groups to a repository using REST API 2.0
Asked by Akshay b:

I am trying to add existing user/group to a bitbucket repository (public/private) using REST API 2.0. I am not able to find any endpoints available for it! Can anyone help me with it?

This might be a duplicate of the question: <https://community.atlassian.com/t5/Bitbucket-questions/Add-user-to-private-repository-via-BitBucket-REST-API-2-0/qaq-p/1169437>

But even there no answers are found!!


Answers:
author: Theodora Boudale
body: Hi [@Akshay b](/t5/user/viewprofilepage/user-id/4025953) and welcome to the community.

At the moment there is no support for adding users/groups to a repo via API 2.0 in Bitbucket Cloud. Until this is implemented, we have temporary support for 1.0 API resources that can do this.

The following endpoint can be used to send an invitation for direct repo access, see **POST send an invite**:

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

The following can be used to send an invitation to a user group, see **Issue an invitation to a group**:

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

If you want to create a new user group in a workspace, you can use the following endpoint, see **POST a new group**:

* <https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/>

I hope this helps, please feel free to let me know if you have any questions!

Kind regards,  
Theodora

comments: author: Akshay b
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) . I was able to add groups to a repository in a different way. Check out my answer.


author: William M_
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

is your answer still valid? Are these Endpoints still available?

Thank you in advance!

Regards,

William


author: Akshay b
body: Hi,

I was able to add groups to a repo via API 2.0 in Bitbucket Cloud. Instead of trying to add groups to a repo directly, I tired to add Branch Permission to a repository. Something like this.

```
curl --url "https://api.bitbucket.org/2.0/repositories/{WORKSPACE}/branch-restrictions" --user username:password --request POST --header "Content-Type: application/json" --data "{"kind": "push", "pattern": "{branch_name}","groups": [{"name": "{group_name}","type": "group", "slug": "{group_name}"}]}"
```

<br />

By executing this I was able to add the group to my repository and also was able to set branch permission to that group. But there is one issue, Executing this added all the available groups to the repository with admin access.


Tags: access

bitbucket-cloud

cloud

rest-api

user
How to enable SSL on Bitbucket on windows server?
Asked by Mark:

We have BitBucket server installed on Win Server 2019. We have the https certificate. I want to configure the BitBucket server so that everyone need to access it via <https://bitbucket.mycompany.com/> (an intranet address)

How should I do?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

You can do directly in tomcat

<https://confluence.atlassian.com/bamboo/securing-bamboo-with-tomcat-using-ssl-391087422.html>

or behind reverse proxy

<https://confluence.atlassian.com/bamkb/securing-bamboo-behind-nginx-using-ssl-829075298.html>


Tags: bitbucket-server

iis

server

ssl
Changing email addresses
Asked by Steve Brain:

I am trying to change the domain associated with our account, and cannot change email addresses of people because the account already seems to exist for some of them. How do I merge two accounts in to one.


Answers:
author: Theodora Boudale
body: Hi Steve,

Just to give you some context, both JIRA Cloud and Bitbucket Cloud use Atlassian accounts (the ones for <https://id.atlassian.com/>) for authentication. This way users can have access to both products with the same Atlassian account.

From your description, it sounds like some of your users may have created an Atlassian account with the new email (the one from the new domain), which is why the email change is not possible.

I'm afraid that it is not possible to merge accounts. What needs to be done here is delete the second account (with the email from the new domain) in order to free up the email. When the account gets deleted, you can make the email change in the account with the old email.

Two things to note here:  
- It will take 14 days for an account to get deleted, from the moment the deletion gets triggered. We give a 14-day grace period in case a user changes a mind about the deletion.  
- If you have verified the new domain and the accounts are managed, then users cannot delete the new account themselves, but the deletion needs to be done by an Org admin.

You can read more about account deletion here:  
<https://confluence.atlassian.com/cloud/delete-a-managed-account-961259516.html>

For those people that the new account already exists, I would suggest checking if they have by any chance created e.g. a new Bitbucket Cloud account as well or an account to another Atlassian Cloud product from your Organization details at <https://admin.atlassian.com/>. Deleting an Atlassian account will delete any linked accounts to Atlassian Cloud products as well.

If you have any questions or need further assistance, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jira
Cant push as repo size reached to 2 Gb, raised support ticket 24 hrs ago but no response.
Asked by Quality Assurance:

Our repo has crossed the 2 GB and not our developer unable to push the code, completely blocked, raised a support ticket 24 hrs but no response till now. Tried LFS but no luck, got error cant push as limit has reached.


Answers:
author: Theodora Boudale
body: Hi,

As per [Atlassian Support Offerings](https://confluence.atlassian.com/support/atlassian-support-offerings-193299636.html), support for Bitbucket Cloud is available 9/5 regional at the moment, i.e. Monday until Friday during your work hours (that you specify in the ticket). This is why you had no response in your support ticket yesterday.

I see that a support engineer has run a git gc for your repo and its size has been reduced, can you confirm if things are ok now?

If you ever face this issue again as a result of a large push, you can follow our documentation [here](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Reducerepositorysize-Undoingthelastpush) and reset to the commit prior to the large one, to remove the read-only limitation. Please note that it's important to have the Lab feature "Delete dangling commits when over size limit" enabled for your account before you make the push, so that a git gc will get triggered automatically.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
merge-base from rest api
Asked by Jgafner:

How can I know the merge-base commit sha of a pull-request via rest api ?


Answers:
author: Max
body: There is an endpoint for merge-base

<https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/merge-base/%7Brevspec%7D>

but it is in Cloud


Tags: bitbucket-server

server
bash: docker: command not found
Asked by Peter:

it was working yesterday but now got errors below, can Someone help, please.

```
atlassian/sftp-deploy:0.5.7
```

```
- step: &upload-and-deploy
    name: Upload
    services:
      - docker
    script:
      - pipe: atlassian/sftp-deploy:0.5.7
        variables:
          USER: 'xxxx'
          SERVER: ${SERVER}
          REMOTE_PATH: 'xxxx'
          LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/xxx.zip
          DEBUG: 'true'
```

But got error

bash: docker: command not found

bash: lesspipe: command not found

bash: dircolors: command not found


Answers:
author: helgispbru
body: I have the same issue on one of my repositories.

The only difference is that I have pipe: atlassian/scp-deploy:0.3.12, but I tried 0.3.10 and 0.3.13 - everything stay the same, it can't find docker.

Also I tried to add

```
services:
  - docker
```

and this doesn't help.  


Tags: bitbucket-cloud

bitbucket-pipelines
Pipelines problem with git submodules and .NET5 image
Asked by Jo?o Ant?o:

This week I've updated an application to .NET5, also updated the pipeline image from: image: mcr.microsoft.com/dotnet/core/sdk:3.1 to image: mcr.microsoft.com/dotnet/sdk:5.0

The initial step of my pipeline is using a git submodule like:

script:  
- git config --file .gitmodules submodule..folder/company.rulesets.url "git@bitbucket.org:company/company.rulesets.git"  
- git submodule update --init --recursive

This step fails with the following output:

    Submodule '.folder/company.rulesets' (mailto:git@bitbucket.org:company/company.rulesets.git) registered for path '.folder/company.rulesets'

    Cloning into '/opt/atlassian/pipelines/agent/build/.folder/company.rulesets'...

    error: cannot run ssh: No such file or directory fatal: unable to fork

    fatal: clone of 'git@bitbucket.org:company/company.rulesets.git' into submodule path '/opt/atlassian/pipelines/agent/build/.folder/company.rulesets' failed

    Failed to clone '.folder/company.rulesets'. Retry scheduled

I've verified even re-created and added an ssh key in the ruleset repository. Am I missing something here?


Answers:
author: Jo?o Ant?o
body: The image mcr.microsoft.com/dotnet/sdk:5.0 does not contain any ssh client. I've fixed this issue by installing openssh-client in the pipelines file, see below.

# Install open-ssh  
- apt-get update  
- apt-get install --yes openssh-client


Tags: .net

bitbucket-cloud

bitbucket-pipelines

cloud
Use Adaptavist for Bitbucket Server merge check to see if all commits from branch are in another
Asked by Richard W:

I am wondering if there is a way to use Adaptavist Script runner for Bitbucket server to see if all commits from one branch are in another branch. For example, consider the following branches.

- master

- development

- feature/1234-abc- feature

I would like to check if the commits from feature/1234-abc feature are in development prior to the merge into master from feature/1234-abc. I know that I can find the to branch using this

mergeRequest.pullRequest.toRef.displayId == "master"

But I couldn't figure out how to compare the commits, I was trying to rework the example of merge commits detected on feature branch, but was unsuccessful.


Answers:
author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@Richard W](/t5/user/viewprofilepage/user-id/1929132)

We have recently released the [Enforce Gitflow Workflow](https://library.adaptavist.com/entity/enforce-gitflow-workflow) script for scriptrunner, and I believe it should help you achieve what you need to do.

Even if you are not using the Gitflow workflow, you could have a look at the script and specifically the way it checks that a commit from one branch exists in another one.

Just to add, you do not need to compare more than one commits, you just need the latest one, as its id depends on the previous commits.

Regards,

Yannis


Tags: adaptavist

bitbucket-server

merge

scriptrunner

server
My technical Cofounder passed away. How do I get access to his account to save the codebase?
Asked by Matt Houston:

Unfortunately, my technical cofounder passed away a couple days ago. The top priority is obviously to make sure his family is taken care of. Secondarily, we were only a couple weeks away from launching our MVP and, as our sole developer, my later business parter had the only access to the codebase in BitBucket.

I wrote Atlassian Support and they have informed me that this community may be the best route to take for assistance since his account was still in the free tier.

As a less-technical cofounder, I basically have no experience in BitBucket. We were 2 weeks from launching the product in Beta and, for multiple reasons, it is important that I'm able to save his work and not, in essence, start all over.

Thanks in advance for the guidance here.


Answers:
author: Theodora Boudale
body: Hi Matt,

Welcome to the community and my condolences also.

This issue should actually be handled by Bitbucket Cloud support team instead of the community. This was our mistake and I apologize, I have talked to my colleague who has been handling your ticket and the ticket will get transferred to the appropriate team.

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

Kind regards,  
Theodora


Tags: account

bitbucket-cloud

cloud
Repository not found
Asked by Karl:

I'm following <https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/>

and I'm getting the "Repository not found". I've tried following the other posts similar to this and still can't get it working.

My repo is called the same thing as the URL too - myreponame.bitbucket.io.

Any help would be appreciated.

Thanks,

Karl


Answers:
author: Karl
body: I've fixed this. I tried creating the repo inside another workspace but it needed its own.

Thanks,  
karl


Tags: bitbucket-cloud

cloud
Download support zip in confluence
Asked by CHINNAMUTHEVISAI.SATYANARAYANASHARMA:

Hi,

We are experiencing high memory alerts in confluence.

Want to connect with atlassian regarding this.

So my question is do we need to have down time to download support Zip file in confluence?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@CHINNAMUTHEVISAI.SATYANARAYANASHARMA](/t5/user/viewprofilepage/user-id/4577557) ,

no downtime is needed to dowlnoad support zip. Here more information about how to generate and download it <https://confluence.atlassian.com/support/create-a-support-zip-790796819.html>

Hope this helps,

Fabio


Tags: confluence-server

server
Can I CQL search in personal spaces?
Asked by Al Manning:

When I attempt to search for a document named "Hello World" in my personal space, I get a \`400 Bad Request\`

CQL = \`[https://allenmanning.atlassian.net/wiki/rest/api/content/search?cql=title=%22Simple%20Doc%20-%20Hello%20World%22%20and%20space=\~557058634d59d0949841909bb13093ab41d0c5\&cqlcontext=%7B%22contentStatuses%22%3A%5B%22archived%22%2C%20%22current%22%2C%20%22draft%22%5D%7D](https://allenmanning.atlassian.net/wiki/rest/api/content/search?cql=title=%22Simple%20Doc%20-%20Hello%20World%22%20and%20space=~557058634d59d0949841909bb13093ab41d0c5&cqlcontext=%7B%22contentStatuses%22%3A%5B%22archived%22%2C%20%22current%22%2C%20%22draft%22%5D%7D)\`

Personal Space:

\`[https://allenmanning.atlassian.net/wiki/spaces/\~557058634d59d0949841909bb13093ab41d0c5/overview?homepageId=65617](https://allenmanning.atlassian.net/wiki/spaces/~557058634d59d0949841909bb13093ab41d0c5/overview?homepageId=65617)\`

This works in non-personal spaces, so I'm wondering if there is a limitation on the \~-based key.


Answers:
author: Al Manning
body: I was able to get this working by changing the syntax from:

\`and space=\`

to

\`\&spaces=\`


author: Kian Stack Mumo Systems
body: [@Al Manning](/t5/user/viewprofilepage/user-id/5141600),   

I am able to search against personal spaces using a more simple query -

[https://xxxx.atlassian.net/wiki/rest/api/content/search?cql=title=test\&spaces=\~xxxxx](https://xxxx.atlassian.net/wiki/rest/api/content/search?cql=title=test&spaces=~xxxxx) works for me.   

Are you sure the rest of your query is good? I can't get your rest API to run with the text "\&cqlcontext={"contentStatuses":\["archived","current","draft"\]}" on the end.

Thanks,   

Kian

comments: author: Al Manning
body: Thanks for the help, your suggested syntax change did the trick. Context is working when I made the change.


Tags: cloud

confluence-cloud
The "Unpublished changes" lozenge does not appear
Asked by Pierre Lonchampt:

According to e.g. <https://confluence.atlassian.com/doc/collaborative-editing-858771779.html#Collaborativeediting-Whatareunpublishedchanges> , there should be a "unpublished changes" lozenge appearing next to the pages I have worked on where my changes have not been published.

Well, it does not...until I actually open the page!  

<br />

That is super annoying. Tried on Chrome and Firefox.![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/238857i89BDB50E3C9543B8/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/238858iACB1BA3149BC57C2/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/238859i6C8810AFAA5586D0/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Bhanu KN
body: Hi [@Pierre Lonchampt](/t5/user/viewprofilepage/user-id/4520764) ,

Hope you are doing well :)

The article that you are referring to is for data center and server deployments. Unfortunately on the cloud, it won't add unpublised label in the list view :(

Regards,

Bhanu


Tags: cloud

confluence-cloud
Allow admins to manage system emojis.
Asked by Jonathan Smith:

I'll keep this pretty short... I don't want to give my users the ability to put middle finger emojis on their Confluence pages.

Is there an open request to allow admins the ability to manage **system** emojis in the admin portal?


Answers:
author: Brant Schroeder
body: [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1194895) you only have the ability to add emojis at the user / editor level. <https://support.atlassian.com/confluence-cloud/docs/use-symbols-emojis-and-special-characters/> You can submit an enhancement request here: <https://jira.atlassian.com/secure/Dashboard.jspa> for that feature.

comments: author: Jonathan Smith
body: Created a new request. Thank you for the link.  

[System Emoji Management Request](https://jira.atlassian.com/browse/CONFCLOUD-75303?jql=project%20%3D%20CONFCLOUD%20AND%20component%20%3D%20%22Confluence%20-%20Page%20-%20Delete%22)


Tags: cloud

confluence-cloud
unable to apply license
Asked by Steven Finkelshteyn:

Pasting license in "Update License" area produce weird window with "Page Not Found"

* [Atlassian Confluence](http://www.atlassian.com/software/confluence) 7.13.4


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Steven Finkelshteyn](/t5/user/viewprofilepage/user-id/1204813) ,

please could you share a screenshot? I just tried in my own instance without issue.

Fabio


Tags: confluence-server

server