youngmon/atlassian-qna huggingface dataset:
Retrieval of email Ids of PR reviewers and approvers
Asked by sumit_k_pal_pwc_com:

We are checking the feasibility of retrieving the email IDs of the PR reviewers and approvers for us to send post-deployment notification emails from Jenkins.

Please confirm if there are any APIs available for the same.


Answers:
author: Aron Gombas _Midori_
body: On Atlassian cloud, each user can decide whether his/her email address is visible. It is part of his account settings. If he/she makes it invisible, then the API will not return this field, either! If it is set visible, then the end-point that returns the user account details will return it.

Also, there is a dedicated Email API which will return the email address even if the user set that invisible. But it is open only for those apps/integrations for whom Atlassian approves the access.

comments: author: Patrik S
body: Hello [@sumit_k_pal_pwc_com](/t5/user/viewprofilepage/user-id/2834851) and thank you for reaching out to Atlassian Community!

Just adding to [@Aron Gombas _Midori_](/t5/user/viewprofilepage/user-id/502447) response, currently, the Bitbucket Cloud API does not return a field containing the user's email due to privacy reasons.

You can use the Get a Pull Request API to fetch the information of reviewers and approvers, but it will not contain the email address:

```
curl -X GET -u BB_USERNAME:APP_PASSWORD https://api.bitbucket.org/2.0/repositories/<Workspace>/<Repository>/pullrequests/<Pull Request ID>?fields=reviewers,participants
```

The example above will return the reviewers and participants (approvers) of a given Pull Request, including their Public Name, Bitbucket UUID (uuid field), and Atlassian Account ID ( account_id field).

We do have an existing feature request to return email addresses on Bitbucket Cloud APIs:

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

We encourage you to **Vote** for that feature to give it traction, so our developers can understand the interest. Also, feel free to add yourself as a **Watcher**to receive first-hand updates on that feature.

However, while that feature is not available, if you are an [Org Admin](https://support.atlassian.com/user-management/docs/what-are-the-different-types-of-admin-roles/#Admin-roles) and want to get the email from [managed users under your organization](https://support.atlassian.com/user-management/docs/what-are-managed-accounts/), this is possible using the Organization's API below:

* <https://developer.atlassian.com/cloud/admin/organization/rest/api-group-users/#api-group-users>

This API will also include the email address of the managed users. You can use this API in combination with Bitbucket API to match the **account_id**on both of them and find out the user's email.

Thank you, [@sumit_k_pal_pwc_com](/t5/user/viewprofilepage/user-id/2834851) !

Patrik S


author: sumit_k_pal_pwc_com
body: Thanks Aron and Patrik. Appreciate your reply.


Tags: bitbucket-cloud

cloud
Your push failed because the account has exceeded its remote: [ALERT] user limit and th
Asked by Sarwo Edi Wibowo:

Recently, I have this issue with the current bitbucket repository when pushing the code to the branch, for this case, do I need to upgrade to paid plan or If I still use the free plan, can I still merge the code because we didn't do many changes so I am not sure why we can not use the free plan


Answers:
author: Ben
body: Hi Sarwo,

I can see that you have access to a team workspace that has 22 users, this is the workspace that has downgraded to Free as a result of payment issues.

I would suggest following the article below to resolve this issue:

* <https://confluence.atlassian.com/bbkb/fix-error-your-push-failed-because-the-account-has-exceeded-its-user-limit-1183680240.html>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
clone issue
Asked by planzzz1:

I can't clone any my repositrory beacuse of the error:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote <https://{username}@bitbucket.org/{workspace-id}/{repo-slug}.git>  
Output:  
Error: remote: Invalid credentials  
fatal: Authentication failed for '<https://bitbucket.org/{workspace-id}/{repo-slug}.git>'

I tryed to do it via Sourcetree and via Fork.

I see my remote repositoryes in Sourcetree but can't clone them. I even can create new repository on my PC via SourceTree and I see it on my Bitbucket after that. But after creation I can't interract with it on my PC.

Also I created new account on Bitbucket and created new repository there. But I have the same problem even on new account.

I think the problem is on my PC. Unfortunately I don't have acess to another PC.


Answers:
author: Theodora Boudale
body: Hi [@planzzz1](/t5/user/viewprofilepage/user-id/5312514) and welcome to the community!

Do you get asked for a password when you try to clone the repo? If so, do you enter your account's password?

We have deprecated the use of account passwords for Git over HTTPS and API:

* <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

Your account's password can be used only for logging in to <https://bitbucket.org/> from browser. If you want to clone, pull, push to a repo with HTTPS, you can generate an app password for your account and use that instead of a password (in combination with your username):

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

If you are using a credential manager, I would recommend clearing any saved credentials for bitbucket.org first, and then attempting the clone again with the app password.

Please feel free to let me know how it goes and if you need further assistance.

Just a heads up, I edited the clone URL to protect your privacy.

Kind regards,  
Theodora

comments: author: planzzz1
body: Resolved :)

