youngmon/atlassian-qna huggingface dataset:
How to automatically create ticket from Slack message based on Emoji response
Asked by Pradeep Nene:

We want to automatically create a ticket in Jira, based on particular Emoji response to a Slack message. For example a Bug emoji response to a Slack message should create a Bug ticket in Jira.


Answers:
author: Alastair Wilkinson
body: Hello [@Pradeep Nene](/t5/user/viewprofilepage/user-id/5005075) , Check out Workflow Steps for Jira, our app supports this use case. Have a look at the [Respond to a Bug Report template](https://docs.adaptavist.com/ws4j/latest/templates/respond-to-a-bug-report) to see if it will meet your needs.

comments: author: Pradeep Nene
body: [@Alastair Wilkinson](/t5/user/viewprofilepage/user-id/647638) thank you for your response. Sure, I will check this out.


author: Pradeep Nene
body: We are trying to accomplish this without any additional tool.


author: Carlos Garcia Navarro
body: Hi [@Pradeep Nene](/t5/user/viewprofilepage/user-id/5005075) ,

This sounds like a great case for Halp/Atlassian Assistant. I highly recommend it!

<https://www.atlassian.com/software/halp>

<https://plz.halp.com/>

comments: author: Pradeep Nene
body: [@Carlos Garcia Navarro](/t5/user/viewprofilepage/user-id/1031232) thank you for a quick response. What I am trying to achieve here is to create bug cards/tickets within existing Jira boards based on specific emoji response to a Slack message. Halp seems to create a ticket in it's own repository.


author: Carlos Garcia Navarro
body: Hi [@Pradeep Nene](/t5/user/viewprofilepage/user-id/5005075) ,

Halp has its own repository but it also integrates with Jira. I use it every day :-)

<https://plz.halp.com/article/eii4gsk5f0-how-to-connect-jira-to-halp>


author: Carlos Garcia Navarro
body: It's very easy to set up and the licenses are reasonably priced in my opinion. It integrates with a knowledge base that can automate sending responses to common questions. You can also create workflows in Slack (e.g. to send messages to triage channels), and when creating comments the functionality is bi-directional (replicated in Slack and Jira). You can add forms in Slack with fields that match to Jira fields. And SLAs, and more!


author: Pradeep Nene
body: [@Carlos Garcia Navarro](/t5/user/viewprofilepage/user-id/1031232) thank you, but we would not want to invest buying licenses for another workflow/automation tool. We are exploring ways if this can be accomplished with the Slack-Jira integration which is already in place.
Query related to CICD Deployment pipelines
Asked by Dileep Kumar Karanki:

Hi Team,

Currently we are using Azure Devops for CICD to deploy our Azure Datafactory Pipelines.

Does bitbucket have these capabilities.

If yes could you share reference links or documentations.

Thanks and Regards,

