youngmon/atlassian-qna huggingface dataset:
Merge and rename of Workspace
Asked by Peter Bys?e:

Hi Atlassian,

We own 2 workspaces (Lets just call them workspace A and B for simplicity) and want to merge them together and rename. So what we want is:

1. Merge workspace A into B
2. Delete workspace A
3. Rename workspace B into A

The reason for doing it this way around is that we want the name from workspace A but have a ton of repos and automation set up on workspace B that we don't want to mess with.

So the question is if there are are complications with this? Fx could the workspace A name still be reserved after deletion, so we can't use it?

Regards

Peter


Answers:
author: Ben
body: Hi Peter,

As per our [documentation](https://support.atlassian.com/bitbucket-cloud/docs/delete-an-account/), it will take 30 days to completely delete an account, meaning that if you deleted WorkspaceA, its WorkspaceID (name) would not be available for 30 days. Additionally, it is not possible to [merge two workspaces together](https://jira.atlassian.com/browse/BCLOUD-20487) and instead, you must [transfer the repositories](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) from WorkspaceA to WorkspaceB.

The best method for achieving what you wish to do is as follows:

1. [Transfer all repositories](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) first from WorkspaceA to WorkspaceB so that WorkspaceB has the data you want

2. [Change the workspaceID](https://support.atlassian.com/bitbucket-cloud/docs/change-a-workspace-id/) for WorkspaceA so that the ID you want is free for usage

3. Change the workspaceID for WorkspaceB to the previous ID for WorkspaceA

4. [Delete](https://confluence.atlassian.com/bbkb/how-to-delete-bitbucket-cloud-workspace-1216583972.html#:~:text=Click%20on%20the%20gear%20icon,the%20%22Delete%20workspace%22%20button.) WorkspaceA

This would be the best method as you would not need to wait 30 days for the workspaceID to be free and you would also not need to update your GIT config to reflect the new remote URLs for your repositories (as with the workspaceID change, these would be the same as before).

**NOTE:** We do have a script to handle bulk repository transfer. Please have your admin check the script to determine its suitability, as it is not developed by or officially supported by Atlassian:

* <https://bitbucket.org/bbcloud-support-scripts/bulk-transfer-repositories/src/master/>

Hope this helps, please let me know if any issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I want to find the sqush commit done in my repo using Rest API call
Asked by Sourabh Kulkarni:

Hi,   
I want to hit the REST API and find the different types of commits i.r Normal commit, Mrege commit, Squash commit, etc. But there is no direct way to do it hence need help from the community to find a solution


Answers:
author: Charlie Misonne
body: Hi [@Sourabh Kulkarni](/t5/user/viewprofilepage/user-id/5368369)

Welcome to the Atlassian Community!

I don't think that can be done. The commit/ merge type you perform is something that happens at the moment the commit is performed.

Those types are not Bitbucket specific. They happen at the git level. GIT does not track which type of commit you performed as far as I know.

comments: author: Sourabh Kulkarni
body: [@Charlie Misonne](/t5/user/viewprofilepage/user-id/502263) totally agrees with you but when I saw some answers on the internet saw that we can find Commit and merge commit from the parent array of the API response from bitbucket. Can we do something like this for Squash Commits too?


author: Charlie Misonne
body: Apparently someone had the same question. Atlassian created a feature request for it. Currently it is not possible

You can find the answer on <https://community.atlassian.com/t5/Bitbucket-questions/Is-there-an-api-for-getting-the-squash-commits-from-bitbucket/qaq-p/2471768#M97405>


author: Sourabh Kulkarni
body: [@Charlie Misonne](/t5/user/viewprofilepage/user-id/502263) Cool Thank you for your time.


author: Sourabh Kulkarni
body: Hi [@Charlie Misonne](/t5/user/viewprofilepage/user-id/502263), any updates on the above feature?


Tags: bitbucket-cloud

cloud
Access by Jenkins gets error "Not licensed"
Asked by Sara Burns:

Recently had to change password in on-prem Crowd directory to allow update of license, prior to migration to cloud. Now cannot access Bitbucket from Jenkins, after updating the password to the same as changed in Bitbucket.

Cannot seem to capture logging information in Jenkins as not sure of package to be logged.

Error seen is

```
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch
```

```
returned status code 128:stdout: stderr: fatal: remote error: Not licensedYou do not have permission to access Bitbucket. Please contact youradministrator to resolve this issue.
```

This worked prior to the password change. Jenkins and Bitbucket are using Crowd

I can log into Bitbucket using this name and password. I can also log into Bitbucket from Jenkins using this name and password. But Jenkins cannot now run the Pipeline.


Answers:
author: Sara Burns
body: Additional information

The license to be updated was Bitbucket.

Jenkins is on Windows server, Bitbucket and Crowd on Linux server.


Tags: bitbucket-server

server
How to Increase Bitbucket Webhooks Limit
Asked by kauky:

Hello,

I have the same request, I need to override the limits of webooks limit for 1 of my repos.

[Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) can you help me?

Thanks in advance.


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

Of course, can you please let me know the last two letters of the workspace ID that this repo belongs to? I'm asking because I see your account has access to several workspaces.

Just a heads up, I moved your post to a new question. It's better to have a separate question per request because an existing question can become difficult to follow if we have requests from multiple different users.

Kind regards,  
Theodora

comments: author: kauky
body: Hi Theodora,

the last letters of workspace are "eam".

Thanks again

Mirco


author: Theodora Boudale
body: Not a problem, Mirco!

I went ahead and removed the limitation for this workspace.

Please feel free to let me know if you can add more webhooks now or if you're still experiencing any issues.

Kind regards,  
Theodora


author: kauky
body: Perfect, I can add more webhooks.

Thanks!!

Mirco


author: Theodora Boudale
body: Great, thank you for the confirmation!

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

Theodora


Tags: bitbucket-cloud

cloud
Undo a merge (and closed branch)
Asked by Frank den Heijer:

I already have a solution for my question below.

From my local CLI, I performed a push -\> the branch was there again. Then, I merged it into the correct branch. I might live a few years less, but it's okay now.

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

"I have a question about reverting a merged branch that I also closed through the GUI in Bitbucket.

I had three branches:

* master
* craft
* project-name

I merged and closed 'project-name' into 'master.' I didn't do this via a pull request but directly through the branches menu on the left-hand side. I entered the branch itself and clicked the three dots where it says 'merge' in the menu. In the popup window, I clicked the checkbox where it says 'Close source branch.' Then I hit the merge button, and everything merged.

The mistake I made is that I merged it into the wrong branch. I wanted to merge it into the 'craft' branch because 'master' is way behind, and I did not use it anymore. Don't ask me why.

Locally, there aren't any changes yet because I did not perform a pull on the CLI. So everything still works there, but I have messed up my commits.

Is there a way to revert this mistake?"

I'm afraid to cause more damage, so I haven't attempted anything after I noticed my mistake.


Answers:
author: Charlie Misonne
body: Hi Frank!

On the master branch, do you see 1 single merge commit with all changes from project-name?

If that's the case you can use the **git revert** command: <https://www.atlassian.com/git/tutorials/undoing-changes/git-revert>

It is the cleanest way to do this. You could also merge your local branch to master (becasue you did not pull yet) and perform a force push overwriting everything on master but this is not very safe in my opinion.

To be safe: clone the repostory in another directory on your PC in order to avoid any losses in your other directory where you did not pull yet.

```
git clone <your repo URL>
git checkout master
git log #this will show you the latest commit. You need to find the commit ID of the merge commit
git revert -m 1 <merge_commit_ID>
git push

```


Tags: bitbucket-cloud

cloud
Your push failed because the account '<workspace-id>' has exceeded its user limit
Asked by guillermo1976:

Hello, i'm trying to push repository and get this error, i already have pushed before, but now i can't.

\[ALERT\] Your push failed because the account '\<workspace-id\>' has exceeded its  
\[ALERT\] user limit and this repository is restricted to read-only access.  
\[ALERT\] Change your plan to restore write access

I hadd a free account but today changed to standard and still having the same issue.

Can you please help me with this problem?

Thanks


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

I can see in our system that you have upgraded the billing plan of your personal workspace to Standard. However, the workspace that is showing this error is different. The billing plan needs to be upgraded for the workspace mentioned in the error message (I removed it from your post to protect your privacy).

You can downgrade the billing plan of your personal workspace to Free. You will then need to ask one of the admins of the other workspace to upgrade its billing plan.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Fish-eye Crucible Commit Activty Report
Asked by Richard:

How can I export the Commit Activity to a report? The tools menu has only an RSS feed. No export option.

Thanks

<br />


Answers:
author: Richard
body: There is no direct export from the report view. However, the JIRA team advised the following.......

1. Click in the upper left and choose the Fisheye link  
2. Click Source \> repositories

3. Choose your project

4 Select the Search tab

5. Enter any critieria

6. Search

7. Select Export to CSV that appears below the tabs


author: Richard
body: This question was supposed to be for the on-demand version, not the installed version. Thanks


Tags: commit

report
Sorry, there are no links available when using anonymous access, check the permission configuration of the remote application
Asked by Alagu Meena A:

Hello, I am facing the problem , when I try to link JIRA project from Crucible Application, I got the same error.

"*Sorry, there are no links available when using anonymous access, check the permission configuration of the remote application.* "  
"

I can able to add Crucible projects from JIRA application.

This is the error from the Crucible Logs.

2013-02-06 01:06:14,340 WARN \[btpool0-1828 \] com.atlassian.applinks.core.rest.PermissionResource com.atlassian.applinks.core.rest.PermissionResource$4-handle - Authentication failed for application link Enterprise Jira (471e9df5-bad0-3680-9002-a1d57e598afd) [https://jira.company.com](https://jira.company.com/) [com.atlassian.applinks.application.jira.JiraApplicationTypeImpl@6dd36d8f](mailto:com.atlassian.applinks.application.jira.JiraApplicationTypeImpl@6dd36d8f). Response headers: {WWW-Authenticate=OAuth realm="https%3A%2F%2Fjira.company.com", Date=Wed, 06 Feb 2013 07:06:14 GMT, Content-Length=4417, Set-Cookie=JSESSIONID=03CC236399CEE8A65068BA2973D68DC8**; Path=/;** Secure; HttpOnly, Content-Type=text/html;charset=UTF-8, Connection=close, X-Seraph-LoginReason=AUTHENTICATED_FAILED, X-AREQUESTID=66x2092869x1, Server=Apache, X-Content-Type-Options=nosniff} body: \<!DOCTYPE html\>

The user which tries to access JIRA has all permission in JIRA.

[https://jira.company.com](https://jira.company.com/) has siteminder integration. Can you please suggest what could be the reason.


Answers:
author: Avdhesh Chauhan
body: Is the remote API enabled in your JIRA
Migrate from MySQL to PostgreSQL
Asked by raulgd:

I have a Crowd installation (in the same server I also have JIRA, Confluence, Stash, Fisheye/Crucible and Bamboo), and need to migrate my Atlassian Suite from using MySQL DB server to Postgres because of licensing issues with MySQL.

I see on the documentation that there is a guide for switching databases, but implicates that the target server is installed on another box, but my Atlassian suite is up to date, all I need is switch databases without impacting my already configured installation in that box.

I'm setting the priority to 8hrs. because the window I have for the migration is only this sunday.


Answers:
author: Immanuel Siagian
body: Hi Raul,

The process to migrate to a different database would be the same for migrating on the same server and to another server. You may find the steps as described on the following documentation: <https://confluence.atlassian.com/display/CROWD/Migrate+to+Another+Database>

Cheers


author: raulgd
body: Hi,

Yes, only that it was a more complex process, it wasn't really transparent.

I had to export all the configurations from the apps to the backup XML/zip format, then delete all installations and reinstall them from scracth as if they were new, then import the XML formats.

I expected there was a way to do that without having to reinstall everything, but all the installation files from the application apparently "hardcode" the database configuration, so there was no way for me to do that without reinstalling.

Thanks,

Raul


author: mariocupelli
body: Hi Raul,

did you successfully migrate from MySQL to PostgreSQL? Where there any issues?

Thank you any response.

Regards  
Marco


author: Huang QinYin
body: You can migrate from mysql to postgresql in 3 steps via ESF Database Migration Toolkit:

[https://www.easyfrom.net/articles/mysql_to_postgresql/](https://www.easyfrom.net/articles/mysql_to_postgresql/ "https://www.easyfrom.net/articles/mysql_to_postgresql/")


Tags: migration

mysql

postgres

project

time-tracking

user-management

workflow
Credentials don't persist while configuring Crucible with JIRA
Asked by Sikhar:

I have configured my crucible server with the JIRA instance and it seems all right initially; I can see the fisheye and crucible details in the Source and Review Tab of a JIRA issue. But after sometime the link gets broken. When I go the application link and see Outbound Authentication; it shows un-configured. It simply asks for UserName and Password which I had entered previously and saw getting persisted. The JIRA version is JIRA (v5.1.5#784-sha1:6c72993)

I will attach a word document that I prepared from your help to guide the IT team and will really appreciate if you could go through that and point me out any mistake


Answers:
author: AhmadDanial
body: Hey there, Ritu.

I noticed that it has been a while since you receive any response here. Have you raised a ticket in the following link:

[](https://support.atlassian.com)<https://support.atlassian.com>

You will be able seek help from the support engineers regarding the questions that you have here. If you have not, I would kindly suggest you to do so.

Hope this helps and all the best.


Tags: authentication
Any way with Crucible to show review comments in an editor?
Asked by Kurt Thams:

Okay... we're done with a review. Now want to incorporate changes from it into our code.

Sure would be nice if I could see Crucible comments directly in an editor. Is that possible?


Answers:
author: Avdhesh Chauhan
body: crucible only provides the web interface - its not supported for any IDE

**The last version of the Connector containing FishEye/Crucible support is 2.3.0.**
Smart commit not generating a notification email
Asked by jeff mease:

After using a smart commit on checkin, the assigned reviewers are not getting an email notification. I believe this is becuase the review is in draft mode. How do I get the smart commit to start the review and send notifications?


Answers:
author: Sergey Svishchev
body: Either set up default reviewers in the review project, or specify reviewers in the smart commit message (reference: <https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits>)
Search code for keywords to trigger Crucible review
Asked by Jeff:

Let's say we have a small team who oversees usage of iOS UIWebView controllers. Is there some way Crucible can automatically trigger a review whenever a Perforce changelist has been committed that matches any of the following criteria:

* A new source code file has been checked in that contains a line with the word "WebView" on it
* An existing source code file has had a change to a line that contains the keyword "WebView"

Or, is there some way the small team can periodically inspect all recent Perforce commits in a given repository for such changes?

In that fashion, it makes it very easy for the small team responsible for UIWebView usage to keep on top of the code and ensure things are being used according to established best practices without having to look at every single checkin.


Answers:
author: Sergey Svishchev
body: You can use Advanced Search feature in Fisheye for this -- search for "WebView" in "Added Text" within the repository and then save the permanent link to that query (the "Link to this search" link).

comments: author: Jeff
body: Thanks, this should work out well!


author: John Werner
body: Have you tried the [Smart Commit](https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits) feature? By adding special keywords to your check-in comments, you can trigger Crucible actions.

For instance, the following comment will create a new review in project "REVIEWProject" that contains all files checked in with this commit

```
- Updated to fix a bug, +review REVIEWProject
```

comments: author: Jeff
body: Thanks for the input. I've found that with Smart Commit, some people have a hard time remembering to whom (or to which project) to assign reviews. So there are always some checkins floating around that should have been reviewed by 'UIWebView Owners' team (per my original example), but which are not. This is why I was looking for a proactive search feature, so 'UIWebView Owners' can do a search to catch these orphaned checkins. Combining these two approaches should give very good results.


Tags: search

trigger
Crucible NullPointerException in filter allClosedReviews
Asked by Leendert van Gemeren:

I get the following error when calling a review in Crucible.  

Error:  
--------------------------------------------  
Your request was unable to be processed

javax.servlet.ServletException - javax.servlet.jsp.JspException: javax.el.ELException: java.lang.NullPointerException  
javax.servlet.jsp.JspException: javax.el.ELException: java.lang.NullPointerException  
javax.el.ELException: java.lang.NullPointerException  
java.lang.NullPointerException

You are running release CR2.7.10 FE2.7.10 (20120119115142 2012-01-19), please report your release number when reporting bugs.  
--------------------------------------------  

URL's affected:

<https://www.customerdomain.com/browse/CR-TOOLS?filter=allClosedReviews>

<https://www.customerdomain.com/browse/CR-TOOLS?filter=allReviews>

<https://www.customerdomain.com/browse/CR-TOOLS>The above appears on all browsers and OS'es.  

Does anybody know how come and how to solve it? The problem first appeared after a review was abandoned and after which accidentally a comment was added after it was abandoned.


Answers:
author: Conor
body: I think the best way forward is to raise a support request at [support.atlassian.com](http://support.atlassian.com) for these sorts of errors.

It will be best if you turn debug logging on and then reproduce the problem to ensure information is captured in the debug log.

If you can also outline the exact steps you take to reproduce the error, that will speed things up. i.e. what URLs you are visiting, what actions youi are taking. For example, I'm not sure what you mean by "calling a review"


Tags: error

null-pointer-exception
Best practice for Crucible Project Keys
Asked by Stefan Egli:

If I have a JIRA project with key FOO, what should I use for the Crucible project? At first I wanted to use the same key, but this gets in the way with smart commits. For this reason I decided to use some Postfix like FOOR. While this solves my problem with smart commits, it sure does not look nice. Does anyone have a better idea?


Answers:
author: Grzegorz Dlugoszewski
body: Hi Stefan.

According to [Atlassian's best practises for Crucible configuration](https://confluence.atlassian.com/display/CRUCIBLE/Best+Practices+for+Crucible+Configuration) the suggested method is to use "CR-" prefix. So if you have "FOO" JIRA project then the Crucible project key should be "CR-FOO".

That's what I've been using in several different organizastions and haven't run into any problems or complains.

Cheers!

comments: author: Stefan Egli
body: Thank you very much!


author: pslootweg
body: The problem with prepending 'CR-' is that you will hit this bug: [https://jira.atlassian.com/browse/FE-4155
It](https://jira.atlassian.com/browse/FE-4155%3Cbr%3E%3Cbr%3EIt) means that the smart commits see CR-FOO-xx and then associate the check-in with issue FOO-xx even though the check-in might be for issue FOO-yy


author: Timothy
body: If postfix is not nice, what about prefix? Kinda the same thing but yea..
Crucible Review: "add content" dialogue cannot resolve author changesets.
Asked by Charlton Port:

When adding content for review, Crucible cannot resolve author tags to mapped users. As a result valid changesets will not appear in the Browse Changesets dialogue.

For sites will many mapped users (eg. contributions originating from various author names or email but mapped to one author) this can be extremely troublesome when one must search for review content by author, as the changeset will not appear in the browse list until the correct author tag is found.


Answers:
author: Sergey Svishchev
body: Vote for <https://jira.atlassian.com/browse/CRUC-6322>


Tags: review