youngmon/atlassian-qna huggingface dataset:
How can I customize diff algorithm in FishEye/Crucible
Asked by alexander-lutay:

Is it possible to change diff algorithm in FishEye/Crucible?

Consider the following case.

We have a text file shown below.

```
Brief Info   Type     : Rule-Obj-Model   Id       : TVSOrg-TVSApp-Work UndefinedParamDt   Label    : DT with undefined parameters   Avail    : Yes   RuleSet  : TVSApp:01-01-01   Check-In : NJA-405 CoR. Diff-algorithm in FishEye/Crucible Warnings   Informational       [Ninja] The following parameters are used without being declared on 'Parameters' tab: label2. Definition   1 : [Set] Param.label1 [equal to] "defined"   2 : [Set] .pyLabel [equal to] "New Value"   3 : [Set] Param.label2 [equal to] "undefined"    Call superclass data transform: true Parameters   label1 : String    : No  : IN  : "" : defined param History   Description       Not declared parameter is used
```

If we insert row in \[Definition\] section between row #2 and row #3 -- see changed file below.

```
Brief Info   Type     : Rule-Obj-Model   Id       : TVSOrg-TVSApp-Work UndefinedParamDt   Label    : DT with undefined parameters   Avail    : Yes   RuleSet  : TVSApp:01-01-01   Check-In : NJA-405 CoR. Diff-algorithm in FishEye/Crucible Warnings   Informational       [Ninja] The following parameters are used without being declared on 'Parameters' tab: label2. Definition   1 : [Set] Param.label1 [equal to] "defined"   2 : [Set] .pyLabel [equal to] "New Value"   3 : [Set] .pyNote [equal to] "Absolutely New Value"   4 : [Set] Param.label2 [equal to] "undefined"    Call superclass data transform: true Parameters   label1 : String    : No  : IN  : "" : defined param History   Description       Not declared parameter is used
```

Notice, that row numbers are changed respectively.

Then FishEye treats such change as removal of row #3 and addition of a new row and row being a copy of row #3 -- see screenshot below.

![diff.png](/t5/image/serverpage/image-id/956i8394610A3D2B6FFB/image-dimensions/664x252?v=v2 "diff.png")  
Is it possible to customize diff algorithm to treat such change as addition of a new row between two existing that were slightly modified (row numbers were chaged).


Answers:
author: Piotr Swiecicki
body: I'm afraid it's not possible at the moment, vote on and watch the <https://jira.atlassian.com/browse/CRUC-7491> issue please to get updated when this gets implemeted.
Why are Crucible top comments are always hidden by CSS?
Asked by Lucas Paulger:

![Screen Shot 2017-04-26 at 10.55.35.png](/t5/image/serverpage/image-id/936iA3E96058FD664A29/image-size/large?v=v2&px=999 "Screen Shot 2017-04-26 at 10.55.35.png")What I see is the top comment is hidden due to the .comment-list class' overflow:hidden property (see image below) When I remove the overflow: hidden it appears as normal.

![Screen Shot 2017-04-26 at 10.56.29.png](/t5/image/serverpage/image-id/937iD29279B1A38C6BDE/image-size/large?v=v2&px=999 "Screen Shot 2017-04-26 at 10.56.29.png")

I've removed all chrome extensions in hope that this was the issue, but its still occuring, anything else I can do to fix this or is it a bug with the tool?

This is happening only in Chrome and on Mac OSX. I can view crucible comments fine in Firefox and also on Windows in Chrome. But this issue is recent, within the last few months I believe.  

Thanks


Answers:
author: Vitalii Petrychuk
body: What version do you use? I've checked the most recent one (4.4) and it has \`overflow\` set to \`visible\`.

![Screenshot 2017-05-05 15.01.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/950iB1914D3682E7254F/image-size/large?v=v2&px=999 "Screenshot 2017-05-05 15.01.32.png")

comments: author: Lucas Paulger
body: Version:3.10.2 Build:20151130101412 2015-11-30  

I'm not in control of the updates but perhaps I can put in a request to update


author: Vitalii Petrychuk
body: This version, unfortunately, has overflow set to hidden.  
I would suggest you request upgrading to the most recent version of Crucible.

BTW according to [Atlassian Support End of Life Policy](https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html) 3.10 version support ends on Oct 28, 2017. So upgrading makes sense.


Tags: bug

css
How to add custom verbiage to crucible header or footer
Asked by jirajester:

