youngmon/atlassian-qna huggingface dataset:
How to link issue that is not on Jira in commits and PRs
Asked by mfilippo:

Hello,

I have searched for a while but did not find answers to this.

We have a self-hosted instance of Bitbucket and we are using YouTrack to track issues.

We would like that issues ids that we define in commits or PRs point to YouTrack issues, as it happens for Jira.

For example the issue id "XYZ-42" in the commit "XYZ-42: My commit message" should point to URL "<https://my-youtrack-instance.com/issue/XYZ-42>".

Is it possible to do this?

We are using Bitbucket Server v7.6.0.

Thank you in advance.

Best regards,

Matteo


Answers:
author: Mikael Sandberg
body: Hi [@mfilippo](/t5/user/viewprofilepage/user-id/4729090),

Welcome to Atlassian Community!

It looks like YouTrack can integrate with Bitbucket the way you looking for, as long as you have a version of YouTrack that supports it. Have a look at their [documentation](https://www.jetbrains.com/help/youtrack/incloud/integration-with-bitbucket-server.html) on how to set up the integration.

comments: author: mfilippo
body: Hello [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579)

Thank you.

Well in fact that integration is for YouTrack, to detect activity related to issues and show on YouTrack for example that a commit was mentioning that issue. We did that and it works.

My question is related to Bitbucket: on bitbucket UI the mentioned issues links should point to YouTrack issues instead of Jira issues. We would need something like this: <https://romanvesely.com/bitbucket-with-different-issue-tracker> but with Youtrack instead of Trello. Also, we are not using bitbucket cloud so we don't have that Links menu.

I found a plugin for Confluence here: [https://marketplace.atlassian.com/apps/1213094/youtrack-integration?tab=overview\&hosting=server](https://marketplace.atlassian.com/apps/1213094/youtrack-integration?tab=overview&hosting=server) Maybe there is something similar for Bitbucket?

Thanks


author: Mikael Sandberg
body: Unfortunately there is no such integration between Bitbucket and YouTrack. The only thing I can recommend it is to contact JetBrains and see if they have any plans on creating an app for Bitbucket.


author: mfilippo
body: Ok thanks for the confirmation.

By app do you mean a plugin?


author: Mikael Sandberg
body: Correct, plugins are called apps in the Atlassian world.


Tags: bitbucket-server

server
Can the Bamboo live activity log refresh rate be changed?
Asked by Rune_Engseth:

Hi

Using Bamboo 5

My current projects developers complain that the refresh rate for the live activity log is a bit slow (compared to Jenkins, which we have converted from).

Is there a way to configure this?


Answers:
author: Przemek Bruski
body: It's not configurable, but you can edit webapp/scripts/logs.js and change the default 5000ms to something lower.


author: Rune_Engseth
body: No feedback, so closing this question


Tags: bamboo-administration
Is my email address on suppression list?
Asked by Jes?s Guti?rrez:

A few months ago I stopped receiving any kind of notification for bitbucket repos that I'm watching and I think my email is on suppression list. Hope you can help me with this problem.

Kind regards,

Jes?s Guti?rrez


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

I checked our logs and confirmed that your email had a block on the server that prevented emails from being sent to you. So I removed your email from this suppression list.

Could you please confirm if you receive the notifications now?

Kind regards,   
Caroline

comments: author: Jes?s Guti?rrez
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) , thank you very much, I started to receive email notifications.


author: Caroline R
body: Hi, Jes?s, thanks for your confirmation, I'm glad to know it worked.

Kind regards,  
Caroline


author: Mark Habib
body: hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

thank you for your comment above, can you please help us clear suppression list

one of the team member is not getting notification

domain is rrit.com.au

thank you


author: Patrik S
body: Hey [@Mark Habib](/t5/user/viewprofilepage/user-id/4968295) ,

I would like to ask if you could please create a new question for your issue with the e-mail being affected, so we can check our suppression list for this e-mail.

We generally encourage users to create a new question for their issue instead of posting on someone else's question, because:

1) the root cause and resolution may be different for each case

2) a question can become cluttered and difficult to follow if we try to troubleshoot multiple users' issues in it.

