youngmon/atlassian-qna huggingface dataset:
During Blackout period is there warning or banner to enable in the Pull request before approval.
Asked by Raja Suresh:

During Blackout period is there warning or banner can be enabled in the Pull Request before it get approved.


Answers:
author: Mark C
body: Hi [@Raja Suresh](/t5/user/viewprofilepage/user-id/5128362)  

When you mentioned "blackout period", would it be possible for you to confirm which blackout period you're referring to?  

Are you referring to incidents/outages on our end?  
If yes, we do add a banner on [Bitbucket.org](http://bitbucket.org/) when there is an ongoing incident/outage on our end. This way, users will be notified on the UI about it.  

Regards,  
Mark C

comments: author: Raja Suresh
body: [@Mark C](/t5/user/viewprofilepage/user-id/1210823) , Thanks for the response.

There is there period in our organization last 2 weeks(blackout period) of every quarter we should not approve some part of sustaining Pull Request unless if it is very urgent and important to approve. So we are expecting some kind of warning during that period.


author: Mark C
body: Hi [@Raja Suresh](/t5/user/viewprofilepage/user-id/5128362),

Unfortunately, there's no option in Bitbucket Cloud Pull requests to customize the view to add a banner or notification.  
This feature was being tracked as a suggestion in [BCLOUD-20745](https://jira.atlassian.com/browse/BCLOUD-20745), but we have made the decision not to implement this feature and closed the suggestion.

This decision was made to be transparent about future features under consideration. You can see more details regarding the decision in [this comment](https://jira.atlassian.com/browse/BCLOUD-20745?focusedCommentId=3123837&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-3123837)

As a possible workaround, to prevent a pull request from being merged, you can explore implementing [branch permissions](https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/) by manually adding/removing it based on your preferred period.

Do let me know if you have further questions that can help with.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
In Build Setup happens git merge with destination branch head - How I disable it?
Asked by Rodolfo dos Santos:

Bitbucket Pipelines

When a Pipeline was trigger, the Build Setup merges with destination branch head. PyLint broke in this case, as it checks something out of what has been modified, so how do I disable it?

![Screenshot(2).png](/t5/image/serverpage/image-id/235933i40788A8F09BCAC0C/image-size/large?v=v2&px=999 "Screenshot(2).png")


Answers:
author: Patrik S
body: Hello [@Rodolfo dos Santos](/t5/user/viewprofilepage/user-id/5128091) ,

Welcome to Atlassian Community!

The merge is happening because you are most likely using a [Pull request triggered](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Pull-Requests) pipeline.

Pull request triggered pipelines behave a little differently than other types of pipelines, as it merges the destination branch into your working branch during the Build Setup. This is the intended behavior, as when you run a pull request pipeline you are usually interested to know if merging the content from the source and destination branches will break your build.

In case you do not want the merge to happen, you will need to use a different type of pipelines, such as [branch pipelines](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Branches). Branch pipelines will be triggered every time a new commit is pushed to a given branch or branch pattern you have configured, as in the below example :

```
image: node:lts
pipelines:
  default:
    - step:
        script:
          - echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
  branches:
    main:
      - step:
          script:
            - echo "This script runs only on commit to the main branch."
    feature/*:
      - step:
          image: openjdk:8 # This step uses its own image
          script:
            - echo "This script runs only on commit to branches with names that match the feature/* pattern."
```

Branches pipelines will run for a specific commit, and will not be merged to any other commit.

For more details on what types of pipeline triggers can be configured, you can refer to [Pipelines start conditions.](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/)

Hope that helps! Let me know in case you have any questions.

Thank you, [@Rodolfo dos Santos](/t5/user/viewprofilepage/user-id/5128091) .

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Is it possible to connect JSM Cloud to a Confluence knowledge base in a different site in same org?
Asked by Rob Horan:

Assume a single Atlassian org with multiple sites. One has JSM and another has Confluence.

So.... examplejsm.atlassian.net would be the JSM site and exampleconf.atlassian.net would be Confluence, and both are in the Example org.

Is it possible for examplejsm to integrate with exampleconf and use a space within as a KB?


Answers:
author: Trudy Claspill
body: Hello [@Rob Horan](/t5/user/viewprofilepage/user-id/853604)

This other post by another user appears to be asking the same question. Is the answer there helpful to you?

<https://community.atlassian.com/t5/Jira-Service-Management/How-do-I-connect-a-confluence-space-from-a-different-site-to-my/qaq-p/2626806>

comments: author: Rob Horan
body: Thanks Trudy,

I tried searching for an answer but this article didn't come up. I must have needed better search terms! Thank you!


author: Trudy Claspill
body: You're welcome!

If my response helps you solve your need, please consider clicking on the Accept Answer button. That marks your post as Solved and helps others searching for answers find the posts with validated solutions.


author: Joseph Chung Yin
body: [@Rob Horan](/t5/user/viewprofilepage/user-id/853604) -

Hi Rob:

I agreed with [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) suggestion. You need to ensure whoever the one setting up the configuration that he/she has the appropriate rights against the other site's Confluence space.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

confluence

integration

jira-service-management

jira-service-management-cloud

kb

knowledge-base
Bad Gateway 502 from UMap...
Asked by Klasen Eric:

Hi there,

I used to log in UMap ( <http://umap.openstreetmap.fr/fr/> ) via BitBucket. But it seems broken. I get a 502 Bad Gateway. Any idea where is comes from ?

Last time I had this issue, it was solved the day after, but this time, it's for a while now...

Thanks for help.


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This means the server is behind a proxy of some sort, and the proxy is not able to contact the server.

You'll need to talk to the administrators of the site and server - they need to look into why the service is not responding to the proxy


Tags: server
How can we integrate Microsoft teams to bitbucket pipelines to receive fail or pass builds notice
Asked by Ngeh N:

Hello,

I have integrated microsoft teams with bitbucket pipeline but I'm unable to add a step in pipeline where notifications of build results can be sent to Microsoft teams channels. Any help please?


Answers:
author: Theodora Boudale
body: Hi [@Ngeh N](/t5/user/viewprofilepage/user-id/5081131),

Are you using the following plugin for the integration?

* [https://marketplace.atlassian.com/apps/1216365/advanced-microsoft-teams-bitbucket-connector?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1216365/advanced-microsoft-teams-bitbucket-connector?tab=overview&hosting=cloud)

If so, the Marketplace listing for this app has a link with details on how to set up Microsoft Teams notifications about pull requests events, Bitbucket pipelines, and deployment events:

* <https://www.moveworkforward.com/blog/how-to-get-microsoft-teams-notifications-from-atlassian-bitbucket-cloud>

Regarding notifications of build status updates, please check this last link, specifically the part from "To get notified about build status updates, you need to watch the commit status updates." onwards.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to give project admins access to the existing Bitbucket project
Asked by adas1:

How to give project admins access to the existing Bitbucket project not repository


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

In Bitbucket Cloud, you can currently manage access by adding the users directly to a repository, or by creating a User group, and giving this group access to the desired repositories.

#### Creating a user group and adding users to it : {#toc-hId-205356421}

1. [Create a new user group](https://support.atlassian.com/bitbucket-cloud/docs/organize-groups-for-your-repositories/#Create-a-new-user-group) by going to the **User Groups** page of your workspace **Settings.**
2. [Add repositories to the group](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/#Add-a-repository-to-a-group), so you can define what permissions members of this group will have to each repository.
3. [Add or delete users](https://support.atlassian.com/bitbucket-cloud/docs/organize-groups-for-your-repositories/#Update-existing-user-groups) from the Group.

#### Granting a user direct access to a repository : {#toc-hId--1602098042}

1. Access the **Repository \> Repository Settings** page, and from the **User and group access** page, select **Add members**.

2. Enter the user by name or email address, if they are not already a member of the workspace.

3. Select an access level from the dropdown menu.

4. Select **Confirm** .  
   If you add the email address of someone without an account, that person receives an email prompting him or her to create one. Once the user has Bitbucket access, he or she can access the repository.

Hope that helps! Let me know in case you have any follow-up questions.

Thank you, [@adas1](/t5/user/viewprofilepage/user-id/5065251) !

Patrik S


author: adas1
body: Any update


Tags: bitbucket-cloud

cloud
How do you obtain $KUBE_CONFIG variable for a bitbucket deployment to a Kubernetes instance
Asked by Dryden Linden-Bremner:

So my company has been in the process of moving our backend application hosting from digital ocean droplets to a digital ocean kubernetes cluster.

However when following the bitbucket pipeline guide to update our pipelines for kubernetes (<https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-kubernetes/>)

*** ** * ** ***

```
 - step: name: Deploy deployment: production script: - sed -i "s|{{image}}|$DOCKER_HUB_USERNAME/$APPLICATION_NAME:$BITBUCKET_COMMIT|g" deployment.yml - pipe: atlassian/kubectl-run:1.1.2 variables: KUBE_CONFIG: $KUBE_CONFIG KUBECTL_COMMAND: 'apply' RESOURCE_PATH: 'deployment.yml'
```

*** ** * ** ***

There is a variable $KUBE_CONFIG which is not explained there or in other related resources i looked at.

Does anyone know how to find this variable? how to generate it? etc?, thanks even a basic overview of what it is would be helpful at this point.


Answers:
author: Yevhen
body: <https://bitbucket.org/atlassian/kubectl-run/src/master/>

It's base64 encoded kubeconfig file which you can download from DO.


Tags: bitbucket-cloud

cloud
Is it possible to have a user's email address included a pullrequest event payloads?
Asked by Michael Broughton:

We're attempting to mention a user in Slack which requires us to use their email address. The pullrequest event payloads don't list the email address of the user. I'm only seeing the user or nickname and/or display_name.

<https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Pull-request-events>

Is there a way to include the email address?


Answers:
author: Theodora Boudale
body: Hi Michael,

I'm afraid that this is not possible, emails of users are not returned for privacy reasons.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not receiving email notifications
Asked by Mayank Thakur:

My email ID is \`\*\*\*\*\*\*\*\*\*\*\*\*\`.

My organization migrated our email provider from outlook to google, after the move I am not getting any emails from bitbucket or jira. Curiously confluence seems to work.

Other answers seems to suggest that some failed emails can cause the email id to be blacklisted. My mailbox works fine now. Can someone from atlassian team check this?


Answers:
author: Ben
body: G'day Mayank!

Please note, I have censored your email address as this is a public forum.

We have checked our email logs and have found that we are successfully sending emails to your mail server however the following error was received from your mail server for your email address:

```

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

```

This error is encountered on your mail server when any of the following conditions are met:

* The address was invalid (address does not exist)
* The user clicked the list-unsubscribe header
* The user clicked one of your emails and flagged it as SPAM. This FBL (FeedBack Loop) event should add that email address to your Suppression List.

I would suggest reaching out to your email administrator to whitelist our email accounts as follows, then try to trigger notification emails once this has been performed:

```

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

```

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Add Users to workspace through API REST
Asked by mgnavarrete:

Hi!

I have an identity provider to obtain users in my organization at atlassian adminstrator. Now, I want to add those users automatically to my workspace in Bitbucket Cloud. Is there a way to add them or send them an invitation using an API?

In case this is not possible using a API, is there a way to invite users to a workspace automatically instead of doing manually user by user in the Bitbucket Cloud UI?


Answers:
author: Syahrul
body: G'day [@mgnavarrete](/t5/user/viewprofilepage/user-id/5124621), and welcome to the community!

We do have an available API to send user invitations into Bitbucket cloud Workspace:

[invitations Endpoint](https://support.atlassian.com/bitbucket-cloud/docs/invitations-endpoint/)

Example curl:

```
curl --request PUT \  --url https://api.bitbucket.org/1.0/users/<workspace>/invitations \  --header 'Authorization: <auth> \  --header 'Content-Type: application/json' \  --data '{"email":"<email_to_be_invited>","group_slug":"<group_to_be_invited_to"}'
```

Currently, in the Bitbucket cloud, the user has to be manually invited into Bitbucket and accept the invitation before accessing the Workspace.

That said, our [roadmap](https://www.atlassian.com/wac/roadmap/cloud/user-provisioning-for-bitbucket?selectedProduct=bitbucket&p=dbe4af1e-48) mention User provisioning with Atlassian access around Q2 2023, so do keep an eye on it.

Cheers,  
Syahrul

comments: author: mgnavarrete
body: It works perfectly, thanks!!

I will keep and eye on the roadmap :)


Tags: bitbucket-cloud

cloud
Pull request and JIRA
Asked by Vincent:

Hi,

My commit title starts with MYPROJECT-258 but Bitbucket PR view does not link with JIRA ticket.

I don't understand why ? Do you have any idea about this behaviour ?

Thanks


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

Welcome to Atlassian Community!

Could you please confirm if you are using Jira Server or Jira Cloud?

Also, in case you haven't connected your bitbucket to your Jira instance already, we have the following documentation with detailed steps on how to integrate those products :

* [Connect Bitbucket Cloud with Jira Software Server](https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-server/)

OR

* [Connect Bitbucket Cloud with Jira Software Cloud](https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-cloud/)

You will need to first connect those products to then see your commits linked to the respective Jira issues. You can [include the Jira issue key](https://confluence.atlassian.com/jirasoftwarecloud/referencing-issues-in-your-development-work-777002789.html) in branch names, commit messages or pull requests title in Bitbucket. Make sure you've formatted the Jira issue key correctly, using capital letters. For example, "JRA-123", not "jra-123".

Let me know in case you have already connected your Jira instance and are still facing issues seeing the linked Jira tickets.

Thank you, [@Vincent](/t5/user/viewprofilepage/user-id/5127584) !

Patrik S


Tags: bitbucket-cloud

cloud

jira
A particular user can view the your created branches in Bitbucket?
Asked by vegad Ravi:

Hi Bitbucket   
can you improve A particular user can view the your created branches in Bitbucket?  
for example:  
Current User Name is **"Zendo"**   
And **"Zendo"** create lots of branches and another user created Lots of branches  
than **"Zendo"** go to Branches that time not give to any filter related of Current user


Answers:
author: Patrik S
body: Hello [@vegad Ravi](/t5/user/viewprofilepage/user-id/5127447) ,

Welcome to Atlassian Community!

Git does not track who has created a branch, as a branch is simply a pointer to a commit, so I'm afraid it would not be possible to filter by the user who created the branch as this information isn't really stored by git.

However, a way you can determine who was working in a specific branch is by looking at the git logs :

    git log --graph --abbrev-commit --decorate  --first-parent <branch_name>

Hope that helps!

Thank you, [@vegad Ravi](/t5/user/viewprofilepage/user-id/5127447) !

Patrik S


Tags: bitbucket-cloud

cloud
access to project
Asked by ridwaan:

hi i have access to a full project and would like to copy this code to my bitbucket account and then give access to specific people, how do i do this?


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

Welcome to Atlassian Community!

In case you want to copy a repository to a different workspace, I would suggest the below options :

**1. Forking the repository**

You can [fork the repository](https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/) as this will essentially create a new copy of the repository in a different workspace. You will also be able to create pull requests to the parent repository.  
Please note that an admin needs to allow forking on the Repository Settings. If this setting is disabled, you will not see the "Fork this repository" option.

**2. Importing the repository**

You can use the bitbucket import tool in order to copy the source code to a different workspace by following the below steps:

1. Access the destination workspace
2. Click on the **Create repository** button and then select the "Import repository" option in the top right corner.
3. Provide the URL to the repository to be imported/copied : "<https://bitbucket.org/>\<workspace\>/\<repository_name\>"
4. If the repository being imported is **private** , check the option "Required authorization" and enter your **bitbucket username** and [**App Password**](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) as the credentials for the authentication.
5. Enter information for your new repository and proceed to click "Import repository"

For additional details, you can refer to our [import the repository](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository/) documentation.

Hope that helps!

Let me know in case you have any questions.

Thank you, [@ridwaan](/t5/user/viewprofilepage/user-id/5127580) !

Patrik S


Tags: bitbucket-cloud

cloud
BitBucket change announcement: "Pull requests are now immutable" - what does this mean?
Asked by Dan Bonachea:

[The Atlassian Change Blog](https://confluence.atlassian.com/cloud/blog/2023/01/atlassian-cloud-changes-jan-16-to-jan-23-2023#AtlassianCloudchangesJan16toJan23,2023-bitbucket) provides details about new and pending changes being rolled out to customers of their products.

The BitBucket Cloud section of this week's blog (Jan 16 to Jan 23, 2023) linked above contains this cryptic new entry:

![4ZRAF](/t5/image/serverpage/image-id/235779iCAA4A904B6440787/image-size/large?v=v2&px=999 "4ZRAF")

Text version:

*** ** * ** ***

Pull requests are now immutable  
ROLLING OUT / NEW THIS WEEK  
Bitbucket Cloud pull requests are now immutable. Note: You might come across pull requests that were merged before this change was implemented, so you may see some changes that are not relevant anymore.

*** ** * ** ***

Can anyone explain what this entry means and what functionality was actually changed?

I've played around with several test pull requests, but so far have not noticed any difference in capabilities or features.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Thanks for posting this question. I would love an explanation too.

comments: author: Ulrich Kuhnhardt _IzymesCo_
body: I poked about a bit and what I think is different is that

**Merged** pull requests are now immutable :=)

* you cant change the title or description
* you can't Un-approve or approve post merge

Looks like you can still leave comments.


author: Dan Bonachea
body: [@Ulrich Kuhnhardt _IzymesCo_](/t5/user/viewprofilepage/user-id/4011392) Thanks for your observations, I suspect you are correct.

I've also noticed that modifying or deleting the source branch of a merged PR no longer appears to alter the code diff displayed in the interface for that merged PR (an unintuitive display defect that I recall noticing in the past, although I cannot say with certainty when it changed because our team quickly learned to avoid that behavior).

It would be nice to get some clarity from Atlassian regarding whether we've correctly divined the extent of the recent changes.


Tags: bitbucket-cloud

cloud
SourceTree on macOS 10.13.5 Update crashes
Asked by Paul S:

Started ok, update dialog popped up then dead.

Now won't start - even after fresh install.


Answers:
author: bioagbob
body: See <https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-crashes-on-startup-on-MAC/qaq-p/813621#U813696>


author: Thomas Schlegel
body: Hi [@clevermuttchris](/t5/user/viewprofilepage/user-id/1473776),

have a look here:

<https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-crashes-on-start-after-adding-a-new-repository/qaq-p/814532>

The Atlassian Team is investigating this.

comments: author: mikemand
body: This is not the same issue at all.

I have not added new repositories, just updated the app when the little popup came up telling me there was a new update.

Now, SourceTree will start and stay open for at most 1 second then close. No errors, no Mac popup saying that the app crashed and do you want to send a report, etc.


author: clevermuttchris
body: Same problem on Mac OS 10.13.4. Sourcetree updates and then dies a second after launching. Deleted app, rebooted, reinstalled fresh and have same problem. Won't start at all now :(