youngmon/atlassian-qna huggingface dataset:
Contact form is not working
Asked by Systems and Infrastructure:

Hi,

I'm trying to contact the Atlassian support to create a request but the form where they are created is not letting me submit them. (<https://support.atlassian.com/contact/#/>)

When I try to submit the form this error is showed.

![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/153543i63B8AFD1CEA019B9/image-size/large?v=v2&px=999 "Capture1.PNG")

And when I look at the browser console this info appears.

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/153544i2E5DA65DB88C2766/image-size/large?v=v2&px=999 "Capture.PNG")

It seems that a content security policy is applied but some essential scripts are being blocked.

In the end I create the request using the "Get Help" functionality in Bitbucket but I would like to know if this problem is "on my side" or if it is something with the Atlassian website.

Someone else with this issue?

Best regards,

Joana


Answers:
author: Systems and Infrastructure
body: It is working again.  
The captcha now appears and I was able to submit the request. ?


Tags: bitbucket-server

server
Create/update Jira "Release" objects using Bitbucket Pipelines
Asked by Matt Dalen:

Hi, all,

I'm trying to figure out how to do the following in a bitbucket pipelines script (to be triggered on a PR merge):  
a) Given a version string from the code, create that release version in the Jira "Releases" page if it does not already exist.

b) Add that version to the list of "fix versions" on all tickets tied to the branch being merged.

I have no idea if this is possible, but it seems like it should be, otherwise the Jira Release functionality seems kind of useless if you have to do it manually.


Answers:
author: Mark C
body: Hi [@Matt Dalen](/t5/user/viewprofilepage/user-id/4189257),  

Thanks for reaching out to the community.  
I'm Mark from the Bitbucket Cloud support team.  

When it comes to Pipelines, this should be doable by running API calls inside your Pipelines YAML configure through CURL.  
You can also use default [environment variables](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/) on Pipelines to form a version string (e.g. **BITBUCKET_BUILD_NUMBER**).  

When it comes to Jira Cloud REST API for releases, I'm not 100% sure Jira has REST API endpoints for it.  
I've found this [community question](https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-release-a-version-using-REST-api/qaq-p/563559) but it does not confirm if there's a REST API as they've used SOAP from JIRA CLI.  

Hope that helps and let me know if you have questions about Bitbucket Pipelines.  

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jira
Pull request on bitbucket isn't triggering a build on bamboo
Asked by stevenzhong:

Pull request on bitbucket isn't triggering a build on bamboo.

We have built bitbucket and Bamboo internally. Currently we have moved the bamboo server to the new IP. However, when pull requests were submitted on bitbucket and merged, the builds could be automatically added to Bamboo, but now they cannot be automatically triggered.