Thank you, [@Mark Habib](/t5/user/viewprofilepage/user-id/4968295) !

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
I can't install the repo from a remote bitbucket private repo. Althouth I have a admin access.
Asked by Md. Mainul Islam Faruqi:

I got this error.

error Command failed.

Exit code: 128

Command: git

Arguments: ls-remote --tags --heads ssh://git@github.com/ethereumjs/ethereumjs-abi.git

Directory: /Users/bernardo/Desktop/Africaswap/AfricaswapNFT

Output: Host key verification failed.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.


Answers:
author: Pramodh M
body: Hi [@Md. Mainul Islam Faruqi](/t5/user/viewprofilepage/user-id/4638017)

Welcome to the community ?

For cloning repositories to local, you need to have atleast read access for the repository.

Now if you are using token for cloning the repo, make sure you have Correct scope set atleast to clone the repo!

And use the command

git clone <https://username:token@bitbucket.org/workspace-name/repo-name.git>

Try and let me know

Thanks,

Pramodh

comments: author: Pramodh M
body: Seems like you are using GitHub repo link to download the repo!!

You should have added the SSH Key to you personal account and have the access


author: Md. Mainul Islam Faruqi
body: Thank you very much for your valuable time. I have admin access to this repo.

git clone <https://username:token@bitbucket.org/workspace-name/repo-name.git>

This is useful but I can not understand how can I get the token or which token should I use here. Please help me on that.


author: Norbert C
body: Hi [@Md. Mainul Islam Faruqi](/t5/user/viewprofilepage/user-id/4638017)

To clone the repository, for the token part, I'd like to recommend you to generate an app password by following the steps from our documentation: <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

Please let us know how it goes.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Md. Mainul Islam Faruqi
body: Hi [@Norbert C](/t5/user/viewprofilepage/user-id/1190200) I created an app password. Please let me know the next step.


author: Md. Mainul Islam Faruqi
body: Hi [@Norbert C](/t5/user/viewprofilepage/user-id/1190200)

I setup SSH exact step by step through docs, I need to run **yarn cache clean** . Then **yarn install** works.


author: Norbert C
body: Hi [@Md. Mainul Islam Faruqi](/t5/user/viewprofilepage/user-id/4638017)

Thank you for your reply. In case you've created the app password, you can clone the repostiroy the following way:

git clone [https://yourusername:yourapppassword@bitbucket.org/workspace-name/repo-name.git](https://username:token@bitbucket.org/workspace-name/repo-name.git)

Please let us know how it goes.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Md. Mainul Islam Faruqi
body: git clone [https://yourusername:yourapppassword@bitbucket.org/workspace-name/repo-name.git](https://username:token@bitbucket.org/workspace-name/repo-name.git)

It works also.


Tags: bitbucket-cloud

cloud
Branches vs branches. Can I rename the default Subversion branches location?
Asked by Jason Monsorno:

Can I rename or reformat the default Subversion branches location? All of our SVN have Branches with a capital "B" and the default folder with a lowercase fails. Right now, I have to manually change every plan to get it to work properly.


Answers:
author: Jason Monsorno
body: I ended up fixing it on the SVN server side.

Apache:

```
RewriteRule ^/Adept/(.+)/branches(.*)  http://svn/Adept/$1/Branches$2 [P]
```

Since it is virtual I needed to include the absolute web URL. Without the \[P\] flag (proxy) it was returning a 302 redirect, with the flag the **server only** handles the request and the client is simply returned the correct page from the single request.


author: Marcin Gardias
body: You can find this option in SVN Repository's 'advanced settings'

comments: author: Jason Monsorno
body: That is just as bad, atleast the option I found. I can only turn off "Automatically detect root URL for branches" and set an absolute URL there. I can already override it on an individual basis from the Branches tab. I tried a few variations of relative paths but they all resulted in server errors when going to the Branches tab.


Tags: bamboo-administration
readonly permission
Asked by mahya golbaz:

hi

i want get permission to a person that can only read in one project all issues also user can create issue for him


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@mahya golbaz](/t5/user/viewprofilepage/user-id/4728119) ,

Welcome to the community.

If you are talking about Bitbucket, you can give read permission to a specific user for project/repository

Project permissions : <https://confluence.atlassian.com/bitbucketserver/using-project-permissions-776639801.html>

Repo permissions : <https://confluence.atlassian.com/bitbucketserver/using-repository-permissions-776639771.html>

For JIRA perspective, I suggest to create a new global role "Viewer" and grant just "Browse permission" to role "Viewer" in the related permission scheme of your project.

If those users can also create ticket, Viewer should have also Create issue permission.

Hope this helps,

Fabio

comments: author: mahya golbaz
body: hi

thank you for answering but I donot use Bitbucket I only use Jira in our company. could you help me about jira?


author: mahya golbaz
body: for example: I have user x. i want x can creat issue for it but only can view other's projects.


author: mahya golbaz
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528)


author: Fabio Racobaldo _Herzum_
body: Hi [@mahya golbaz](/t5/user/viewprofilepage/user-id/4728119) ,

as specified in my previous comment, user should have just "Browse Permission" in a project in order to view all issues within the project.

In order to make him as reporter of a ticket, even if another user create that issue on behalf on him, the user should have "Create Issue Permission".

Details about project permission are available at the following link <https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html>

Fabio


Tags: bitbucket-server

server
How to use ssh keys to push to bitbucket repository in bitbucket pipelines
Asked by David Essien:

I am trying to clone a repository, update values in a file, and then commit and push while inside a bitbucket pipeline.

I followed the example in this repository provided by bitbucket to use ssh keys to push to another bitbucket repository.  

<br />

<https://bitbucket.org/bitbucketpipelines/git-auth-ssh-using-variables/src/master/bitbucket-pipelines.yml>

\`\`\`  
pipelines:  
default:  
- step:  
script:  
# Configure git to use ssh.  
- git remote set-url origin ${BITBUCKET_GIT_SSH_ORIGIN}  
- echo $PRIVATE_KEY \> \~/.ssh/id_rsa.tmp  
- base64 -d \~/.ssh/id_rsa.tmp \> \~/.ssh/id_rsa  
- chmod 600 \~/.ssh/id_rsa  
# Commit back.  
- echo "Made a change in build ${BITBUCKET_BUILD_NUMBER}" \>\> changes.txt  
- git add changes.txt  
- git commit -m "\[skip ci\] Updating changes.txt with latest build number."  
- git push

\`\`\`

- I added my private ssh keys as a secure variable

- and I tried to create file for my ssh key to use as a private key, but in the bitbucket pipeline, it echos the variable itself and not the value into the file.  

My guess is that the above behaviour is because I added it as a secure variable. Please is there a work around for this?  

We have several repositories that will need to clone this one repository, it is not scalable to all all their pipeline ssh keys into that one repository.


Answers:
author: Hiren Patel
body: I am facing same issue,,


author: Norbert C
body: Hi David,

Thank you for contacting Atlassian Community, I'm Norbert from Bitbucket Cloud Support team, it's nice to meet with you!

I would like to inform you that this is an expected behavior as we don't show the secured variable, but the file actually should contain the private key. When I tested this, I did an "cat \~/.ssh/id_rsa" command and I could see the content of the file.

Can I ask you to run a "cat \~/.ssh/id_rsa" command in your Pipelines, after the "base64 -d \~/.ssh/id_rsa.tmp \> \~/.ssh/id_rsa" command and let me know if you can see any content in the file?

I'm looking forward to hear from you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Daniel Lopez
body: Norbet C, I have the same problem! I ran cat \~/.ssh/id_rsa, and I dint show me anything; the private key was empty.


author: Norbert C
body: Hi [@Daniel Lopez](/t5/user/viewprofilepage/user-id/4773881)

Thank you for commenting on this ticket.

Can you let me know if you were creating the "id_rsa.pub" file the same way as David did?  

```
- echo $PRIVATE_KEY > ~/.ssh/id_rsa.tmp
- base64 -d ~/.ssh/id_rsa.tmp > ~/.ssh/id_rsa
```

I'm looking forward to hear from you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud

ssh
error b4e144df265e44a591e60fe8456a0049
Asked by rodrigo_schwinn:

Please, colleagues, I'm having an error in requesting the post api from hooks to workspace.

<https://api.bitbucket.org/2.0/workspaces/>\<workspace-id\>/hooks

Erro:500

message **Something went wrong**  
id **b4e144df265e44a591e60fe8456a0049**


Answers:
author: Theodora Boudale
body: Hi [@rodrigo_schwinn](/t5/user/viewprofilepage/user-id/1294971),

I looked up this error code in our system and the error message associated with it is

```
"No JSON object could be decoded"
```

Could you please double-check if the data sent with the request is a valid JSON object?

If you like, you can also share the exact call you are making (sanitizing any private/sensitive info in the call, like authentication values, workspace id, webhook url, etc before you share it) so I can also check.

Just a heads up, I removed the workspace-id from your post to protect your privacy.

Kind regards,  
Theodora
git submodule status does not report branch. Bug?
Asked by Windflower Waters:

I set the branch that I want my submodule to point to using this command:

```
git submodule set-branch -b <branch-name> <path to submodule>
```

That works. I can see the branch = \<branch name\> in .gitmodules.

Then I update the submodule to the head of the branch like this:

```
git submodule update --remote <path to submodule>
```

That does update to the commit that matches the head of the branch.

However, when I ask:

```
git submodule status <path to submodule>
```

It reports that the submodule is on the main track, not on my branch.

I just want it to read the \<branch name\> from .gitmodules.

I think this is a bug in git because all the git documentation shows that it the branch should be displayed by git submodule status.


Answers:
author: Theodora Boudale
body: Hi [@Windflower Waters](/t5/user/viewprofilepage/user-id/4726834),

The following page has info on how/where to report bugs with Git:

* <http://git-scm.com/community>

However, I would suggest first checking what version of Git you have installed locally and upgrading to the latest version.

I have tried the steps you mentioned in your question on my machine (with the latest version of Git installed) and **git submodule status \<path to submodule\>** returns the HEAD of the branch I determined.

You can check the version of Git on your machine with the command **git --version**

The latest version available is listed here: <https://git-scm.com/downloads>

If you have an older version locally, can you try upgrading to the latest one and see if the issue persists?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

git
Viewing inactive users with Bitbucket Cloud API
Asked by caleb.hoffman:

Is there a way to view inactive users (or date of last activity) with the API? If so, which endpoint could be used?

I see there is a user endpoint, but I need something that will display more information to help us manage user accounts.


Answers:
author: Pramodh M
body: Hi [@caleb.hoffman](/t5/user/viewprofilepage/user-id/4727143)

Welcome to the Community!!

This seems like a no-go here.

The API's available won't serve much data with reference to what you asking since I have gone through the API's below

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-users/#api-group-users>

It only Gets the public information!! which is not what we want.

So basically until Atlassian officially releases something with managed accounts structure it's not possible

Thanks,  
Pramodh

comments: author: Mikael Sandberg
body: The user object will show if the account is active, inactive, or closed. This is a new attribute that was just added to the user object, see the announcement [here](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#changes-to-bitbucket-user-objects).


author: Mikael Sandberg
body: Hi [@caleb.hoffman](/t5/user/viewprofilepage/user-id/4727143),

Welcome to Atlassian Community!

The user endpoint is the closest you can get, and is should return a list of attributes about the user that you can find [here](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/#changes-to-bitbucket-user-objects). The API for the user is changing in order to improve user privacy. Most of the user end points are moving to [Cloud admin end points](https://developer.atlassian.com/cloud/admin/rest-apis/).


Tags: api

bitbucket-cloud

cloud
Selenium automation ticket creation on Jira
Asked by Hazer Yenice:

Hello,

I want my test automation project to automatically create a bug ticket on jira in case my tests fail.   
I am using JiraPolicy dependency but I my console output goes with something like "do you have necessary permissions?"


Answers:
author: Vero Rivas
body: Hi [@Hazer Yenice](/t5/user/viewprofilepage/user-id/4725381)

Keep in mind that in JIRA there is a permissions scheme, surely that message appears because you do not have the necessary permissions in the project for what you want to do  
Are you the administrator? If not, I advise you to talk to him so that he can check your permissions so you don't have that kind of inconvenience

Cheers


Tags: bitbucket-cloud

cloud

jira
error while renaming bitbucket repository
Asked by Jesperapps Product Development:

![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/179669i586770C63DC0D7D5/image-size/large?v=v2&px=999 "Capture1.PNG")


Answers:
author: Vishwas
body: Hey [@Jesperapps Product Development](/t5/user/viewprofilepage/user-id/4726283)

Welcome to Atlassian Community !!

Is this bitbucket server/DC hosting or Cloud bitbucket ?

And was this repository created via API ?

As the error says the Main branch cannot be the master, do you see any other values in "Main branch" dropdown or just that one option ? If there are other options in that dropdown try changing to "main" option and update.

Regards,

Vishwas

comments: author: Jesperapps Product Development
body: In <https://bitbucket.org/>**.**I have created a repository without any files and tried to rename it. It was throwing error.

After adding file I tried to rename, it worked.


author: Jesperapps Product Development
body: There was only one branch 'master' and no other branch was found


author: Vishwas
body: Hey [@Jesperapps Product Development](/t5/user/viewprofilepage/user-id/4726283)

Then it is bitbucket cloud. Yes for rename od repo it should have branch with content in it.

Thanks for sharing the answer !!


author: Jesperapps Product Development
body: Thank you [@Vishwas](/t5/user/viewprofilepage/user-id/1231381)
reduce remote repo size
Asked by Manish Maharjan:

I am getting repo over 2.0 GB warning.   
I checked my local repo using

```
git count-objects -Hv
```

The local repo size shows 1.20 GB however my remote repo is 2.67 GB. Any workaround on how i can match my remote repo size to local?


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

I see that your question has the tag 'bitbucket-server', however, this warning shows for Bitbucket Cloud repos (hosted in <https://bitbucket.org/>). Could you please first confirm if your repo is hosted in Bitbucket Cloud (<https://bitbucket.org/>) or in Bitbucket Server (self-hosted instance)?

There is one possibility that the mismatch occurs because your local repo may not have all remote branches locally. I would suggest taking a clone of the repo with the **--mirror** flag and then run **git count-objects -Hv** in that mirror clone.

If the output in the mirror clone still shows as less than 2.67 GB, then the remote repo might need a garbage collection because it may have e.g. dangling commits.

In Bitbucket Cloud, users cannot trigger a garbage collection themselves (although we have a feature request to add this functionality: <https://jira.atlassian.com/browse/BCLOUD-11593>), but we can run it for your repo.

If this is indeed a Bitbucket Cloud repo, can you give me the last 2 letters of the repo so I can identify it and run a git gc for it? Alternatively, if the repo is owned by a workspace on a paid billing plan, you can create a ticket with the support team and request a git gc for the repo. You can create a ticket via <https://support.atlassian.com/contact/>, in "What can we help you with" select "Technical issues and bugs" and then Bitbucket Cloud as product.

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

Kind regards,  
Theodora

comments: author: Manish Maharjan
body: Hello Theodora,

I apologise, yes our repo is hosted in Bitbucket cloud not server.

Yes I tried the mirror clone and the size is less than 2.67GB.

My last two letters of the repo are id. Please let me know if you can run git gc.

Thank you,

Manish


author: Theodora Boudale
body: Hi Manish,

Of course, I identified the repo and I ran a git gc for it, its size is 1.1 GB now.

Please feel free to let me know if the warning is gone now and if you need anything further.

You can also add your vote and add yourself as a watcher to the feature request I mentioned (<https://jira.atlassian.com/browse/BCLOUD-11593>) if you'd like to get notified via email on updates.

Kind regards,  
Theodora


author: Manish Maharjan
body: Hi Theodora,

Thank you. It worked. I appreciate your support.

Regards,

Manish


author: Pramodh M
body: Hi [@Manish Maharjan](/t5/user/viewprofilepage/user-id/4712320)

Welcome to the Community!!

Use git-lfs-migrate to detect the large files

<https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-migrate.1.ronn>

You can use bfg-repo-cleaner to reduce the repo size

<https://rtyley.github.io/bfg-repo-cleaner>

Thanks,  
Pramodh


Tags: bitbucket-cloud

cloud