My co-worker who really good in such questions helped.

He did something like this:![photo_2023-09-12_21-46-35.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/280247iB852B847C1A24B62/image-size/large?v=v2&px=999 "photo_2023-09-12_21-46-35.jpg")

He said that some old key didn't replaced full. But I'm not totally sure because we did a lot of other not-working things before. It was the final detail which let me clone


author: Theodora Boudale
body: Hi,

Thank you for the update, it's good to hear that this is resolved!

Based on the screenshot, it looks like you switched to SSH for authentication, which uses SSH keys instead of username and password.

If you use SSH to clone a repo, the URL for cloning is also different and looks like this:

```
git@bitbucket.org:{workspace-id}/{repo-slug}.git?
```

Please feel free to reach out if you need anything further!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sourcetree
How does Bitbucket connect through a corporate firewall when the runner is on a company network?
Asked by Illya Kuzmych:

I am using a Bitbucket runner for some work, as a library that is necessary for the pipeline is hosted on the company's private server, and a runner is one of the methods I can use to gain access and use those libraries.

Some security concerns arose regarding how Bitbucket gains access to my computer through a corporate firewall, and through what encryption/authentication method is it able to do so?

Thanks, hopefully this question is clear.


Answers:
author: Ben
body: Hi Illya,

So Pipelines will communicate through our Stargate API to establish a connection with your runner (so that it can communicate to your private IP address).  
Once it has established a connection - it uses websocket rather than HTTP to maintain the connection between client/server.

For the connectivity described above, you would need to have inbound whitelisting configured for our IP addresses as follows to establish the initial connection:  

```
104.192.136.0/21185.166.140.0/2218.205.93.0/2518.234.32.128/2513.52.5.0/25
```

Once established, Pipelines will communicate between your local Runner and the Bitbucket Cloud UI via this websocket where commands are sent to be executed by either the container running on a Kubernetes pod (Pipelines) or self-hosted infrastructure (Runners).

The build status updates are then returned back in the same manner based on the success of those command executions.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: keewan lew
body: Can this apply for pocketquery?


Tags: bitbucket-cloud

cloud
Bitbucket Pipelines + SonarQube. SonarQube server can not be reached
Asked by Yaroslav Minieiev:

***Hello,***   

I'm trying to setup **Bitbucket Pipelines + SonarQube.**   
Bitbucket Pipelines + SonarQube on premises works fine, but Bitbucket Pipelines + SonarQube doesn't.  
On AWS we've allowlisted all IPs from this list --- <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>, but still have "ERROR: SonarQube server \[$SONAR_HOST_URL\] can not be reached".  

What can be wrong and how to fix it?


Answers:
author: Pankaj Kumar
body: Hi [@Yaroslav Minieiev](/t5/user/viewprofilepage/user-id/5312017) ,  

**Verify Environment Variables**:

