youngmon/atlassian-qna huggingface dataset:
Blocklist ( Blocked Emails )
Asked by Wroblewski, Arkadiusz:

I Have a Problem

In Protocoll Contact with Customer, i have Many users which Shouldnt landed There with Notification - Email Adress this User are in Blocklist, but, in Project Settings, theres Almost no One, and none of This Users are Blacklisted.

Can Someone Clarify my, if Administrator Portal (There where you Managing Licenses) have its own Specific Blocklist, and how Unblock this Users ?


Answers:
author: eugenio_onofre
body: Hi [@Wroblewski, Arkadiusz](/t5/user/viewprofilepage/user-id/5112990)

Jira admins are able to administer their blacklist.  
Official documentation is below:

<https://support.atlassian.com/jira-service-management-cloud/docs/manage-your-blocklist/>

Please do not forget to accept this answer in case it helps you resolve your issue as it may help other community members in the future.

Regards,  
Eugenio

comments: author: Wroblewski, Arkadiusz
body: How i Said, there?s none Emails in The Blocklist in Project Settings.

Looks like Mailh?ndler Block on Themself. (Without Reason, maybe after Passwort Change from user)


Tags: cloud

jira-service-management

jira-service-management-cloud
Is it possible to set a value restriction on a custom field?
Asked by Damian Gajda:

Dears,

I would like to set restrictions on the value of a custom field, this field is visible in the customer portal and it is required, currently they can enter anything there and the ticket is created - in this field I only need a code starting with SE and then numbers... otherwise it appears an error occurs and the ticket is not created. Is this possible? Are there any applications that can help me with this?


Answers:
author: Tansu Akdeniz
body: Hi [@Damian Gajda](/t5/user/viewprofilepage/user-id/5052191)

Go to the workflow -\> create transition -\> validators -\> add validator -\> select Regular Expression Check.

\*For Assets, you can take a look at this [Validate attributes with regular expressions](https://support.atlassian.com/jira-service-management-cloud/docs/validate-attributes-with-regular-expressions/) doc.

comments: author: Damian Gajda
body: Thank you very much :) This is what I needed


Tags: app

cloud

custom-field

customer-portal

jira-service-management

jira-service-management-cloud
bash npm command not found
Asked by nmollet:

Hello everyone,

I am trying to setup a pipeline to deploy to production.

Using pipe: atlassian/ssh-run:0.4.1 I just want to execute an npm command on my production server.

The pipeline gives an error:

```
bash: npm: command not found
```

When connected as the same SFTP user on the production server terminal, npm -v successfully gives me the version: 6.9.0.

Having hard time understanding the difference between accessing SSH with a Bitbucket Pipeline and direct access to SSH.

I only setup 4 repository variables, called: SFTP_SERVER, SFTP_USER, SFTP_PASSWORD, and SFTP_PATH.

Help appreciated. Thanks.

The pipeline config file is:

```
image: php:7.4-fpm
definitions:
  services:
    mysql:
      image: mysql:5.7
      environment:
        MYSQL_DATABASE: 'homestead'
        MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
        MYSQL_USER: 'homestead'
        MYSQL_PASSWORD: 'secret'
pipelines:
  default:
    - step:
          name: Deploy to Production
          deployment: production
          script:
            - pipe: atlassian/ssh-run:0.4.1
              variables:
                SSH_USER: $SFTP_USER
                SERVER: $SFTP_SERVER
                MODE: 'command'
                DEBUG: 'true'
                COMMAND: 'npm run updateprod'
                PASSWORD: $SFTP_PASSWORD
                LOCAL_PATH: $SFTP_PATH
```

Update: found some info saying that paths can be different when connected in SSH in "non interactive mode". Still trying to find how to handle the difference.


Answers:
author: nmollet
body: I found a solution that works for me:

```
source ~/.nvm/nvm.sh && source ~/.profile?&& npm run updateprod
```

Sourcing NVM and the profile before calling NPM.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
kanban and agile boards?
Asked by rustam.yunusov1986:

Now I use a kanban board, we are switching to an Agile board, but there are fears that when a new board is created in the project, all tasks in the kanban will be lost.

Will the current tasks in the Kanban board be lost if I create a new Agile board in an existing project?


Answers:
author: Billy Turner
body: No, your original Kanban board will remain in tact and can continue to be used if needed. You can work in both boards if you like. The tasks and stories are independent of the boards.

comments: author: rustam.yunusov1986
body: Thanks


Tags: agile

board

cloud

kanban

scrum
Compare files on two different branches?
Asked by Frida Weber:

Hi, I am trying to compare two files on different branches, but unfortunately the provided help on Bitbucket support does not match the UI I am looking at. I cannot find the compare option anywhere in the repo menu.. Any help is much appreciated :)

