youngmon/atlassian-qna huggingface dataset:
The Complete BitBucket Project/Repos/Folder Tree
Asked by Steve Jones:

Hi Everyone

Is it possible to extract a complete Project/Repos/Folder Tree from BitBucket? Unfortunately, we have a lot of staff off work at the moment and I can't find stuff easily (search isn't working) and I am not an admin yet.

First question so be nice.

Steve


Answers:
author: Hariharan Iyer
body: HI [@Steve Jones](/t5/user/viewprofilepage/user-id/5473041) ,

I'm not clear on the exact requirement here, but it should be possible to get this information using the REST APIs.

1. Get repositories in a workspace - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>

2. Get projects in a workspace - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-projects-get>

3. Get folders/files in a repository - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get>

Hope that helps!


Tags: bitbucket-cloud

bitbucket-server

cloud

server
Comments on PR do not show
Asked by Manuel Jos? Contreras Maya:

Hello, although the 'show comments' is enabled in the Pull Request I cannot see the comments from a colleague. Any ideas, thanks.  


Answers:
author: Syahrul
body: G'day, [@Manuel Jos? Contreras Maya](/t5/user/viewprofilepage/user-id/5472736)

Welcome to the community!

Could you provide a screenshot of what you are seeing on your end so I understand better?

That said, if you are looking for a comment, can you try to navigate in the dropdown at the top of the page as you're scrolling through the diff? For example:

![Screenshot 2024-04-11 at 12.48.19?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/317577i1DFF0672EB439C8C/image-size/large?v=v2&px=999 "Screenshot 2024-04-11 at 12.48.19?PM.png")

This dropdown will show all unresolved or resolved comments in the PR.

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud

comment

pull-request
Bitbucket memory size limit
Asked by manish_taazaa:

How can i use either unlimited memory or at least 16 GB of memory on a particular step in pipeline.

Could you please provide guidance on how I can achieve this ?


Answers:
author: Mark C
body: Hi [@manish_taazaa](/t5/user/viewprofilepage/user-id/5168033)  

Thank you for reaching out to the community.  

If you are using Bitbucket Cloud Pipelines running on our infrastructure, you can use memory for up to **8 GB** . However, if you are running on Pipelines self-hosted runners, you have up to **32 GB** limit.

You can find more information from the following links below:

* [Databases and service containers](https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/)
* [Runners - Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/runners/)

<br />

Regards,  
Mark C

comments: author: manish_taazaa
body: Thank you so much!!


author: Robert Wen_ReleaseTEAM_
body: Take a look at specifying the **size** option in your step. How much you can specify is dependent on what runner you're using.

<https://support.atlassian.com/bitbucket-cloud/docs/step-options/#>


Tags: bitbucket-cloud

cloud

memory

pipeline
New pipeline yaml file in a feature branch with a custom pipeline is not available to run
Asked by Jay Seletz:

I have a repo that previously did not have pipelines enabled. I have added a pipeline yaml file containing a single custom pipeline in a feature branch (master branch is the "Main branch" and does not have a pipeline yaml). I subsequently enabled pipelines in the repo settings. When I go to the Pipelines view in the UI, it still tells me I need to configure a pipeline. I usually can run it from the feature branch to test before merging to the main branch, but I'm not able to do so. Toggling the repo setting to enable the pipeline has had no effect.


Answers:
author: Jay Seletz
body: Worked around by adding a "dummy" default pipeline that does nothing. This caused the pipeline UI to show the pipeline view and not the "Create your first pipeline" page, and allow me to run my custom pipeline.


Tags: bitbucket-cloud

cloud
Why can't a user designated as an Admin push to a repo?
Asked by Fred Fierling:

I want a user to have read-only access to a repo and be able to clone it so that he can push changes to the clone. I've given him Admin perms for the cloned repo. He can pull from it, but he can't push to it. He has no other perms (workspace or project). Can this work? If not, what has to be added?

Unauthorized  
debug1: channel 0: free: client-session, nchannels 1  
Transferred: sent 3760, received 2424 bytes, in 0.2 seconds  
Bytes per second: sent 18473.2, received 11909.3  
debug1: Exit status 1  
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights  
and the repository exists.


Answers:
author: Mark C
body: Hi [@Fred Fierling](/t5/user/viewprofilepage/user-id/984939)  

Thank you for reaching out to the community.  