* Make sure that the `$SONAR_HOST_URL` environment variable is set correctly in your Bitbucket Pipelines configuration.
* Confirm that there are no typos or syntax errors in the variable

**Verify Network Configuration**:

* Ensure that your AWS environment allows outbound connections to the SonarQube server.
* Double-check your security groups, network access control lists (NACLs), and route tables to ensure they are properly configured.  


Tags: bitbucket-cloud

cloud
how does one run pull request steps in parallel?
Asked by Vincent Jong:

So, we have in our bitbucket-pipelines yaml and want to run the 'default' PR rule with 2 steps in parallel. Like, using your doc example:

```
pipelines:
 pull-requests:
   '**':
     - parallel:
       steps:
         - step: *testEndToEndInDev
         - step: *testEndToEndInStg
 custom:
   e2e-wfw:
     - step: *testEndToEndInWfw
   e2e-dev:
     - step: *testEndToEndInDev
   e2e-stg:
     - step: *testEndToEndInStg
```

This doesn't work as my ide is showing an error really from steps not being in the schema:

![Screenshot 2023-09-08 at 10.06.45 AM.png](/t5/image/serverpage/image-id/279614i122E137905A08682/image-size/large?v=v2&px=999 "Screenshot 2023-09-08 at 10.06.45 AM.png")

Is this even possible? If so, what do I need to do?


Answers:
author: Ben
body: Hi Vincent,

As long as the **testEndToEndInDev** and **testEndToEndInStg** steps are being defined using [YAML anchors](https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/) so that they may be referenced with a \* symbol, the code that you have provided should work.

Have you tested the code within Bitbucket Pipelines by running a build? May I know what was the result? As long as there are no errors highlighted within the YML editor itself in the UI (disregarding your IDE), the code is considered to be syntactically correct.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Vincent Jong
body: From what I observed, the steps seem to run serially. The first rule runs to completion, then the second rule runs. Running the config above fails, but that's due to creating the reports dir which is something I would need to fix. But either way, perhaps that's how the parallel steps are supposed to run?


author: Ben
body: Are you able to test these steps outside of a PR definition? For example, a custom pipeline and tell me if the behaviour is the same?


author: Vincent Jong
body: I don't know what happened before, but Redoing the config and running the branch against the PR \*\* rule, now looks like it's working as expected now... Thanks for the help!


Tags: bitbucket-cloud

cloud
Bitbucket Cloud API - Create Pull Request call resulting in Bad Request (400)
Asked by Asif Baig:

I am trying to POST a request to Bitbucket Cloud API using Repository Access token used for Authorization, but getting response as Bad Request 400. Could anyone point out the issue with this attached request or the steps I could take to debug or resolve it?

