youngmon/atlassian-qna huggingface dataset:
How to add an attachment to the default Requests interface?
Asked by Eddy Touma:

We created a new Service Management project and want to use it with clients to report issues. The interface for new Tickets/Requests does not include an attachment section. How can I add this section?


Answers:
author: Eddy Touma
body: Go to Project Settings \> Request Types \> Unassigned \> click on the type you want to edit \> under the Request Form interface add from the right-side panel the Attachment field type.


author: Nikola Perisic
body: Welcome to the community [@Eddy Touma](/t5/user/viewprofilepage/user-id/5418942)

To add the "Attachment" you need to do the following:

1. Navigate to your "Request types" through "Project Settings"
2. Click on the request type (I've created a Test one):![Screenshot 2024-01-31 at 11.21.52.png](https://community.atlassian.com/t5/image/serverpage/image-id/303470i79102E024802E650/image-size/large?v=v2&px=999 "Screenshot 2024-01-31 at 11.21.52.png")
3. You will presented with the fields of that specific request type:![Screenshot 2024-01-31 at 11.20.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/303471i33571372C8C0B4E5/image-size/large?v=v2&px=999 "Screenshot 2024-01-31 at 11.20.55.png")

I've selected the Attachment and drag and dropped it

4. Save the changes

When I create a new request - this is from the agent point of view, I get the field "Attachment" to add:![Screenshot 2024-01-31 at 11.24.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/303473iB6999852DF4D741B/image-size/large?v=v2&px=999 "Screenshot 2024-01-31 at 11.24.14.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
How to copy all the issue comments into a custom field?
Asked by Jakeer:

Hello Team,

We have one custom field named "All Comments". So what we are trying to achieve here is to copy all the comments in the issue to the custom field and when we export the issue to "Excel CSV All fields" all the comments need to shown in the custom field sequentially it appears along with the author names who commented instead of their id in the excel sheet.

Suppose if I have commented in the issue it should as Jakeer- comment added in the excel sheet similarly if user added the comment it should show User- comment along with the date and time.

How can we achieve this? Any suggestions will be more helpful

Thanks,


Answers:
author: Sebastian Krzewi?ski
body: Hi [@Jakeer](/t5/user/viewprofilepage/user-id/5390761)

Why you want to copy all comments into custom field?

Regards,

Seba

comments: author: Jakeer
body: Hello [Sebastian Krzewi?ski](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1561725),

Thanks for your response.

We are trying this is to separate the comments who have commented in the ticket.

There can be internal and external comments as well. so if we copy all the comments in to a custom field then we can seperate the comments who added either the agent or the user.

If agent have commented in the issue it should as Jakeer- comment added in the excel sheet similarly if user added the comment it should show User- comment along with the date and time.

Thanks


Tags: cloud

jira-service-management

jira-service-management-cloud
Mark build as "successful" even if it shows failed in AWS Elastic Beanstalk Pipe Integration
Asked by Marl Bermudo:

So I have a deployment step that has the following AWS Elastic Beanstalk pipe integration:  

```
- pipe: atlassian/aws-elasticbeanstalk-deploy:1.0.2
  variables:
    AWS_ACCESS_KEY_ID: $AWS_DEPLOY_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY: $AWS_DEPLOY_SECRET_ACCESS_KEY
    AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
    APPLICATION_NAME: $AWS_EB_APP_NAME
    ENVIRONMENT_NAME: $AWS_EB_ENV_NAME
    ZIP_FILE: "application.zip"
    WAIT: "true"
    DEBUG: "true"
```

Sometimes the build will notify me of failure due to the environment's health being red, but in reality the build was successful deployed in the environment. When I try to manually re-run the deployment step, it will fail saying that the particular version is already uploaded (An error occurred (InvalidParameterValue) when calling the CreateApplicationVersion operation: Application Version aws-eb-app-name-472-11e2152e already exists.).  

So what I'm trying to do is either manually mark the build as "successful" or a way to have the deployment step re-run without encountering the upload error.


Answers:
author: Igor Stoyanov
body: [@Marl Bermudo](/t5/user/viewprofilepage/user-id/4932123) hi. Thanks for your question.

Try to use WARMUP_INTERVAL (warmup time for some of customer edgecases) variable.

```
- pipe: atlassian/aws-elasticbeanstalk-deploy:1.0.2  variables:    AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID    AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY    AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION    APPLICATION_NAME: 'application-test'    COMMAND: 'deploy-only'    VERSION_LABEL: 'deploy-$BITBUCKET_BUILD_NUMBER-multiple'    ENVIRONMENT_NAME: 'production'    WAIT_INTERVAL: 60    WARMUP_INTERVAL: 30    WAIT: 'true'
```

Regards, Igor


Tags: aws

beanstalk

bitbucket-cloud

cloud
remote: Repository is over the size limit (4 GB) and will not accept further additions.
Asked by ??:

Hi,  
I have a problem, the size of the code repository is more than 4GB, I encountered the following error, I tried to delete some files, but it didn't work. Please help to check.  
===============  
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin 14.x_tutorial_dlc:14.x_tutorial_dlc  
Pushing to git@bitbucket.org:kingsgroup/kg-excel-bin.git  
remote: Repository is over the size limit (4 GB) and will not accept further additions.  
remote:  

remote: Learn how to reduce your repository size: <https://confluence.atlassian.com/x/xgMvEw>.  
To bitbucket.org:kingsgroup/kg-excel-bin.git  
= \[up to date\] excle -\> excle  
! \[remote rejected\] 14.x_tutorial_dlc -\> 14.x_tutorial_dlc (pre-receive hook declined)  
error: failed to push some refs to 'git@bitbucket.org:kingsgroup/kg-excel-bin.git'


Answers:
author: Caroline R
body: Hi [@??](/t5/user/viewprofilepage/user-id/4230238), thank you for reaching out to Atlassian Community.

I confirmed you raised an internal ticket with our support team, and a support engineer has already run a GC against your repository, so I understand everything is working as expected now. In any case, to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


author: Alex Koxaras _Relational_
body: Hi [@??](/t5/user/viewprofilepage/user-id/4230238)

As suggested by the error message, you have to reduce the the repository size. So this link is useful this <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

comments: author: ??
body: Hi?Alex

thank you for your help!

I did this , but it does not works.

git branch \<keeper\>

git reset --soft @{u}\^

git push --force

git merge --ff-only \<keeper\>

git branch -d \<keeper\>

Still the same error as above


author: ??
body: Hi?Alex?

I checked some sources and should need your help to perform GC operations?

<https://bitbucket.org/kingsgroup/kg-excel-bin>

urgent, thanks

git gc


Tags: bitbucket-cloud

cloud
getting head.lock git error when merging
Asked by Erik_Lopez:

received this error when git merge in terminal did not finish and now there seems to be a lock that won't let me push/do merge because of this error.

fatal: cannot lock ref 'HEAD': Unable to create 'C:/Users//.git/HEAD.lock': File exists.

Another git process seems to be running in this repository, e.g.  
an editor opened by 'git commit'. Please make sure all processes  
are terminated then try again. If it still fails, a git process  
may have crashed in this repository earlier:  
remove the file manually to continue.

What do you suggest?


Answers:
author: Caroline R
body: Hi [@Erik_Lopez](/t5/user/viewprofilepage/user-id/5051815), welcome to the community!

As we need to access this repository to analyze this lock file, I have created an internal ticket for you using the email of your community account.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Bitbucket connect argocd
Asked by Fernando Faria:

Hello guys. Does anyone use ArgoCD with Bitbucket? Any tips for making the connection between ArgoCD and Bitbucket?

I can connect to GITHUB using HTTP Token, but in bitbucke I didn't find this option (Token HTTPS).  

Does anyone have the bit connected to argocd?  


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

I'm not familiar with ArgoCD, but if the connection requires the credentials of a Bitbucket account that has access to your workspace and repos, you can use app passwords:

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

An app password can be generated for a Bitbucket cloud account and it can be used in combination with the account's username (found here <https://bitbucket.org/account/settings/> when you are logged in to the account).

The permissions required for the app password depend on what operations are performed by ArgoCD.

Kind regards,  
Theodora

comments: author: Fernando Faria
body: Perfect Theodora. It worked with your help.

1 - Use app-passwords

2 - in argocd connect repo using https and use without username in URL.

3 - include username of bitbackut and app-passwords.

Thanks for your help!

Regards,

Fernando Faria


author: Theodora Boudale
body: That's good to hear and you are very welcome Fernando!

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

Kind regards,  
Theodora


author: iamnst
body: Can we use repo access token also?


author: Patrik S
body: Hey [@iamnst](/t5/user/viewprofilepage/user-id/5305405) and welcome to the Community!

I'm not very familiar with ArgoCD, but if it supports providing a Bearer access token during the connection with Bitbucket, you should be able to use a repository access token for authentication as well.

You can find mind details on how to create and examples of repository access tokens usage in the following documentation :

* <https://support.atlassian.com/bitbucket-cloud/docs/repository-access-tokens/>

Thank you, [@iamnst](/t5/user/viewprofilepage/user-id/5305405) !

Patrik S


Tags: bitbucket-cloud

cloud

continuous-delivery
bitbucket.sunriseid.com is having downtime, What is the reason and when will it be back up?
Asked by faiz.shaik:

bitbucket.sunriseid.com is an sub domain of bitbucket, which we are using for code storage. It is having a downtime till 3pm today IST time.


Answers:
author: Theodora Boudale
body: Hi [@faiz.shaik](/t5/user/viewprofilepage/user-id/5051345),

This is not a subdomain of Bitbucket Cloud, Bitbucket Cloud's URL is <https://bitbucket.org/>. If this is instead the name of one of your repositories hosted in Bitbucket Cloud, I would suggest checking with the admins of the workspace in case anyone deleted or renamed the repo.

If this is the URL of your Bitbucket Server instance (self-hosted instance), you will need to check with the administrators in your company and see if the servers where it is hosted are unavailable or if there is some other issue. Bitbucket Server is installed in customers' own infrastructure and we have no control or visibility over that.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to see the commits after cloning
Asked by Narisetty Anusha:

Unable to see the commits after cloning


Answers:
author: Theodora Boudale
body: Hi [@Narisetty Anusha](/t5/user/viewprofilepage/user-id/5044661),

I would like to ask if you could please share some additional details so we can better help you:

- Are you cloning the repo from a command-line application or are you using a Git GUI application?

- If you're using a Git GUI application, which one is it? And do you see no commits at all, or only some commits (e.g. of a certain branch)?

- Does the clone command complete successfully or do you get any errors?

- Can you see commits in your clone if you run **git log** in the clone directory from the command line?

- Just to make sure, have you checked if the repo on Bitbucket website has commits or if it's empty?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Adding a second work item to a commit
Asked by Eric Goforth:

Hi,

I made a demo of my proposed changes for workitem 123, and there were some suggestions which I addressed and associated these changes with workitem 123. Afterward a second workitem 124 was created to capture the suggestions. Is there a way to add workitem 124 to my earlier commit? I guess another alternative would be to delete workitem 123 from my commit and replace it with workitem 124.

Thanks


Answers:
author: Aron Gombas _Midori_
body: I don't think you can associate a previous commit with a new issue (this feature is missing).

But, staying with your example, you could add an issue link from work item 123 to 124 as workaround. Then, you have full traceability, because the commit links to 123 which links to 124. (But it is an extra hop, that's true.)


Tags: bitbucket-cloud

cloud
Deploying with GKE pipe warns about missing gke-gcloud-auth-plugin
Asked by Mossroy:

When using the GKE pipe (version 2.2.0), it displays the following warning on every run:
> CRITICAL: ACTION REQUIRED: gke-gcloud-auth-plugin, which is needed for continued use of kubectl, was not found or is not executable. Install gke-gcloud-auth-plugin for use with kubectl by following <https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke>

The docker image is currenlty using kubectl 1.25, so it's still working fine, and can be ignored for now.

But gke-gcloud-auth-plugin will need to be added in the image when kubectl will be upgraded to 1.26 (or more)


Answers:
author: Igor Stoyanov
body: [@Mossroy](/t5/user/viewprofilepage/user-id/899952) hi.   
Thanks for your feedback. We will keep in mind this when we will update this pipe with kubectl 1.26  

Regards, Igor


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

google

kubernetes
IS it possible to store a bitbucket pipe on a private GCP artifact/container repository
Asked by Ricardo Paquito:

I am creating some bitbucket pipes to reuse on multiple projects but I would like them to be stored on a private container repository, in this case on GCP.  
Is this something that is possible to do that and if so, where can I find some example.


Answers:
author: Mark C
body: Hi [@Ricardo Paquito](/t5/user/viewprofilepage/user-id/5051186)

Welcome to the community.

Unfortunately, it is not possible to create custom Pipes from a different repository outside Bitbucket Cloud. - <https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/>

For the Docker image, it has to be public at the moment.  
However, we do have an existing feature request for it to support private Docker images that can be located through this link. - jira.atlassian.com/browse/BCLOUD-18270  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Do let me know if you have further questions.

Regards,  
Mark C

comments: author: Ricardo Paquito
body: Thanks for the reply [@Mark C](/t5/user/viewprofilepage/user-id/1210823) . I am actually able to use private images stored on the GCP Artifact Registry using the following approach. I'm using the "complete" approach from the "How to create a pipe" instructions page and for now it's working. I leave the example here :

<br />

- step: \&pipetest  
name: Pipe test  
image: google/cloud-sdk:alpine  
script:  
- echo $GCLOUD_API_KEY_JSON \> ./gcloud-api-key.json  
- gcloud auth activate-service-account --key-file gcloud-api-key.json  
- gcloud auth configure-docker \<GCP-REGION\>-docker.pkg.dev  
- pipe: companyName/private-pipe-poc:1.0  
variables:  
TEMP_VAR: "someValue"

Nevertheless I'll keep an eye on that JIRA ticket that you have mentioned as for sure that I will jump to that solution when released.

Thanks again for the reply.


Tags: bitbucket-cloud

cloud
Could the GKE pipe be improved to support private clusters? (through a bastion)
Asked by Mossroy:

The pipe for GKE (<https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/google-gke-kubectl-run>) works well on public clusters, but not on private ones.

For private GKE clusters, you need to first open an SSH tunnel through a bastion, and then use it as an HTTPS proxy for kubectl (see <https://cloud.google.com/kubernetes-engine/docs/tutorials/private-cluster-bastion>)

It's certainly possible to do that manually with a script.

But it would be way better if your built-in pipe supported it.


Answers:
author: Igor Stoyanov
body: [@Mossroy](/t5/user/viewprofilepage/user-id/899952) hi. Thanks for your question.

Please, raise a [ticket here](https://jira.atlassian.com/browse/BCLOUD-13452?filter=97052) to gather interests for your feature.

Regards, Igor

comments: author: Mossroy
body: All right, I just created <https://jira.atlassian.com/browse/BCLOUD-22195>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

google

kubernetes
Lost a couple of mercurial repositories!
Asked by wingphil:

I had a couple of mercurial repositories that I haven't looked at in a long time from 8-10 years ago. One of them in particular contained the source code for generating the 3d model of my wedding ring! I really need that back!

I guess I missed the messages about sunsetting support for mercurial a few years ago, and I never migrated them. Please tell me they aren't lost!

Thanks,

Phil


Answers:
author: Theodora Boudale
body: Hi Phil,

If these Mercurial repositories were public, all the public repos were archived by Software Heritage and you can check there:

* <https://bitbucket-archive.softwareheritage.org/>

I'm afraid that the Bitbucket support team is no longer able to recover private Mercurial repositories.

Kind regards,  
Theodora

comments: author: wingphil
body: Is there a way I can pay for the repositories to be recovered? One of them in particular is very important, even though I obviously haven't checked on them for a few years.

Thanks,

Phil


author: Theodora Boudale
body: Hi Phil,

I'm afraid that this is not possible, we are no longer able to recover these repositories.

Kind regards,  
Theodora


author: wingphil
body: I have raised a ticket with Atlassian support, but I am only a free account holder. Is there any chance they still have the ability to restore these?

Thanks,

Phil


Tags: bitbucket-cloud

cloud

mercurial
Is it possible to create pull requset by cmd or restful api?
Asked by hh hh:

Is it possible to create pull requset by cmd or restful api in Bitbucket?

from private fork repository to public repository?


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

On the command line, using git is the most simple option. For the REST API, see <https://developer.atlassian.com/cloud/bitbucket/rest/intro/>


Tags: bitbucket-cloud

cloud
Is it possible to create pull requset by cmd or restful api?
Asked by hh hh:

Is it possible to create pull requset by cmd or restful api?

from private fork repository to public repository?


Answers:
author: Syahrul
body: Hi [@hh hh](/t5/user/viewprofilepage/user-id/5050977)

Welcome to the community.

We currently don't have an API endpoint available to create Pull requests from the forked repository.  
The API endpoint [here](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post) only allows the creation of a new pull request where the destination repository is this repository itself.

We do have an existing feature request on this. Please **Vote** and **Watch** the following feature request so that you'll receive an update whenever we have any at:  
[BCLOUD-20851 - Fork Pull Request API call](https://jira.atlassian.com/browse/BCLOUD-20851)

That said, we also don't have any CMD commands to create a Pull request. The only option for the forked repository is to make it via the UI.

Cheers,  
Syahrul


Tags: bitbucket-server

migration-customer-care

server
I have few questions related to Bitbucket Cloud?
Asked by Sattar Baig:

How can we find out who is the owner for certain repositories or branches in bitbucket Cloud?

Could you please help on this?

BR,

Sattar


Answers:
author: Ben
body: Hey Sattar,

Repositories do not have owners per se, they simply have users who have varying levels of access to perform actions on that repository - such as **READ/WRITE/ADMIN** access.   
As branches are part of a repository, the same applies.

To check permissions on repositories - a workspace admin can view this by checking **Repository Settings \> User \& Group Access**

To view branch permissions (ie whom has the permissions to write to the branch/merge via PR), a workspace admin can view this by checking **Repository Settings \> Branch Restrictions**

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Email notifications stopped
Asked by James Saunders:

Several months ago, I stopped receiving email notifications for BitBucket actions such as PRs being raised. Please can you check that my email address isn't on a suppression list? Thanks in advance.


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

I have checked your email address in the backend and can confirm that it was added to our suppression list as we received a SMTP bounce error from your mail server:

```
550: 550 This domain is not hosted here
```

I have removed the email address from our suppression list internally, so you will now be able to receive emails accordingly.

To prevent this from occurring again - I would suggest having your email administrator whitelist the following email accounts:

```
mail.notifications.atlassian.com
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
TransitionUpdateLocation
Asked by Ramon Ramoss:

When checking the sourcetree.log file, I see this frequently:

\[SourceTree.Utils.UpdateHelper\] \[TransitionUpdateLocation\] - Unable to locate \[C:\\ProgramData\\ramonr\\SourceTree\\app-2.1.10\\tools\\Squirrel.exe\]

Has anyone else noticed this? And what is the best way to resolve this?


Answers:
author: minnsey
body: Hi  

That error is not significant for Sourcetree's day to day operations.  

Squirrel.exe is part of <https://github.com/Squirrel/Squirrel.Windows> the installer technology we use.  

If it was to cause any issues it would probably prevent you being automatically informed of new updates.  

<br />

Interestingly it refers to *C:\\ProgramData\\ramonr\\Sourcetree* usually Sourcetree will install to *%localappdata%\\Sourcetree* .  
This location is not something you as a user has control over, however if Squirrel decides it cannot write to/install to %localappdata5 it will fall back to ProgramData.  

I've not seen this actually happen in 'the wild' do you know why Sourcetree might not be able to install to %localappdata% ?