Could you confirm if the use is using SSH or HTTPS connection while cloning/pushing to the repository?

Also, the "Unauthorized" error is likely related to authentication permissions.

If the user is using an [App password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/), you can refer to this existing knowledge-based article that might help: [Error message 401: Unauthorized/Invalid Credentials in Visual Studio Bitbucket Cloud Extension](https://confluence.atlassian.com/bbkb/error-message-401-unauthorized-invalid-credentials-in-visual-studio-bitbucket-cloud-extension-1167842046.html)  

Regards,  
Mark C

comments: author: Fred Fierling
body: The user is using SSH. His public key was configured in the repo's Access Keys.

This page has "Use [access keys](https://confluence.atlassian.com/x/I4CNEQ) to gain read-only access to this repository." so we also tried giving him Admin perms in the Project Access Keys and even for the workspace. No joy.


author: Mark C
body: Hi [@Fred Fierling](/t5/user/viewprofilepage/user-id/984939)  

Could you try removing the SSH key from the repo's Access keys and then ask the user to add it to their personal SSH key settings? - <https://bitbucket.org/account/settings/ssh-keys/>  

After that, give admin permission to the user.

Let's see what happens after that.  

Regards,  
Mark C


author: Fred Fierling
body: That's the trick.

Thanks,


Tags: bitbucket-cloud

cloud
Request Garbage collection
Asked by Malek Elzaatari:

Hi there, I'd like to request for a garbage collection to be ran on a repo that is warning me of a size of 3.24GB. I've deleted and recreated some of the older branches in an attempt to reduce the size but it's only continuing to go up. Can I have a garbage collection ran on that repo?


Answers:
author: Patrik S
body: Hello [@Malek Elzaatari](/t5/user/viewprofilepage/user-id/3343798) and thank you for reaching out to the Community!

I found a repository in one of the workspaces your account has access to that matched the size you have described.

After running a GC on that repo, the size was reduced back to 375MB!

Now that GC is completed, I would highly recommend you have everyone on your team remove their old copies of the repository and do a fresh clone of it. Since the old clones have a dirty history, it's better to delete them, so you don't risk pushing the dangling objects back into your cleaned repository, which would increase its size again.

As a side note, I see that your company's workspace has an active subscription that is entitled to direct support from Bitbucket Cloud team. In the future, if you want help from our support team you can create a support ticket with Atlassian using the portal below, selecting Bitbucket Cloud as the product, and providing the workspace ID :

* <https://support.atlassian.com/contact/>

Thank you, [@Malek Elzaatari](/t5/user/viewprofilepage/user-id/3343798) !

Patrik S

comments: author: Malek Elzaatari
body: Thank you!


author: Patrik S
body: You're very welcome!

If you ever need help in the future, feel free to reach out to the Community!

Thank you :)


Tags: bitbucket-cloud

cloud
When using crucible with svn, how to ignore the ?change? in $Id$ tags?
Asked by Paul Wagland:

I have scoured the configuration screens, but I cannot see what magic incantation needs to be used to configure this. Our files have a standard header that includes the $Id$ tag, and this means that every time that the file is changed, this line shows up in the "diff" report, despite the fact that this line has not *actually* changed.

Is there any way to configure crucible to ignore this change when it is comparing two revisions?


Answers:
author: Paul Wagland
body: Turns out that this is a known issue.

<https://jira.atlassian.com/browse/FE-4336> which might get fixed, and would also resolve my issue.

<https://jira.atlassian.com/browse/FE-1980> which is exactly what I wanted and closed as won't-fix.


Tags: fisheye-crucible-administration
How to use author in eyeql
Asked by Javier Perez:

**I want to:** I'm trying to use author in an eyeql query.

**Tried this:** The only way I could make it work was adding the full name and email to the clause, like this

```
select revisions where author in ("User One &lt;user.one@cc.com&gt;", "User Two &lt;user.two@cc.com&gt;") group by changeset
```

I tried with userids

```
select revisions where author in ("uone", "utwo") group by changeset
```

with emails

```
select revisions where author in ("user.one@cc.com", "user.two@cc.com") group by changeset
```

but nothing seems to work, except for the very long *display name \<email\>*

**Q: Really, is this *display name \<email\>* the way to do it?**


Answers:
author: Piotr Swiecicki
body: Hi @Javier Perez,

