youngmon/atlassian-qna huggingface dataset:
AI Assisted code review
Asked by Pavel Terakopov:

Hello,

can anyone spill some light on when AI assisted code review feature will become available for cloud BitBucket?

I joined Atlassian AI Beta program months ago and it is enabled for all our products including BitBucket but I do not see any promised features and the Roadmap still says "coming soon in Q4 2023".

Am I doing something wrong or is it not out yet?

If it is not out yet, do you have any idea when to expect it?

We are on the premium plan

Thank you


Answers:
author: Theodora Boudale
body: Hi Pavel,

Thank you for reaching out.

This feature is available in Bitbucket Cloud, please note that it is still in Beta. You will need to enable it from **Workspace settings** first.

The following blog post has detailed steps on how you can enable it and also a short video on how to use it:

* <https://bitbucket.org/blog/atlassian-intelligence-features-for-bitbucket-cloud-are-now-in-beta>

If you have any feedback, you can post it in the following community post (after you join the community group it belongs to):

* <https://community.atlassian.com/t5/Atlassian-Intelligence-Articles/Atlassian-Intelligence-features-for-Bitbucket-Cloud-are-now-in/ba-p/2499126>

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
No users found when adding Default Reviewers
Asked by Brandon Scoggins:

When trying to add a Default Reviewer, no users are found in the drop down/search bar. Users are listed in the Workspace settings / User Directory.


Answers:
author: Mark C
body: Hi [@Brandon Scoggins](/t5/user/viewprofilepage/user-id/5376474),

Welcome to the community.

Would it be possible for you to confirm if there are users added as Default reviewers under projects or repository settings?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Unable to login to BitBucket with any Browsers
Asked by Carlos Eduardo Panarello:

I can't log in to bitbucket because of this error:

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

Looking at the community questions, maybe my account was also inactive.


Answers:
author: Patrik S
body: Hello [@Carlos Eduardo Panarello](/t5/user/viewprofilepage/user-id/5414812) ,

Your account was indeed in Inactive state due to a long period of no activity.

I went ahead and set it to active so you can try to login again :)

If you are still facing issues, please let us know.

Thank you, [@Carlos Eduardo Panarello](/t5/user/viewprofilepage/user-id/5414812) !

Patrik S


author: Laurie Sciutti
body: Hi [@Carlos Eduardo Panarello](/t5/user/viewprofilepage/user-id/5414812) and welcome to the Community. Maybe [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) or [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) can assist.


author: Carlos Eduardo Panarello
body: Everthing is ok now, Thanks.


Tags: bitbucket-cloud

cloud
Does FishEye quick search support boolean operators?
Asked by knowshan:

I was wondering if FishEye supports boolean opearators in quick search to do something like: 'database \&\& user' to get results where file contain both strings 'database' and 'user'.

I can do an EyeQL as follows:

```
select revisions from dir "/" where content matches "database" and content matches "user" order by date  desc  group by changeset return path, revision, author, date, csid
```

But it would be nice to do it using some quick search method. Any ideas?


Answers:
author: lpater
body: Hi Shantau,

quick search doesn't currently support operators. It aims to provide a simple way to search your repositories for various data types. For content searches this means taking the entire input query and returning files containing the exact phrase.

