youngmon/atlassian-qna huggingface dataset:
Assing Request Type Field based on Keyword in Summary
Asked by Saadallah.Mohamed:

Hi Community,

I'm trying to Automate a task were we receive multiple requests through Jira and then we start to assign those requests based on the Summary or Description.

I managed to finish the automation, however I'm facing a challenge where multiple keywords are found within one summary.

Example:

keyword: Side Fund (Related to Request Type "Billing")

Keyword: Endorsement (Related to Request Type "Issuance")

Summary: Side Fund Endorsement inquiry

If we received the above summary then the automation will execute Request Type to Billing then will execute again to Issuance

My Request is to execute only based on the first keyword found


Answers:
author: Jack Brickey
body: it would be great if I can see an image of your rule. This would allow me to better guide you on a solution. One question I have is whether you are using an if else block if that's the case, you should not be executing more than one creation. Another possible solution within your rule would be to add a label to the trigger issue and add that to part of your condition to ensure you don't execute more than one creation. For this, you will also want to use refetch data after adding the label.

again, a screenshot would help me give you more specific advice.

comments: author: Saadallah.Mohamed
body: Thanks for the response..

I previously created each Request Type with its own Key words in a separate Automation, I changed them and included in Automation block with multiple If-Else and its working fine now.


Tags: cloud

jira-service-management

jira-service-management-cloud
livechat integration with Jira cloud
Asked by Daniel Mathias Souza:

Goodnight,  
I would like to know if there is any app that integrates Live Chat with Jira Service Management Cloud?  
If so, does this integration work with asset fields?


Answers:
author: Iryna Ihnatiuk _Appfire_
body: Hi [@Daniel Mathias Souza](/t5/user/viewprofilepage/user-id/5421393)

I'm Iryna from Appfire. We offer [live chat capability for Jira Service Management](https://marketplace.atlassian.com/apps/1218891/chat-for-jira-service-management?hosting=cloud&tab=overview). Using the app, you can add the chat widget to your website or customer portal, and Jira tickets will be automatically created based on Chat conversations. You can display asset fields for such tickets if this is what you mean under integration.

Feel free to contact us if you have further questions or need any help.

Thanks,  
Iryna


Tags: cloud

jira-service-management

jira-service-management-cloud
git clone https authentication failed
Asked by Bozhao Jiang:

When I use user name and password to clone from https url, it failed with message "fatal: Authentication failed ". I checked the causes and resolutions here <https://confluence.atlassian.com/bitbucketserverkb/git-commands-return-fatal-authentication-failed-779171809.html> and none of them applied to my case. Any one has idea what might prevent it from working?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Bozhao Jiang](/t5/user/viewprofilepage/user-id/3632710) ,

please check if that user has project and repository access.

Fabio


Tags: bitbucket-server

server
Azure Functions are not visible in the function list when trying to deploy thru Bitbucket pipeline
Asked by anusha reddy:

Hi,

I'm trying to deploy my first http trigger Function App to Azure.

It was created with the Azure Function extension in VS Code. I use my Bitbucket Repo as a source and the Gradle as build tool.

My functions are working well locally and when i deploy manually I can see my functions in the Azure Functions list.

we are using username and password for azure login.

However when i try to deploy it thru my bitbucket pipeline

I have no error on the deployment itself but I cannot see my functions in the Azure Functions list.

Below is my bitbucket pipeline code:

image: mcr.microsoft.com/openjdk/jdk:11-ubuntu  
pipelines:  
default: #this runs for any unspecified branches_  
- step:  
name: Install dependencies  
caches:  
- gradle  
script:  
- echo 'Display Java version'  
- java -version  
- step:  
name: build  
script:  
- bash ./gradlew clean build  
artifacts:  
- build/libs/\*.jar  
- step:  
name: Function App Deployment  
script:  
- pipe: atlassian/azure-cli-run:1.1.0  
variables:  
AZURE_APP_ID: $AZURE_APP_ID  
AZURE_PASSWORD: $AZURE_PASSWORD  
AZURE_TENANT_ID: $AZURE_TENANT_ID  
CLI_COMMAND: 'az functionapp deployment source config-zip --resource-group ResourceGroup1 --name FunctionName1 --src build/libs/Application.jar'