I am afraid at the moment FishEye expects the full committer name as the author, as it was stored in the scm.

Feel free to raise improvement request in <https://jira.atlassian.com/projects/FE> project, it seems reasonable to allow either FishEye user name (so all mapped committer names would match) or even partial committer name.

Hope that helps,

comments: author: Javier Perez
body: Piotr, thanks for you answer.Notice that it's not only the name what I have to specify, but the full name + the email. The input has to be in the form _User One \<user.one@cc.com\>_, _User One_ only doesn't make it


author: Javier Perez
body: Is this expected?


author: Piotr Swiecicki
body: I think this is expected. I am guessing you are using git or mercurial repository and the committer name that you see in your git log or hg log is displayed exactly in the same format, User One \<user.one@cc.com\>, is it not?Remember FishEye has a nice feature where you can switch between simple and advanced (eyeql) query mode, the search criteria will be automatically converted. So if you don't know how to specify particular user, you can use the simple search form to pick up selected user and then switch to advanced (eyeql) mode to see what the query should look like. Perhaps this video would explain better what I mean: <https://www.youtube.com/watch?v=ya5gp88gEKI>


author: Javier Perez
body: Yes, switching from simple to advanced brings the whole "User One \<user.one@cc.com\>"Question clarified, but the answer is less than optimal :-(


author: Javier Perez
body: Thanks Piotr
How can I create a Crucible user without using a FishEye license?
Asked by Viet Bui Xuan:

We have 25 licenses of Crucible, and only 10 of FishEye. I'm trying to create our 11th Crucible user and the system is currently complaining that we only have 10 licenses of FishEye. Is that not possible?


Answers:
author: davelahn
body: Hi,

Thanks for your question!

If using Crucible along with FishEye (in all cases), your FishEye license must have an equal or greater number of users in order to be compatible with Crucible.

For more details about FishEye/Crucible licensing, you can take a look at the following link:

<https://www.atlassian.com/licensing/crucible/>

Best regards,  
Dave Lahn
Handling of commit messages with a migrated repository
Asked by Sebastian Stautz:

Hi,

my company now has CVS, Fisheye and JIRA and we want to migrate the whole CVS-Repo to Git.

How handles Fisheye/JIRA the existing commit-messages inside the Git-Repo?

* Will Fisheye rescan the whole Git-Repo and connect again all code changes with their issues?
  * We wont abandon the CVS-Repo. It will still been used. If this doesnt work
* What will haben with smart commits where transitions were used? I fear that a #resolve will change a closed issue to resolve again.

Has someone a link to some tips for this kind for migration? Elsewise ill raise a new question.

Greetings


Answers:
author: lpater
body: Hi Sebastian,

When you add the new migrated repository it will be indexed by FishEye. Once that's done all the commits that mention JIRA issues will be visible in JIRA when viewing the associated issue, as they were for the CVS repository.

Any commands for smart commits won't be re-executed, as we don't process smart commits during the initial indexing of the repository. Depending on your migration strategy, they might be processed for commits added later on. To be sure they won't be processed, you might want to temporarily disable Smart commits, until the indexing is complete, and then re-enable them

comments: author: Sebastian Stautz
body: Thanks Peter, thats what i was expecting :-)With your answer i found now the corresponding link: <https://developer.atlassian.com/fecrudev/tutorials/fisheye-smart-commit-tutorial>"Smart commit handlers are not invoked on the initial indexing of a repository, only on an incremental update."


Tags: jira
How do I remove a created issue from a Crucible review Comment?
Asked by Geoff Wilson:

**Environment:** JIRA v7.0 with an established Application Link to Crucible + Fisheye v3.9.1, both using same Crowd user directory for Single Sign-On between the applications

I need to know how to remove a JIRA issue that was created from a Comment on a Crucible review. Upon using the "Create Issue" link on a review Comment, it creates the issue \& link on JIRA and then is shown in the review's Issues Raised From Comments section. However, I've learned 2 things: **1)** if that JIRA issue is deleted then crucible shows "Error retrieving issue from JIRA" but doesn't remove it, and **2)** if on the JIRA issue I remove the link to the Crucible Comment, it also still is shown on the review as if nothing changed.   

So how do I remove the reference to an issue created on a comment, if say that issue is delete OR more importantly if somebody creates a bad issue, gets it deleted, and wants to create a new issue off of the comment?


