youngmon/atlassian-qna huggingface dataset:
Processing misses during "Issues provided by running the following JQL search"
Asked by Martin Cleaver:

I have an upstream system that calls an Incoming Webhook where the JQL looks for a match of the incoming data with a pre-existing issue in Jira. It works great if the record exists.

But I want take alternative set of actions if the webhook doesn't match.

What's the best way to handle this?


Answers:
author: Andreas Knecht
body: Hi [@Martin Cleaver](/t5/user/viewprofilepage/user-id/853531) ,

We don't support this yet, but are tracking this request at <https://codebarrel.atlassian.net/browse/AUT-358>

There isn't really any workaround unfortunately.

Cheers,  
Andreas


author: Bill Sheboy
body: Hi [@Martin Cleaver](/t5/user/viewprofilepage/user-id/853531)

Would you please provide more details/context to help the community give you ideas? Perhaps post an image of your automation rule and the JQL that you want to have "no results" take action. Thanks!

Best regards,

Bill


Tags: jql

webhook
Migrating from Azure DevOps to BitBucket Cloud - Wheres the Organization support?
Asked by Mario Cacciatore:

Azure DevOps has a top level grouping object called an "Organization", which is basically like "Company Name", and from there you can add projects to that Org, such as "Project A", "Project B", and each project can have its own list of repos dedicated to that project.

It seems like BitBucket doesn't have a concept of Organization, and rather it goes right to the workspace, which is like a Project, and then each workspace has its own repos.

We already have Jira, but would like user management to be global for all Atlassian stuff, but is BitBucket on its own? I can invite users with any email address, not just ones specific to my company. I can create new workspaces that have no relationship to other workspaces, such as for user management. Am I missing something here?


Answers:
author: Syahrul
body: G'day, [@Mario Cacciatore](/t5/user/viewprofilepage/user-id/5425635)

Welcome to the community!

Bitbucket's unified user management feature is only available for new workspaces. We have recently launched this feature, details of which can be found on our blog for your reference on how to utilize it effectively.

