youngmon/atlassian-qna huggingface dataset:
how is determine the first and last name of a customer from their email address.
Asked by M?lanie Liguet:

Hi,

in JSM, I want to know how to determine the first and last name of a customer from their email address.

Currently, I am returning with an email address from a mailing list associated with the first and last name of a collaborator.  
This person also has an Atlassian account with their professional address, it's very disturbing.

I don't understand where it comes from and how to modify this information.

regards,


Answers:
author: Nicolas Grossi
body: [@M?lanie Liguet](/t5/user/viewprofilepage/user-id/4533707) I guess you cant do it. You might want to implement a "best" approach instead.

Nicolas


Tags: cloud

jira-service-management

jira-service-management-cloud
Configuring email request in Jira service management
Asked by Dinonath Khan:

Hey There,

I would like to configure email requests to raise tickets from the email inbox. Is it possible to connect or use my Microsoft account inbox without providing the password of my Outlook account in Jira Service Management?


Answers:
author: Vronik
body: Hi

Look at this

<https://confluence.atlassian.com/servicemanagementserver/receiving-requests-by-email-939926303.html>

<https://support.atlassian.com/jira-service-management-cloud/docs/receive-requests-from-an-email-address/>

<https://support.atlassian.com/jira-service-management-cloud/docs/choose-a-request-type-for-email-requests/>

If my answer helped you,   
please mark it as accepted so that other people looking for similar problems can find it more easily

<br />

Thanks

comments: author: Steve Gibson
body: Hi Vronik,  

I'm having the same issue but none of the provided links work for me. My mailbox is on an Enterprise Office365 organisation so it needs to use OAuth2. The first link is only relevant to Jira DataCentre for on premise installations. The Jira cloud solution just does not work using any of the combinations in the "Other" section.  

Trying to login via "Continue with Microsoft" doesn't work because Microsoft only support modern authentication now which means MFA enabled by default.


Tags: cloud

jira-service-management

jira-service-management-cloud
How do I specify a field by ID in a field edit in an automation?
Asked by Kel Hill:

We have two fields called Severity so I need to select the field for editing within my automation by its ID number. I am not sure how to do so. Any help appreciated.


Answers:
author: John Funk
body: Hi Kel,

First, you really should change the name of the field you added. That or add a second context that you can use different values for either different projects or different Issue Types.

Regardless, to get the ID, go to Settings \> Issues \> Custom Fields

Search for the Severity field. Click the 3 dots menu to the right.

Select Default value and Contexts or Edit

Then look at the URL address in the browser. It will have the ID there.


author: Nicolas Grossi
body: [@Kel Hill](/t5/user/viewprofilepage/user-id/613745) You might want to use jira smart values in an automation.

Nicolas


Tags: automation

cloud

custom-field

jira-service-management

jira-service-management-cloud
How to automatically set a Date Custom Field to the date an Issue was marked Closed??
Asked by Eric Blair:

I have a Custom field called Date Closed. I'd like to set that automatically when someone sets a issue to Closed. Is this possible?


Answers:
author: Dieter
body: There is a ready plugin providing the closure date. Please check if this is what you need: <https://plugins.atlassian.com/5139>


author: Eva
body: this is probably wayyy overdue...but in case you still need this:

On your workflow, go to Transition for Close. In the post function tab, you can either create a script (via script runner plugin) or you can set the customfield to a particular value.

hope this helps


Tags: close

date
How to properly setup selenium web tests (python) running in docker on bitbucket pipeline?
Asked by elena_skorodilo:

I am trying to setup selenium web tests (python, headless mode) running in docker on bitbucket pipeline and get errors that I can't fix.

One of them is

docker: Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories. None of the solutions or workarounds found worked and I am not sure should I try to solve it or maybe my approach is wrong in general.

I wonder is there any detailed working up-to-date guide that could help me figure out how to properly set it up. What should my yml file and dockerfile look like, should I download and unzip chromedriver file? or should I stick to  
selenium/standalone-chrome? There's lots of guides how to do it locally, but not many how to perform this on a bitbucket pipline :( would be greatful for any help

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


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

The error you reported was because in the example you shared you are trying to mount the directory**/dev/shm** inside the container you starting with docker run. In pipelines, you can only mount directories from the build container to another container if the directory is under the $BITBUCKET_CLONE_DIR path.

So if the **dev/shm** is a folder in your repository, the mounting would be as follows:

```
docker run -d -p 4444:4444 -v $BITBUCKET_CLONE_DIR/dev/shm:/dev/shm selenium/standalone-chrome
```