[Dileepkaranki](https://www.linkedin.com/in/dileepkumar-karanki-riz4368?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app)


Answers:
author: YY Brother
body: Hi [@Dileep Kumar Karanki](/t5/user/viewprofilepage/user-id/5472039)

Welcome to our Community.

Please see this material: <https://bitbucket.org/product/features/pipelines/integrations>

Hope it hepls you. Thanks,

YY?


Tags: bitbucket-cloud

cloud
Syntax validation of Automation's Mustache Expressions?
Asked by Martin Cleaver:

When debugging an Automation that uses a complex expression, the single-line dialog boxes are difficult to work with.

![Snag_4ad420.png](/t5/image/serverpage/image-id/210430iF8E7D1B25792DD84/image-size/large?v=v2&px=999 "Snag_4ad420.png")The dialog box is too small (expressions can be multiline), doesn't provide syntax highlighting, and can't give immediate feedback to me the user if there is a simple mismatch of parenthesis or braces. Or if sections are not properly nested.

IntelliJ Community Edition has a [Handlebars/Mustache - IntelliJ IDEs Plugin](https://plugins.jetbrains.com/plugin/6884-handlebars-mustache) that can do this. So I find myself pasting between IntelliJ and Automation.

But even that does not work well as the plugin refuses to accept:

* issue.Custom Field Name - doesn't like spaces, with or without double quotes
* close of debug {{/}} ({/debug} is okay)

And this workaround doesn't see the JQL... such that it cannot ensure that the parenthesis are balanced. Not ideal.

Has someone got another suggestion to make debugging easier on the eyes? Ideally for DC... though I appreciate that is a long ask.

The code is at [intellij-plugins/handlebars at master ? JetBrains/intellij-plugins ? GitHub](https://github.com/JetBrains/intellij-plugins/tree/master/handlebars) if someone wants to take it upon themself to adapt it.

Thanks,

Martin.


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

I added this suggestion to improve automation rule validation, and sadly it has moved to the dreaded "Future Consideration" status: <https://jira.atlassian.com/browse/JSWCLOUD-22692>

For complex smart values and JSON, I write them initially in tools like Notepad++ so I can use the syntax highlighting and bracket matching. Then I save snips of things I use often to reduce errors before pasting into rules for testing.

Kind regards,  
Bill

comments: author: Martin Cleaver
body: Hey Bill.

Are there particular plug-ins you use in Notepad++?

I use the JSON ones - is there something for JQL or Mustache?

Kind regards \& thanks,

Martin


author: Bill Sheboy
body: I am currently only using the JSON ones. Probably worth some searches for JQL and others support, so I'll look around a bit.


author: Martin Cleaver
body: I did discover that [spullara/mustache.java: Implementation of mustache.js for Java (github.com)](https://github.com/spullara/mustache.java) is the library used by Jira Automation on DC.


Tags: cloud
Bitbucket Server 7.10.1 to Data Center latest version
Asked by Sathiskumar:

Hi Team,

Could some one please help me with the upgrade path of the below version as we planned to upgrade it.

Bitbucket Server 7.10.1 (Windows) to Data Center latest version (Linux)

Thanks.

Sathiskumar


Answers:
author: Neeraj Upadhyay
body: please follow to migrate from windows to linux: <https://confluence.atlassian.com/bitbucketserver/migrate-bitbucket-server-from-windows-to-linux-1128304336.html>

Check the supported platform of the latest version of bitbucket : <https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html>

Release notes: <https://confluence.atlassian.com/bitbucketserver/release-notes-872139866.html>


Tags: bitbucket-data-center

bitbucket-server

data-center

server
How to install a bitbucket forge app from vendor
Asked by Peter Atthem:

Hello,

We have a Forge app for bitbucket distributed using a sharing link.

But the customers does not get any selection option in the "Choose a site", they are site admins and bitbucket admins.

What is missing to give them permission to install the app?

![Ska?rmavbild 2024-04-11 kl. 16.11.58.png](/t5/image/serverpage/image-id/317738i47CEF0527B73C538/image-size/large?v=v2&px=999 "Ska?rmavbild 2024-04-11 kl. 16.11.58.png")


Answers:
author: Ben
body: Hi Peter,

Workspace administrators should be able to install the forge app if it's team workspace. Is the person attempting this a workspace administrator?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Peter Atthem
body: Hello Ben,

I think I am I can install other apps and can navigate here <https://bitbucket.org/>\<myorg\>/workspace/settings/addon-management

Maybe I missing some other permission?

Cheers!


author: Syahrul
body: Hey [@Peter Atthem](/t5/user/viewprofilepage/user-id/3971459)

Forge does not support personal workspaces, which may be why users can't locate their workspaces under the list.

[Difference between shared and personal workspaces.](https://confluence.atlassian.com/bbkb/difference-between-shared-and-personal-workspaces-1141477191.html)

Worth asking them to check and verify this.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
I am not able to upgrade my plan to more than 5 people (paid version)
Asked by Ishan Malkan:

I am trying to add 6th and 7th member to my workspace by upgrading the plan to a paid version. But as soon as I click on start trial (there is no other option to directly start the plan without trial) I am sent back to the main bitbucket page and the new users to whom I have sent invite are not being able to enter as they are told that the plan needs to be upgraded before they can join it. How can I upgrade the plan. Thank you!


Answers:
author: Ishan Malkan
body: Okay, I found it, if I go from '?' on the top right to 'plan and pricing' it was redirecting me to the main page. But if I go from workspace settings and 'plan details' from there I was able to upgrade.


Tags: bitbucket-cloud

cloud
How to migrate personal repositories from bitbucket server to bitbucket cloud?
Asked by Michael Ortiz:

My organization is migrating from bitbucket server to bitbucket cloud. Many users have personal repositories. My questions are:

1. Does bitbucket cloud support personal repositories?
2. What's the best approach to migrating the personal repositories?


Answers:
author: Theodora Boudale
body: Hi Michael,

Repositories in Bitbucket Cloud belong to workspaces. Every Bitbucket Cloud user can create one (or multiple) workspace(s) (this will be separate from your company's workspace) and create repositories in this workspace.

The Bitbucket Cloud Migration Assistant does not migrate personal repositories. As a workaround, we recommend moving these to normal projects first so they can then be migrated. After the migration, they will belong to the Bitbucket Cloud workspace where you migrated. However, you can [transfer](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) them to another workspace created by a user. Please keep in mind that if you transfer them, you will no longer have access to them unless the admin of the new workspace grants you access. Another thing to take into account is that every workspace has its own billing plan. If a user creates a Bitbucket Cloud workspace on the Free plan, they can have up to 5 users with access to the repos of this workspace.

Another workaround would be for the users to take a mirror clone of each personal repo and then push that to newly created empty Bitbucket Cloud repos in their workspace. This will not migrate any metadata like pull requests, but only the core .git repo.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

cloud-migration

personal-space

repository
I'm not receiving bitbucket invitations on my mail
Asked by daniil:

Hi,

My manager sent me an invitation to collaborate on a project but the invitation email doesn't arrive at all. he tried to resend the email but it didn't work either.

Could you please check this problem?


Answers:
author: Dave Rosenlund _Trundl_
body: Hi, [@daniil](/t5/user/viewprofilepage/user-id/5473386) ? Welcome to the Atlassian Community.

This is a community forum of fellow Atlassian users (like you). There are some Atlassian people here, too, but in general the community cannot "check" to see what's happening in your Atlassian system.

For that you will have to [contact the Atlassian Bitbucket support team](https://support.atlassian.com/contact/#/).

\~\~\~\~\~\~\~\~\~\~

That said: I'm assuming you have already checked your SPAM/JUNK mail folder?

Hope this helps,

-dave

comments: author: Ben
body: G'day [@daniil](/t5/user/viewprofilepage/user-id/5473386)

I can confirm that we received SMTP bounces from your mail server, so you were added to our mail suppression list. I've just unblocked you from this list:

```
554 5.4.4 [internal] Domain Lookup Failed
```

Please ask them to try send the invitation again, I hope this helps :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket IP list to allow access to send data to AWS
Asked by Santri Web Programas:

I need to release permission on my AWS server so that Bitbucket can send information and perform some actions during the pipeline.  
To do this, I need the list of Bitbucket public IPs to release on my server.

What would be the list of IPs that I can be releasing?


Answers:
author: Saxea _Flowie_
body: Hi [@Santri Web Programas](/t5/user/viewprofilepage/user-id/5324110) ,

There's a list [here](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/).


Tags: bitbucket-cloud

cloud
unable to login via email and password
Asked by Jason Held:

screenshot below.![Screenshot from 2024-04-10 16-36-11.png](https://community.atlassian.com/t5/image/serverpage/image-id/317550i1BCD4DF0781C43FD/image-size/large?v=v2&px=999 "Screenshot from 2024-04-10 16-36-11.png")


Answers:
author: Jason Held
body: Unfortunately those steps have not worked.


author: Fabio Racobaldo _Herzum_
body: Hi [@Jason Held](/t5/user/viewprofilepage/user-id/5473601) and welcome,

please take a look to the following troubleshooting article [https://confluence.atlassian.com/bbkb/we-couldn-t-log-you-in-error-message-1236932685.html#:\~:text=You%20attempt%20to%20log%20in,then%20try%20logging%20in%20again](https://confluence.atlassian.com/bbkb/we-couldn-t-log-you-in-error-message-1236932685.html#:~:text=You%20attempt%20to%20log%20in,then%20try%20logging%20in%20again).

Hope this helps,

Fabio

comments: author: Jason Held
body: Unfortunately those did not help.


author: Fabio Racobaldo _Herzum_
body: hey [@Jason Held](/t5/user/viewprofilepage/user-id/5473601) , try to raise a ticket to Atlassian support team <https://support.atlassian.com/contact/>


author: Gigi GEHC
body: I had an issue to login with an access so I logged with my SSO / instead of username / and my bitbucket http token instead of password.


Tags: bitbucket-cloud

cloud
Bitbucket REST API can I do a shallow GET of repo files?
Asked by Vince Pastorella:

I'm working on a task with Bitbucket API 1.0 and I need to get a list of files in a repo. While I can retrieve the entire list with the following API:  

https://\<url\>/rest/api/1.0/projects/\<project\>/repos/\<repo\>/files?limit=1000  

This brings me back all the files in the repo and I know there are thousands of files. For my task, I only need to do a shallow GET and only return all the files/folders that are one level deep. I don't see anything in the [REST Call](https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8297638624) that makes this possible. Is there a way to do this with this api?


Answers:
author: Hariharan Iyer
body: Hi [@Vince Pastorella](/t5/user/viewprofilepage/user-id/4873585) ,

Are you using bitbucket cloud? If so, this API would help - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get>

Copying from the description
> The response by default is not recursive, meaning that only the direct contents of a path are returned. The response does not recurse down into subdirectories. In order to "walk" the entire directory tree, the client can either parse each response and follow the `self` links of each `commit_directory` object, or can specify a `max_depth` to recurse to.
>
> The max_depth parameter will do a breadth-first search to return the contents of the subdirectories up to the depth specified. Breadth-first search was chosen as it leads to the least amount of file system operations for git. If the `max_depth` parameter is specified to be too large, the call will time out and return a 555.
>
Hope that helps!
Does Bitbucket support rotating HTTP access keys?
Asked by Dongliu:

I'm currently storing my Bitbucket HTTP access key in AWS Secrets Manager that is then pulled by Lambda functions to perform operations on the Bitbucket API. I need to be able to routinely rotate this access key - whether it be manually or programmatically.

Does the Bitbucket API offer an endpoint that allows me to generate a new access key from an existing access key? Or to generate refreshable access keys that come with refresh tokens?


Answers:
author: Hariharan Iyer
body: Hi [@Dongliu](/t5/user/viewprofilepage/user-id/5473318) ,

Unfortunately automatic rotation is not supported as of now. There is a [ticket](https://jira.atlassian.com/browse/BCLOUD-21080) open for this already but from the comments it doesn't look like any work has gone into it.

Thanks,

Hariharan

comments: author: Dongliu
body: Thanks for the response. That is unfortunate.

I do see that there exist endpoints to create access tokens under <https://developer.atlassian.com/server/bitbucket/rest/v819/api-group-authentication/>

These could be used as part of a rotation strategy.

Do you know what permission / authentication is required to make these API calls?

I attempted with a personal access token and got a 401 Unauthorized.


author: Hariharan Iyer
body: I believe you will need the Admin permission level on the respective object (project or repository) to invoke that particular API.


author: Dongliu
body: The HTTP personal access tokens - from my understanding - are just used to authenticate my user to the REST API and should replicate my account permissions.

When I visit, for example, the following URL in my browser logged into my account I get a 200 response : rest/access-tokens/latest/users/\<user_slug\>

When I use basic auth for the call, I also get a 200 response.

But when I use my generated HTTP access token to make that call, I get a 401 Unauthorized.

Am I misunderstanding the permissions that my personal access token has?


author: Dongliu
body: Do ignore me.

I just came across a section on your documentation:

* You can't use a token to perform changes on behalf of a user (for example, create new tokens or update user account details).

Appears a token cannot be used to create a token. Also quite unfortunate.


Tags: bitbucket-data-center

data-center
Not receiving account recovery link on my email
Asked by Andrew Smith:

My colleague have been trying to reset account password but not able to receving recovery email. Please Atlassian engineer have a look if account for \[REDACTED\] has been blocked on your side.

From Our side we have checked spam filters and junk and traces of the email, and we haven not found any emails from atlassian with recovery link.

Thank you and regards,

Andrew


Answers:
author: Nikola Perisic
body: Hi [@Andrew Smith](/t5/user/viewprofilepage/user-id/5089308)

Most often, this is happening because Atlassian has added your email to the suppression list on their side in order to avoid spam. In order to solve this, raise a support ticket for Atlassian, asking them to remove your address from the list.

Link: <https://support.atlassian.com/contact/#/>

comments: author: Ben
body: G'day [@Andrew Smith](/t5/user/viewprofilepage/user-id/5089308) !

I can see that the user was added to our block list so I have removed them from our block list. The reason was because we received SMTP bounces from your mail server:

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy
```

Please ask them to try again. I would also recommend that your mail admin whitelists our Atlassian email addresses:

**Invitations**

* noreply@am.atlassian.com

**Product Notifications**

* no-reply@atlassian.com
* noreply@mailer.atlassian.com
* notifications-noreply@bitbucket.org

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Build fails on BB, but not locally
Asked by Neil Scales:

I am building a .net core 6 project. I've added a fairly complex .editorconfig file, which is only causing problems building on the BB build server.

I get zero build problems if I build from Visual Studio, or \`dotnet build\` on the command line. When I run exactly the same dotnet build command in the bitbucket-pipeline.yml, I get build errors (specifically IDE0055, but I've fixed others already).

I've also tried using the official .net6 sdk docker image locally, and I get no errors.

It appears to be a problem with the BB build server, but I'm stuck for ideas.

bitbucket-pipeline.yml (snippet):

```
image: mcr.microsoft.com/dotnet/sdk:6.0

script:
- dotnet restore $SOLUTION_NAME.sln
- dotnet build --no-restore --configuration Debug $SOLUTION_NAME.sln?
```

\`


Answers:
author: Neil Scales
body: If anyone else gets this issue, it's to do with line endings.

.gitattribute

```
text=auto
```

This will change the line endings to match the OS.

.editorconfig

```
end_of_line = CRLF
```

This forces to always use Windows line endings.

This will fail the build because the builds are Linux, but the config says it should be Windows.

The answer is:

```
end_of_line = unset
```


Tags: bitbucket-cloud

cloud
How to install self hosted runner in windows 11 to run pipe line
Asked by Prakash Koladiya:

I'm facing below error during installation...please check help to resolve below issue

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/atlassian/pipelines/runner/core/ApplicationImpl : Unsupported major.minor version 55.0  
at java.lang.ClassLoader.defineClass1(Native Method)  
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)  
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)  
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)  
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)  
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)  
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)  
Could not find the main class: com.atlassian.pipelines.runner.core.ApplicationImpl. Program will exit.


Answers:
author: Patrik S
body: Hello Prakash and welcome to the Community!

By looking at the error message you shared, it seems that runners are failing to start due to the version of Java you have currently installed in the machine not being compatible with the runner.

As described in the [Windows Runners prerequisites](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/#Prerequisites) , for runners to work you need to have installed the following dependencies :
> * OpenJDK 11 (11.0.15 or newer) is installed
>
> * Git 2.35.0 and above
>
> * PowerShell 5.0 and above
>
> * A 64-Bit Windows 10+ or Windows Server 2019+ instance with at least 8GB of RAM as a host for the runner.

In this case, could you please try installing a compatible version of OpenJDK and try starting the runner again?

Thank you, [@Prakash Koladiya](/t5/user/viewprofilepage/user-id/5473164) !

Patrik S


Tags: bitbucket-cloud
Need bitbucket pipeline for python application deploy on ec2
Asked by Rashmi Srivastava:

Hi Team,

I need bitbucket pipeline for python application to deploy on ec2 using codedeploy.


Answers:
author: Patrik S
body: Hello [@Rashmi Srivastava](/t5/user/viewprofilepage/user-id/5473160) and welcome to the Community!

To deploy your application to EC2 I would suggest using the [atlassian/aws-code-deploy](https://bitbucket.org/atlassian/aws-code-deploy/src/master/) pipe.

You can find the instructions and some examples on how to configure and use that pipe in your pipeline on its official documentation below :

* [Bitbucket Pipelines Pipe: AWS CodeDeploy](https://bitbucket.org/bitbucket/product/features/pipelines/integrations?search=code&p=atlassian/aws-code-deploy)

Hope it helps! If you have any questions, let us know.

Thank you, [@Rashmi Srivastava](/t5/user/viewprofilepage/user-id/5473160) !

Patrik S


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud