youngmon/atlassian-qna huggingface dataset:
Bitbucker User Activity Details
Asked by Chiqui Sison:

Is there a way to to check user activity in Bitbucket? (e.g. who hasn't logged in in x weeks, who has not committed code etc?)


Answers:
author: Ravina
body: Hi [@Chiqui Sison](/t5/user/viewprofilepage/user-id/1931534) Welcome to the Atlassian community,

Please check the below Atlassian document i think it has the details what you looking for <https://confluence.atlassian.com/bbkb/last-login-information-from-bitbucket-cloud-user-directory-export-1229035736.html>


Tags: bitbucket-cloud

cloud
[LEVEL-projects] Creating a template for pull request
Asked by Edwar Montano:

**How can I create templates for pull request descriptions in Bitbucket, both from a repository template and at the project level?**   

I am looking for an efficient way to standardize the descriptions of pull requests in our projects. Currently, each team member writes the descriptions differently, making it difficult to review and track them. I would like to know if Bitbucket offers any functionality to create and apply templates at the project level to ensure that all pull requests follow a consistent format. This provides more context and helps readers better understand the problem you are trying to solve.  

I reviewed the roadmap for Bitbucket Cloud and did not find any similar feature, so I have created the following issue.  

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


Answers:
author: Saxea _Flowie_
body: Hi [@Edwar Montano](/t5/user/viewprofilepage/user-id/5536571)

Currently, Bitbucket only supports it at repository level. There is an open request [here](https://jira.atlassian.com/browse/BCLOUD-22833) for what you are asking.

In other news, we do provide an [addon](https://marketplace.atlassian.com/apps/1231101) where you can easily enforce the pull request description and title, which might be helpful. We are releasing support for project level configurations next week!

We also have plans to support PR templates eventually.


Tags: bitbucket-cloud

cloud
How to Dynamically Obtain User Profile Path in Self hosted Windows Agent for Bitbucket Pipelines
Asked by Gajesh Bhat:

Hello everyone,

I'm running a pipeline on a Self hosted Windows runner in Bitbucket Pipelines and need to clean the temporary files located in **atlassian_runners\\atlassian-bitbucket-pipelines-runner\\temp\\\*** as not doing that while running docker containers in windows using the runner will move the runner into unhealthy state. (I have built my own wrapper around the self hosted windows runner as Windows Docker Runners aren't supported in Bitbucket Pipelines yet). See my other question for more hints on how I am doing it. <https://community.atlassian.com/t5/Bitbucket-questions/Issues-running-Windows-Docker-Container-on-Pipelines-Self-hosted/qaq-p/2735498> However, I'm struggling to dynamically obtain the user profile path. My goal is to avoid hardcoding the user profile path and handle it dynamically within the script.

Here's what I've tried so far:

1. Using `[System.Environment]::GetFolderPath('UserProfile')`:

   $UserProfile = \[System.Environment\]::GetFolderPath('UserProfile')
2. $TempPath = "$UserProfile\\atlassian_runners\\atlassian-bitbucket-pipelines-runner\\temp\\\*"
3. Remove-Item -Path $TempPath -Recurse -Force

This returns the system profile path (`C:\Windows\system32\config\systemprofile`) instead of the intended user profile path. It seems that the script runs under a different context (Possibly in a Sandboxed JVM environment) in the Bitbucket pipeline.

**Questions:**

1. How can I reliably obtain the user profile path dynamically in a Bitbucket pipeline running on a Windows agent?
2. Is there a known issue with the Windows agent in Bitbucket Pipelines that affects retrieving the user profile path?
3. Are there any best practices or alternative methods to achieve this?

Any help or guidance would be greatly appreciated!

Regards,

Gajesh


Answers:
author: Theodora Boudale
body: Hi Gajesh,

The environment variable **$env:USERPROFILE** should give you the path to the current user's home directory during a Pipelines build with self-hosted Windows runners.

If the runner goes into an unhealthy state consistently, I suggest addressing that issue first. Possible causes for the runner being unable to clean the build directory are

* The permissions for one or more files (or directories) within a build directory are preventing the runner from deleting files.
* A program or service is accessing one or more files (or directories) in the build directory at the time of cleanup.

I suggest looking into these two possible causes first to prevent the runner from going into an unhealthy state.  

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud
Keyboard Shortcut to Add comment now in a Pull Request
Asked by Jan:

Hello! Is there a keyboard shortcut to \`Add comment now\` in a Pull Request?  

If I press \`Ctrl+Enter\`, it does \`Start review\` so I still need to \`Finish Review\` to submit it which is not ideal.  

Thank you!


Answers:
author: Nicolas Grossi
body: [@Jan](/t5/user/viewprofilepage/user-id/5536501) Welcome! Here you have the list: <https://support.atlassian.com/bitbucket-cloud/docs/keyboard-shortcuts/>

HTH

Nicolas


author: Theodora Boudale
body: Hi [@Jan](/t5/user/viewprofilepage/user-id/5536501) and welcome to the community!

There is no such shortcut at the moment, but I can create a feature request for our development team to consider. Please feel free to let me know if you'd like me to do that.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

comment

keyboard-shortcut

pull-request
Automatically scale runners in Bitbucket Pipelines
Asked by POLU ANIL KUMAR REDDY:

Hi Team,

I am having trouble configuring the runner using the documentation provided below and am encountering errors.

Could you please assist me in setting up the runner autoscaling process?

**Document:** <https://support.atlassian.com/bitbucket-cloud/docs/autoscaler-for-runners-on-kubernetes/>

**Error:** json: unknown field "options"


Answers:
author: Gajesh Bhat
body: Can you provide more details about the error. Are you setting this up on a K8's cluster using the helm chart provided ?


Tags: bitbucket-runners

cloud
Bitbucket Concourse failed to fetch digest: 429 Too Many Requests
Asked by Bagyaraj Palanisamy:

Hello Team,

We are using BitBucket as repository to manage source code and Concourse as a CI/CD tool. We are experiencing build issue suddenly from 01-Jul-2024, It was working fine till then. I waited 2-3 days and tried build and deploy still same error exist.

Please could you help to resolve the issue.

resource script '/opt/resource/check \[\]' failed: exit status 1 stderr: failed to fetch digest: 429 Too Many Requests

Regards,

Bagyaraj Palanisamy


Answers:
author: Ben
body: Hi Bagyaraj,

The 429 API error response indicates that you have exceeded our rate limits and therefore your requests are being blocked - more information may be found below:

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

If you have some kind of automation setup that routinely pings our API, this could be the cause - so I would suggest reviewing this before attempting to run builds again.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Requirement to restrict users editing reviewers while editing PR
Asked by Simone PASTORE (contractor):

Hi,

I would like to prevent users from being able to remove certain reviewers from Pull Requests reviewers list. Especially in the two cases when creating or updating (Edit) a Pull Request. How can I achieve this with Bitbucket?


Answers:
author: Gajesh Bhat
body: Hello! Welcome to the Bitbucket Community! You can do this on Bitbucket Cloud by enforcing Merge Checks : <https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/> and Access Controls : <https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/>


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
How could bitbucket find commiter's default username and avatar?
Asked by sdutwsl:

I accidentally used my personal email as the git committer for a company project. Subsequently, on my Bitbucket git repository page, my real name was displayed as the committer. I have never linked my real name with this personal email, nor have I used it to register for any Atlassian service. Nonetheless, my real name appeared. Where did Atlassian get my real name from based on my email address? How can I remove it? Does Atlassian truly respect my privacy?


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

Bitbucket will check if the email of a commit matches a Bitbucket account with that email as primary or as an email alias. If there is no Bitbucket account with that email either as primary or as an alias, then the name of the commit's author will be displayed. The name of the author is also set in the .gitconfig file on your computer and it is added to a commit (when you create a commit).

However, if you also see an avatar next to the displayed name, this email must be associated with an account (either as a primary email or as an alias).

You can try requesting a password reset email to confirm if there is an account with that personal email as primary:

* <https://id.atlassian.com/login/resetpassword>

If there is no account with that email as primary, you will see a message "We can't find an account for that email address." when you try to send a recovery email. You can then reach out to the support team to find out where the email has been added as an alias.

You can create a ticket with the support team via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cant get email invites
Asked by Aman Kasat:

When someone sends me an invite to a workspace/repo they just get pending invite and I dont get any mail/invite.


Answers:
author: Ben
body: Hi Aman,

I can't see any SMTP bounce errors from your mail server, so this indicates to me that there is no blockage in receiving these invitation emails.

I would suggest following this [email troubleshooting article](https://confluence.atlassian.com/bbkb/email-notifications-not-working-1224343600.html#:~:text=Verify%20if%20the%20workspace%20administrators,receive%20the%20repository%20transfer%20email.) and searching for our mail address in your inbox that send invites in case they have been picked up by a filter and aren't immediately visible to you:

* noreply@am.atlassian.com

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
All our bitbucket pipelines are failing with HTTP 426 when doing git push
Asked by Peter McEvoy:

Since this morning our pipelines are failing with HTTP 426 (Upgrade Required) when doing a git push back to the containing respository:

```
+ git push 
fatal: unable to access 'http://bitbucket.org/dingeng/otu/': The requested URL returned error: 426
```

Documentation indicates that HTTP push should be "seamless":
> "If you want to make changes to your repository from within your pipeline, you can push your changes back. We recommend using an HTTP git origin, which we set for you by default. As it's preconfigured, pushing back using HTTP will work seamlessly."

From <https://support.atlassian.com/bitbucket-cloud/docs/push-back-to-your-repository/>

We have changed nothing in our pipelines - they have been running successfully hourly for quite some time. Has something happened serverside that has not been notified or updated in the docs?

Pete


Answers:
author: Peter McEvoy
body: Magically, this started working again...


Tags: bitbucket-cloud

cloud
ERROR UNABLE TO FETCH STEP in pipeline
Asked by Thanh Truong:

Repo :

\<url_removed\>

Step details at:

\<url_removed\>


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

We cannot access any private repositories unless you create a ticket with the support team.

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. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan (the workspace where the repo belongs) to proceed with ticket creation.

The support ticket will be visible only to you, Atlassian staff, and any participants you may add during the creation.

Just a heads up, I removed the URLs from your post for privacy reasons.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is there an API functionality to add multiple repositories for a single crucible project?
Asked by Dinesh shivakoti:

I am following this link <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html?_ga=2.13037943.1370558991.1533198826-1414676974.1529507422> to automate crucible project creation. Wandering if there an API functionality to add multiple repositories for a single crucible project?

Help appreciated :)

Thanks in advance.


Answers:
author: Themis
body: Hi Dinesh,

reposting my response here, so it can help more users!

=============================================

At the moment there is no (supported) way of adding multiple repositories to a Crucible project via UI or API.

However, we do have a feature request (from UI so maybe not entirely in line with your use case) and a possible workaround from one of our developers, to do so via a POST.

#### Feature request {#toc-hId-1429147226}

The feature request concerns adding in bulk through the UI: [CRUC-6269: Bulk add repositories into Project](https://jira.atlassian.com/browse/CRUC-6269).

**Possible workaround**

In the feature request comments, one of our developers offered the following workaround:
>
> A request with the following parameters worked for me:
>
> Method:
>
> POST
>
> URL:
>
> https://\<fisheye\>/admin/addPathToFisheyeProject.do
>
> Headers:
>
> Accept: **/**   
> Content-Type: application/x-www-form-urlencoded  
> Cookie: \<copy cookie from a logged-in admin session from a web browser\>
>
> Body: (form data www-url-form-encoded)
>
> rep=\<repository-name\>  
> wholeRep=\<true/false\>  
> path=\<path if wholeRep is false\>  
> id=\<project id, you can find it in 'id=NN' parameter in the URL when you edit a project\>  
> atl_token=\<copy the token from a web browser session after you add a repo to a project\>

We hope this helps you achieve your goals!

Best,

Themis


Tags: crucible-development
My Apache 2 error logs get 16 Gt file size in a one day based to SVN
Asked by Matti Kiviharju:

My Apache 2 error logs get 16 Gt file size in a one day based to SVN. Can Atlassian Fisheye/Crucible causes this all?


Answers:
author: Matti Kiviharju
body: Yes some how Atlassian Fisheye/Crucible causes to high load Apache 2 error logs because I deleted whole project folder from SVN and now there is lot of file not found errors.
Would it be possible to disable syntax highlighting for json files in fisheye?
Asked by Amritha Chakkanadan:

It makes big reviews that include jsons unusable due to large amount of data transfers which increase size of the diff 20 times. Moreover, the web browser is barely capable of handling such massive data.


Answers:
author: Caterina Curti
body: Hi [@Amritha Chakkanadan](/t5/user/viewprofilepage/user-id/1682666),

We should investigate the root cause of the issue further, since this is unlikely that the syntax highlight is causing the behaviour and disabling it will fix it. At the same time, we need to keep in mind the impact on the end users once the syntax highlight is not available.

**Disabling syntax highlight**

In Fisheye it is possible to disable syntax highlight for a specific file extension by removing it from the \<FishEye home directory\>/syntax/filename.map list.

When opening this file, you'll notice the following definition:

```
"**/*.java" java.def "Java""**/*.scala" scala.def "Scala""**/*.js" javascript.def "JavaScript/ECMAScript""**/*.json" javascript.def"**/*.as" javascript.def "ActionScript"...
```

To remove json files to be syntax highlighted, please remove the line mentioning json and keep the rest of the file as is. This is how the first lines will be after the update:

```
"**/*.java" java.def "Java""**/*.scala" scala.def "Scala""**/*.js" javascript.def "JavaScript/ECMAScript""**/*.as" javascript.def "ActionScript"..
```

To make this change persist across upgrades, you can also copy the file in the FISHEYE_INST/syntax directory and update it there.

A restart is required for the change to take effect.

Cheers,

Caterina - Atlassian Support
How to deal with submodules in Fisheye
Asked by kevin conroy:

So we are evaluating Fisheye.

Our git repos are large, with 12 or more submodules, some using LFS.

When devs implement a feature, they may change one or more submodules, as well as the parent project which will use the updated APIs from the submodules; the changes are tightly coupled.

* When I browse the parent repo tree, where are those submodules?
* Does Fisheye recursively pull all of them?
* No support for GIT-LFS?

I'm trying to work out a usage paradigm for this - I appreciate that when a developer commits a change to the parent repo, changing the revision/commit of a sub module, they might be using the work of someone else, and mandating that a review includes the changes on the submodule commit is not valid.. but it would be nice to have that option.

Is the way we're supposed to use it basically unrolling our tree and adding all the submodules and parent repos separately, maybe gathering them together in a FishEye project? Then picking up the separate commits into a single review?


Answers:
author: Caterina Curti
body: Hi [@kevin conroy](/t5/user/viewprofilepage/user-id/804556),

While I don't have the answer to all your questions, let me share with you that submodules are not fully supported in Fisheye.

There is an existing feature request here:

- [FE-3828 - Add support for indexing git submodules](https://jira.atlassian.com/browse/FE-3828)

You can join the conversation there as well as see if the comments on the request help to clarify some of your points.

Cheers,

Caterina


Tags: git-lfs

submodule
Trouble at Dragon Stage 7 Step 2
Asked by Christopher Levine:

Hi All  

I am trying to complete the Atlassian Dragon Quest and I am stuck at the step where I need to Find "Find changeset '`922fd93`' in the activity stream. Click the cog icon next to the date for the commit and click **Create Review** in the dropdown menu."  

I have a huge error that is popping up on the screen for the repository that I am unsure of what the issue is. I have tried googling and reading the forum but I am utterly stuck.   

**Error**

Sun Jul 15 15:10:06 GMT-500 2018: Repository index failed due to error com.cenqua.fisheye.rep.RepositoryClientException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: \*\*\* failed to import extension felog from C:\\Atlassian\\fecru-3.7.0\\python\\hg\\hgfelog\\hgfelog.py: missing attributes: norepo, optionalrepo, inferrepo \*\*\* (use @command decorator to register 'fecheck') hg: unknown command 'felog' (did you mean log?) com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: \*\*\* failed to import extension felog from C:\\Atlassian\\fecru-3.7.0\\python\\hg\\hgfelog\\hgfelog.py: missing attributes: norepo, optionalrepo, inferrepo \*\*\* (use @command decorator to register 'fecheck') hg: unknown command 'felog' (did you mean log?) com.atlassian.utils.process.ProcessException: While executing: "C:\\Program Files\\TortoiseHg\\hg.exe --config extensions.felog=C:\\Atlassian\\fecru-3.7.0\\python\\hg\\hgfelog\\hgfelog.py --config ui.verbose=false felog 922fd9308885467fcb3ed0a3a185d8e661bedcc9 -p -m" in \[C:\\Atlassian\\Data\\fecru\\var\\cache\\Dragons\\clone\] com.atlassian.utils.process.ProcessException: java.lang.NullPointerException java.lang.NullPointerException: null


Answers:
author: Christopher Levine
body: Okay this was hard to figure out and lead to some other issues.   

This issue above occurs if your Mercurial edition is too new. However there are many other issues you can run into with other versions.   

I recommend if doing this on Windows installing TortoiseHg 2.1.3 available from the link below.

<https://bitbucket.org/tortoisehg/thg/downloads/>  

I ran into errors when Mercurial was too new/too old/old but newer and had to have the exact version.   

The version above will prevent any issues.

<br />

<br />


author: Caterina Curti
body: Hi [@Christopher Levine](/t5/user/viewprofilepage/user-id/1643417),

I know that the quest tells to use very specific versions of each products, but if you are ready to see some differences in the user interface and in the functions themselves, I would recommend installing the most recent version of each product.

Simply browse to this link to get them:

- <https://www.atlassian.com/download>

And let us know how this goes!

Cheers,  
Caterina - Atlassian


Tags: dragonslayer
Crucible third-party SCM plugin renders file incorrectly
Asked by Joseph Koral:

Hi,

I have a UTF-8 source file with Japanese text in a 3rd-party SCM supported by a LightSCM plugin.

When it is rendered in Crucible, it is displayed with CP windows-1252, so all the text is garbled.

Is there any way in the Crucible plugin framework to control the file (or repository's) character set?

I fetch the source file and write it out as UTF-8 to the OutputStream in com.atlassian.crucible.scm.SCMRepository.getFileAsString

The file also has the UTF-8 BOM 0xEF,0xBB,0xBF.

I'm using 4.5.3 (64-bit) and even tried this old solution to no avail: [https://community.atlassian.com/t5/Fisheye-Crucible-questions/UTF-8-support-in-Crucible/qaq-p/448381](https://community.atlassian.com/t5/Fisheye-Crucible-questions/UTF-8-support-in-Crucible/qaq-p/448381?)


Answers:
author: Caterina Curti
body: Hi [@Joseph Koral](/t5/user/viewprofilepage/user-id/1600239),

If you did not try this already, can you try setting the sun.jnu.encoding explicitly to UTF-8 in the **$FISHEYE_OPTS** [Environment variables](https://confluence.atlassian.com/fisheye/environment-variables-298976934.html "Follow link")?

This would be the syntax:

```
-Dsun.jnu.encoding=UTF-8
```

We have an open feature request to have this setting enabled by default:

- [FE-6908 - Set sun.jnu.encoding to UTF-8 by default](https://jira.atlassian.com/browse/FE-6908)

Cheers,

Caterina - Atlassian

comments: author: Joseph Koral
body: Thanks [@Caterina Curti](/t5/user/viewprofilepage/user-id/551009), I have tried that option, without any luck.
crucible: saving a comment as draft does not save associated lines
Asked by J?r?me Pouiller:

If you:

* save a comment as draft
* view another file
* come back to your draft comment
* try to save it
* this error appears:

![Screenshot_2018-07-12 CR-17 Combo part2 set station interface Id between mac80211 and wfx driver - Under Review.png](/t5/image/serverpage/image-id/26752iB3E67455BE624F40/image-size/large?v=v2&px=999 "Screenshot_2018-07-12 CR-17 Combo part2 set station interface Id between mac80211 and wfx driver - Under Review.png")


Answers:
author: Rodrigo M
body: Hello J?r?me!

I couldn't reproduce the error reported in my local Crucible 4.5.3 instance.

Here the steps I've taken:

1. save a comment as a draft
2. view another file
3. come back to my draft comment
4. I saved the comment by clicking on POST option

Can you please confirm that you have followed all the steps above? Also, can you describe how are you performing the step number 4 (try to save it)?

Regards,  
Rodrigo