This would mount the files contained in $BITBUCKET_CLONE_DIR/dev/shm directory in the build container, inside the /dev/shm directory of the container you are spinning up.

However, I found the following article with instructions on how to set-up the selenium tests using Bitbucket Services instead, which may be of help :

* <https://jeroenpeters.dev/blog/run-your-selenium-tests-in-the-cloud-with-bitbucket-pipelines/>

Although it's not Python-specific, it provides good information on how to define the service in the pipeline, the port mapping and the selenium configuration.

Hope that helps!

Thank you, [@elena_skorodilo](/t5/user/viewprofilepage/user-id/1930793) !

Patrik S

comments: author: elena_skorodilo
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309), your answer is EXTREMELY HELPFUL, with help of your explanation and provided article I managed to run my first test on a bitbucket pipeline which is a huge progress. Thanks a lot.


author: Patrik S
body: You're very welcome [@elena_skorodilo](/t5/user/viewprofilepage/user-id/1930793) ! Happy to have been of some assistance :)

Feel free to reach out to the community if you ever need help!

Thank you,

Patrik S


Tags: automation

bitbucket-cloud

cloud
Build fails with "filename too long"
Asked by Philipp Wieseckel:

We try to build a .Net Application on a local runner on Windows Server 2019. Unfortunately the build fails with the error of "filename too long".


Answers:
author: Charlie Misonne
body: Hi Philip,

I don't think that issue will be specific to Bitbucket.

Windows has its own max lenght for file names. With GIT there are ways to circumvent this.

Do you know if the error occurs after executing a git command in the build? (clone, fetch, checkout, ...)

If it's the case you can follow [this article](https://confluence.atlassian.com/bamkb/git-checkouts-fail-on-windows-with-filename-too-long-error-unable-to-create-file-errors-867363792.html) to set **core.longpath**. The article for Bamboo but it should be the same for any Windows server using GIT.


Tags: bitbucket-cloud

cloud
Avoiding Case Changes in a Cloned Repository
Asked by bioan:

Hello everyone,

I'm facing an issue with a cloned repository where the case of letters in repository name are being changed from uppercase to lowercase.

For example, I have a repository called TestApp in Bitbucket and when I cloned it into my local PC it appears like testapp not TestApp.

Is there a way to prevent or avoid this behavior?

I appreciate any insights or suggestions you may have.

Thank you!


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

Bitbucket Cloud repositories are not case sensitive, but when cloning a repository, you can provide the name of the folder you want to save the repository right after the git command, like in the below example :

```
git clone git@bitbucket.org:WORKSPACE/testingcase.git TestingCase
```

In the above example, the repository would be saved inside a folder named *TestingCase*.

If you don't provide the folder name, git will create a folder based on the name of the repository :

* Save the repo in the folder **testingcase** :   

  ```
  git clone git@bitbucket.org:<Workspace>/testingcase.git
  ```

* Save the repo in the folder **TestingCase**   

  ```
  git clone git@bitbucket.org:<Workspace>/TestingCase.git
  ```

Both the commands would clone the same repository as they are case insensitive from Bitbucket Cloud's perspective.

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

Thank you, [@bioan](/t5/user/viewprofilepage/user-id/5388237) !

Patrik S


Tags: bitbucket-cloud

cloud
pipeline
Asked by vahida_anju:

`variables:`

`KUBE_CONFIG: $KUBE_CONFIG what to write here ,whats `

`KUBECTL_COMMAND: 'apply' `

`RESOURCE_PATH: 'deployment.yml'`


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

It seems like you are trying to use the ***atlassian/kubectl-run*** pipe and would like to know what value you should provide for the KUBE_CONFIG value.

Based on the **Prerequisites** section of that atlassian/kubectl-run pipe :
> In order to configure the credentials in Pipelines, you will need to add the base64-encoded `kubeconfig` file as a Repository Variable. This is how you can obtain it: on Linux `base64 -w 0 < ~/.kube/config` and on Mac OS `base64 < ~/.kube/config`. Just copy the base64-encoded string from stdout and put in into the KUBE_CONFIG variable in your repository settings.

So that variable will be used by the pipe to authenticate to your Kubernetes cluster.

For additional details on that pipe's configuration and description of each available variable you can refer to its documentation in the following link :