If you would like to see operators introduced into quick search, be sure to raise a [feature request](https://jira.atlassian.com/secure/CreateIssue!default.jspa "feature request").

comments: author: knowshan
body: Thanks Lukasz!

Please upvote - [](https://jira.atlassian.com/browse/FE-5093)<https://jira.atlassian.com/browse/FE-5093>:)
Sysadmin User information
Asked by Glenn Patchen:

When we created our JIRA instance it created a SysAdmin user and to my knowledge we never set that password. Now it appears we need that user info to setup and config FishEye.

How do I get this information?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You may reset the Fisheye admin password by following this documentation: [](https://confluence.atlassian.com/display/FISHEYE/How+to+reset+the+Administration+Page+password+in+Fisheye+or+Crucible)<https://confluence.atlassian.com/display/FISHEYE/How+to+reset+the+Administration+Page+password+in+Fisheye+or+Crucible>


author: Nick
body: You can use any JIRA user account as long as they have admin (or sysadmin) level rights in JIRA.


Tags: fisheye-crucible-administration
I get Constraint Violations when I want to delete s.th. in Fisheye Reviews.
Asked by J?rgen Schranz BMW:

Hello,  
when I try to delete s.th. in my Fisheye Reviews I get following Exception:

2014-02-17 15:54:19,323 ERROR - Exception "org.hibernate.exception.ConstraintViolationException: could not delete: \[com.cenqua.crucible.model.FileRevisionExtraInfo#2775\]" (javax.servlet.ServletException) while processing "/fisheye.git/js  
on/cru/CR-174/editRevisionsFromRevisionAjax/" (Referer:"https://domain/fisheye.git/cru/CR-174")

Caused by: org.hibernate.exception.ConstraintViolationException: could not delete: \[com.cenqua.crucible.model.FileRevisionExtraInfo#2775\]  
Caused by: java.sql.SQLException: ORA-02292: integrity constraint (ORA_FF_GIT.FKD3011B4773591D1A) violated - child record found

How can I solve this problem?

Regards, Juergen


Answers:
author: J?rgen Schranz BMW
body: Hi Nick,

Nope. I tried other things first.  

First, I restarted Fisheye. This did not fix the problem. Then, I found similar failure as described in CRUC-6097 in the log:

```
Caused by: com.atlassian.crowd.exception.OperationFailedException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
```

I decided to upgrade Fisheye from 2.10.7. to 3.3.0. before trying CRUC-6079. Fisheye executed some sql scripts on first start. All SQL script completed successfully.

The upgrade seems to be solved the problems. We tested several reviews. Everything works fine now. Also the old reviews work. I think the upgrade solved the data inconsistency in database too.

Thank you  
Regards, Juergen


author: Nick
body: Hey J?rgen,

Have you maybe hit this bug ? [](https://jira.atlassian.com/browse/CRUC-6079)<https://jira.atlassian.com/browse/CRUC-6079>

If so, we will be trying to fix that for the upcoming 3.4 release.

Cheers,

nick


Tags: fisheye-crucible-administration
Crucible 3.2.3 OOM issues
Asked by CTO Build, Run, and Architecture:

Last month, we upgraded to Crucible 3.2.3, and started noticing a memory leak issue with the tool. The leak seems to be associated with Fisheye scanning a large repository. The leak causes the server to restart - we have the default panic_on_oom turned on. The large repo in question did not index to completion with previous versions of crucible. The indexing would stop midway or error out without completion.

Have you noticed anything similar? Any tips on how to avoid the issue.


Answers:
author: gustavo_refosco
body: Hi,

It is not possible to determine exactly how much memory Crucible needs, as this would depend of things like size and complexity of repositories and its indexing operations, for example, so large and complex repositories will require sometimes a large amount of memory.

As you said this repository never got indexed, it seems it needs indeed more memory for it. The following document may be helpful in your case, as it points how to increase the memory available:

[](https://confluence.atlassian.com/display/FISHKB/Fix+Out+of+Memory+errors+by+increasing+available+memory)<https://confluence.atlassian.com/display/FISHKB/Fix+Out+of+Memory+errors+by+increasing+available+memory>

Attend to increase the -Xmx value, which is the maximum memory allowed for your Crucible instance.

You may also find valuable information in the following documents regarding the configuration of FishEye in order to get a better performance while indexing:

[](https://confluence.atlassian.com/display/FISHEYE/Best+practices+for+FishEye+configuration)<https://confluence.atlassian.com/display/FISHEYE/Best+practices+for+FishEye+configuration>

[](https://confluence.atlassian.com/display/FISHEYE/Improve+FishEye+scan+performance)<https://confluence.atlassian.com/display/FISHEYE/Improve+FishEye+scan+performance>
Permission scheme on fisheye/crucible
Asked by Rahul Aich [Nagra]:

Hi

When i create a repostory on fisheye i can specify which groups/user can view it.

Say my user tiger is not allowed to view the repository; however say another user adds tiger as a reviewer to a review which contains files in that repository which tiger is not suposed to view;

then ideally tiger should not be able to do the review ; but in my case he is able to see the files and do the review.

How can i get round this problem.

Rahul


Answers:
author: AafrinA
body: Hi Rahul,

<br />

Yes, the permission for groups can be set to allow the access for specific repository. The settings can be found under the admin settings page Repository Settings \> Repository. Select the repository and make the changes on the permission tab in the sidebar


Tags: fisheye-crucible-administration
Can we add more than 1 repository to 1 crucible project?
Asked by Rahul Aich [Nagra]:

HI All

At present it seems fisheye/crucible has this limitation that only one repository can be linked to one crucible project.

I have a use-case where i have tens of different repositories that i need to add to a crucible project. It does not make sense to have 10 projects for 10 different repositories espicially when all those 10 repositories correspond to the same module the same team is working on it.

How do i get round this problem?

I am on fisheye 3.2.2

Rahul


Answers:
author: Kelly Schoenhofen
body: Like @Chris Wundramsaid, you can add any changeset to a Crucible review; in a pinch or when you have a repo that is only going to *rarely* add to a Crucible project, that's your best bet.

THat said, Crucible supports both many-repos-to-one-project model, and vice versa - one repo can be in many Crucible projects. The UI isn't the greatest - you have to create the Crucible project against ***one***repo (Fisheye repo) to begin with, then go into the Admin cog and pick Projects, then edit the "Fisheye Content" of the Crucible project. You'll be right at the screen to add as many other Fisheye indexed repos as you want to your Crucible project. I believe that's what you are looking for.

I would guess 70% of our Crucible projects are each mapped to a single Fisheye repo; maybe 20% are mapped to 2-4 repos, and the last 10% are mapped to 10+ repos.

-Kelly Schoenhofen

comments: author: Rahul Aich [Nagra]
body: That helps Kelly, thanks.

Rahul


author: Chris Wundram
body: The linking of repository to project seems to just set the default repository. You can still add changesets from any repostory to your review. You are not limited by this.


author: Nick
body: You can link many repositories to a project.


Tags: project

repository
Marking crucible review comments as fixed/ignore/closed
Asked by Sven Rosvall:

When I work with a set of comments for my code review I'd like to have a workflow where I can tell if a comment has been addressed and been accepted by reviewers.

I compare Crucible to internal tools for code reviews at some large IT houses. These tools allows the author to mark comments as Fixed (or Resolved) or Won't Fix. The author then uploads a new iteration and the reviewers mark the comments as Closed or they can change the comment back to Open which means that the author has to do more work to address the comment. Authors and reviewers can filter the comments to only show comments that have not been closed yet.

Crucible has a feature to mark a comment as read. But this is personal and I cannot filter out read comments. I can only filter at file level. I use the Read/Unread marker to keep track of which comments I have addressed. But I'd like to see more such markers to support this workflow.


Answers:
author: Thomas Waldecker
body: This is now possible in Crucible 4.2:

<https://confluence.atlassian.com/crucible/crucible-4-2-release-notes-847744868.html>


author: Tini Good
body: Other tools definitely have better methods for handling this. Here's the closest workaround I've found with Crucible:

* Go to Administration \| Global Settings \| Crucible.
* Edit Defect Classifications \| Add a new Classification.
* Create a classification called Status.
* Ours has values for Open, Resolved, Postponed, Rejected, and Invalid. Every defect (but not Comment, sorry) now has a method for Reviewers to provide feedback on the author's edits so far.

Caveats:

* Crucible ignores these values when it comes to assessing whether a review is ready to close. We have to manually use Advanced Crucible Search to determine whether a review is really ready to close.
* Reviewers really need to have their profile set so that Crucible will "Uncomplete review if revision is added". It's the only existing method for notifying them that the Author has posted fixes to defects that require them to go update their defects.
* Only the Reviewers may change the Status of the defect. The Author has no way to "check off" items already completed.

Please go vote for [CRUC-6160](https://jira.atlassian.com/browse/CRUC-6160). You might also consider [CRUC-98](https://jira.atlassian.com/browse/CRUC-98).


author: stangladkov
body: Hello @Sven Rosvall and thanks for this question. As @Tini Good mentioned, the best way to contribute to this feature's future is to upvote those JIRA issues mentioned above. We are now planning lots of interesting updates to improve Crucible experience, so I just wanted to let you know that we will be considering to put this feature into our roadmap.

I can suggest you to monitor this two issues (<https://jira.atlassian.com/browse/CRUC-6160>, <https://jira.atlassian.com/browse/CRUC-98>) to stay in touch with the news.

Cheers,

Stan Gladkov

FishEye and Crucible Product Manager.


author: Sven Rosvall
body: Thanks Tini. That helps. Have voted for those feature requests, definitiely what I am looking for.
How to use Crucible for initial or periodic reviews
Asked by A. S. Budden:

We are currently trialling Crucible for use in combination with our existing JIRA installation and our Mercurial Server. Having tried it for a couple of days so far, we have been unable to actually create a meaningful review. We can review individual changesets, but this doesn't fit with our workflow and Crucible claims to be "Flexible". I've included a picture of our branching model at the bottom of this question.

We have tried to set up two types of review:

1. An initial review: review the state of an entire project at a given revision (as opposed to the things that changed in that revision). Typically this will be the first revision in a branch called "codereview".
2. A review comparing two specific revisions on the same branch. Typically these will be neighbouring commits to the "codereview" branch, but those commits will be merges combining a number of changesets into the "codereview" branch. Using crucible, these are shown as changesets in which nothing changes and hence there is nothing to review.

Point 1 in particular seems like a rather basic operation for a code review tool: surely in any project there's a bit of initial development to create the base project before it's reviewed. I don't want to review code that has been created when testing ideas and then deleted as no longer relevant. I can find no documentation on how to do this and have failed in any attempt to do so.

I've tried adding using "Browse Changesets", "Explore Repositories" and "Search for Files" (with every combination of options I can think of in both normal search and advanced search"). I also tried adding from the repository view, but got nowhere.

At the moment, I can't see how Crucible could possibly be useful for anything other than a web-development platform with a large team working on one product. We have a small team of about 20 engineers with each individual working on different products which are then reviewed at particular gateways by another engineer. We can't afford to have the other engineer reviewing every changeset regardless of whether it'll make it into the end product.

We're only two days into our 30-day trial of FishEye and Crucible, so I'm still holding out hope that we can manage to set up a review, but please can someone help with some basic instructions on how to do either (1) or (2) above?

A simplified drawing of our branching strategy. Note that between releases, there may be a large number of (unreviewed) changesets in default / feature branches between changes in the codereview branch.

![](../../upfiles/small_branch_strategy.png)


Answers:
author: Mark Jones
body: I'm feeling the same way here. Did you ever get any decent response from this that you could share here?

comments: author: A. S. Budden
body: No: no answer here or on Atlassian's commercial support page. In the end we cancelled at the end of the trial as it seems Crucible only supports on specific review model which isn't suitable for us.


author: Patrik Husfloen
body: It appears nothing has changed in 2 years.

Did you find a better review tool?
Internet Explorer 8 with Fisheye 3.3
Asked by Ludger Peters:

From what i understand starting with 3.3 fisheye will no longer support IE 8, Now i have allot of users that still use Internet explorer 8(one of the reasons we use portal and ie9+ breakes certain things, also some users are stuck in the stone age even though they are programmers) Also on our test systems we only have internet explorer running. So i would like to know what works and what does not work with fisheye 3.3 and IE8


Answers:
author: Nick
body: Most Atlassian products will be dropping support for IE-8 in new product versions this year I believe.

Whilst this browser will no longer be tested with new versions of FishEye/Crucible we will not be going out of way to break functionality either.

There is no list of known breakages in Ie-8 for FishEye/Crucible 3.3. The best way to know what works/doesn't work is to try it out.

comments: author: Ludger Peters
body: thanks will set up test enviorment. Will post my findings here


Tags: fisheye-crucible-administration
Does FishEye have the equivalent functionality of a pre-commit hook and commit acceptance plugin?
Asked by Greg Warner:

We've been usig a pre-commit hook and the JIRA commit acceptance plugin for many years. We're now using FishEye and I'm looking for equivalent functionality. We're planning to upgrade JIRA beyond the supported version of the commit acceptance plugin.

We require our developers to reference a valid JIRA key before commiting to any of our subversion repositories. Does this functionality exist in FishEye?

thanks.


Answers:
author: Midori
body: **[Commit Policy Plugin](https://marketplace.atlassian.com/plugins/com.midori.jira.plugin.jira-commit-policy-plugin)** **is a new, maintained JIRA add-on to replace the Commit Acceptance Plugin.**

It does everything the old plugin did, and a lot more by utilizing modern JIRA features like JQL, drop-in installation and the REST API. And, most importantly, it is updated for new JIRA versions.

Documentation: <http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/>


author: Gretchen
body: Well since FishEye is not a repository but a repository ***viewer*** the answer would be no. You don't commit anything to fisheye so there's no "action" available to hook onto.

This should be on your repository. SVN has pre and post commit hooks for this purpose. If you have access to your svn environment you can look in the hooks directory and you'll find template hooks there that you can use to edit for this purpose and save them as .sh (unix) or .bat/.cmd (windows) in order to enable them.

We have a number of hooks that do this. Simple ones just parse the comments for strings that resemble (but don't validate) valid issue numbers. For example:

-------------------------------------------------------------------------

@echo off

setlocal

set REPOS=%1

set TXN=%2

svnlook dirs-changed %REPOS% -t %TXN% \| findstr /b "\[Dd\]oc"\>nul

if %errorlevel% gtr 0 (goto wxyz) else exit 0

:wxyz

svnlook log %REPOS% -t %TXN% \| findstr /R /i "WXYZ-\[0-9\]\[0-9\]\[0-9\]\[0-9\]" \>nul

if %errorlevel% gtr 0 (goto abc) else exit 0

:abc

svnlook log %REPOS% -t %TXN% \| findstr /R /i "ABC-\[0-9\]\[0-9\]\[0-9\]"\>nul

if %errorlevel% gtr 0 (goto err) else exit 0

:err

echo - YOUR COMMIT WAS DECLINED - 1\>\&2

echo Please add a Jira issue number to your comment before you commit. 1\>\&2

echo Format Jira numbers like "WXYZ-1234", "wxyz-1234", or "ABC-1234 abc-1244". 1\>\&2

echo Separate with spaces if you have more than one to enter. 1\>\&2

echo \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~ 1\>\&2

exit 1

---------------------------------------------------------

Again, these have nothing to do with Fisheye. They are strictly SVN. You can refer to the Red Beans book (<http://svnbook.red-bean.com/>) for more information on SVN hooks.

There are ways to validate against JIRA id's and we are using them but I don't have access to the source code for those.


Tags: fisheye-crucible-administration
How to Audit Crucible licenses
Asked by Electrawn:

Environment:

10,000+ Enterprise Jira, Unlimited Fisheye but only 100 Crucible licenses.

Problem: Product doesn't manage licenses via LDAP and Crucible was autoadded to users that don't need the functionality from previous versions of Fisheye/Crucible.


Answers:
author: Electrawn
body: Assuming Your Database is MySQL, run this query against your Crucible/Fisheye database:

```
select distinct cru_user.cru_user_name,cru_crucible_enabled,from_unixtime(cru_recently_visited.cru_last_viewed/1000) as last_view from cru_user JOIN cru_recently_visited on cru_user.cru_user_name = cru_recently_visited.cru_user_name where cru_crucible_enabled=1 and cru_last_viewed = (SELECT MAX(cru_last_viewed) from cru_recently_visited WHERE cru_user.cru_user_name = cru_recently_visited.cru_user_name) UNIONselect distinct cru_user.cru_user_name,cru_crucible_enabled,from_unixtime(cru_recently_visited.cru_last_viewed/1000) as last_view from cru_user LEFT JOIN cru_recently_visited on cru_user.cru_user_name = cru_recently_visited.cru_user_name where cru_crucible_enabled=1 and cru_recently_visited.cru_last_viewed is null ORDER BY last_view
```

This query selects all the users from Crucible and their last login time. The union selects all the users who have crucible enabled but have never logged in. Finally, we sort by date.

You can export the query and have a system admin go in and manually delete users or enhance this to auto delete crucible licenses by setting cru_crucible_enabled to zero.

Figured this was worth sharing, enjoy.

<br />


author: Nick
body: Brand new in Crucible 3.3 is an Admin REST API for User and Group Management.

You could use the PUT method to toggle crucible access for each user: <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#d2e187>

comments: author: Sergey Svishchev
body: But last login date isn't available over REST...


Tags: fisheye-crucible-administration