Answers:
author: Igor Stoyanov
body: [@anusha reddy](/t5/user/viewprofilepage/user-id/5061227) hi . Thanks for your question. You can add DEBUG to see more detailed output. Also before pipe execution you can execute

```
 ls -lat
```

to see if in the step with pipe you have your files.

Also check that you provide

```
build/libs/*.jar
```

in artifacts, but your source is just

```
build/libs/Application.jar
```

maybe problem here.

Regards, Igor


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cli

gradle
Is possible to add tasks without comment into a file in bitbucket?
Asked by Julio Esteves:

I'm creating a new pull request in Bitbucket and I want to know if there is a way to add Tasks to avoid merging without pre-conditions. After creating the new pull request, I'd like to add specific conditions for reviewers to check the Tasks after they complete the review and if they didn't finish yet, blocks the merge button (waiting for all tasks to be done).

Do you guys have any ideas if is it possible to do in Bitbucket pull requests?


Answers:
author: Michael R?egg _Mibex Software_
body: Hi and welcome to the Atlassian Community!

If you do not mind a separate app, you can achieve this with our [Checklist Buddy for Bitbucket Cloud](https://marketplace.atlassian.com/apps/1225571/pull-request-checklist-buddy-for-bitbucket?hosting=cloud&tab=overview).

It uses configuration as code for the definition of the default task rules, which allows reviewing changes by peers, tracking changes over time and all the other benefits Git has over UI-based configurations.

To restrict default tasks for certain branches, you can use this syntax:

```
--target release/* +task+ Release notes ready?
```

Besides the configuration of the source/target branch, it is also able to create content-dependent default tasks, e.g.

```
--files /app/*.jsx +task+ UI changes visually inspected on IE/Edge
```

creates the default task only if the PR contains any React JSX files.

You can also enforce that all tasks are resolved before merging with the

**"No unresolved pull request tasks"** merge check in the repository settings.

<br />

For more information, please check the [app documentation](https://mibexsoftware.atlassian.net/wiki/spaces/CB/pages/3267133441/Bitbucket+Cloud+-+Checklist+Buddy).

comments: author: Julio Esteves
body: Hi Michael, thank you so much for your suggestion. I will try it here!


author: Michael R?egg _Mibex Software_
body: Hi Julio, you're very welcome. [Let us know](mailto:support@mibexsoftware.com) if you have any questions, we're happy to help!


Tags: task
Does Bitbucket server 6.4.0 use Apache Commons Text (v 1.5-1.9), per CVE-2022-42889?
Asked by Tony Simon:

Is Apache Commons Text used in Bitbucket server 6.4.0? If so, how can we remediate for CVE-2022-42889? Thank you!


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Tony Simon](/t5/user/viewprofilepage/user-id/3352254) ,

this security issue is currently under investigation by the Atlassian Team. Please keep you update using the following link <https://www.atlassian.com/trust/security/advisories>

Hope this helps,

Fabio


Tags: bitbucket-server

server
How can I retrieve the ticket number from a pipeline ?
Asked by federico:

Hello,  

I would like to create the following flow.  

user commit and PR a feature, then on the pipeline  

=\> Lint/Test  
=\> Build a preview  
=\> Deploy a preview  
=\> Automatically comment on ticket with preview link and move to QA.  

I am unsure how to achieve this last step.  
I am using Bibucket Cloud and Jira and probably would use [Smart Commit](https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/) .  

The question is, how can I retrieve the ticket number from the pipeline ? I know there is some variables, but none seems related to the Jira Ticket. I would like to be able to retrieve this from the \`bitbucket-pipelines.yml\` the same way the PR page can know the associated tickets.  

Is it possible ?   

Thank you


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

Thank you for reaching out to the community.

For the last step in your workflow, I don't think there's a default variable in Pipelines that fetches a Jira issue link. - [Bitbucket Pipelines variables](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/)

As a workaround, since there is the default variable **BITBUCKET_COMMIT** in Pipelines, you can run a Git command to show extract the commit's message.  
From that commit message, you can then parse the result to get the Jira issue key given the commit message has an issue key.

```
# To get the commit's message- export commit_message=$(git show -s --format=%B $BITBUCKET_COMMIT)# Parse the variable *commit_message* to get the Jira issue key
```

Hope it helps.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jira-cloud
Deleted branches and my bitbucket repositou still over 4GB. What can I do?
Asked by michal moshe:

After deleting branches, we see no reduction in our repo size? I read that we should run garbage collection, but not sure how, as we can't push changes to the remote repository at all.  
Please help!


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

I checked the repositories your Bitbucket Cloud account has access to, I found one repo over the 4 GB limit and I ran a git gc on it.

Its size has been reduced to 1.5 GB, so you should be able to push to the repo now.

In case you would like to further reduce the repo's size, you can check this post of mine in a different question with more details:

* <https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762>

If you decide to proceed with the steps mentioned in that post and rewrite history in the repo with BFG, please keep in mind that the repo's size will get increased again once you push these changes. The repo will then need another git gc for the old commits (prior to history rewrite) to get removed and for the repo's size to get reduced.

You can either let me know here, and I can run another git gc for the repo, or alternatively, since you're on a paid billing plan, you can create a ticket with Bitbucket Cloud support team. 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.

Users cannot run a garbage collection on their remote repos at the moment, this is something support can do. We have a feature request for allowing users to do it themselves: <https://jira.atlassian.com/browse/BCLOUD-11593>

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

Kind regards,  
Theodora


author: Fabio Racobaldo _Herzum_
body: Hi [@michal moshe](/t5/user/viewprofilepage/user-id/5060650) ,

welcome to the Atlassian community!

Here an useful article about how to maintain your repo and manage size <https://support.atlassian.com/bitbucket-cloud/docs/maintain-a-git-repository/>

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud
I am trying to add my public key to repo but says someone has already added that ssh key
Asked by Jean Linux:

I am trying to add ssh key to my profile but is says someone as already added that key. I have checked all my repositories and I do not see that ssh key added.

I am not sure If i have two bitbucket account

can you create a ticket for me on this issue.


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

Could you please first clarify where you are trying to add your public SSH key? In the title of your post you mention that you are trying to add it to a repo, but in your post you mention that you are trying to add it to your profile.  

1. Are you trying to add the key to your account's SSH keys <https://bitbucket.org/account/settings/ssh-keys/> ?  
   Or to the **Access keys** of a repository via **Repository settings** ?  
   Or to a workspace's SSH keys via a workspace's settings?  

2. What is the exact error you are seeing? Is it "Someone has already added that SSH key." ? Or "Someone has already added that key as an access key to a repository." ?

<br />

Please let me know and I can guide you with further steps.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to initialize a new repo from an existing local repo?
Asked by Klaus Busse:

I already have a local git repo on my disk.

Now what I'd like to do is to create a remote for it in my Bitbucket account -- the code right now has NO remotes.

**However, in the options to import an existing repository I must provide an URL, I see no options to simply upload my local repo.**

If I create the repo, I end up with another master branch on remote, which of course collides with the one I already have locally.

What is the best way to solve this?


Answers:
author: Klaus Busse
body: To answer my own question in the hope that it may help others:

\* Create a new repo, and choose **No** on the option "Include .gitignore?"

\* After that, the information to configure your remote is displayed, and you can just push it.

Sometimes comfort really get into the way.


Tags: bitbucket-cloud

cloud
Unable to connect to bitbucket.org website but can ping
Asked by Reegan J Farrant:

Ok, so I've got a doozy for you guys. At some point this year I started to get ERR_TIMED_OUT whenever I try to connect to bitbucket. It is ONLY bitbucket, any other websites are absolutely fine. Sometimes (rarely) I can connect from Edge, but never from chrome, and I can't connect from any devices at all connected to my wifi.  

I can, however, interact with bitbucket through Git just fine, and also ping from cmd.  

As far as I can see no one else has had this problem so I assume it's a router or DNS thing but the only error I can get is a timeout error in my browser.  

Any ideas? or potential troubleshooting steps I could do that I might not have thought of? i really prefer bitbucket to GitHub and I enjoy the VsCode integrations.


Answers:
author: Erez Maadani
body: Suggestion: Try connecting your laptop (any other device) using a cable to the modem. If it works, the problem lays between your devices and the modem. If it doesn't, the problem lays in the modem or before it.

Since it's affecting all your devices, my hunch is that it's a modem/router mis-configuration / caching issue.


author: Reegan J Farrant
body: ![Screenshot - 22-Oct-22 , 1_20_40 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/222080i53017E0F0E6DD1E9/image-size/large?v=v2&px=999 "Screenshot - 22-Oct-22 , 1_20_40 PM.png")


Tags: bitbucket-cloud

cloud
API for listing deliveries of a repository webhook
Asked by Vin?cius Calasans:

Hi team,

Is there any way to query via API the webhook deliveries of a BitBucket repository, like [This API provided by GitHub](https://docs.github.com/en/rest/webhooks/repo-deliveries) ?

I also see that webhook delivery history, by default, gets disabled after a week in BitBucket. Is there a way to prevent this from happening?

Many thanks!

Vin?cius


Answers:
author: Syahrul
body: Hey [@Vin?cius Calasans](/t5/user/viewprofilepage/user-id/5060013)

Welcome to the community!

We do have an existing endpoint to get the list of Webhook on a repository and get the specific Webhook information:

[List Webhooks for a repository](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-hooks-get)

[Get a Webhook for a repository](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-hooks-uid-get)

As for preventing the history disabled after a week, unfortunately, this is not possible now. We do have a feature request on this previously but it has since been closed, so let me know if you wish to reopen this feature request.

Cheers,  
Syahrul

comments: author: Vin?cius Calasans
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) !

Thank you for the welcome and for your answer. However, I have checked the documentation you provided and still could not find a way to query the deliveries (i.e. events) of a specific webhook in my repo.

Just to clarify, I'm looking for an API to query the events shown on this page:  
![Unsaved Image 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/222224i90CDEE4E3B76F579/image-size/large?v=v2&px=999 "Unsaved Image 1.jpg")

Also, we would need a way to keep the events history permanently enabled. There would be no problem if events are stored for a limited period of time (this is how webhook event history works in GitHub, for example). So it will be very helpful if you could reopen the feature request you mentioned.

Thank you very much!

Vin?cius Calasans


author: Syahrul
body: Hey [@Vin?cius Calasans](/t5/user/viewprofilepage/user-id/5060013)

Thanks for the screenshot.

That cleared my confusion, as I was under the impression you were looking for the Webhook list. My apologies.

Regarding getting the Webhook event API, unfortunately, Bitbucket cloud doesn't have this exposed in our public API endpoint for now. The only way to view this is via the UI page by enabling the logging history.

That said, we do have an existing feature request for when to disable the history logging at:

* [Ability to choose when to disable Webhooks history logging](https://jira.atlassian.com/browse/BCLOUD-22089)

Please **Vote** and **Watch** the feature request above so you'll receive an update in the future.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud

history

webhook
CI CD pipeline for IoS build
Asked by mohit Mishra:

I wanted to create a CI/CD pipeline for one of my project which is creating application for Ios platform.  
Does Bitbucket CICD pipeline support this or yet no luck ?


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@mohit Mishra](/t5/user/viewprofilepage/user-id/5059983) ! Welcome to the Atlassian Community!

I believe Mac runners for Bitbucket Pipelines was announced last month. Though I believe they're still in beta.

<https://bitbucket.org/blog/macos-runners-bitbucket>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

continuous-delivery

ios
bitbucket-clear-cache skipped
Asked by Jefferson Xavier:

The following step is skipped even though there is a change, on no logs to display:

```
    clear-cache: &clear-cache-if-needed

      name: "Clear cache if dependency changed"

      script:

        - pipe: atlassian/bitbucket-clear-cache:3.1.1

          variables:

            BITBUCKET_USERNAME: $BITBUCKET_USERNAME

            BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD

            CACHES: ["node"]

            DEBUG: "true"

      condition:

        changesets:

          includePaths:

            # only if package.json file has changed

            - 'package.json'
```

2 days ago it was working perfectly.

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

Now:

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


Answers:
author: Mark C
body: Hi [@Jefferson Xavier](/t5/user/viewprofilepage/user-id/5060089),

Welcome to the community.

Would it be possible for you to confirm if the change from the 2nd build is from the file **package.json** ?  
You can go to the Pipelines build and click the commit hash to review the file(s) changes.

Regards,  
Mark C

comments: author: Jefferson Xavier
body: Hi Mark!

Yes, there was a change in the package.json file.


author: Mark C
body: Thanks for that.  

Btw, is it a push or pull-request trigger?  

Regards,  
Mark C


author: Jefferson Xavier
body: Pull-request


author: Mark C
body: Hi [@Jefferson Xavier](/t5/user/viewprofilepage/user-id/5060089)  

Thanks for that info.  
When the Pipelines build is triggered by the pull request, is it a merged PR or just a typical PR update?  
This is for me to test the scenario on my end.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Premium payment method
Asked by Marco Aurelio Sartorelli:

Is the payment made once a year or every month?


Answers:
author: Fabio Racobaldo _Herzum_
body: Payment is per month basis!


author: Brant Schroeder
body: [@Marco Aurelio Sartorelli](/t5/user/viewprofilepage/user-id/1993257) it is monthly <https://www.atlassian.com/software/bitbucket/pricing>


author: Theodora Boudale
body: Hi [@Marco Aurelio Sartorelli](/t5/user/viewprofilepage/user-id/1993257),

We offer annual Bitbucket Premium subscriptions for brand new customers:

* <https://www.atlassian.com/software/bitbucket/pricing#annual-subscription>

If you'd be interested in that, you can contact our billing and licensing team to ask if you qualify for such a subscription:

* <https://www.atlassian.com/company/contact/purchasing-licensing>

If you haven't created yet a Bitbucket workspace where you'd like to have an annual Premium plan, please create it prior to contacting our team, and then provide the URL of the workspace in your question's details.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket version and oracle DB compatibility
Asked by Rahul Jejurkar:

Hi All,  

<br />

We have the current bitbucket configuration with below build and database versions.

Current Bitbucket:  
Build Version: 5.16.10

Current Database:  
Name: Oracle  
Version: 12.1.0.2.0

We are planning to upgrade database to the version 19c as a part of infra upgrade, can you please confirm below point.  
Is bitbucket version 5.16.10 compatible with oracle 19c?

Thanking you in anticipation.


Answers:
author: Mayur Jadhav
body: Hello [@Rahul Jejurkar](/t5/user/viewprofilepage/user-id/5045883) ,

Welcome to the Atlassian Community!!

Bitbucket server 5.16.10 supports only 12c and 11g from the oracle. To Support 19c oracle db you need to upgrade the bitbucket server to 6.7.x and higher version.

You please have look at more for information on [5.16.10 Supported platform.](https://confluence.atlassian.com/bitbucketserver0516/supported-platforms-966062089.html)  
and for [6.7.x version Supported Platform.](https://confluence.atlassian.com/bitbucketserver067/supported-platforms-979427478.html)

Hope this information help!!

Regards,  
Mayur

comments: author: Rahul Jejurkar
body: Thanks [@Mayur Jadhav](/t5/user/viewprofilepage/user-id/4290135) for the quick response. This helps.


Tags: bitbucket-server

server