Answers:
author: lpater
body: Hi Geoff,

Deleting JIRA issues is not very common in most configurations (as it removes all traces of the issue ever existing). Usually a better idea is to have a workflow state in JIRA noting that the issue is no longer relevant.

There currently isn't a UI feature to handle such a case for issues created from comments in Crucible (there are many reasons for this, including we don't really know if the issues has been removed, it might very well just be inaccessible for the current user). There is a [feature request](https://jira.atlassian.com/browse/CRUC-6452) related to this functionality, you might want to vote for it, and let us about your use case in the comments.

If it's a one-off operation that you want to do as an administrator, you could stop Crucible, hava a look at the AO_2913F5_COMMENT_ISSUE table in the SQL database, and remove the rows which have the ISSUE_KEY column set to the removed issue(s). After restarting Crucible you should no longer see the issues in the comments.

comments: author: Geoff Wilson
body: Thanks for the heads up and I agree that deleting would be very rare (but in admin-mode, i am deleting all the tests afterwards). I guess also then if say they created an inline issue from a Comment but accidentally made the wrong type of issue, they can always go in JIRA and use the Convert to Subtask or Move option to change it as necessary instead of being disgruntled that they can't just mark the one they created as invalid and create another from the Comment.


Tags: jira
found a typo in your documentation
Asked by Benni Gutbrod:

p style color:#6f6f6f;border: 1px solid #e9e9e9;border-radius: 3px;padding: 5px; \> em\>This question is in reference to Atlassian Documentation: a href https://confluence.atlassian.com/pages/viewpage.action?pageId 298976954 \>Getting started /a\> /em\> /p\> p\> span class text-placeholder \>Ask your question here... /span\> /p\>

hi, I found a typo in the 5th bulletpoint under the title "Browse repos from your browser!"  
i assume "therepository" should be "the reporsitory"

greets

Benjamin


Answers:
author: gustavo_refosco
body: Hi Benjamin,

Thanks for noticing this, I made the necessary adjustments. :smile:

Regards,

Gustavo Refosco


Tags: documentation
Crucible: How to remove changeset/submitte columns
Asked by Nicolas Bourdages:

We're using Crucible 3.7

When our users review branches, they see the user responsible and the changesets in a column to the left of the code.

crucible_columns.png

There was a [Columns button in earlier versions](https://answers.atlassian.com/questions/9882153/how-do-you-hide-the-committer-column-in-the-diff-view) to remove that, since it makes side-by-side diffs very tedious, but I have not been able to find anything that would remove these columns.

Anybody know a workaround for this?

Thanks!  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Crucible-How-to-remove-changeset-submitte-columns/qaq-p/50086?attachment-id=8412){#link_115a5cfa7c78c6}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/560/1/crucible_columns.png){#display_115a5cfa7c78c6_0}


Answers:
author: gustavo_refosco
body: Hi Nicolas,

You should be able to find the same options in the **Prefs** button.

Regards,

Gustavo Refosco

comments: author: Nicolas Bourdages
body: Actually, it's not in there.I have: -Source Comments (Above, Inline, Hidden).-Diff (Side by side, united). -Wrapping (Soft wrapping, no wrappin)-Show Source (on/off)None of these options address the authors/changeset columns.Is that function present in Prefs in later versions? We're on 3.7.0.


author: gustavo_refosco
body: Hi Nicholas,This is strange to me, it should be showing up there in version 3.7.0.Can you please check if the same happens for other users, and also in other browsers?Please also check if there's any error in your browsers's Dev Tools \> Network tab.


author: Nicolas Bourdages
body: This does happen for all users. We tried in Chrome 46 and Firefox 42.I do sometimes see an error in the debug info, but it's a failed Get on a user icon.I don't see anything weird in the logs either. Something particular I should be looking out for?
I cannot see the charts under reports in fishview version 3.10.1
Asked by Vinay Kadari:

Hi I could not see the charts under reports in fish eye where i can see the commits and users. i need to see charts for line of code for different release and time period . it says jre 1.8 required so I have tried installing that also but still cannot see charts, graphs. can any on suggest help?


Answers:
author: Ming Ho
body: never mind. it is due to my https configuration change.


author: Ming Ho
body: i am facing the same problem too. i can't even see the commit graphs after upgrading to 3.10.1. any thoughts?


author: Grzegorz Lewandowski
body: Can't you access charts which were working correctly pre upgrade to 3.10.1 ? If so, please rise an issue using <http://support.atlassian.com>


Tags: fisheye-crucible-administration
Attempting to setup a commit hook and getting a 405 Http Method put is not supported by this URL
Asked by Peter Cullen:

Hello,

I'm playing around with disabling automatic timed polling to SVN and replacing with a commit hook.

I've attempted sending a PUT to my Fisheye instance and get a 405 error.

My URL looks something like this (taken out actual server names etc)

[http://{myserver}:8060/fisheye/fecru/rest-service-fecru/admin/repositories/{reponame}/incremental-index](http://usmvvwdev84:8060/fisheye/fecru/rest-service-fecru/admin/repositories/widget/incremental-index)

I have set the headers X-Api-Key and the Content Type.

Repo name I've used the repo name as set in Fisheye.

Pete


Answers:
author: Piotr Swiecicki
body: Are you sure /fisheye/fecru is the correct Web Context of your instance? Can you go to `Admin / Global Settings / Server` page, and check the `Web context` value in `Web Server` section?

Perhaps the valid URL would be

* /fecru/rest-service-fecru/admin/repositories/{repoName}/incremental-index or
* /fisheye/rest-service-fecru/admin/repositories/{repoName}/incremental-index or
* /rest-service-fecru/admin/repositories/{repoName}/incremental-index

depending on the actual `Web context` value?

Basically, go to dashboard page of your instance and append `/rest-service-fecru/admin/repositories/{repoName}/incremental-index` to its URL.

Hope that helps,


author: Peter Cullen
body: Hi Piotr,

2015-11-12 21:00:40,672 DEBUG \[qtp1764996806-265 \] fisheye ProfilingServletFilter-logRequest - start request PUT /fisheye/fecru/rest-service-fecru/admin/repositories/sxweb/incremental-index nosession 2015-11-12 21:00:40,672 DEBUG \[qtp1764996806-265 \] fisheye ProfilingServletFilter-logRequest - end request in 0ms PUT /fisheye/fecru/rest-service-fecru/admin/repositories/sxweb/incremental-index nosession 405 mem=0.073MB 2

Here's the log. A couple of things, I'm running a redirect to this server and have tried both the redirect and direct address's.

Pete


author: Piotr Swiecicki
body: That seems like a valid URL of <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories:name:incremental-index> endpoint. Can you enable debug logging (Admin / Server page) and show me the logs captured when the request was being sent to server, please? Also, what FishEye version do you use?
Versions but no files in diff window of Crucible
Asked by Michael Kellogg:

Sometimes (in this case with all my SQL files) I get this in the Crucible window:

image2015-11-6 13:24:33.png

This obviously doesn't help me perform the code review. Why does this occur?

In order to do my comparison I downloaded each set and copied/pasted it into a Notepad++ window then performed the compare there, for every file. Quite painstaking.  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Versions-but-no-files-in-diff-window-of-Crucible/qaq-p/296569?attachment-id=1132){#link_115a5d65575fa9}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/4003/1/image2015-11-6%2013%3A24%3A33.png){#display_115a5d65575fa9_0}


Answers:
author: Piotr Swiecicki
body: Hi @Michael Kellogg,

There might be few reasons, invalid raw-mime.types file (see <https://confluence.atlassian.com/pages/viewpage.action?pageId=170495027>), bug in older version of Crucible affecting uploaded files (<https://jira.atlassian.com/browse/CRUC-6736>), old perforce client if you are using perforce (<https://confluence.atlassian.com/display/FISHKB/Crucible+review+displays+text+files+as+binary>) etc. We would need to know more details about your configuration to help.

Can you see if the documents I linked helps? If you still struggle, consider raising a support request via <https://support.atlassian.com> so we can help.

Kind regards,  
Piotr
trigger a build on submitting a change for a review
Asked by ILGUIZ LATYPOV:

*This question is in reference to Atlassian Documentation: [Repository triggers the build when changes are committed](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276902)*

It would be nice if a pre-commit review in Crucible could trigger a build using the changes from the review. Then build warnings could map into the snippets of the change in the review interface. Build breaks could reject the review.


Answers:
author: Marek Parfianowicz
body: Hi Ilguiz, in case you'd like to report a feature request, please report it here: <https://jira.atlassian.com/browse/CRUC>


Tags: bamboo

trigger