youngmon/atlassian-qna huggingface dataset:
Can't register! gives an error message.
Asked by ?????????? ????:

When registering, it gives an error! ![Screenshot_20220614_095352_com.trello.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/201816i8D35CB71EAE749A0/image-size/large?v=v2&px=999 "Screenshot_20220614_095352_com.trello.jpg")


Answers:
author: Theodoro Reato
body: Hi there,

Are you located in Russia or Belarus? If so, you need to check this article: <https://blog.developer.atlassian.com/atlassian-stands-with-ukraine/>

If you aren't, can you check[this article](https://help.trello.com/article/1079-troubleshooting-for-the-android-app), it contains some troubleshooting that may help you.

Other things that might interfere:  
\* Do you have third-party cookies disabled? This error could be caused by a 3rd party browser extension that might mess up with the login request on the Atlassian page. What you can do is disable all your browser extensions and then attempt to log in. Once logged in, you'll then be able to re-enable your browser extensions and you should be good to go.  
\* Do you use an ad-blocker/content blocker? If yes try to disable them in order to log in.
How to write integration test for custom Bitbucket plugin developed via Atlassian Java SDK
Asked by Jiawei Zhu:

Hi!

I developed a Bitbucket plugin (PostRepositoryHook) using the Atlassian Java SDK. This plugin makes some file changes in the master branch every time after a feature branch merges into the master branch. Right now I am trying to figure out how to write integration tests for this plugin. I have read about the tutorials about how to set up the integration test skeleton (<https://developer.atlassian.com/server/framework/atlassian-sdk/generate-and-examine-skeleton-tests/>). However I wonder how I can invoke my plugin in the integration test.

The constructor of my **PostRepositoryHook** plugin has parameters:**ContentService** and **PullRequestService** . And the postUpdate method of my PostRepositoryHook plugin has parameters: **PostRepositoryHookContext** and**RepositoryHookRequest**. I am not sure where I can fetch these inputs and pass to my PostRepository plugin.

Also, I am not sure how I can simulate the branch merge action in this integration test environment?

Any help is greatly appreciated!

Thanks!

Sincerely,

Jiawei


Answers:
author: Charlie Misonne
body: Hi Jiawei,

I can't help you but I think you might have more luck on te [developer community](https://community.developer.atlassian.com/c/bitbucket-development/12).

comments: author: Jiawei Zhu
body: Thanks Charlie! I will post the question there.


Tags: atlassian-sdk

bitbucket-development

bitbucket-server

server

test
Bitbucket Cloud - Can you link a new workspace ?
Asked by Brad:

Client wants to move to premium annual billing (currently on standard cloud monthly), and I understand they would have to create a new workspace in order to get a quote - would they then be able to link the new workspace to the existing to pull in the data or would they need to perform a migration from old to new ?


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

If a new workspace gets created, then the repositories will need to be transferred from the old workspace to the new one:

* <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/>

User groups and access will also need to be set up in the new workspace, I'm afraid that it is not possible to somehow copy them from a different workspace.

That being said, I am unsure whether it is possible to move to an annual billing plan from a monthly one.

My suggestion would be to contact the support team that is responsible for billing and licensing, to confirm whether such a billing change is possible and whether a new workspace is needed. The team can be reached via <https://support.atlassian.com/contact/#/>, in "What can we help you with" select "Billing, payments and pricing" and then "Help with a quote or order" and also mention the workspace in question. (Please ignore my suggestion in case you have already been in contact with them!)

If you have any other questions, please feel free to let me know!

Kind regards,  
Theodora


Tags: billing

bitbucket-cloud

cloud
Running migration on heroku
Asked by Eduardo de Vila:

Hi guys, I have a doubt about how I can run the migration on Heroku after deploy using pipe, can you help me with that?

This is my pipelines.yml:  

image: ruby:2.4.2

pipelines:  
default:  
- step:  
caches:  
- bundler  
- yarn  
script:  
- curl -sL <https://deb.nodesource.com/setup_10.x> \| bash -  
- apt-get install -y --force-yes nodejs  
- curl -sS <https://dl.yarnpkg.com/debian/pubkey.gpg> \| apt-key add -  
- echo "deb <https://dl.yarnpkg.com/debian/> stable main" \| tee /etc/apt/sources.list.d/yarn.list  
- apt-get update \&\& apt-get install -y yarn  
- yarn install  
- export DATABASE_URL=postgresql://caiena:caiena@localhost/alpop_test  
- bin/ci  
- bin/webpack  
- rspec  
- cd ..  
- tar czfv application.tgz build/  
- mv application.tgz build/  
- cd build  
artifacts:  
- application.tgz  
services:  
- redis  
- postgres  
- step:  
name: Deploy to production  
deployment: production  
script:  
- pipe: atlassian/heroku-deploy:0.1.1  
variables:  
HEROKU_API_KEY: $HEROKU_API_KEY  
HEROKU_APP_NAME: $HEROKU_APP_NAME  
ZIP_FILE: "application.tgz"

<br />

definitions:  
caches:  
bundler: ./vendor  
yarn: ./node_modules  
services:  
redis:  
image: redis  
postgres:  
image: postgres  
environment:  
POSTGRES_DB: alpop_test  
POSTGRES_USER: caiena  
POSTGRES_PASSWORD: caiena


Answers:
author: Oleksandr Kyrdan
body: Hi [@Eduardo de Vila](/t5/user/viewprofilepage/user-id/4393299)

Thank you for your question!

Currently the pipe support only deploy command.

Other commands you could run directly with the heroku cli.

Cheers,  
Oleksandr Kyrdan

comments: author: Eduardo de Vila
body: I see, is it possible to run the Heroku CLI from the pipelines? If it is possible, can you send me an example?


author: Halyna Berezovska
body: [@Eduardo de Vila](/t5/user/viewprofilepage/user-id/4393299) yes, for sure, you just execute bash code, just like you installed heroku cli locally to linux (follow <https://devcenter.heroku.com/articles/heroku-cli#other-installation-methods>) and follow also heroku doc depending on what you exactly need <https://devcenter.heroku.com/articles/heroku-cli#getting-started>.

Perhaps, if you need to login, you will need to create some secured repository variables for that to not expose this in the pipeline

Regards, Galyna


author: Eduardo de Vila
body: [@Halyna Berezovska](/t5/user/viewprofilepage/user-id/3865505)thank you about the answer. I just followed the article and now it's working perfectly.


Tags: bitbucket-cloud

bitbucket-pipelines

heroku
Multiple workspaces and repo organisation
Asked by Craig Lawton-Devine:

My team have been trying out Bitbucket and we have about a dozen repos in the workspace. We're now planning to migrate more of our repos from e.g. github and svn here and use it for other teams and products too.

What is the recommended way to organise workspaces, projects and repos?

It seems like we could use a single workspace for everything and organise by project, but that would quickly become cluttered. Alternatively we could have multiple workspaces but that may introduce more admin, managing user permissions for example.

We also use Jira. Does the workspace/project organisation have an impact there?

I would love to hear experiences from anyone who has explored this, and can help me understand the trade-offs!

Thank you,  
Craig


Answers:
author: Syahrul
body: Hi Graig,

G'Day!

Using a single Workspace is recommended since multiple Workspace means multiple billing as we charge per Workspace. So if you have 10 users in Workspace A and another 8 users in Workspace B, you'll be paying for 18 users even if it's the same users on both Workspace.

As for the management of repositories, you can use groups access to split up user access to repositories and use projects to group the repositories. More information on this at:

\* [Manage user access in Workspace](https://support.atlassian.com/bitbucket-cloud/docs/organize-workspace-members-into-groups/)

So in short, create a single Workspace and create multiple groups to split up and manage your users under proper projects and permission. You can then use projects to group the repositories under the projects so it's not cluttered.

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

Cheers,  
Syahrul

comments: author: Jeff Miles
body: This was a really helpful clarification Syahrul - one that I couldn't find explicitly stated in the Workspace documentation:
> multiple Workspace means multiple billing as we charge per Workspace. So if you have 10 users in Workspace A and another 8 users in Workspace B, you'll be paying for 18 users even if it's the same users on both Workspace

Can I recommend this be added to documentation?

Follow-on question, is there any way to manage permissions at a Project level, or is this on a known roadmap somewhere?

We want to be able to have repositories created inside a project and inherit group permissions, rather than being set one-by-one every time; it doesn't seem this is possible.


author: Syahrul
body: Hey [@Jeff Miles](/t5/user/viewprofilepage/user-id/1862008)

Thanks for the feedback. I've channeled this with our team to get the documentation updated.

As for project permission, this is on our roadmap and currently being tracked at:

[Allow users to manage repositories access with Project Permissions](https://jira.atlassian.com/browse/BCLOUD-13202)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

jira
Is there a way to change the 1000 records limit?
Asked by Barry Robertson:

I have seen posts about cloud version limitations and people asking to query for more than 1000 at a time. In my case, I am getting 25 at a time with the REST API calls for a bitbucket pull request's changes. When it gets to 1000, it reports that last page is false and next page is null. I really need access to the remaining records. Is there a configuration somewhere for the server than will allow it beyond? The web interface to it says it stopped at 1000 files as well.

Is there a way to get beyond the 1000 limit so that I can get at the data past that point? (Again, I am not querying for this many at a time.)


Answers:
author: neeraj upadhyay
body: This KB article should help here : <https://confluence.atlassian.com/bitbucketserverkb/how-to-apply-the-limit-filter-in-bitbucket-server-and-datacenter-rest-api-and-query-more-than-the-max-limit-of-1000-results-1142440445.html>


Tags: api

bitbucket-server

rest

server
"pull-requests" syntax question
Asked by inger_klekacz:

The [Configure bitbucket-pipelines.yml](https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#pull-requests) doc shows the syntax for pull-request pipelines as such:

```
pipelines:
  pull-requests:
    '**': #this runs as default for any branch not elsewhere defined
      - step:
        script:
          - ...
    feature/*: #any branch with a feature prefix
      - step:
        script:
          - ...
```

Do the entries in the pull-requests section represent the source branch, or the destination branch?

That is to say, if I want to merge \`branch1\` into \`master\`, would my pull-request entry say \`branch1\`, or \`master\`?


Answers:
author: Justin Thomas
body: [@inger_klekacz](/t5/user/viewprofilepage/user-id/4031091) The entry represents the source branch. As per your example, it would be \`branch\`. I will raise an internal ticket to update the docs, thanks for the feedback.

comments: author: inger_klekacz
body: ...\`branch1\`, you mean, right? not \`branch\`? Thanks for getting back to me!


author: QiangShen
body: @\[deleted\] So how can I match the destination branch if I want to do some trigger with PR to destination branch?


Tags: bitbucket-pipelines
Unable to receive workspace invitation or password reset emails
Asked by Anil Sudhakaran:

I'm not receiving workspace invitation or password reset emails.


Answers:
author: Esther Strom
body: [@Anil Sudhakaran](/t5/user/viewprofilepage/user-id/4389579) welcome to the Community!

Assuming all the obvious issues, like making sure you're being invited with the correct email, have already been checked, there are two places this could be happening - on the sending side or the receiving side.

If you're having the emails sent to a corporate account, I'd suggest contacting your messaging admin first to check for quarantined or blocked messages.

If they are not seeing anything, then you'll need to contact Atlassian support at <https://support.atlassian.com>. We've occasionally had trouble when someone has been invited to a team before their corporate email address is created - we use a specific format, so we always know what the address is going to be. If it takes too long for the email account to be created after the invitation (i.e. too many attempts are made at sending to that account) Atlassian automatically adds the address to a block list to avoid continual bounces. If that's the case, they can manually remove your address from the block list.


Tags: bitbucket-cloud

cloud
Is it possible to have a project nested inside another project?
Asked by Benn Hamer:

This is really just to keep the project organised, rather than having a long list of repositories.

For example -\>

So instead of having:

+-- my_project

+-- repo1

+-- repo2

+-- repo3

+-- repo4

+-- repo5

+-- repo6

I'd have:

+-- my_project

+-- repo1

+-- repo2

+-- repo3

+-- templates_project

+-- repo4

+-- repo5

+-- repo6


Answers:
author: Hana Ku?erov?
body: Hi [@Benn Hamer](/t5/user/viewprofilepage/user-id/3962986) ,

unfortunately no. You cannot have project -\> project -\> repository, only project -\> repository hierarchy is supported, but you can have more projects,,,

+-- my_project

+-- repo1

+-- repo2

+-- repo3

+-- templates_project

+-- repo4

+-- repo5

+-- repo6

comments: author: Moses Kamai
body: is inefficient. I have a similar hierarchical or nested question. Want to do that with a standard template for a FEATURE with 6 STORY nested within. Possible?


Tags: bitbucket-cloud

cloud
ssh-run should specify that "EXTRA_ARGS" needs to be preceded by "-" in the documentation
Asked by Max Howarth:

ssh-run should specify that "EXTRA_ARGS" needs to be preceded by "-" in the documentation since there is no example to indicate this.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Max Howarth](/t5/user/viewprofilepage/user-id/4263076) ,

Thank you for your suggestion!

It's a good idea to extend examples for the pipe.

We'll notify you about this update.

Cheers,  
Oleksandr Kyrdan

comments: author: Halyna Berezovska
body: [@Max Howarth](/t5/user/viewprofilepage/user-id/4263076) we merged readme updates. However I have tested different ways and can say that

EXTRA_ARGS: '-o yoursetting=yourvalue'

and passing it as a list both work

EXTRA_ARGS:

- '-o yoursetting=yourvalue'

Regards, Galyna


Tags: bitbucket-pipelines

cloud

ssh
Editing commit log when squashing on Stash
Asked by Dragos Ionel:

Can the commit message be edited when Stash is squashing multiple commits?

Right now it looks pretty verbose especially if there are a lot of commits being squashed

thank you


Answers:
author: Theodora Boudale
body: Hi [@Dragos Ionel](/t5/user/viewprofilepage/user-id/1020160) ,

Is your question regarding a self-hosted instance of Bitbucket Server (previously known as Stash), and if so, what version of Bitbucket server are you using?

I see that your question has the tag '*bitbucket-cloud*', but you mention Stash, so we would need some clarification on what product you are using (and what version, if this is a self-hosted instance) so we can better help you.

Kind regards,  
Theodora

comments: author: Dragos Ionel
body: Hi, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

We are using: Atlassian Bitbucket v5.12.1

Thank you


author: Theodora Boudale
body: Hi [@Dragos Ionel](/t5/user/viewprofilepage/user-id/1020160) ,

Thank you for your reply!

Editing the commit message when merging a pull request in Bitbucket Server is possible as of version 6.7.0, see the following feature request:

* <https://jira.atlassian.com/browse/BSERV-8384>

I'm afraid that in earlier versions this is not possible.

If you'd like to use this feature when merging a pull request in Bitbucket, you'll need to upgrade.

Another option would be to squash the commits on client side. You can check in the following question Michael Heemskerk's answer:

* <https://community.atlassian.com/t5/Bitbucket-questions/Pull-requests-Squashed-commits-Remote-Merges/qaq-p/171569>

He gives detailed instructions on how you can do the squash locally, in a way that Bitbucket Server will also recognize that your pull request is merged.

If you have any questions, please feel free to let me know!

Kind regards,  
Theodora


author: Dragos Ionel
body: Thank you, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)! All is clear.


author: Theodora Boudale
body: You are very welcome, glad to have helped! Please feel free to reach out if you ever need anything else.

Have a nice day!


Tags: bitbucket-server
Bitbucket server - Communications link failure
Asked by Sam Hernandez:

Bitbucket self-hosted gives this error:

The following problem occurred, which prevents Atlassian Bitbucket from starting:

* The database, as currently configured, is not accessible.  
  Communications link failure

This just started happening the other day, no changes to the server or to the database. I can connect to the database manually via mysql client...


Answers:
author: Sam Hernandez
body: I was able to resolve, or at least work around the issue. I found the following in /var/atlassian/application-data/bitbucket/log/launcher.log :
> WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

Adding \&useSSL=false to the end of the JDBC connection string in /var/atlassian/application-data/bitbucket/shared/bitbucket.properties allowed bitbucket to restart successfully.

It is still not clear to me what caused this issue. The MySQL RDS configuration and the Bitbucket Server configs have been the same for months, if not years.

Bitbucket Server is end-of-life, the guides recommend against using MySQL as a backend with it, and now the configuration is less secure. But at least we are able to use the product while we come up with a plan to migrate away from it.


author: Douglas Gnoato
body: Hi Sam.

Your description of the issue matches one of our articles. Could you please check the article below and let us know if it helps?

[Bitbucket Server as a service and the database as currently configured is not accessible error](https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-as-a-service-and-the-database-as-currently-configured-is-not-accessible-error-779171468.html "Bitbucket Server as a service and the database as currently configured is not accessible error")

Douglas Gnoato

Atlassian team

comments: author: Sam Hernandez
body: I did try doing this. The error persists after restarting bitbucket server.


Tags: bitbucket-server

server
Cherry-pick option on Bitbucket portal
Asked by Rashid:

Hello, I didn't see cherry-pick option in my bitbucket account to cherry-pick a commit or pull request. Do we have cherry-pick option available on the bitbucket site? if yes then where I can find that option. Please assist, thank you!


Answers:
author: edgar.van.veelen
body: This feature is available in visual studio online, and is very handy, saves quit some time! Please implement.


Tags: bitbucket-cloud

cloud
Git command to list changes and additions on branch.
Asked by nick_maunder:

I would be interested to know the git command to list the files that have been changed / added in a branch. Basically the output you see the files tab window in a bitbucket pull request.


Answers:
author: Syahrul
body: Hey [@nick_maunder](/t5/user/viewprofilepage/user-id/2919196)

G'Day!

I believe what you are looking for here is a git diff that will show the diff between the two branches and the files/code that has been changed.

    git diff main...branch

Additionally, do check the following thread on Stackoverflow [here](https://stackoverflow.com/questions/10641361/get-all-files-that-have-been-modified-in-git-branch) if you wish to try multiple other ways to view branch changes.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
my colleague has a deactivated email account in some unknown organization.
Asked by daniel.wilson:

Hello,

my issue is similar to this one:  
<https://community.atlassian.com/t5/Jira-Software-questions/I-need-to-activate-a-desactivete-user-But-the-account-is-disable/qaq-p/1646070>

the User is in some unknown organization's confluence set to deactivated and we can't add them to ours. we don't know the name of the previous Org nor have any list of contacts.

the email they are using is a company email. how can I get them activated on my org or have them removed from the former org without my being able to contact the unknown former org admins?


Answers:
author: Kristopher Perez
body: I've come across similar situations before, and the short answer is you will need to raise a support request with Atlassian to get them to clear out that organization and free up the address.

<https://www.atlassian.com/company/contact>

there aren't really any ways around this


Tags: cloud

confluence-cloud

jira