[Unified user management with Atlassian Access](https://bitbucket.org/blog/unified-user-management-is-generally-available-for-new-bitbucket-cloud-workspaces)

For your information, Bitbucket does allow a user to create multiple workspaces. It's important to note that each workspace has its separate user management and license. Therefore, if you plan to manage various projects, we suggest creating a single workspace and housing all your projects. This approach will enable you to manage your users based on their project access.

[Project permission](https://bitbucket.org/blog/project-permissions-are-available-in-bitbucket)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
When will the self-hosted Docker steps be fixed?
Asked by Piotr Stuglik:

Docker steps fail. The workarounds found below still fail.

[Solved: bitbucket self hosted runner failing to start dock... (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/bitbucket-self-hosted-runner-failing-to-start-docker/qaq-p/2597615)

[Solved: Pipeline broken after update to v25.0.2-multiarch-... (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-broken-after-update-to-v25-0-2-multiarch-prod-stable/qaq-p/2597310#M101406)


Answers:
author: Theodora Boudale
body: Hi [@Piotr Stuglik](/t5/user/viewprofilepage/user-id/5424665) and [@Tiago Jesus](/t5/user/viewprofilepage/user-id/5421150),

I posted a new answer to the other question you both replied to, but I'm leaving a reply here as well for better visibility.

Our engineering team has published a community article with some of the limitations that the upgrade of the Docker Engine introduced:

* <https://community.atlassian.com/t5/Bitbucket-articles/Recent-docker-service-upgrade-in-Bitbucket-Pipelines/ba-p/2603987>

You can read this article about the different limitations and what action needs to be taken in each case.

If you are still experiencing issues or if you see different errors, since you both have access to workspaces on paid billing plans, please create a ticket with the support team and share the build URLs for further investigation. A support ticket is visible only to the creator, Atlassian staff, and any participants you add while creating the ticket.

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. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora

comments: author: Piotr Stuglik
body: Hi!

I have linked a solution that has worked for me below.

Regards,

Piotr


author: Theodora Boudale
body: Hi Piotr,

Thank you for the update, it's good to hear that the knowledge base article you linked was helpful.

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

Kind regards,  
Theodora


author: Tiago Jesus
body: +1

comments: author: Piotr Stuglik
body: Try this:  
["docker: Command not found" error while running docker commands in self-hosted Runner \| Bitbucket Cloud \| Atlassian Documentation](https://confluence.atlassian.com/bbkb/docker-command-not-found-error-while-running-docker-commands-in-self-hosted-runner-1206785605.html)  

The pipeline has not aborted as yet (the original error never presented itself).


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker
getting error in fetching group details using rest api for bitbucket
Asked by Rakesh Verma:

getting error in fetching group details using rest api for bitbucket

API Endpoint - <https://bitbucketUrl/rest/api/1.0/admin/groups/{group-name>}

Invoke-RestMethod : The remote server returned an error: (404) Not Found.

fetched group-name from another end point which gives list of groups(using below end point), this works fine

<https://bitbucketUrl/rest/api/1.0/admin/groups>


Answers:
author: Ben
body: Hi Rakesh,

The URL for this particular endpoint is as follows (replace WorkspaceID/groupname with actual value and remove the curly braces):

```
https://api.bitbucket.org/1.0/groups/{workspaceID}/{groupname}
```

I would suggest first calling just the workspaceID without the **{groupname}** for a full list of groups.

You'll need to take note of the **"slug"** value, as this is the value that would be used for the **{groupname}** mentioned above, this value is case sensitive and will result in a 404 if it is not requested in lowercase and spelled exactly how the **slug**value is written.

I've tested this against my own workspace and it has worked without issues, for example one of the "slug" values is **non-admin** - if I write **"Non-Admin"** in the API request, I get a 404 error but if I put **non-admin**it works without issues as it matches the slug value.

Hope this helps, please let me know if any issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-server

migration-customer-care

server
Using variables in yaml to give more explicit names to pipeline steps
Asked by Lewis Mander:

Hi All,

I would like to define the last two steps of my pipeline with more explicit names, i.e. it would be more useful for step 3. to display as: 'Deploy to UAT environment' and step 4. to display as: 'Deploy to QA environment'.

Would it be possible to define a variable which would populate these steps with the correct description when they run? As you can see in the attached, I have tried this in  

```
- step: &code-analysis
    name: "Deploy to ${{deployment}} environment"
```

![pipline steps.jpg](/t5/image/serverpage/image-id/305233i8CC64B909276C7EE/image-dimensions/347x239?v=v2 "pipline steps.jpg")

but it's not working.  
Any advice would be much appreciated.

Many thanks, Lewis


Answers:
author: Theodora Boudale
body: Hi Lewis and welcome to the community!

Variables are indeed referenced as either $foo or ${foo}, as Hariharan mentioned.

However, I'm afraid that it is not possible to reference variables in step names at the moment. This is not currently supported and the variables will not be substituted.

We have a feature request about this in our issue tracker, you can add your vote there (by selecting the **Vote for this issue** link) to express your interest:

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

In the meantime, you will need to use the value of each variable in the name instead of referencing the variable.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


author: Hariharan Iyer
body: Hi [@Lewis Mander](/t5/user/viewprofilepage/user-id/5425513) ,

It's difficult to provide an accurate response without seeing your entire pipeline file, but in general, the way to use variables is *$foo* or *${foo},* and not *${{foo}}.* Please check this documentation for more details - <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/>

Hope that helps!


Tags: bitbucket-cloud

cloud
I have a problem with log in to bitbucket account
Asked by adam.styperek:

Hi,

I have problem to log in on bitbucket account. I tried to log in with google auth, but I still have error page with this message:  
"  

We couldn't log you in {#toc-hId--385726512}
--------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."  
I found some advice on this site: <https://community.atlassian.com/t5/Bitbucket-questions/Stuck-in-quot-We-couldn-t-log-you-in-quot/qaq-p/1660635> that if I have this issue I should create a question here. Can you (I guess) activate my account?

Best regards

Adam.


Answers:
author: Patrik S
body: Hello [@adam.styperek](/t5/user/viewprofilepage/user-id/5425518),

welcome to the Atlassian Community!

I confirmed your account was inactive due to a long period with no login.

I went ahead and set it to active again. Could you try logging in now and let us know how it goes ?

Thank you, [@adam.styperek](/t5/user/viewprofilepage/user-id/5425518) !

Patrik S

comments: author: adam.styperek
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) thank you for quick reaction and support. Now everything works fine.

Adam


author: Patrik S
body: You're very welcome [@adam.styperek](/t5/user/viewprofilepage/user-id/5425518) ,

feel free to reach out to Community if you ever need help :)

Thank you!


Tags: bitbucket-cloud

cloud
Bitbucket connection with OIDC suddenly stopped working occasionally
Asked by Eyal Yaish:

Hello,

I've been utilizing Bitbucket Pipelines for several years without issue. However, recently, I've encountered intermittent connection issues to AWS, specifically when steps in my pipeline attempt to assume roles using OpenID Connect (OIDC). The error message is as follows:

    ?An error occurred (InvalidIdentityToken) when calling the AssumeRoleWithWebIdentity operation: No OpenID Connect provider found in your account for https://api.bitbucket.org/2.0/workspaces/*****/pipelines-config/identity/oidc

I haven't made any changes to my pipeline configuration or AWS setup that could have led to this issue. Interestingly, the problem isn't consistent: some steps within the same pipeline fail due to this error, while others execute successfully. In a different pipeline, a step might fail with this error on the first attempt but succeed on subsequent retries.

Could this be related to a change in Bitbucket's or AWS's handling of OIDC? Has anyone else experienced similar issues, or does anyone have insights on how to resolve this problem?

Thank you for your assistance,  
Eyal Yaish


Answers:
author: Theodora Boudale
body: Hi [@Eyal Yaish](/t5/user/viewprofilepage/user-id/5376244) and [@pepe](/t5/user/viewprofilepage/user-id/4501490),

I haven't seen this issue reported before. You can create a ticket with the Bitbucket Cloud support team and provide the URL of a failed build for initial investigation, in case this is caused by something on our side. If it is not, the support team will let you know and you can reach out to AWS support.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora

comments: author: Eyal Yaish
body: Thanks,   
I will create the ticket.   

Eyal Yaish


author: pepe
body: Same situation


Tags: bitbucket-cloud

cloud
We couldn?t log you in to Bitbucket
Asked by Edwin van den Beemt:

Hi,

When I try to log in to bitbucket I get the message "We couldn't log you in".

Could you please check what the problem is and how to fix this?

Best regards,

Edwin


Answers:
author: Patrik S
body: Hello [@Edwin van den Beemt](/t5/user/viewprofilepage/user-id/5425553) ,

and welcome to the Community!

Checking internally I see your account was inactive due to a long period with no login.

I went ahead and set it to active. Could you try logging in and let us know how it goes?

Thank you, [@Edwin van den Beemt](/t5/user/viewprofilepage/user-id/5425553) !

Patrik S


author: Nikola Perisic
body: Welcome to the community [@Edwin van den Beemt](/t5/user/viewprofilepage/user-id/5425553) !

This issue was been mentioned in pages like this:

<https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/2535476>

<https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/1896018>

<https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/2327457>

I will tag Atlassian, so this request will get a higher visibility.


Tags: bitbucket-cloud

cloud
How to force all steps to pass before merge
Asked by ?ukasz Naporski:

Hi,  
i looked through the available merge checks and did not find any option to require further steps from the pipeline. I would like the merge option to be available after completing all pipeline steps. Any suggestions?  


Answers:
author: Saxea _Flowie_
body: [@?ukasz Naporski](/t5/user/viewprofilepage/user-id/4114320)

Right, so Bitbucket doesn't have built-in support for this feature. However, you could try to work around this by initially creating a pending build status with the [commit status API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commit-statuses/#api-repositories-workspace-repo-slug-commit-commit-statuses-build-post), and then updating that status in the third step of your process. Also, set the minimum builds to two.

Alternatively, we're planning to introduce a feature in [Flowie](https://flowie.app/), our Bitbucket add-on, that will allow you to easily specify checks like this for your pipelines, along with the other existing checks, in the near future which could be helpful too!  

#sorry, meant to reply this on the thread below.


author: Saxea _Flowie_
body: Hi [@?ukasz Naporski](/t5/user/viewprofilepage/user-id/4114320) ,

Isn't the ["Minimum number of successful build for the last commit with no failed builds**"**](https://support.atlassian.com/bitbucket-cloud/docs/configure-a-projects-branch-restrictions/) what you are looking for?

comments: author: ?ukasz Naporski
body: Unfortunately this option won't work this way. Despite setting the requirement for 3 successful builds, it did not bring the intended effect


author: Saxea _Flowie_
body: Oh, think I see what you mean... Is it marking the build as passed once the first step is run, not necessarily when it completes all the steps in the pipeline? You have manual steps?


author: ?ukasz Naporski
body: I would like to force the passage of a minimum of 3 of the 4 steps. So that the ability to merge a feature would only be available after passing the 3rd step minimum![bb.png](https://community.atlassian.com/t5/image/serverpage/image-id/306656iCF3A9E76A1536B63/image-size/large?v=v2&px=999 "bb.png")![bb.png](https://community.atlassian.com/t5/image/serverpage/image-id/306657iCC1706351A170BB8/image-size/large?v=v2&px=999 "bb.png")


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
GitLab Self Managed migration to Bitbucket Cloud
Asked by Shweta Khairnar:

Hello Team,

We have a requirement for migration of GitLab Self managed instance to Bitbucket Cloud.Is there any tool support from Atlassian to perform the migration?


Answers:
author: Theodora Boudale
body: Hi Shweta,

Atlassian doesn't have a tool for bulk import, but there is a tool for importing one repository at a time, as Aron suggested.

The importer works with any Git-based hosting site, see here:

* <https://support.atlassian.com/bitbucket-cloud/docs/import-or-convert-code-from-an-existing-tool/>

If your self-hosted GitLab instance is behind a firewall and not accessible from the internet, you will need to whitelist Bitbucket Cloud's IPs for the import to work. You can find the IPs here, section Valid IP addresses for bitbucket.org, api.bitbucket.org, and altssh.bitbucket.org

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

If the repos are not public, you will need to provide in the Import page the credentials that you would use to clone the repos via HTTPS.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: Maybe the best way to do this is a 2-step migration:

1. From GitLab Self-managed to GitLab Cloud: <https://handbook.gitlab.com/handbook/customer-success/professional-services-engineering/engagement-mgmt/scoping-information/migrations/sm-to-saas/>
2. From GitLab Cloud to Bitbucket Cloud: <https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository-from-github-or-gitlab/>

Both steps are documented and supported, so I guess even with the 2 steps it is a "safe bet".

comments: author: Shweta Khairnar
body: Hello [@Aron Gombas _Midori_](/t5/user/viewprofilepage/user-id/502447)

Thank you for the response but, I need the help on GitLab Self Managed (On Premise)to Bibucket CLoud if any leads please help.


Tags: bitbucket-cloud

cloud

gitlab
Can't fetch known host fingerprint
Asked by Daniel Chua:

I am trying to set up ssh keys for my pipeline. I am trying to send files of the artifacts of my build step to an embedded device using scp deploy pipe. I generated the ssh key in the repository settings and copied the public key into the authorized_keys files of my embedded device following <https://support.atlassian.com/bitbucket-cloud/docs/set-up-pipelines-ssh-keys-on-windows/>. However when i try to fetch the known host finger print (using the embedded device's ip address), it loads for a moment and nothing happens. There is no error message or any fingerprint fetched. The scp deployment pipe also fails because host key verification failed. I am relatively new to pipelines and ssh so i am quite lost as to what went wrong.


Answers:
author: Syahrul
body: G'day [@Daniel Chua](/t5/user/viewprofilepage/user-id/5424997)

Welcome to the community!

If your server is behind a firewall, it's recommended to ensure it's reachable by Bitbucket. You can whitelist Bitbucket's IP addresses in your firewall settings. Here's the list of IP addresses you should be considering:

<https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

Regards,  
Syahrul


Tags: bitbucket-pipelines

cloud

ssh-key
monthly report on team members commits and on team members who didn't commit
Asked by arun kumar:

monthly report on team members commits and on team members who didn't commit

is it possible to create a monthly report on the number of commits with the team member's id and the team member's ids with 0 or no commits for the month


Answers:
author: Aron Gombas _Midori_
body: The Awesome Charts app offers that sort of statistic per contributor. It don't know if it is convenient for you: [https://marketplace.atlassian.com/apps/1210934/awesome-graphs-for-bitbucket?hosting=datacenter\&tab=overview](https://marketplace.atlassian.com/apps/1210934/awesome-graphs-for-bitbucket?hosting=datacenter&tab=overview)

(On the other hand, I am not sure if the number of commits is a very relevant metric to measure developer productivity.)


Tags: bitbucket-server

commit

dashboard

report

server
Problem to deploy to Azure App Service by FTP
Asked by Alberto Moreno:

Hi,

We are trying to do an FTP deployment of a repository to an App Service. The problem we have is that it indicates an error "Login failed: 530 User cannot log in." but with the same credentials we can access with, for example, Filezilla.

Does anyone know where the problem could be? The pipeline configuration is as follows:

name: Deploy to Develop - App Service  
clone:  
enabled: false  
script:  
- pipe: atlassian/ftp-deploy:0.7.0  
variables:  
USER: 'app-service-name\\$app-service-name'  
PASSWORD: 'my-pass'  
SERVER: 'myurl-app-service.azurewebsites.windows.net'  
REMOTE_PATH: '/site/wwwroot'  
SET_ARGS: "ssl:verify-certificate false"  
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/build'  
Thank you in advance!  
Alberto


Answers:
author: Patrik S
body: Hello [@Alberto Moreno](/t5/user/viewprofilepage/user-id/1343204) ,

and thank you for reaching out to Atlassian Community.

The error message suggests it's an issue with the credentials or configuration of the destination FTP server. I found the following resources online that might help with the troubleshooting:

* [Azure App Service FTP Troubleshooting](https://azureappservices.blogspot.com/2020/02/everything-about-azure-app-service-ftp.html)
* [FTP "530 User cannot log in" error and solution](https://techcommunity.microsoft.com/t5/iis-support-blog/ftp-530-user-cannot-log-in-error-and-solution/ba-p/364570)

I would also recommend adding the DEBUG variable to the pipe as it will potentially bring more logs related to this error that can help on the troubleshooting :

```
- pipe: atlassian/ftp-deploy:0.7.0
            variables:
              USER: 'app-service-name\$app-service-name'
              PASSWORD: 'my-pass'
              SERVER: 'myurl-app-service.azurewebsites.windows.net'
              REMOTE_PATH: '/site/wwwroot'
              SET_ARGS: "ssl:verify-certificate false"
              LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/build'
              DEBUG: 'true'
```

Thank you, [@Alberto Moreno](/t5/user/viewprofilepage/user-id/1343204) .

Patrik S

comments: author: Alberto Moreno
body: Thank you [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

I have reviewed the links you indicated and I have activated debug mode. In this way I have seen that the problem is in the username indicated in the Azure App Service, and more specifically in the "$" character.

Testing, the way to escape the characters "\\" and "$" is as follows: app-service-name\\\\\\$app-service-name

In any case, the way to avoid these problems is to register this value as a variable in the display and thus the value does not have to be escaped.

Thank you so much,  
Alberto.


author: Patrik S
body: Hey [@Alberto Moreno](/t5/user/viewprofilepage/user-id/1343204) !

Happy to hear you were able to identify the solution and thank you very much for sharing it here in the Community, so other users who may come across this error may also try the steps that did work for you.

If you ever need help in the future, feel free to reach out!

Patrik S


Tags: azure

bitbucket-cloud

cloud

ftp