youngmon/atlassian-qna huggingface dataset:
How to limit a Custom Field in Trello to accept incremental values only
Asked by Carlos Almeida:

Hi there, Sorry for the newbi question.

I have just created a numeric custom field and I was wondering if there is a way I could limit value insertion to be incremental only (e.g. if the existing value is X it will only accept new values greater than X).

I tried Butler but it doesn't seem to accept custom field variables for the Trigger side:  
TRIGGER---  
when custom field  
MYFIELD  
is set to a number lower than **{customfieldvaluebefore}**  
ACTION ---  
set custom field  
MYFIELD  
to **{customfieldvaluebefore}**  
Am I doing something wrong in butler or do I need to use something else? Is there is a simple way I can programe this without having to spend a week learning intricate programming languages?  
Thanks : )  
Carlos


Answers:
author: Carlos Almeida
body: Apparently Butler can't parse **is set to a number lower than {variable}** . It does work with**is set to {variable}** though. Anyone has a sugestion?
How to create repository under a project key using Git Bash terminal?
Asked by Sayantan Ghosh:

I want to create a repository under a specific project key by using Git bash terminal. How can we do that?


Answers:
author: Mikael Sandberg
body: Hi [@Sayantan Ghosh](/t5/user/viewprofilepage/user-id/4283989),

Welcome to Atlassian Community!

To create a new repository in Bitbucket remotely you would have to use the REST API to do that. Have a look at [/rest/api/1.0/projects/{projectKey}/repos](https://docs.atlassian.com/bitbucket-server/rest/7.10.0/bitbucket-rest.html#idp173) for more information.


Tags: bitbucket-server

server
merge button
Asked by Rodney DelaRosa:

I'm on the free plan on a pull request details page and I can't find the merge button. I downgraded from one of the other plans and there are no checks. How do I merge this pull request?


Answers:
author: Ang?lica Luz
body: Hello [@Rodney DelaRosa](/t5/user/viewprofilepage/user-id/4283754),

Welcome to Atlassian Community!

Testing on my free Bitbucket, I can see the Merge button, so it confirms that the free plan shouldn't prevent you from merge pull requests.

![Screen Shot 2021-03-02 at 15.03.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/132662iFAF83CFF8DD7C37B/image-size/large?v=v2&px=999 "Screen Shot 2021-03-02 at 15.03.11.png")

Can you please go to Repository settings \> Branch permissions and check if the **Merge via pull requests** is set to **Everybody**?

![Screen Shot 2021-03-02 at 15.12.39.png](https://community.atlassian.com/t5/image/serverpage/image-id/132663i92862F1B80BC1194/image-dimensions/394x394?v=v2 "Screen Shot 2021-03-02 at 15.12.39.png")

Please, take your time to test and let us know how it goes.

Kind regards,  
Ang?lica


author: Rodney DelaRosa
body: There was an issue with Merge checks. Changing the settings fixed the problem. Thanks [@Ang?lica Luz](/t5/user/viewprofilepage/user-id/986290) !


Tags: bitbucket-cloud

cloud
Why is my changed Name not changed?
Asked by nobodyIsMe:

Recently, I accidentally revealed my password.

So, for security reason, I decided to change it after changing the 'nickname'.

But, when I did a git remote -v, all I have seen is the same old nickname.

How do I make sure that the nickname is changed for good?


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

By 'nickname', I assume that you are referring to the Bitbucket username of your account?

The output of 'git remote -v' shows the remote that is set up for your local repo. This is set up when you first clone the repo, but it doesn't change automatically if you make changes either to your username or to the workspace id that owns the repo. It is info that is stored in a text file in the config of the repo locally, and needs to be changed manually.

If the remote has the default name 'origin', you can change it with a command like the following:

```
git remote set-url origin new-url
```

where **new-url**, replace with the URL of the repo that includes your new username instead of the ole one.

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

Kind regards,  
Theodora
Running aws kubernetes deploy --dry-run seems to still create the kubernetes objects
Asked by Brad Vrabete:

As part of the pipeline I want to check the kubernetes deployment scripts for syntax errors. I am adding the --dry-run=client (or just --dry-run) to the deploy command. But that seems to be ignored and the script gets executed as it were called without --dry-run.

The pipeline is defined as below:

```

- pipe: atlassian/aws-eks-kubectl-run:1.4.1 
  variables:                
    AWS_ACCESS_KEY_ID: "$AWS_DEV_ACCESS_KEY_ID"                
    AWS_SECRET_ACCESS_KEY: "$AWS_DEV_SECRET_ACCESS_KEY"                
    AWS_DEFAULT_REGION: "$AWS_DEV_DEFAULT_REGION"                
    CLUSTER_NAME: "$AWS_CLUSTER_NAME"
    KUBECTL_COMMAND: "apply"                
    RESOURCE_PATH: "k8s/deploy/aws-dev"                
    KUBECTL_ARGS: "--dry-run=client"               
    KUBECTL_APPLY_ARGS: "-k"
```

How can I achieve that behavior?


Answers:
author: Oleksandr Kyrdan
body: Hi [@Brad Vrabete](/t5/user/viewprofilepage/user-id/4061397) ,

Thank you for your question!

The pipe [atlassian/aws-eks-kubectl-run:1.4.1](https://bitbucket.org/atlassian/aws-eks-kubectl-run/src/5b9f803cb9b253d878d890c9eb6b9fe1925f9eca/Dockerfile#lines-1) based on [kubectl v1.17.](https://bitbucket.org/atlassian/kubectl-run/src/e53754cb58a4b473d63547da7cca4b86d577505a/Dockerfile#lines-15)

According to the [kubectl v1.17 documentation](https://v1-17.docs.kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply) apply command supports the next flags only:
> If true, only print the object that would be sent, without sending it.
>
> **Warning** :  
> **--dry-run cannot accurately output the result of merging the local manifest and the server-side data.**
>
> **Use --server-dry-run to get the merged result instead.**

so, recommended way is "--server-dry-run".

<br />

Also, we are investigating bump version of the kubectl.  

Cheers,  
Oleksandr Kyrdan

comments: author: Brad Vrabete
body: Hi [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705),

Thanks for the answer. The strange thig is that it works if I put all the parameters in the KUBECTL_COMMAND parameter and remove the rest; that's why I thought there must be something in the pipe that prevents it from running. I di not try --server-dry-run.

Are you filtering the parameters passed to the pipe? That would not be a good idea as it is hard to know what went wrong (hence my question); I would rather get the error message from kubectl and let people handle that.   

In any case I'll try with --server-dry-run.  

Thanks,

Brad


author: Oleksandr Kyrdan
body: [@Brad Vrabete](/t5/user/viewprofilepage/user-id/4061397)

Yep, good question! It shouldn't filter or modify passed params.

We are investigating this case and notify you.

Thank you!  
Oleksandr Kyrdan


Tags: bitbucket-pipelines

cloud

kubernetes
Does Bitbucket Cloud's Disaster Recovery apply for free plans?
Asked by baigergi:

Hi,

Does the Disaster Recovery also work for people who are on free Cloud plans?

<https://support.atlassian.com/bitbucket-cloud/docs/does-bitbucket-backup-my-repositories/>


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

This policy also applies for repositories owned by workspaces on the Free plan.

We backup all repositories, regardless of the billing plan.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

disaster-recovery
Pipeline step results are truncated
Asked by Anshul Shah:

I am running a step with some "aws cli" commands to pull the values from existing AWS resources and then running "aws cloudformation deploy" a template passing those parameters value.

However, step logs in log viewer only displaying limited number of lines and i am unable to see the full log to understand or debug anything.

End of logs: Even after downloading the logs:

+ dwh_iam_role="$(aws cloudformation describe-stacks --stack-name ${PROJECT_SHORT_NAME}-${ENVIRONMENT}-infra --profile ${BITBUCKET_BRANCH} \| grep -A1 OutputKey \| grep -A1 DWHCopyExecutionRoleArn \| grep OutputValue \| tr -d '"'\|cut -d':' -f 2- \| sed s/\\"//g \| sed -e 's/\^\[ \\t\]\*//')"

+ dwh_elb_dns_name="$(aws cloudformation describe-stacks --stack-name ${PROJECT_SHORT_NAME}-${ENVIRONMENT}-infra --profile ${BITBUCKET_BRANCH} \| grep -A1 OutputKey \| grep -A1 DWHNetworkLoadBalancerDnsName \| grep OutputValue \| tr -d '"'\|cut -d':' -f 2 \| sed s/\\"//g \| sed -e 's/\^\[ \\t\]\*//')"


Answers:
author: Halyna Berezovska
body: [@Anshul Shah](/t5/user/viewprofilepage/user-id/4282478)if agter such text there are indeed no logs, it can be that something wrong with the script

```
dwh_iam_role="$(aws cloudformation describe-stacks --stack-name ${PROJECT_SHORT_NAME}-${ENVIRONMENT}-infra --profile ${BITBUCKET_BRANCH} | grep -A1 OutputKey | grep -A1 DWHCopyExecutionRoleArn | grep OutputValue | tr -d '"'|cut -d':' -f 2- | sed s/\"//g | sed -e 's/^[ \t]*//')"
```

or

```
dwh_elb_dns_name="$(aws cloudformation describe-stacks --stack-name ${PROJECT_SHORT_NAME}-${ENVIRONMENT}-infra --profile ${BITBUCKET_BRANCH} | grep -A1 OutputKey | grep -A1 DWHNetworkLoadBalancerDnsName | grep OutputValue | tr -d '"'|cut -d':' -f 2 | sed s/\"//g | sed -e 's/^[ \t]*//')"
```

Try to debug those scripts and see why they can fail (perhaps some keywords of grep command do not work. Also I recommend to use jq tool, since it parses json structure, that aws cli responds with).

Regards, Galyna

comments: author: Anshul Shah
body: Nothing wrong with the script. Pipeline was successful.

It is a bug in bitbucket pipelines instead, where more number of commands sometimes does not log all commands at right place.

There is an issue opened with the respective team about it.

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


Tags: bitbucket-pipelines
Unable to push to repository in workspace with Standard plan.
Asked by maanu88:

Hi I have two workspaces.   

I upgraded one workspace to Standard plan with 6 users but when i try push in repository y get this error:   

remote: \[ALERT\] Your push failed because the account 'somosamplifica' has exceeded its  
remote: \[ALERT\] user limit and this repository is restricted to read-only access.  
remote: \[ALERT\] <https://bitbucket.org/account/user/maanu88/plans>  

<br />


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

I believe there may have been a delay with the change of plan syncing between Bitbucket and our billing system, our apologies for this. I went ahead and manually forced a sync, could you please check if you and your teammates are able to push now?

Kind regards,  
Theodora

comments: author: maanu88
body: Yes, thanks you!


Tags: bitbucket-cloud

cloud
How to set pipelines setup dependency on another repo pipelines ?
Asked by Dinesh Kumar:

HI All,

Greeting of the day!.

I have a scenario which required your help.I have to Repos one for Terraform and another for Nodejs code deploy to lambda.

1 Terraform Repo - its setup/refresh the infra required to deploy Node.js code.

2. Node.js Repo - it build the code and deploy to the lambda.

Now I want to set when deployment steps starts on nodejs repo. it should run first terrfrom steps from terrform repo bitbucket pipelines.

Please help. Thanks in advance


Answers:
author: Eddie Webbinaro
body: There is not pipeline chaining/orchestration across repositories. Is the terraform repo shared, or another reason not to embed in the same repo?  

Since node.js seems to be driving the lifecyle, you could just add a checkout of the dependent repository and invoke terraform there. <https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How can I implement a commit policy in my Bitbucket Cloud?
Asked by Ci Admin:

There is a commit policy plugin for Bitbucket server and data center but I can't find anything for cloud. I need to implement a specific format. In order to link our JIRA issues to the commits we're focusing on smart commits. But in order to enforce the smart commit policy I need to set up a gate so I only commit with proper format followed go through.  


Answers:
author: Theodora Boudale
body: Hi [@Ci Admin](/t5/user/viewprofilepage/user-id/2678316) ,

I'm afraid that this is not possible in Bitbucket Cloud. We have an option to enforce JIRA issues keys in commit message (it can be found in *Repository settings* \> *Links*), but we don't support server side hooks at the moment that would allow rejecting commits based on the commit message format.

We have a feature request for a server-side pre-receive hook that you can vote for, add yourself as a watcher and also leave any feedback:

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

In the meantime, the suggestion I can make as a workaround would be to use client side hooks, you can check an example here:

* <https://git-scm.com/book/en/v2/Customizing-Git-An-Example-Git-Enforced-Policy>

These will need to be configured by every user in the local clone of the repo they are working on, in the .git/hooks directory of the local repo. From the link I included above:
> Because hooks aren't transferred with a clone of a project, you must distribute these scripts some other way and then have your users copy them to their .git/hooks directory and make them executable.

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

Kind regards,  
Theodora


author: Saxea _Flowie_
body: We have added [commit policy](https://flowie.app/docs/en/plugins/commit-policy) support to [Flowie](https://flowie.app/), a Bitbucket Cloud addon. It creates checks against the commit message.

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


author: Levente Szabo _Midori_
body: Hi [@Ci Admin](/t5/user/viewprofilepage/user-id/2678316)

Do you use Jira in Cloud as well (at all?) In the off chance that you also use Jira Server or Data Center, you can implement (have your developers install) a local commit verification hook script that would enforce your rules. [Read more on this here.](https://www.midori-global.com/products/better-commit-policy-for-jira/server/documentation/git-with-bitbucket-cloud?utm_source=cac&utm_medium=cac-comment&utm_campaign=gh)

I know it's a cumbersome workaround and only works if you have Jira Server/DC, but it's the best we could come up with until BCLOUD-10471 is not implemented.


Tags: bitbucket-cloud

cloud

commit
Rest API to merge the developer branch commit to master branch
Asked by Manirajan Senthamaraikannan:

Hi Guys,

I just want to find the REST API to merge the last commit of the developer branch into the master branch.


Answers:
author: Manirajan Senthamaraikannan
body: I found the answer, Needs to create the pull request and then merge.

<https://api.bitbucket.org/2.0/repositories/{username}/{repo}/pullrequests/{pullreqid}/merge>

Thanks


Tags: bitbucket-cloud

cloud
How can you get automatic notifications when Atlassian releases new Data Center version or bug fix
Asked by Robert Bzdafka:

Is there a way to get an automatic email notification when a new version is released? Also any idea when ver 8 is coming ?


Answers:
author: Brant Schroeder
body: [@Robert Bzdafka](/t5/user/viewprofilepage/user-id/1721392)

Go to this page and click the watch button in the upper right hand corner. When the page is updated you will be notified. <https://confluence.atlassian.com/bitbucketserver/bitbucket-server-release-notes-872139866.html>

The better way to get everything you want is to go to your email preferences and subscribe to the information you are interested in. Go here <https://id.atlassian.com/manage-profile/email> and under email notifications click email preference center.

comments: author: Robert Bzdafka
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) Thanks


Tags: bitbucket-server

server
New user didn't receive activation email
Asked by ben_bracedigital:

I have set up a new user but the activation email was not received and I can't complete the user sign up.

The new user is \*\*\*\*\*\*

Thanks


Answers:
author: Theodora Boudale
body: Hi [@ben_bracedigital](/t5/user/viewprofilepage/user-id/20758)

I checked in our system and saw a hard bounce event for that email, created on 25th February 2021:

```

550: 550 5.4.1 Recipient address rejected: Access denied.
```

<br />

It looks that the user may have tried to create the Bitbucket account before the email was operational. The hard bounce informs us that the email does not exist and in this case it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed the email from the suppression list. If the user's email is operational now, could you please ask them to try resending the verification email? This needs to be resent now, as the previous ones were dropped.

In case you sent any invitations to the user, they'll need to be resent as well.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Am I charged twice for the same user in two different workspaces?
Asked by Patrizio Bertoni:

Let's say my company has 10 Bitbucket users

* workspace A has 8 users
* workspace B has 6 users
* intersection(A, B) has 4 users
* union(A, B) has 10 users

Am I charged for 10 or 8+4 users?


Answers:
author: Theodora Boudale
body: Hi [@Patrizio Bertoni](/t5/user/viewprofilepage/user-id/2454998) ,

In Bitbucket Cloud, billing plans are associated with a workspace. If a certain workspace is on a paid plan, you'll get charged for each user in that workspace.

If you have two workspaces on a paid plan with 8 and 6 users respectively, you'll get charged for 8 and 6 users respectively for each workspace, so eventually for 14 users and not 10.

In order to avoid double billing for the same users, I would suggest using one workspace.  
You can organise repos in the workspace in *Projects* .  
In that workspace, you can create different *User groups* with *Default Access: None*, and then manually assign each user group to the repo(s) you want it to have access to.

If you have any other questions or need further guidance, please feel free to let us know.

Kind regards,  
Theodora


author: Varsha Gupta
body: [@Patrizio Bertoni](/t5/user/viewprofilepage/user-id/2454998) the license is counted for 1 person =1 license

if two workspace share duplicate user then that will be counted as 1 license

comments: author: Patrizio Bertoni
body: So you confirm me that the final bill lists 10 users only


Tags: bitbucket-cloud

cloud

cost
Extend Pull request visibility
Asked by fouratj:

Hi there,

Please we are facing an issue when it comes to pull request, if the changelist is too large, we are no more able to comment or see them.

Any workaround to fix that ? It is something planned to be fixed in the future ? Because it really disturb the workflow and productivity

Thanks

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


Answers:
author: Tyler T
body: Hi [@fouratj](/t5/user/viewprofilepage/user-id/3565549) , sorry about the issue with the file tree. Are you able to scroll inside the sidebar? What OS and browser are you using? We'll look into this ASAP.

comments: author: fouratj
body: Thanks for your response, no i'm not able to scroll inside the tree, i mean there's no option for that, i tried with different browser, with Firefox and Chrome but still the same issue as for the OS i'm using windows   
Here' s the chrome version : Version 88.0.4324.190 (Official Build) (64-bit)

Here's the firefox version : 85.0.2 (64-bit

Let me know if you need further information, also i'm using the New pull request experience

Thanks


author: Tyler T
body: Thanks for the information. Are you using a mouse/trackpad or keyboard? Or both? We are looking into this now.


author: fouratj
body: I'm using both


author: Tyler T
body: Hi [@fouratj](/t5/user/viewprofilepage/user-id/3565549) , are you still experiencing this issue? We have not been able to reproduce it nor heard this type of feedback from other customers.


author: fouratj
body: Thanks for gettings back to me, i'm no more experiencing this, it seem to be fixed


author: Tyler T
body: Good to hear that!


Tags: pull-request
Generate JAR file and send it to AWS S3?
Asked by Alvaro Cardoso:

Is it possible to generate a JAR file from my Java project (from Bitbucket Cloud) and send it to AWS S3?

I managed to generate something and send to S3, but not a JAR file. Here is my pipeline:

```
pipelines:
default:
- step:
name: Build and Test
caches:
- maven
script:
- mvn -B verify --file pom.xml
- mvn install
artifacts:
- target/**
after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
- pipe: atlassian/checkstyle-report:0.2.0
- step:
name: Deploy to S3
script:
- pipe: atlassian/aws-s3-deploy:0.4.5
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_REGION
S3_BUCKET: $AWS_S3_BUCKET
LOCAL_PATH: 'target'?
```

This is the error message:

    ? target directory doesn't exist.

I have tried to use the path created while building it:

    /opt/atlassian/pipelines/agent/build/target/

The problem will be the same.


Answers:
author: Rahul Kumar
body: Hi [@Alvaro Cardoso](/t5/user/viewprofilepage/user-id/4279343) ,

I am also facing same issue. Did you solve this issue?

comments: author: Alvaro Cardoso
body: Unfortunately I never found a solution for it.


Tags: aws

bitbucket-pipelines

cloud
Data Center vs Bitbucket Server Docker installation
Asked by Ladislav Toldy:

Hi,

I am little bit confused with Bitbucket Server vs Data Center installation. Article <https://confluence.atlassian.com/bitbucketserver/running-bitbucket-data-center-on-a-single-node-996641203.html> is pointing to Bitbucket Server installation <https://confluence.atlassian.com/bitbucketserver/bitbucket-server-installation-guide-867338382.html>

I just want to have confirmed that bitbucket server and datacenter have same code base, just license will enable/disable features of one or another. Especially this image:  
<https://hub.docker.com/r/atlassian/bitbucket-server/>


Answers:
author: Daniel Eads
body: Hi [@Ladislav Toldy](/t5/user/viewprofilepage/user-id/4279324) , welcome to the Community!

Bitbucket Server and Bitbucket Data Center do use the same installer, and the license is what enables the Data Center features. If you are planning to use a single node, the instructions for setup will mirror the Server setup instructions (and you just put your Data Center license in during the in-product portion of setup).

If you are looking at configuring multiple nodes and would like the same ease-of-use as the docker image, we also provide an [AWS Quickstart for Bitbucket Data Center](https://community.atlassian.com/t5/Training-Certification-articles/Updates-to-Atlassian-Certifications/ba-p/1507758) that's already configured with a load balancer. There's no difference in licensing between a single-node instance and a multi-node (highly available) Data Center instance; only the hardware costs in AWS or your on-premise environment will be different.

Cheers,  
Daniel \| Atlassian Support


Tags: bitbucket-server

server