Thanks!

Frida


Answers:
author: seanaty
body: You can find "Compare" in the "..." menu for each branch on the branches page.

![Screen Shot 2022-07-19 at 11.39.49 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/206807i20F69333A05D6C02/image-size/large?v=v2&px=999 "Screen Shot 2022-07-19 at 11.39.49 AM.png")

The URL that it takes you to is /\<workspace\>/\<repo\>/branches/compare/\<branch1\>%0D\<branch-2\>

comments: author: seanaty
body: Also [@Frida Weber](/t5/user/viewprofilepage/user-id/4982618) if you still have the link for the documentation you used, could you please provide it so we may update, thanks!


author: Frida Weber
body: ... never mind, I used Xcode. :)


Tags: bitbucket-cloud

cloud
Is there a minimum version of Bitbucket in order to apply Data Center licenses?
Asked by Andrea Hakim:

When applying Bitbucket Data Center license key, is there a minimum Version that I'll need to upgrade to?


Answers:
author: Nic Brough -Adaptavist-
body: Yes.

We could bore you to death with an essay on history, but to avoid that, could you just tell us what version of Bitbucket you are on? (We can simplify it more - if your release is called Bitbucket and **not** Stash, then you're on a version that you can apply DC licences to)

comments: author: Graham Twine
body: :( stumped me :( :(


Tags: bitbucket-server

server
Phantom changes showing in pull request
Asked by benbuie:

We've started to see changes on the PR that are already merged.

We stopped using Github because their diff system on the PRs would show changes that were already merged in.

Recently, these same phantom changes started showing in on the PR diff. This is a big problem for us.

____________________

Here is a scenario:

feature-a is branched off of master

feature-b is branched off master

feature-a is merged into feature-b

feature-a is merged into develop

a PR into develop is created for feature-b

The diff for the feature-b PR is showing changes from feature-a even though it is already merged into develop.

______________________

I know Bitbucket recently made some changes to how merge conflicts are shown. This may be an unfortunate side effect from that change.


Answers:
author: Bernadette Buck
body: [@benbuie](/t5/user/viewprofilepage/user-id/4982424) This is affecting others too! I found the specific feature request here. You can vote for it if you believe it will help you.

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


author: Theodora Boudale
body: Hi [@benbuie](/t5/user/viewprofilepage/user-id/4982424) and welcome to the community.

We recently made changes to our diff algorithm from what we call a '3-way' diff to a 2-way 'three-dot' diff. The '3-way' diff includes changes to the destination branch, whereas the 'three-dot' diff does not reflect changes made to the destination branch since the source branch was created from the destination branch:

* <https://bitbucket.org/blog/improving-performance-on-complex-diffs>

While we were proudly the sole source code management tool in the industry that supported the preview-merge diff, it was very significantly impacting the performance we were able to deliver to our customers. The complexity to calculate the preview merge diffs is the very reason why other SCM providers made the choice never to even introduce them to their customers.

While the preview-merge diff showed the changes made to the destination branch in the diff, if the feature branch was not synced with the latest from the target branch then the feature branch code was not tested with the latest target branch code.

In order to see the changes to the target branch reflected in the diff, simply sync the target branch to your feature branch. The sync can be done by merging the target branch into the feature branch (locally or in the UI), or it can be done by rebasing the feature branch locally. Instructions for both are detailed [here](https://bitbucket.org/blog/improving-performance-on-complex-diffs#:~:text=How%20to%20see%20changes%20to%20the%20destination%20branch%20in%20a%20pull%20request).

By making these changes to the diffs we are now able to give you a boosted performance and we also continue to work on additional features that should help your internal workflows. Please feel free to monitor our [public roadmap](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket) and we are hoping that you will be able to develop seamless workflows for your team.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
clone bitbucket repository to Ubuntu 18.04 using command line failed
Asked by changwenx:

Hi

I tried to use the command below to clone a repository to an Ubuntu 18.04 machine

git clone <https://changwenx@bitbucket.org/keelerglobal/ion-build.git>

It failed as below:

**remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.**   
**remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>**   
**remote: App passwords are recommended for most use cases and can be created in your Personal settings:**   
**remote: <https://bitbucket.org/account/settings/app-passwords/>**   
**fatal: Authentication failed for '<https://changwenx@bitbucket.org/keelerglobal/ion-build.git/>'**

How can I sort out this issue?

Thanks


Answers:
author: Mark C
body: Hi [@changwenx](/t5/user/viewprofilepage/user-id/3948115),

Thank you for reaching out to the community.

Would it be possible for you to confirm if you're already using an [App password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) when you tried cloning?

If not yet, could you try generating an App password and use it as your password credential when you clone?  
If you're already using an App password, could you try clearing your Git credentials related to Bitbucket Cloud and try to clone again?

Hope it helps and let me know how it goes.

Regards,  
Mark C

comments: author: changwenx
body: Hi Mark C,

I am using APP password in other computers. It works fine.

The case is that I need to clone a bitbucket repository to a headless Ubuntu 18.04 where no git app installed.

What I have done at this moment after failed to clone, I downloaded the repository from my computer and transferred to the headless device. It works but I thought it is better to clone the repository.

It seems clone a bitbucket repository from command line (without app) is NOT working anymore?

Kind regards,

Changwen


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

I do believe the Git application is required for you to clone a repository in any OS environment.  

Btw, would it be possible for you to confirm if you're referring to the [App password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) generated from your Bitbucket Cloud account?  

Regards,  
Mark C


Tags: bitbucket-cloud

clone

cloud
Unable to perform pull push on master with app password
Asked by tushar_cheulkar:

Hello Team,

we have created a few users with app passwords more than a month ago and are able to perform git operations over HTTPS. For the past 2 days, we are facing issues with existing as well as new user credentials to perform git operations. it works sometimes, and sometimes it won't.

kindly help me to understand why it's getting stopped someday and someday it works as usal.

below are the issues getting while pull request :

**remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.**   
**remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>**   
**remote: App passwords are recommended for most use cases and can be created in your Personal settings:**   
**remote: <https://bitbucket.org/account/settings/app-passwords/>**   
**fatal: Authentication failed for '[https://\*\*\*\*\*\*\*\*\*\*\*@bitbucket.org/\*\*\*\*\*\*\*/wire_web.git/](https://***********@bitbucket.org/*******/wire_web.git/)**


Answers:
author: Mark C
body: Hi [@tushar_cheulkar](/t5/user/viewprofilepage/user-id/2372112),

Thank you for reaching out to the community.

It's probably due to some cached credentials related to Bitbucket.org that might be causing this.  
For this, would it be possible for you to ask users to clear their local machine's credentials related to Bitbucket.org?

* **Windows**: Navigate to Credential Manager and clear stored credentials related to Bitbucket Cloud.
* **Mac OS X**: Navigate to Keychain Access and clear stored credentials related to Bitbucket Cloud

Once done, try to authenticate to Bitbucket.org again through Git.  
Let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Request for Garbage Collection
Asked by Bradon Beck:

Hi, I am Bradon Beck from Exact Controls. I have added a few large binaries to our repository without understanding the consequences of it. I have since rolled back to a commit without the large files, but we are still over our 4 gig limit. I would like to request a garbage collection. If you need more information, or if you need to hear from our admin, just let me know.

Thank you for your time

**Edit**: I ended up enabling "Delete dangling commits" in labs, then pushing a git reset. It automatically freed up space, getting the repository under 4 gigs and out of read only mode. I would like to thank the Atlassian devs and community for their helpful documentation on the subject.


Answers:
author: Theodora Boudale
body: Hi Bradon,

It's good to hear that pushing a git reset with "Delete dangling commits" enabled worked well.

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: atl-rvw

bitbucket-cloud

cloud
Download Archive Using 2.0 API
Asked by Paul Rogers:

Trying to find out if it's possible to download a repository using 2.0 API.

++I know I can clone, and use the website.++

I need to do it programmatically using a limited privilege software key.

I am using python 3.x and have tried the atlassian.bitbucket library w/o success.

Right now I am just trying to get something working using requests lib.

Thanks


Answers:
author: Theodora Boudale
body: Hi Paul,

You can use the following URL to download an archive with the source of the repo on master branch:

```
https://bitbucket.org/workspace-id/repo/get/master.tar.gz
```

where

**workspace-id** replace with the id of the workspace where your repo belongs  
**repo** replace with the repo slug of your repo  
**master** replace with the name of the branch you want to get the source code of, if different than master

Using curl, the file can be downloaded with a call like the following:

```
curl -u BitbucketUsername:AppPassword https://bitbucket.org/workspace-id/repo/get/master.tar.gz -o master.tar.gz
```

where **BitbucketUsername** replace with the username of a Bitbucket Cloud account with access to the repo, and **AppPassword** replace with an app password for this account that has at least **Repositories: Read** permissions.

I'm not very familiar with Python in order to provide an example with that language, but I would suggest looking into how to download a file from web using Python.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is it possible to define variables for one step?
Asked by Fabio B:

Hey,

I need to build many pipelines which essentially do the same thing. Therefore, I basically wanna share the script between the files and then only change the vars.

```
.myscript: &mayscript
 script:
   - do_something $CUSTOM_VAR


pipelines:
  branches:
    master:
      - parallel:
          - step:
            variables:
               - name: CUSTOM_VAR
                 default: VALUE_1
            <<: *myscript
          step:
            variables:
              - name: CUSTOM_VAR
                default: VALUE_2
             <<: *myscript
```

My current workaround is to define a deployment env and define the vars tehre and then give each step a deployment env.


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

I'm afraid that this is not possible at the moment.

We have a feature request in our issue tracker that you can vote for and add yourself as a watcher if you'd like to get notified via email on updates:

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

In the meantime, if you want to use YAML anchors, the workaround is the one you are using already with deployment environments and variables.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
is it ip address restriction available in premium?
Asked by Sukhil P S:

```
We are using free accounts and are considering getting the Premium Plan specifically for restricting access by IP addresses.

Based on info I've seen so far, it's per repository, but I am not sure. Specially that there is no trial for the premium plan to check this.

Our requirement is that some users will be using a specific IP address, while others are not restricted.

My question is that is how flexible is is this IP restriction? Can it be set per user?

Is it set at the repository? 

Or is it a global setting for all users in our organization? Not sure if this is possible though.

If the setting is indeed per repository, would it be a problem that some users (developers) of the repository will be restricted by IP while others (project managers) are not?

Thanks in advance!
```

?  

```
Is IP whitelisting per user, per repository, or global (not sure if this applies) for Premium plan?
```


Answers:
author: Syahrul
body: Hey [@Sukhil P S](/t5/user/viewprofilepage/user-id/4982092)

G'Day!

The IP Allowlisting feature is not per repository. It's on the Workspace level.

When enabled, this will require that users with access to private repositories or other private content are only able to see the content from specific IP addresses. If they aren't accessing from allowlisted IP addresses, users will see a message explaining why they have no access. In addition to being unable to see this content, users won't be able to clone, push, or pull a private repository either.

Currently, it's not flexible where you can have specific users bypass the feature. Since it's on the Workspace level, all users that have access to your Workspace will have to use IPs that were allowed when accessing your Workspace.

For more information on this, please check our KB at:

* [Allowlisting IP addresses](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/#Allowlisting-IP-addresses)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
any possibility to blocking Ip adress of extrenal users from admin side?
Asked by Pranav.as:

Am very new to the bitbucket and atlassian community. Learned the key features and advantages of this product.Thinking to buying this product soon.

But my only Doubt is about is there any possibility for ip restriction for extrenal users out of my company premises. for example a freelancer is working from his system and he want to upload the source codes into the bitbucket server.and he may not have a direct access to the server.ie: he only accessing one of the machine from our company . is there any kind of way for that process. because the cleint sharing datas is more important to our side.


Answers:
author: Syahrul
body: Hey [@Pranav.as](/t5/user/viewprofilepage/user-id/4981801)

G'Day!

We have a Premium feature called [Allowlisting IP](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/#Allowlisting-IP-addresses) addresses, which will require that users with access to private repositories or other private content can only see the content from specific IP addresses. If they aren't accessing from the allowed listed IP addresses, users will see a message explaining why they have no access.

In addition to being unable to see this content, users won't be able to clone, push, or pull a private repository either.

I hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Recover an workspace hacked
Asked by Operaciones:

Hey! How are you? im looking for professional advice. One of our admin employees was hacked, which resulted in our workspace being taken down. Is there any way to find a backup of this?


Answers:
author: Theodora Boudale
body: Hi [@Operaciones](/t5/user/viewprofilepage/user-id/4981646),

I would advise creating a ticket with the support team so we can check our logs, see what happened, and advise you on options.

The license selected when you created the community question is on a paid billing plan, so you can create a support 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.
* In "What is the impact to your business?" please make sure to select "Level 1" to ensure a timely response
* In "Give us more details" please provide the URL of the affected workspace and also the date of the deletion

If it was an account password that was compromised, we strongly recommend that the user resets their password via <https://id.atlassian.com/login/resetpassword>

If it was an app password, then the app password can be revoked via this page: <https://bitbucket.org/account/settings/app-passwords/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Review all changes cumulatively
Asked by ThePokyWizard:

I have a branch that was created to develop a feature, however, this branch has several commits, each one in different files, and some commits with files that repeat from previous commits.

Is it possible to do a general review of all the changes in each file without having to create a pull request to merge all the changes?

Because before the pull request we test all the changes made, so if an error or improvement is found during the tests, the programmer continues working on that branch.


Answers:
author: Bernadette Buck
body: When you click on the branch name in the Bitbucket Cloud UI, the diff you see below would include all differences against main. Does that work for you?

comments: author: ThePokyWizard
body: Thank you, your tip helped me a lot.


Tags: bitbucket-cloud

cloud