* [atlassian/kubectl-run \| Pipe](https://bitbucket.org/product/features/pipelines/integrations?search=kubernetes&p=atlassian/kubectl-run)

Thank you, [@vahida_anju](/t5/user/viewprofilepage/user-id/5390416) !

Patrik S


Tags: bitbucket-cloud

cloud
Always getting "We couldn?t log you in"
Asked by realshade_mk:

I haven't logged into my account for about a year. and now I get the message. I have read that this happens with a deactivated account. Please, reactivate me.


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

Your account was in a Dormant state due to a long period with no login. I went ahead and set it to active again, so you should be able to log in just fine as of now.

You can try again and let us know in case you still face any issues.

Thank you, [@realshade_mk](/t5/user/viewprofilepage/user-id/5390315) !

Patrik S

comments: author: realshade_mk
body: Thanks


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

You will need to ask your administrators to re-activate your account. We have less access to, and knowledge about, your system than you do.


author: Bilal Mughal
body: Hi,

Could you eleborate more so i can suggest you proper solution.


Tags: bitbucket-cloud

cloud
can't create a repository
Asked by Paul Stevenson:

the Create button only has "Snippet".  
I read in another question that this could be because I'm not an admin.

but given that I'm the only user with access to this account and these repos, I don't see how that can be the case.

I can push commits no problem.

just can't create a new repo.


Answers:
author: Patrik S
body: Hello [@Paul Stevenson](/t5/user/viewprofilepage/user-id/5390099) ,

and welcome to the Community!

In Bitbucket Cloud the permissions can have **workspace** , **project** and **repository** scopes. In order to be able to create a repository, your account needs to have either admin permission at the workspace level, or Admin or Create permission at the project level.

Checking internally, the bitbucket account associated with the email you used to post this question currently only has admin access to a few repositories, which will not allow you to create a new repo. You would need project-level or workspace-level permissions to do so.

From the looks of it, you have multiple Bitbucket accounts, and the owner/admin of the workspace you are trying to access is tied to a different email. In this case, I would suggest logging in with any other Bitbucket account you own and verifying if that account is the admin of the workspace. Once you have access to the admin account, you will also be able to grant Admin permissions to other users/other accounts you own.

Hope that helps! Should you have any questions, feel free to ask!

Thank you, [@Paul Stevenson](/t5/user/viewprofilepage/user-id/5390099) !

Patrik S


author: Paul Stevenson
body: more info:  
I AM Admin of all the existing repos.

There are two users in the People list...

both with the same name, and both with the same avatar...

and I can't edit them or list any details.   
I'm assuming they have different emails?

but still can't create a repo.


Tags: bitbucket-cloud

cloud
How to define variables at the pipeline or step level?
Asked by G?tz:

Hi. In \`bitbucket-pipelines.yml\` I'm trying to reduce duplication by reusing code using YAML anchors:

```
definitions:
  deployment: &deployment
    service:
      - docker
    script:
      - |
        echo "Debug"
        docker version
        echo "ENVIRONMENT: $ENVIRONMENT"  # <-- here it fails as the variable is not defined. 
        # more steps, etc.

pipelines:
  branches:
    my_branch:
      - step:
          name: Deploy
          image: docker:24
          deployment: beta          
          variables:
            ENVIRONMENT: beta
          <<: *deployment

    # There are more similar pipelines for different branches/tags using differnet variables.
```

This produces working YAML and passes the official [validator](https://bitbucket-pipelines.prod.public.atl-paas.net/validator), but it's not showing the \`ENVIRONMENT\` value, it acts as if the variable were empty.

What are the possible solutions to this? How to define variables at the pipeline level or at the step level?

Thanks.


Answers:
author: Patrik S
body: Hello [@G?tz](/t5/user/viewprofilepage/user-id/5389889) and welcome to the Community!

I' afraid the syntax you have used to define the variable at the step level is not currently supported, as Bitbucket Pipelines currently don't support step-specific variables.

We do have a feature request with our development team to implement this functionality:

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

If you would be interested in that feature, we encourage you to add your **Vote** there as it helps our product managers to understand the demand. You can also mark yourself as a **Watcher** so you get notified of future updates on the development of that feature.

As an alternative, since your step is a deployment, you can create the variable as a [Deployment variable](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Deployment-variables), so you can have a variable with the same name but a different value in each deployment environment.

Thank you, [@G?tz](/t5/user/viewprofilepage/user-id/5389889) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
run qmltestrunner on repository
Asked by Martin Stich:

i want to run the shell "qmltestrunner -input qml/test" on my repositories, how can i set that up? (doesn't has to be a shell, just thought its the easiest way)

and write an email to the author if a test fails.

(last but one line tells: "Totals: 21 passed, 0 failed, 0 skipped, 0 blacklisted, 222ms")

thanks


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

Do you want to use this during a Pipelines build in the repo?

Pipelines builds that run on Atlassian's infrastructure or with a self-hosted Linux Docker [runner](https://support.atlassian.com/bitbucket-cloud/docs/runners/) use Docker containers. To use a certain tool, it either needs to be preinstalled in the Docker image you use as a build container or you can install it during the build by adding the necessary commands in the script of your bitbucket-pipelines.yml file.

If you're running builds on a self-hosted Linux Shell, MacOS, or Windows runner, these builds don't use Docker containers; the builds run on the host machine. In this case, any tools you need to use during your builds can be installed directly on the host.

For the commands needed to install it, you will need to check the tool's documentation.

Regarding sending an email to the author, if you run builds on Atlassian's infrastructure or with a self-hosted Linux Docker runner, you can make use of the following pipe with your mail server:

* <https://bitbucket.org/atlassian/email-notify/src/master/>

Users can also subscribe to notifications for failed pipelines builds from the **Source** page of the repo if they select the 3 dots next to the **Clone** button \> **Manage notifications** \> **Watch this repository** \> **Subscribe to notifications about all Pipelines**.

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

Kind regards,  
Theodora

comments: author: Martin Stich
body: thanks a lot.  
iam open to any solution. pipeline would be fine for me.  
iam totally new here, i have some experience with teamcity and i remember i had to setup runners there to pull from the repository.

i guess this is done by the pipelines here. this is no priority for me, i play a bit around with the new info and come back when iam stuck again. :)

thanks


author: Theodora Boudale
body: You are very welcome, Martin!

If you are not familiar with Bitbucket Pipelines yet, you can take a look at our documentation here:

* <https://support.atlassian.com/bitbucket-cloud/docs/build-test-and-deploy-with-pipelines/>

Pipelines builds can run on Atlassian infrastructure or you can also use a self-hosted runner on one of your machines (in this case you won't be charged for any build minutes):

* <https://support.atlassian.com/bitbucket-cloud/docs/runners/>

If you have any questions, please feel free to reach out!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot receive email from the two-steps verifcation
Asked by Matthew Chan:

I am setting up two step verification but I cannot receive verification email. I checked all the mailbox (include junk email box) but still cannot find it. I searched in the community and some members encountered the same issue with the email blocked and resloved by Atlassian team before.

Please anyone help on this.


Answers:
author: Theodora Boudale
body: Hi Matthew,

I checked our email logs and our emails were bounced with the error message:

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

This may occur in one of the following cases:

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

I went ahead and removed your email address from our suppression list. Can you please try setting up 2FA again?

You need to do the setup one more time, as the emails we sent previously were dropped.

Kind regards,  
Theodora

comments: author: Matthew Chan
body: Thank you for your help. I received the verify email and completed the 2FA setup.


author: Theodora Boudale
body: Thank you for the update and you are very welcome.

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


Tags: atl-rvw

atlassian-support

bitbucket-cloud

cloud
using python to read pull request description message and check its contents
Asked by Adrian Mayes:

Using python I'd like to read a specific Pull Request's Description and then parse it to check its contents against a list of acceptable keywords.

I've seen the bitbucket python api but I'm not seeing a way of getting the textual contents of the Pull Request. Would the following return the description ?

```
bitbucket.get_pull_requests
```


Answers:
author: Adrian Mayes
body: in pullRequests.py there is a 'description' method


Tags: bitbucket-server

server
Pipeline title
Asked by Michael Dawart:

We're using bitbucket-pipelines to trigger deploys in related repositories. Is there a way we could hand over a title or comment for the target pipeline - so one could see e.g. which merge caused the new deploy


Answers:
author: Igor Stoyanov
body: [@Michael Dawart](/t5/user/viewprofilepage/user-id/1774967) Hi. Thanks for your feature request. This feature requires an update to [Bitbucket API trigger pipeline](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#trigger-a-custom-pipeline-with-variables) to allow to include data, that will contain info about trigger. So no changes to pipes until this will be implemented.  

Regards, Igor


author: Aron Gombas _Midori_
body: I think that the common way to do something like this is generating a version number in the build, and attach that to the resulted build artifacts.

For example, you generate a version number that includes the commit hash from which the build was created, then add this version number to the resulted filenames, or write it to metadata like an AWS Lambda function's description, etc. That way, on the deployed system side you will see which commit hash is actually deployed.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

trigger