youngmon/atlassian-qna huggingface dataset:
How to add Organization in Channels & People in left sidebar of JSM?
Asked by Jyotika Patil:

![Screenshot 2023-12-19 191549.png](/t5/image/serverpage/image-id/297376iA638102246D544D4/image-size/large?v=v2&px=999 "Screenshot 2023-12-19 191549.png")![Screenshot 2023-12-19 191617.png](/t5/image/serverpage/image-id/297377iBB9985CF78B0BE9F/image-size/large?v=v2&px=999 "Screenshot 2023-12-19 191617.png")


Answers:
author: Marcus Jones
body: Hi [@Jyotika Patil](/t5/user/viewprofilepage/user-id/5332401) , I guess you're asking how to enable that feature? You need premium JSM license and you can enable that on a project by project basis. Navigate to your project settings and then Features. About half-way down that page you'll see a Customer Service section. Toggle the switch to the right of Customer Service Management so that it is on. When you go back to your project you will see the customers and organizations enabled.


Tags: cloud

jira-service-management

jira-service-management-cloud
Is there a way to bypass need to add email for customer portal SSO login. Can we enforce auto login
Asked by Pranav Saraf:

We have recently configured SSO for JSM customer portal following the link below:

[Configure SAML single sign-on for portal-only customers \| Atlassian Support](https://support.atlassian.com/security-and-access-policies/docs/configure-saml-single-sign-on-for-portal-only-customers/)

This is working but even if I am logged in to my SSO provider it asks me to enter email and then login with Atlassian. Is there a way user can be auto logged in and bypas the 2 screens.

Below is the screen to be bypassed:

![image.png](/t5/image/serverpage/image-id/297364i449A8B06699E97D2/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Eugenio Onofre
body: Hello [@Pranav Saraf](/t5/user/viewprofilepage/user-id/5377185)

Welcome to the Atlassian Community.

Unfortunately, no. Atlassian uses each individual Atlassian ID to login, which is tied to the user's email address. This screen will be prompted anytime the user session expires in JSM.

Please do not forget to accept this answer in case it helps you resolve your issue as it may help other community members in the future.

Regards,  
Eugenio


Tags: cloud

jira-service-management

jira-service-management-cloud
View Who you have Shared a case with
Asked by Rus Yates-Aylott:

You can share a case with an external contact where 2 or more external 'contacts' wish to monitor the case progress.  

However, is it possible for an Agent to see who has been invited to share case access, whether by link or email?


Answers:
author: Eugenio Onofre
body: Hi [@Rus Yates-Aylott](/t5/user/viewprofilepage/user-id/5306962)

Yes. Any agent can check who is able to access a ticket by clicking on the "view request on portal" link.

You can also add an automation to have users added to the Watcher fields.

Please do not forget to accept this answer in case it helps you resolve your issue as it may help other community members in the future.

Regards,  
Eugenio![Screen Shot 2023-12-20 at 19.00.18.png](https://community.atlassian.com/t5/image/serverpage/image-id/297675i871665685751BDDD/image-size/large?v=v2&px=999 "Screen Shot 2023-12-20 at 19.00.18.png")

comments: author: Bjorn Van Cotthem
body: Is there a way to see this on the issue view or on the ITSM side itself ?


Tags: cloud

jira-service-management

jira-service-management-cloud
How can we search all repositories except one or two
Asked by santhosh kumar challa:

I want to search a text in all repositories but at the same time I want avoid some repositories which I don't need.

Thank you in advance.


Answers:
author: santhosh kumar challa
body: alter table -repo:x -repo:y -repo:z lang:sql

- to avoid repositories.

comments: author: Patrik S
body: Hello [@santhosh kumar challa](/t5/user/viewprofilepage/user-id/378756) ,

Thank you for reaching out to Atlassian Community!

If you are using Code Search, it's possible to filter your query to Include or Not include a given repository. Please allow me to share some examples :

* Include just repos **apple** , **orange** and **gauva** :  

  ```
  repo:apple repo:orange repo:gauva search-term
  ```

* Include all the repos except the repository called **apple**

  ```
  search-term NOT repo:apple
  ```

You can check more examples of the available modifiers for Code Search in the following documentation :

<https://support.atlassian.com/bitbucket-cloud/docs/search-in-bitbucket-cloud/>

Thank you, [@santhosh kumar challa](https://community.atlassian.com/t5/user/viewprofilepage/user-id/378756) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Can we opt out of the new three-dot diff experience?
Asked by Matt Pedersen:

Is there a way for us to opt out of the new 3-dot diff experience? While I understand the change was done for performance reasons, it has Bitbucket unusable for us.

We rely on knowing that when we do a PR into a specific branch, we get the changes between the two branches to show up - not the changes between our feature branch and a common ancestor.

Setting up a PR of a feature branch into our develop branch but then showing changes that already exist in the develop branch is quite misleading.

We've never had any complaints about performance of diffs or PRs. If there was a slow diff because of lots of changes, that was totally acceptable to us because we knew there were lots of changes. We are happy to trade that performance hit for large, complex diffs if it means we'll get accurate diffs and PRs.

The "workaround" of pulling the destination branch into the feature branch does not work for us as there may be code in the destination branch that we do not want in the feature branch yet.

Thanks in advance.


Answers:
author: Bernadette Buck
body: [@Matt Pedersen](/t5/user/viewprofilepage/user-id/998190) and everyone, we aren't alone, I found the feature request. Vote for it here <https://jira.atlassian.com/browse/BCLOUD-21964>

comments: author: Matt Pedersen
body: [@Bernadette Buck](/t5/user/viewprofilepage/user-id/3511673)Great find, thanks!


author: Bernadette Buck
body: We have the same question with the same reasoning as you, Matt, on all points.

Are we in the minority here? We use master to represent Production, and everyone branches off of that. Our PRs first need to go to staging, which is where these diffs are now broken. They still look right against master, but against staging we have any changes from other features that are already in master showing up again. And we certainly cannot merge down from staging into feature; that would prevent feature from going to master until everything in staging is ready--which is not our workflow. Features go one at a time. We don't do a release candidate or release branch.

We also found the performance acceptable as it was.

It would be great to have the option to use the prior diff style.

comments: author: Jon Link
body: This is a very common workflow. It's also what our team uses, so these new diffs are total garbage.


Tags: bitbucket-cloud

cloud
over size repository
Asked by ballest:

Hello,

\<repo-name-removed\> repository is over 4GB of size. I've deleted unuseful branches but size remains the same.

how can I run a git gc on that repo?

thanks


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

It is not possible at the moment for users to trigger a git gc for their remote repos.

I attempted to run a git gc for your repo twice, but the process failed both times.

I am therefore going to create a support ticket for you, so one of our engineers can look into it.

You will receive an email with a link to the support ticket within the next few minutes (I'll use the email of your community account when creating the ticket).

Just a heads up, I removed the repo name from your post to protect your privacy.

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

Kind regards,  
Theodora

comments: author: ballest
body: hi theodora,  
really thank you for your help. is there a reason why the gc process fails? is there something wrong in my repo?  
I'll wait for yours engineers.

thanks

davide


author: Theodora Boudale
body: Hi Davide,

I'm not sure why the process is failing as I don't have direct access to your repo, I ran the git gc from a UI tool we have.

With a support ticket open, the engineer working on your case will be able to access the repo and investigate.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
error upon initial Bitbucket Server launch after installation
Asked by Georgi Krumov:

Hello,

I have the following problem:

I downloaded the tag.gz archive on my Mac OS, created a new "bitbucket-home" folder on my desktop and set the path of the home folder to the "BITBUCKET_HOME=" variable inside the**"set-bitbucket-home.sh"** file.Started Bitbucket by executing **"sudo sh start-bitbucket.sh"** inside the terminal, went to **"localhost:7990" using Safari** and saw bitbucket loading up.After less than 20 seconds it crashed, giving me some sort of Spring error **as seen below:** ![Screenshot 2022-07-05 at 14.52.58.png](/t5/image/serverpage/image-id/204587i4971D0CDDD20F1CB/image-size/large?v=v2&px=999 "Screenshot 2022-07-05 at 14.52.58.png")I checked the terminal and it said this:

**(full log from start to end)**

![Screenshot 2022-07-05 at 14.54.30.png](/t5/image/serverpage/image-id/204588i2E7FB3A2C418D7A8/image-size/large?v=v2&px=999 "Screenshot 2022-07-05 at 14.54.30.png")


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hello [@Georgi Krumov](/t5/user/viewprofilepage/user-id/4977718)

When you set up Bitbucket on your system it is recommended to create a dedicated \`bitbucket\` user and run bitbucket as such a user.

There's a KB article <https://confluence.atlassian.com/bitbucketserverkb/when-using-the-root-user-elasticsearch-cannot-be-started-due-to-don-t-run-elasticsearch-as-root-847751401.html> that explains the problem in more detail.

I personally run all Bitbucket server instances on docker on my local machine (MacOS) - <https://hub.docker.com/r/atlassian/bitbucket-server>. It's super easy and no headaches guaranteed.

Let me know how you go.

Cheers Ulrich

[Izymes // Eliminating boring from work](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

comments: author: Georgi Krumov
body: Hello [@Ulrich Kuhnhardt _IzymesCo_](/t5/user/viewprofilepage/user-id/4011392)

I'll try the first method for now, since I haven't really used docker before.Not sure how to do this right away either, but I'll dig into it.

Thank you for your time :)


Tags: bitbucket-cloud

cloud

error

opensearch

root

spring

spring-boot
get no feedback on perfomed tests within a pipeline
Asked by Iosu Santurtun:

Hello!

i have the following step defined in my bitbucket-pipelines.yml file  

```
    - step: &tests
        image: python:3.7.10-stretch
        name: run pytest
        deployment: staging
        caches:
          - pip
        script:
          - pip install -e .
          - pip install pytest>=5 pytest-cov pytest-testdox pytest-mock pyfakefs
          - pytest -v tests/ --junitxml=./test-results/junit.xml
```

and a custom pipeline to run this step only  

```
    tests:
      - step: *tests
```

but when i run it, i see that report file is found and "uploaded" but then i have no feedback on the performed tests (and i see that "learn more about reports" link that may be related?)

![test_reports_not_showing.png](/t5/image/serverpage/image-id/204556i3FB7B4E01CFA426C/image-size/large?v=v2&px=999 "test_reports_not_showing.png")  

Is it any option somewhere that i am missing or need to activate any other thing?  

thanks for reading!  


Answers:
author: Iosu Santurtun
body: i got it, removing the "deployment" part eliminates the "Redeploy" button and then, the tests results are shown  

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


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

report

test
Problem with pull in repository
Asked by simone_gasparella:

I am having a problem making the pull in a repo where the last commit it was in febraury..

The issue that I get it is the following..

remote: The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.

Please help me to fix it ..

Thanks


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

G'Day!

The error message is self-explanatory, so you either no longer have access to the repositories or the repositories do not exist anymore.

I would suggest you verify that the repository is still there, and that you can access it via the Web UI.

If you have no issue doing the above, the problem could be with your local config where you are authenticating with the wrong credentials. So I need to know if you are using HTTPS or SSH connection to continue the investigation, you can verify this by running the following commands:
> git remote -v

If the output is "git@bitbucket.org" then you are using SSH, and if the output has "<https://bitbucket.org>", then you are using HTTPS.

I look forward to hearing from you.

Cheers,  
Syahrul

comments: author: David Sampelan
body: i have the same p\[roblem.. what i should do if i using HTTPS..??


author: Syahrul
body: Hey [@David Sampelan](/t5/user/viewprofilepage/user-id/4983706)

Welcome to the community!

What action did you take to receive the same error message? Are you trying to clone the repository and receiving the error?

If yes, how did you authenticate when cloning the repository, and have you tried using [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) as your credential when authenticating?

If not, please do share with me the error message or screenshot. I'd be happy to help :)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Bitbucket Rate Limit during clone, fetch
Asked by Andrew Liew:

Hi,

We are currently facing a build fail by Jenkins when it attempts to fetch the repositories. For a few projects that has data size less than 2Mb, the operations went well. When Jenkins attempt to fetch projects that has data size of 100Mb or less, the operation fails.

Is there a rate limit for project with large data size ?

Thanks,

Andrew


Answers:
author: Patrik S
body: Hello [@Andrew Liew](/t5/user/viewprofilepage/user-id/4768350) ,

Thank you for reaching out to Atlassian Community.

We do have some[API rate limits](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/) implemented to grant stability across our platform, but those limits are based on the number of requests, and not on the size of the repository. The number of API calls is measured as follows:

* Unauthenticated calls: measured against a specific IP address.

* Authenticated calls: measured against the user ID.

The limits of each kind of request are outlined in the following documentation :

* <https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/>

Having said that, if your Jenkins instance is using the pooling method to check for changes in the repo, meaning that it will be frequently calling the bitbucket API to check if a new build should be triggered, the user used by Jenkins to authenticate might be affected by the API rate limiting, depending on the number of calls per rolling hour. When a user is affected by rate limiting, we return a 429 HTTP status code to the request.

If that is the case, to avoid this limitation you can either reduce the pooling rate of your Jenkins instance, so it calls bitbucket API less frequently, or implement the usage of [Bitbucket Webhooks](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/), so bitbucket itself will send a request to your Jenkins instance when a given event happened to the repository (for example a new push)  

Checking our internal tools I've noticed you have access to a workspace in a Premium subscription, so in case you want us to check our internal logs to confirm if your Jenkins requests are being rate limited, you can raise a support ticket with us in the following link : <https://support.atlassian.com/contact/#/>

Thank you, [@Andrew Liew](/t5/user/viewprofilepage/user-id/4768350) !

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
BitBucket Automatic Merge Failure email notification
Asked by Damien Joldersma:

Hello,

Recently I have been asked to configure an email notification to Teams when an Automatic Merge Failure occurs when using the Automatic Branch Merging feature of BitBucket.

I have a done a lot of research and have not been able to find a solution that works.

I explored the Webhook route but noticed that there was not an event type that matched "Automatic Merge Failure":

<https://confluence.atlassian.com/bitbucketserver076/managing-webhooks-in-bitbucket-server-1026535073.html>

I found this old thread about Stash, which described that the cascading merge conflict email would only get sent to the person who created the PR - but our situation is similar to one person who replied who described using a headless service account to perform the PR and merge:   

<https://community.atlassian.com/t5/Answers-Developer-Questions/email-notifications-for-cascade-merge-conflict/qaq-p/512963>

I briefly looked into PowerAutomate tool to try and detect the email / Teams notification via the Office 365 BitBucket Connector but it also did not a way to treat "Automatic Merge Failure" - only triggers for all Pull Requests - which is useful but has too much noise for our team to catch the important missed merge conflict notice when it occurs.   

<https://docs.microsoft.com/en-us/connectors/bitbucket/>

So our need is to detect when an "Automatic Merge Failure" and to send an email / Teams notification.

If anyone has any ideas or thoughts, I would really appreciate it.

Thanks for reading and thanks in advance!


Answers:
author: Damien Joldersma
body: Not an answer, but apparently there already is a 9 year old feature request for this:   

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

Even a duplicate:   

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

I guess we're left to our own devices.

Atlassian if you're listening: please review BSERV-3551 and prioritize it - there is a steady stream of folks adding comments and requesting.

Thanks


Tags: bitbucket-server

server
Using Rsync-deploy to deploy code to EC2
Asked by James:

Hi guys,

I have an issue with rsync-deploy, I used rsync-deploy to sync my code to ec2 but get the issue Permission denied

I have created a SSH key and added it to \~/.ssh/authorized_keys on my server,

I also updated the known hosts and base64 this key to add it to the repo variable, what am I doing wrong?


Answers:
author: Patrik S
body: Hello [@James](/t5/user/viewprofilepage/user-id/194849) ,

Thank you for reaching out to Atlassian Community!

From my understanding, you are using Atlassian's [rsync-deploy pipe](https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/rsync-deploy). If that is the case, in order to investigate further, could you please share with us :

* The bitbucket-pipelines.yml file of your build
* The logs from the failed build containing the error message

Also, you can try running the pipe with the DEBUG variable, so it will output more logs that can help to narrow down the issue :

```
- pipe: atlassian/rsync-deploy:0.7.1  variables:    [... other variables]    DEBUG: 'true'
```

Once you run in debug mode, please share the output of the pipe with us. Please make sure to sanitize any sensitive information from the logs.

Thank you, [@James](/t5/user/viewprofilepage/user-id/194849) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud

rsync
Sync with ftp-deploy
Asked by pk86:

Hi guys, I need a little assistance with my pipeline for deploy on ftp server.

I tried this pipeline:

```
image: wagnerstephan/bitbucket-git-ftp:latest

pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
master:
- step:
name: Test
deployment: production
script:
- git reset --hard 
#- git ftp init -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST
- pipe: atlassian/ftp-deploy:0.3.7
variables:
USER: $FTP_USERNAME
PASSWORD: $FTP_PASSWORD
SERVER: $FTP_HOST
REMOTE_PATH: /test/my-remote-directory
EXTRA_ARGS: "--only-newer --exclude=bitbucket-pipelines.yml"
caches:
- composer
```

But for each deploy all file are overwritten. **--only-newer** option don't works, I think because every time git pull update the files date and overwrite existings.

Can I upload only new files (by size for example) or uplaod only changes from last commit?

I can't use rsync because my target server don't has ssh but only ftp.

Thanks \& regards


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

Welcome to the community.

The option you use "**--only-newer"** is invalid because FTP deploys everything from the folder you've specified and does not consider what has changed. It simply overrides whatever's on the destination and pushes everything again.

As workaround, you can use [Git FTP](https://github.com/git-ftp/git-ftp) which should do what you want where it will upload the recent files change/commit only.

I hope this helps.

Cheers,  
Syahrul

comments: author: pk86
body: Thanks for the answer, I will try following this tutorial <https://stephanwagner.me/deploy-websites-with-bitbucket-pipelines-and-git-ftp>


author: pk86
body: Thanks so much for the solution. I share my script solution if it can be helpfull for somebody else.

```
# Official docs git-ftp: https://github.com/git-ftp/git-ftp/blob/master/man/git-ftp.1.md
image: wagnerstephan/bitbucket-git-ftp:latest

pipelines:
  custom:
    init:
    - step:
        name: For upload all files
        script:
          - git reset --hard
          - git ftp init -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST --remote-root $FTP_REMOTE_ROOT
    catchup:
    - step:
        name: For set that all files on server are already updated
        script:
          - git reset --hard
          - git ftp catchup -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST --remote-root $FTP_REMOTE_ROOT
    deploy:
    - step:
        name: Deploy all files of current checkout
        script:
          - git reset --hard
          - git ftp push -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST --all --remote-root $FTP_REMOTE_ROOT
  branches:
    master:
    - step:
      name: Deploy production
      deployment: production
      script:
        - git reset --hard
        - git ftp push -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST --remote-root $FTP_REMOTE_ROOT
```

If you need to exlude some file, you can declate them on `.git-ftp-ignore`


Tags: bitbucket-cloud

cloud

ftp