![bb-pr-400-error.png](https://community.atlassian.com/t5/image/serverpage/image-id/279559i7E6976A6BA7E6FF2/image-size/large?v=v2&px=999 "bb-pr-400-error.png")


Answers:
author: Theodora Boudale
body: Hi Asif,

I tried to reproduce this error, I believe the culprit might be the space between the uuid and the quotation mark before it. Looking at the data on the left-hand column of your screenshot:

```
"uuid": "
    {some-uuid-value}"
```

The call should work if you remove the space, like this:

```
"uuid": "{some-uuid-value}"
```

However, please keep in mind that ++the author field is going to be ignored anyway++. The author is populated based on the authentication details, so you can remove it completely from your call.

I would also suggest editing your community post and removing the screenshot, as it includes a UUID without it being masked.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is there an api for getting the squash commits from bitbucket cloud
Asked by Akshara Anilkumar:

After passing a commit , I want to know if that particular commit is a squash commit or not, is there an endpoint for it in bitbucket cloud?

I didn't find anything related to it in the documentation : [The Bitbucket Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get)


Answers:
author: Mark C
body: Hi [@Akshara Anilkumar](/t5/user/viewprofilepage/user-id/5304231),

Thank you for reaching out to the community.

Unfortunately, it is not possible to view commits merged status via REST API as we don't have that endpoint.  
I've gone ahead and created a feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-22878>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be [implemented according to our policy.](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Let us know if you have any further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Filter Pull Requests by Authors whose Jira account is suspended
Asked by Mick Lang:

Attempted to view all the PR requests authored by a person whose Jira account is suspended. Selected All for the PR status. However, the Author filter does not include the suspended author. I attempted to use the guid for their Jira account but that didn't work either.

The Author filter should be populated by the authors of PRs, not those with active Jira accounts.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/280023iD83412AB58AEEFBD/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Mick Lang
body: This is correct. I'm using bitbucket cloud.


author: Mark C
body: Hi [@Mick Lang](/t5/user/viewprofilepage/user-id/451809),

Thank you for reaching out to the community.

Would it be possible for you to confirm if you're filtering pull requests from a Bitbucket Cloud repository?

Regards,  
Mark C

comments: author: Mick Lang
body: This is correct. I'm using bitbucket cloud.


author: Mark C
body: Hi [@Mick Lang](/t5/user/viewprofilepage/user-id/451809),

Thanks for the confirmation.  
Unfortunately, it is not possible to filter deactivated users on the pull requests page at the moment.  
We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-22487>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Regards,  
Mark C


author: Mick Lang
body: I'd suggest its more a bug than a request for a feature.   

You're forced to suspend someone's access to your stuff, it's likely you might want to see  
what pull requests they have been submitting. I'd suggest it's a basic requirement for this feature.


Tags: bitbucket-cloud

cloud
How do I set the detault review objectives in Crucible OnDemand?
Asked by Joris:

In our local Crucible Instalation, I can go to Admin \> Projects \> Edit Project, and then set the default review objectives?

How do I do this in Atlassian OnDemand?


Answers:
author: Michael Knight
body: There's no interface exposed to OnDemand customers to enter this data ([docs for self-hosted are here](http://confluence.atlassian.com/display/CRUCIBLE025/Setting+Default+Review+Objectives)). Please submit a [support request](https://support.atlassian.com) and an support engineer can fill this in for you.


Tags: cloud

fisheye-crucible-svn-ondemand
Getting a users email address
Asked by Chad Hattabaugh:

The resource at /rest-service/users-v1/{username} requires admistrator access or being logged in as the requested user. We have a script user that we use to generate reports and would like to email the report to users of a review but need a way to get the email address.

Is there a way to get a users email address in the Crucible REST API, without being administrator?

Is there a setting to allow a user to read all user profiles without giving them full adminstrator access?


Answers:
author: Felipe Cuozzo
body: No there isn't an REST API for that, as it would be a privacy problem to allow fetching emails from users without authentication.

Also please also read the following important announcement:  
[End of Service Announcement for Subversion and FishEye/Crucible in OnDemand](http://go-dvcs.atlassian.com/display/EOL/Source+Review+Bundle+End+of+Service)

Please direct your questions to this question:

[Subversion, FishEye/Crucible (the Source + Review Bundle) on OnDemand End of Service](/questions/95199/subversion-fisheye-crucible-the-source-review-bundle-on-ondemand-end-of-service)


Tags: cloud

fisheye-crucible-svn-ondemand
Checking out a Working Copy
Asked by Joris:

Is it possible to checkout a working copy of the whole repository, or do I have to checkout each project seperately?

I ask because my SVN client (Cornerstone) wants to be able to access the root so it can build a cache of log messages.

Also, if I can't access the root, how do I later add more projects?


Answers:
author: Michael Knight
body: Yes, you can checkout the whole repository as long as you have permission to view it all.

```
svn co https://example.atlassian.net/svn
```

Project creation bypasses the SVN permissions of your user account.

comments: author: Joris
body: I get a access forbidden when I try to do that, and I'm using the admin account/account I used to signup for the service.


author: Michael Knight
body: Ensure that the account has [application access](http://confluence.atlassian.com/display/AOD/Managing+application+permissions) to FishEye and all [repository permissions](http://confluence.atlassian.com/display/AOD/Configuring+repository+permissions) are set up in a way that lets that user have read-only or commit access to everything. Failing this, please raise a [support request](https://support.atlassian.com) and we'll look into it for you.


Tags: check-out

cloud

fisheye-crucible-svn-ondemand
Crucible + Pre-Submit/Shelved Perforce Code
Asked by Zachary Levey:

Has anyone figured this out yet via a plugin or script? Atlassian isn't answering questions on the [raised issue](https://jira.atlassian.com/browse/CRUC-3378), and my company isn't willing to spend money on the tool if they're unwilling to answer questions, and the future of the product has no roadmap beyond the next 2.7.x version (see [Atlassian's roadmap page for Crucible/FishEye](https://jira.atlassian.com/browse/CRUC#selectedTab=com.atlassian.jira.plugin.system.project%3Asummary-panel)).


Answers:
author: Ohad Gal
body: I haven't been able to write a script for shelved perforce code yet, but I *did* write a Windows script that creates a Crucible "patch" file from all the files in a certain changelist of perforce - including newly added files. I posted my script [here](/questions/9522/automatic-patch-review-script-for-perforce).


author: Sergey Svishchev
body: There's something called "Crucible-Perforce Bridge". See here: <http://scottbilas.com/blog/about-our-crucible-perforce-bridge/>


author: Seravy
body: We currently use a very early version of SmartBear's Code Collaborator for perforce but we are really keen to find something better. I keep coming back to check perforce support in Crucible but it is always so bad.

Problem is there isn't much to choose from: <http://www.perforce.com/product/components/integrations/code_review_tools>

Keen for some sort of support for perforce and code reviews with pre-submitted code.


Tags: perforce

pre-commit
how to enter a support request for ...
Asked by Scott Brinkmeyer:

i am experiencing issues with my Atlassian product (fisheye/crucible).

1) i can't even tell which app is really having the issue  
2) what information should i capture (yes there is that super nifty "make me a trouble ticket thing" in the app but that doesn't tell the rest of my story

3) i've done a search across this answers thing but i am really bad at asking a question about "bad file descriptor" "bad bits" or i am really the only person to have ever run across this issue


Answers:
author: Joe Clark
body: Hey Scott, our official support channel is <https://support.atlassian.com>

You can create a new JIRA issue on that site describing your problem and someone will be able to help you through getting all the right information to capture.

Don't worry too much about making sure the ticket is filed against the correct app and has all the correct information from the very beginning - the support engineer assigned to the issue will be able to work with you to collect all the necessary data.

:-)