Answers:
author: stevenzhong
body: System Error Details {#toc-hId--1238220963}
-------------------------------------------

*[Build Churchill Backend Dev - internal-console-parent](https://bamboo.sfdcbt-cn.net:8443/browse/CHURDEV-IN):* Repository error while detecting branches for repository 15466529. command \[/usr/bin/git ls-remote ssh://4871caf0-08c3-4343-8322-0b4040d22bd2@127.0.0.1:42969/chur/internal-console-parent.git\] failed with code 128. Working directory was \[/opt/atlassian/atlassian-bamboo-7.1.3/temp\]., stderr: Remote connection failed stdout: Warning: Permanently added '\[127.0.0.1\]:42969' (RSA) to the list of known hosts. BAMBOO-SSH-PROXY: \[SSH proxy tried to connect to \[git@bitbucket.sfdcbt-cn.net/10.5.100.12:7999\]: and failed due to the following error: \[Remote connection failed\]: Failed to get the session.\] fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.  
(com.atlassian.bamboo.plugins.git.GitCommandException : command \[/usr/bin/git ls-remote ssh://4871caf0-08c3-4343-8322-0b4040d22bd2@127.0.0.1:42969/chur/internal-console-parent.git\] failed with code 128. Working directory was \[/opt/atlassian/atlassian-bamboo-7.1.3/temp\]., stderr: Remote connection failed stdout: Warning: Permanently added '\[127.0.0.1\]:42969' (RSA) to the list of known hosts. BAMBOO-SSH-PROXY: \[SSH proxy tried to connect to \[git@bitbucket.sfdcbt-cn.net/10.5.100.12:7999\]: and failed due to the following error: \[Remote connection failed\]: Failed to get the session.\] fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.)


author: stevenzhong
body: ![image (4).png](https://community.atlassian.com/t5/image/serverpage/image-id/153523i9565E12057F310BC/image-size/large?v=v2&px=999 "image (4).png")

comments: author: stevenzhong
body: ![pr-merge-wrong.png](https://community.atlassian.com/t5/image/serverpage/image-id/154010iF8BE272BFAC6FE27/image-size/large?v=v2&px=999 "pr-merge-wrong.png")


author: stevenzhong
body: Bitbucket does not trigger bamboo auto-build automatically after PR merge


Tags: bamboo

bitbucket-server

server
How can I find the member by email here?
Asked by Son Le:

![Screen Shot 2021-07-29 at 4.53.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/153519i93ED8377DBC1D729/image-size/large?v=v2&px=999 "Screen Shot 2021-07-29 at 4.53.35 PM.png")


Answers:
author: ashley lose
body: Thanks for the clarification. [teatv](https://teatvapk.win)

[spice money login](https://hellodear.in/spice-money-login)


Tags: bitbucket-cloud

cloud
I have a bibucket pipeline which fails on build but runs successfully on my local machine.
Asked by Arun Padmanabhan:

I have a bitbucket pipeline which basically runs a python script which checks if some files are in the correct format, the build keeps failing on my staging branch and throws an error but when i run the same script on my local while working on the same branch in the repo the script runs without throwing any error. i'm not sure what the problem is. I attached an ss as the code block doesnt format the pipeline correctly.

![Screenshot 2021-07-29 at 2.16.47 PM.png](/t5/image/serverpage/image-id/153509iC428316576ADC770/image-size/large?v=v2&px=999 "Screenshot 2021-07-29 at 2.16.47 PM.png")


Answers:
author: Nic Brough -Adaptavist-
body: You'll need to debug this manually, looking at the differences between the build environment and your own local one.

I would start with a look at the error messages coming from the build server - they should tell you what has failed, and hence point you to what you need to change.

comments: author: Arun Padmanabhan
body: This got fixed, apparently it was a python issue and i had to fix the script, although the weird thing is that it only gave an error on the bitbucket pipeline and worked perfectly on my personal machine.


author: Arun Padmanabhan
body: I'm facing another issue now where inside the pipeline the merge fails in the build setup phase, thereby failing the build.

The weird thing is that there are no merge conflicts in the pr and the pr gets merged without any issue, but the pipeline keeps failing for some reason.


author: Nic Brough -Adaptavist-
body: It's probably still something in the environment.


Tags: bitbucket-pipelines
Unable to remove zombie workspace
Asked by nfrnds_stan:

i wish to remove a workspace.  
it has 1 member  
0 repositories

i am unable to add members, leave or remove


Answers:
author: Caroline R
body: Hi, [@nfrnds_stan](/t5/user/viewprofilepage/user-id/1782157)!

Thank you for reaching out to Atlassian Community!

Could you please confirm if you are trying to remove your personal workspace or a shared workspace?

The reason I'm asking this is that it's no possible to delete your personal workspace, Bitbucket doesn't even show the Delete button, so this is expected.

However, if you are trying to delete a shared workspace, you should be able to see the **Delete** option by following the next steps:

* Access the workspace \> **Settings**

* Under the Workspace settings, click on the **Delete workspace** option

* Click on the **Delete workspace** option to confirm the deletion

If you are trying to delete a shared workspace and having issues, could you please clarify if you are receiving any error messages?

Thank you!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How can a whole branch commits disapear ?
Asked by Jonathan PRIOU:

Hi everyone,

a few hours ago, a whole branch on my workspace got emptied like nothing has ever been done with it. It's been used for a few months now, it's not merged, it still shows up, but it's empty. What's weird is that the source files for this branch are available and up to date.

I'm pretty worried to try to commit or update anything and lose my work for now and I'm stuck in my job. Any idea how to fix this would be very much apreciated.

Unfortunately this repository is private since it's company's private project. Let me know what information I should provide.

Thank you


Answers:
author: Mark C
body: Hi [@Jonathan PRIOU](/t5/user/viewprofilepage/user-id/4495174),

Welcome to the community.

I'm sorry to know that you're stuck because of this.

We do have a known bug where recent commits are suddenly not showing on the UI. - <https://jira.atlassian.com/browse/BCLOUD-19548>  
It could be caused by some stale cache on the repository and the workaround is to try to push a new commit or a new branch to the repository.  

*** ** * ** ***

:warning: Before proceeding below, you can back up your repository by cloning it via **--mirror** clone.

```
git clone --mirror <your repository URL - HTTPS/SSH>
```

*** ** * ** ***

<br />

To see if what you're experiencing is related to the known bug, would it be possible for you to try to push a new commit or a new branch to your repository?

Do let me know how it goes.

Regards,  
Mark C


author: Jonathan PRIOU
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823) ,

Thank you for your answer. Like I said, I did not dare to commit anything then because I was scared to lose my work.

However, I did repilicate the repository to a new one, since the source files in that branch where still showing, then every commits showed up properly in the new repository.

It seems your assumption about what's happening is correct, it's obviously only a display bug.

Thanks for your help.


Tags: bitbucket-cloud

cloud
Pull Requests Author Filter Only Shows Historical Users
Asked by Wesley Werner:

#### Background {#toc-hId--538023270}

The Pull Requests page is crucial to our day-to-day dev-ops workflow. A good user experience in this area is paramount.

#### Issue {#toc-hId-1949489563}

The Author Filter drop-down only lists ten users, and what is even worse, only my own account (listed at the top) is an active developer. All the other users listed are historical and no longer on the team. Thus every time I need to filter it requires keyboard input. It is quicker to filter in the git CLI than on the pull requests page.

These historical users have long since been removed from bitbucket access. So why are they listed by default in the Authors Filter drop-down?

How can I list active users first, and search for old users instead?


Answers:
author: Caroline R
body: Hi, [@Wesley Werner](/t5/user/viewprofilepage/user-id/772600)!

Thank you for reaching out to Atlassian Community!

I'm afraid we currently do not have a way to change this setting, however, we understand that this could be improved, so we already have a feature request to change this:

* [Better ordering of Authors in Pull Request dropdown](https://jira.atlassian.com/browse/BCLOUD-21193)

I've linked your question to this feature. Please consider adding yourself as a watcher, this way you get updated as we make progress with this.

If you are not familiar with our Feature Request Policy, you can read more about it here:

* [Implementation of New Features Policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html)

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Wesley Werner
body: Excellent thanks for linking the PR.


Tags: bitbucket-cloud

cloud

user-interface
Why cannot a user with read only access fetch user list for a repository but it can clone the repo
Asked by Aalok Sood:

A user with read only access can clone the repository, and hence can read all commits and get information about the authors.

The 2.0 rest apis are sending the entire commit history and that includes the author information.

The logged in user with read only access can fetch the user information for any user with key of that user.

It's super weird that a user with read only access can fetch every possible data but not the list of members? Is there some logic behind this?

How can a user with read only access fetch the list of members for a repository via 2.0 REST api?

Is this behaviour documented somewhere? I have been reading the API docs for a few days now but unable to find anything on this.


Answers:
author: Mark C
body: Hi [@Aalok Sood](/t5/user/viewprofilepage/user-id/4494806)

Welcome to the community.

We do have the below API 2.0 endpoint that you can use to get repository users/members permissions.

```
/2.0/workspaces/{workspace}/permissions/repositories/{repo_slug}
```

However, according to the [API 2.0 endpoint documentation](https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/permissions/repositories/%7Brepo_slug%7D):
> Only users with admin permission for the repository may access this resource.

If you're using the above API 2.0 endpoint, I'm afraid that endpoint can only be accessed by users with Admin access.  
Hence, users with read-only access cannot access that endpoint and get user/members' repository permission.

This is also true in a repository on the Bitbucket.org UI.  
Users with read-only access can view the **Commits** page but the user will not be able to access the **Repository settings**to view all members/users added to that repository.

Do let me know if you have further questions about it.

Regards,  
Mark C


Tags: api

bitbucket-cloud

cloud

rest
Unable to collect changes
Asked by Nate Case:

Hello,

We are getting the error unable to collect changes in our TeamCity builds intermittently.

Failed to collect changes, error: List remote refs failed: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset, VCS root:

Not sure if this is related to using one SSH key for all our VCS triggers within bitbucket cloud and if using several keys would resolve this issue. Any advice would be much appreciated.


Answers:
author: Theodora Boudale
body: Hi Nate,

I see that you have opened a support ticket for this issue and one of our engineers is working with you on this.

I will follow the progress of the ticket, and once the investigation is finished I will post here regarding the root cause of the issue and resolution, for any other users that may come across the same issue. (Otherwise, feel free to also leave a note here yourself)

Kind regards,  
Theodora

comments: author: Adam Crane
body: is there a solution for this issue? We are experiencing the same problem.


author: Theodora Boudale
body: Hi [@Adam Crane](/t5/user/viewprofilepage/user-id/4956278),

I would suggest creating a ticket with Bitbucket Cloud support team so we can investigate your specific issue.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Please mention in the ticket:

1. What is the exact operation in TeamCity that gives this error, is it a clone operation, another Git operation, API calls. It would be useful to have the exact command that is executed and gives an error.  
2. The URL of the repo (or repos) where this issue occurs  
3. What kind of authentication is used for these operations  
4. The date and time (+ timezone) of such a failed recent event

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
"Something went wrong" in all projects on certain screens.
Asked by Ian Lueninghoener:

![Screen Shot 2021-07-28 at 10.35.20 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/153352i100459BE80DFBD26/image-size/large?v=v2&px=999 "Screen Shot 2021-07-28 at 10.35.20 AM.png")All of my projects give me the "Something went wrong" message on the Source and Repository Settings screens. Everything else looks fine. It looks like I can still push/pull to/from the projects. Anyone know what's going on?

This seems to affect all my projects, new and old. I created one last night to check and it is behaving the same way.


Answers:
author: Ian Lueninghoener
body: It had something to do with my browser cache. I noticed it worked on a difference computer and then I tried in an incognito/private tab. Cleared my cache and everything is back to normal.


Tags: bitbucket-cloud

cloud

error

project

repository
How to I create a cross repository pull request?
Asked by Peter Manoharan:

I have two repositories that frequently get changed together. Code in Repo B is dependent on Code in Repo A.

A pull request across both repositories needs to be raised at once to make sure that the pipelines execute with all the code required within the pipelines? Does Bitbucket have this feature?

Thanks.


Answers:
author: Caroline R
body: Hi, [@Peter Manoharan](/t5/user/viewprofilepage/user-id/1191864)!

Thank you for reaching out to Atlassian Community!

The only way to have a Pull Request on 2 repositories is using forks, so if one repo is not a fork of another, you won't be able to accomplish this.

With that said, could you please give us some further information on your use case, to see if you can achieve what you want in a different way? Specifically:

* How do these PRs run in **each** of these repos? Do you have pipelines that run on certain branches? Or on PRs?

* Can you give a specific example of what you would like to achieve with regards to Pipelines if you were able to open a Pull Request from one repo to another?

* Do you want the build to have both repositories?

* Do you want to run multiple builds, one in each repository? Or do you want to run just one build?

Thank you!

Kind regards,  
Caroline

comments: author: Peter Manoharan
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,

Thanks for your response. our use case is that we have a number of projects that have dependency projects in other repositories.

Both the main repository and the dependent repository will frequently have changes that go hand in hand and therefore need to be checked in together.

The dependency will need to compile on it's own. The main repository will only compile with the right version of the dependency.

We have pull requests that trigger pipelines to ensure code quality which means that commits across projects are tied together otherwise the project with dependencies will fail to complete and run tests.

Hope that makes sense?

Thanks for your help with this.

Peter.


author: Caroline R
body: Hi, [@Peter Manoharan](/t5/user/viewprofilepage/user-id/1191864)!

Thanks for getting back to me! It's not possible to create a pull request across repositories. Pull requests are only possible within a repo or to the parent (if it's a forked repository, not sure if it's your case).

However, if you would like to execute the Pipeline in one repository based on a commit/Pipeline build in another repository, you can achieve it using the ["Bitbucket trigger pipeline" pipe](https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/trigger-pipeline) in your pipeline's final step.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline  


author: Peter Manoharan
body: Hi Caroline, thanks so much for this.

Peter.


Tags: bitbucket-cloud

cloud
session not found ERROR is diaplayed while running in selenium maven in bitbucket pipeline
Asked by saravana_k:

[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 2.865 s <<< FAILURE! - in TestSuite [ERROR] browsersetup(Test_cases_.Login_UI_TC01) Time elapsed: 2.455 s <<< FAILURE! org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: cannot find Chrome binary Build info: version: '4.0.0-beta-4', revision: '29f46d02dd' System info: host: '9280fb1d-52c5-42ac-b7bb-391fd6e44821-gvmvf', ip: '10.39.128.38', ++[os.name](http://os.name/ "http://os.name/")++: 'Linux', os.arch: 'amd64', os.version: '5.4.92-flatcar', java.version: '1.8.0_121' Driver info: org.openqa.selenium.chrome.ChromeDriver Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--headless], extensions: []}}], desiredCapabilities=Capabilities {browserName: chrome, goog:chromeOptions: {args: [--headless], extensions: []}}}]


Answers:
author: Carmen Carrero
body: hey! do you resolve this?


Tags: bitbucket-pipelines

cloud
Visual Diff Tool: Kaleidoscope
Asked by Jupp Schwupp:

I'm enjoying Sourcetree more and more from day to day.

One thing I can't get to owrk is to open Kaleidoscope as external Diff-Tool. Sourcetree opens Filemerge when I click on External Diff although I configured it in the preferences.


Answers:
author: stevestreeting
body: Hmm, that's odd because I use Kaleidoscope myself as my preferred tool. Is this git? If so, please post your \~/.gitconfig file so I can take a look, perhaps there's a setting in there which is overriding it.

comments: author: Jupp Schwupp
body: the interesting part:

\[difftool "sourcetree"\]  
cmd = opendiff \\"$LOCAL\\" \\"$REMOTE\\"  
path =

\[mergetool "sourcetree"\]  
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \\"$LOCAL\\" \\"$REMOTE\\" -ancestor \\"$BASE\\" -merge \\"$MERGED\\"  
trustExitCode = true


author: stevestreeting
body: Yeah, that's clearly FileMerge, it's got out of sync somehow where ST thinks it's set it to something else already. Can you try setting the diff \& merge tools to something else, closing the Preferences panel, then re-opening it and setting it to Kaleidoscope again? Please close the Prefs window after doing that and it should update the file.


author: Jupp Schwupp
body: Oh, my. I am going mad. Looks like my .gitconfig file permissions is messed up. No changes are stored although I selected it in the setup process. Is there a way to rebuild this file from scratch.


author: stevestreeting
body: Hmm, does "ls -l" indicate that permissions on this file are incorrect?

In any case, if you want to build the file from scratch, you can simply rename it to something else like \~/.gitconfig_bak and SourceTree will re-create it for you.


author: Jupp Schwupp
body: Has something todo with my User directory. I use a Mac and I my user directory is on a second drive. Seems like Sourcetree dosn't store in that place. I created another user on my first drive and configured via sourcetree and then copied the .gitconfig to my first users folder. Now it works.