I added the verbiage to these files and did a restart but the verbiage did not show up

/opt/atlassian/crucible/content/WEB-INF/tags/cru/footer.tag  


Answers:
author: Marek Parfianowicz
body: Please note that in standard Fisheye/Crucible installation all JSP and tag files is empty (content/WEB-INF/jsp and content/WEB-INF/tags). The reason is that Fisheye/Crucible comes with precompiled JSP files.

In order to customise JSP templates you have to install the JSP-source build of Fisheye/Crucible. You can get it if you own a commercial license. See this article:

[https://confluence.atlassian.com/fisheye/customizing-fisheye-s-look-and-feel-298976939.html](https://confluence.atlassian.com/fisheye/customizing-fisheye-s-look-and-feel-298976939.html?)


Tags: custom-field

footer
getCommentResolution not available in API
Asked by Thomas Moeck:

Hi there,

although the new feature is documented for version 4.4.0 (see here: <https://docs.atlassian.com/fisheye-crucible/4.4.0/javadoc/com/atlassian/crucible/spi/services/ReviewService.html#getCommentResolution-com.atlassian.crucible.spi.PermId->), when I try to use this function in the Crucible API, I get:

```
cannot find symbolsymbol: method getCommentResolution(com.atlassian.crucible.spi.PermId<com.atlassian.crucible.spi.data.VersionedLineCommentData>)location: variable reviewService of type com.atlassian.crucible.spi.services.ReviewService
```

I'm using Fisheye/Crucible version 4.4.0 from my local SDK. My code:

```
if (mComment instanceof VersionedLineCommentData){    VersionedLineCommentData versionedLineComment = (VersionedLineCommentData)mComment;    reviewService.getCommentResolution(versionedLineComment.getPermaId());
```

So, it seems to be a bug in the API. The function is documented but not present.

Did someone have the same issue? Is there a resolution?


Answers:
author: Marek Parfianowicz
body: Are you sure you have FishEye 4.4.0 dependency in your pom.xml?

I checked binaries from 4.4.0 installation and this method is present:

```
$ jar -xf fecru-4.4.0/lib/atlassian-fisheye-api-4.4.0-20170412122150.jar com/atlassian/crucible/spi/services/ReviewService.class

$ javap com/atlassian/crucible/spi/services/ReviewService.class | grep getCommentResolution

  public abstract com.atlassian.crucible.spi.data.CommentResolutionData getCommentResolution(com.atlassian.crucible.spi.PermId<com.atlassian.crucible.spi.data.CommentData>);
```


Tags: api

bug

sdk
Source code view from fisheye is missing a few lines
Asked by bnc user:

We use CVS as our VCS, and when we try to see the diff or the entire source file through fisheye, it is missing a few lines from the current version of the file.

I came across this while viewing source in CVS and then trying to do the same through fisheye, and what is missing is the comment on line 15


Answers:
author: Marek Parfianowicz
body: Could you please redact your question and provide more details? Otherwise, there's no chance to get an answer...
"Summarize" button missing in code review
Asked by Ken Swearengen:

I have a completed code review, but am unable to see the summarize button at the top -- my only options are "Edit Details", "Abandon Review", "Share", and "Tools". Never had this happen before...


Answers:
author: Marek Parfianowicz
body: Please check how review workflow is configured for your project in Crucible (Administration \> Projects). You should have the moderator role enabled. Check also if you have a permission granted to summarise a review.

Some lecture for you:

* <https://confluence.atlassian.com/crucible/the-crucible-workflow-298977485.html>
* <https://confluence.atlassian.com/crucible/enabling-the-moderator-role-298977546.html>
* <https://confluence.atlassian.com/crucible/moderator-298977339.html>
* <https://confluence.atlassian.com/crucible/summarizing-and-closing-the-review-298977454.html>
* <https://confluence.atlassian.com/crucible/permissions-in-crucible-298977338.html>
TestTrack to Jira (How to sync jobs in p4)
Asked by Noam Dahan:

Importing from TestTrack to jira, any ideas on how to have the jobs created from TestTrack to be shown and synced with the new jira issues?


Answers:
author: Craig Nodwell
body: Are these new issue you are creating during the import? Or are these new issues that get created during the regular work cycle?


Tags: jira
Change Fisheye Logo
Asked by JongBum Lee:

Dear All.

I would like to know how to change the fisheye logo.  
I try this url

(<https://confluence.atlassian.com/fishkb/how-do-i-change-the-fisheye-crucible-header-logo-634454256.html>)

but not work.  

Tell me how  

Thanks.  
Best Regrads.


Answers:
author: Karalee Kikiros
body: Have you restarted?
Crucible Workflow: Flag defect without causing participants to resume reviewing
Asked by Stephen Decker:

Hi,

I'd like to know if its possible to flag a defect in a Crucible review without causing all participants to resume reviewing.

Scenario: There are a handful of participants on a review, several of which have gone through the review and made all comments they are going to make and so they mark the review complete. Another partipant, Gerald, comes along and makes a comment, which he flags as a minor defect. So now Gerald and the moderator have a conversation thread and drive it to resolution.

Problem: When Gerald flagged a comment as a defect, all of the reviewers who had completed the review are now required to review that defect and mark the review as complete again.

Desired Workflow: I would like participants to be able to choose whether or not a particular defect will cause other participants to resume reviewing. This could be either a configuration for various levels of defects, or a checkbox that a participant could check when creating a defect. This would be particularly helpful for minor defects.


Answers:
author: Grzegorz Lewandowski
body: Hi, the workflow you desire is not possible in Crucible. Defects and resuming to reviewing upon raising them was designed to be configurable per reviewer, as per: *I want to be resumed to a review once somebody raises a defect*. Every Crucible user can change this setting for himself in user profile.

![defect_uncomplete..jpg](https://community.atlassian.com/t5/image/serverpage/image-id/659i630C67B51C130797/image-size/large?v=v2&px=999 "defect_uncomplete..jpg")

comments: author: Stephen Decker
body: That's not exactly how I was hoping it would work but it's pretty close, thanks! I didn't know that setting existed and hadn't come across it in the docs.


Tags: comment

defect

review

workflow
Adding an SVN Repository it appears path only accepts one path and not a list?
Asked by Bruce Summers:

Inside of one subversion repo we have the following

?TWsdl/  
?TAccSummary/  
?TCommon/  
?TCommonWsdl/  
?TMMovement/  
?TNewAccountTool/  
?TPortal/  
?TWires/

This is actually multiple projects and I want to allow only two of the above to be scanned for reviews. Is there a way to do that?


Answers:
author: Jeff Thomas
body: Hi Bruce,

You should be able to use Includes to limit which paths that will be indexed. Checkout the documentation at [Include Exclude paths](https://confluence.atlassian.com/fisheye/include-exclude-paths-298976903.html) and let me know if you have any questions.

Cheers,  
Jeff
Configuring regular expression in Fisheye for SVN Symbolic Rules
Asked by CanTech SDE Team:

I'm attempting to configure a repository using SVN Symbolic Rules because my repository uses uppercase Trunk, Branches, and Tags instead of the expected lowercase. But I'm having trouble getting the Regular Expression correct.

The repository takes the form:

* <https://svn.myrepository.com/svn/ABC/MyProject/Trunk/Some.config>
* <https://svn.myrepository.com/svn/ABC/MyProject/Branches/Some.config>
* <https://svn.myrepository.com/svn/ABC/MyProject/Tags/Some.config>

As an example, for the Trunk, I tried the regular expression:

```
Regular Expression: ([Tt]runk){1}(.[^\/]+)
Name: ${1}
Logical Path Prefix: ${2}
```

When I run the URL using the Test Path:

<https://svn.myrepository.com/svn/ABC/MyProject/Trunk/Some.config>

It comes back with "No Logical Path"

I also tried using some of the examples I've seen in Atlassian's documentation, but they also don't seem to work.

```
Regular Expression: Trunk/([^/]+)Name: ${1}Logical Path Prefix: <blank>
```


Answers:
author: Felipe Kraemer
body: Hello!

It looks like these are not among the default presets, so please make sure that you have "Use Built-in Symbolic Rules" unticked, and the "And then Apply the Following Rules" set to "Custom".

Also, please note that you can have more than one rule for the trunk / branches / tags structure by clicking the "Add" link next to them, so you can use more than one Regular Expression for each.

For example:

Here you can see that I have a file at "/trunk/file.txt".

![Screen Shot 2017-10-11 at 17.32.03.png](https://community.atlassian.com/t5/image/serverpage/image-id/7590iD68A10E897FA2629/image-dimensions/610x492?v=v2 "Screen Shot 2017-10-11 at 17.32.03.png")

Now, have a look at the SVN Symbolic Rules:

![Screen Shot 2017-10-11 at 17.31.06.png](https://community.atlassian.com/t5/image/serverpage/image-id/7591iE805EB06A56FA32D/image-dimensions/598x431?v=v2 "Screen Shot 2017-10-11 at 17.31.06.png")

As can be seen here, I have defined more than one Regular Expression for Trunk, for Branches and for Tags, in order to make things easier.

When I typed the path "trunk/file.txt" and hit the "Test path" button, it was recognized as valid. If I modify the path to "Trunk/file.txt", it is also recognized as valid.

I hope this helps!


Tags: svn
How to add appliction link to repos in Fisheye using REST API
Asked by jameshartleroad:

I'm looking at using the REST API to add our BitBucket Repos to Fisheye and would like to add an application link to JIRA once the repository is created.

Is there a way to add application link through the REST API?


Answers:
author: Craig Nodwell
body: Sorry this can only be achieved via the UI


Tags: fisheye-crucible-administration
Setup Crucible to use JIRA user logins
Asked by Andy Caan:

Hi,

<br />

I am new to JIRA. I have installed the evaluation version of JIRA, Confluence, BitBucket, FishEye and Crucible in the same computer.

The login integration between Confluence \& BitBucket and JIRA is fine.  
I can use the existing users in JIRA to login to Confluence and BitBucket.

However, I cannot use the existing users in JIRA to login to Crucible/FishEye.  
Crucible/FishEye recognizes the users as I cannot create the same users again. But somehow, even with the right password, cannot login.

In Crucible/FishEye, I granted the JIRA software group to have Crucible/FishEye access.  
Still, login for JIRA users does not work. Any idea?

<br />

For "User Directories", do I have to do something?  
Currently, there are two rows in "User Directories":

Internal Directory (inactive) Internal Enable

JIRA Server (inactive) Atlassian Crowd Enable (Synchronisation failed, but I do not recall I ever install Crowd)

Do I need to "Add Directory" Atlassian JIRA? If yes, where can I find the application name and password?

Thanks

Andy


Answers:
author: Marek Parfianowicz
body: 1. Go to the **Administration \> Users** and check if you see users from your Jira instance.

2. If not, go to the **Administration \> User Directories** and check if synchronisation with Jira user directory is complete. You've mentioned that you have the error message there - this could be a reason. Check logs what happened. In case you couldn't find anything in logs, enable debug logging via **Administration \> Server \> Debug Logging** to get more information.

3. Once synchronisation is complete, go to the **Administration \> Security Settings \> Global permissions** and check if your users coming from the Jira directory have the 'FishEye user' or the 'FishEye \& Crucible user' permissions granted.

comments: author: Marek Parfianowicz
body: Regarding your question:
> Synchronisation failed, but I do not recall I ever install Crowd.

You may see "Crowd" keyword in messages or logs, because Fisheye and Crucible use the "Embedded Crowd" component to manage user directories.


Tags: authentication

jira
Mercurial connection with Fisheye is breaking with error: com.cenqua.fisheye.rep.RepositoryClientExc
Asked by Sharda Gupta:

Mercurial version:. 4.1.2 x64(tortoise hg) downloaded from [https://www.mercurial-scm.org/downloads](https://www.mercurial-scm.org/downloads?)

python version: 2.6

fisheye and crucible version: 3.7.0

Os: windows 10

solutions tried:

1) creating mercurial.ini

2) modifying the hgfelog.py file inside the FishEye installation directory

Kindly suggest the solution

error:

Repository index failed due to error com.cenqua.fisheye.rep.RepositoryClientException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: \*\* Unknown exception encountered with possibly-broken third-party extension felog \*\* which supports versions unknown of Mercurial. \*\* Please disable felog and try your action again. \*\* If that fixes the bug please report it to the extension author. \*\* Python 2.7.10 (default, May 23 2015, 09:44:00) \[MSC v.1500 64 bit (AMD64)\] \*\* Mercurial Distributed SCM (version 4.1.2) \*\* Extensions loaded: felog Traceback (most recent call last): File "hg", line 49, in \<module\> File "mercurial\\dispatch.pyo", line 63, in run File "mercurial\\dispatch.pyo", line 129, in dispatch File "mercurial\\dispatch.pyo", line 219, in _runcatch File "mercurial\\dispatch.pyo", line 227, in callcatch File "mercurial\\scmutil.pyo", line 152, in callcatch File "mercurial\\dispatch.pyo", line 208, in _runcatchfunc File "mercurial\\dispatch.pyo", line 761, in _dispatch AttributeError: 'function' object has no attribute 'norepo' com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: \*\* Unknown exception encountered with possibly-broken third-party extension felog \*\* which supports versions unknown of Mercurial.


Answers:
author: Grzegorz Lewandowski
body: Hi, [FishEye 3.7](https://confluence.atlassian.com/display/FISHEYE037/Supported+platforms) doesn't support Mercurial 4.1. However, [4.4 does](https://confluence.atlassian.com/fisheye/fisheye-4-4-release-notes-890941688.html). You need to update your FishEye\&Crucible instance in order to get support for Mercurial 4.1.

comments: author: Sharda Gupta
body: Thank you Grzegorz for the instant reply. Could you please help me which version of Mercurial will be supported by Fisheye 3.7? Because I have to test onFisheye 3.7 only.


author: Grzegorz Lewandowski
body: Take a look at the first link. There is a full list of supported versions but generally:

\* 3.0 - 3.2

\* 2.0 - 2.9

\* 1.5 - 1.9


author: Sharda Gupta
body: thank you very much! :)
Repository delete form Crucible.
Asked by Mohamad Nizamuddin:

Suppose we have add a repository in fisheye and crucible.after some time we need to delete the repository from the fisheye and crucible. when we delete repository from fisheye and crucible. is this affect or delete the repository from the SVN as well?

Please confirm, while i'm new to this and first time i'm using this for POC purpose. so that i suggest in my team.

Crucible is available in my system : C:\\Atlassian\\fecru-4.3.1\\bin

URL:http://localhost:8060/admin/admin.do


Answers:
author: Jeff Thomas
body: Hi,

Deleting the repository from FishEye/Crucible will not delete the repository from the remote SVN server. FishEye/Crucible are read-only for the remote repository, so you can safely delete the repository and the remote SVN repository will remain untouched.

Cheers,  
Jeff

comments: author: Mohamad Nizamuddin
body: Thanks Jeff.
Code Reviews disappeared after changing repo path
Asked by Ben Rebadow:

I had a customer ask to relocate a project in a repo, from one repo to another, on the same SVN server. I stopped the Crucible repo until the move was complete and then updated the path in Crucible to the new location of the repo and then started the repo again in Crucible. After changing this path, my customer said that his code reviews have disappeared from Crucible. I doubled checked the path and then re-indexed the repo in Crucible, but the code reviews are still missing.

Is it possible to get the reviews back from somewhere or know why this would happen?


Answers:
author: Marek Parfianowicz
body: > After changing this path, my customer said that his code reviews have disappeared from Crucible.

Could you please clarify what do you mean that reviews have disappeared?:

* they are no longer visible in the Crucible project or
* they are visible but you are unable to see diffs in a the review

If this is the first case, then please explain in more details how did you perform the repository move. I suspect that you deleted a Crucible project (with all it's reviews) and next created new one. If yes, then your reviews are lost and you'd have to restore them from backup.

If this is a second case, then the most probably you had the 'store diff content' option disabled in your Crucible project. Please check it in the admin panel. When this option is enabled (which is default) diffs being part of a review are persisted in a database, so even if the repository is deleted, you can still see them.

comments: author: Ben Rebadow
body: It turns out that the issue was because the revisions, for the project copied, were different in the source repo than they ended up being in the destination repo, therefore the Crucible reviews will not show because the revision numbers for the reviews no longer match up. We have discouraged our engineers from moving projects out of SVN repos, and into new ones, if they have Reviews that need to be kept alive in Crucible.


author: Marek Parfianowicz
body: \> We have discouraged our engineers from moving projects out of SVN repos.

Could you specify, please?

Does it mean that you migrated **part** of your SVN repo to another SVN repo (using svnadmin dump + svndumpfilter commands)? If yes then what settings did you use? I am asking, because it should be possible to keep numbering of revisions in such new repository - just don't use --drop-empty-revs option.

In case you migrated your SVN repo to another SCM system (e.g. Git), then indeed, due to completely new commit hashes, Crucible will not be able to link files in code reviews with the new repository. However, as I wrote before, having the "Store the contents of files in reviews" option enabled (it's enabled by default) will allow you to see diffs even if repository is migrated (you won't be just able to easily click to see the entire file content).


Tags: repository