author: NikE
body: Not to worry Scott - support won't bite :-)

The same group handles both fisheye and crucible so the ticket will end up with the right people. Go ahead and submit a [support request](https://support.atlassian.com "Support Request") detailing out the issue and based on what is going on, they can advise on what further info is needed to track down the problem.
Fisheye 2.7.8 Error When Connecting to JIRA
Asked by Steven Line:

Hi,

I just downloaded the Fisheye 2.7.8 free trial and installed on a Solaris 10 computer. In the Setup Wizard it asks for the url of our JIRA instance, the sysadmin login and password. After I enter these and click connect to JIRA, I get this fun error, I tried what it says but I still get the same error. Any ideas?
> An error occurred: com.google.common.collect.ComputationException: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/export/home/fisheye/fecru-2.7.8/lib/jaxb-impl-2.1.10.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See <http://java.sun.com/j2se/1.5.0/docs/guide/standards/>). Please refer to the logs for details.
>
Thank you.

Steve  


Answers:
author: Douglas Fabretti
body: Hi Sline.

I know this answer is opened for quite some time but this is probably caused by your Java version, it is JAXB 2.0 but fisheye requires JAXB21. Could you please try updating to the latest version of the Java Virtual Machine which contains the correct version of the library.

Cheers,  
**Douglas Fabretti**   
**Atlassian Support**