youngmon/atlassian-qna huggingface dataset:
Failed to create branch
Asked by Tom:

When I try to create a branch with these info, error occured.

- Branch Type ?Custom

- name?Check/20240113

The error message is as follows: "Failed to create branch."

Invalid branch name.bugfix/20240113 does not match regex \^(develop\|(release\|feature\|work)/\[0-9a-zA-Z_/.\\-\]+)

Could anyone tell me the reason?

Best regards.

Tom


Answers:
author: Aman Shrivastava
body: Hi Tom,

Welcome to the Atlassian community.

I suspect the Bitbucket administrator has configured some restrictions on the naming convention on the branch using third-party plugins. The regex used in the rule is "**\^(develop\|(release\|feature\|work)/\[0-9a-zA-Z_/.\\-\]+)**".

<br />

To help you align your branch name with the rule, you may decode the regex from any of the sites available on the Internet. I am providing you a screenshot of the decoded version of regex. One of the examples of the branch name would be **release/20240113** .  
![Screenshot 2024-02-05 at 3.51.48?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/304303iD63FE705F5CC9893/image-size/large?v=v2&px=999 "Screenshot 2024-02-05 at 3.51.48?PM.png")

As an alternative, you can get in touch with the Bitbucket administrator at your company to request an exclusion or learn more about the limitations on branch creation.  

Regards,  
Aman


Tags: bitbucket-server

server
Watch a specific branch on Fisheye
Asked by grumpasaurus:

Is there any way to watch a specific branch on Fisheye?

Say I only care about when users merge into the Develop Branch, is there any way I can have a feed or notification for that?


Answers:
author: Maciej Swinarski
body: Hi,

Go to the \[repository\] \> Files \> select the branch and press Tools/Watch.

You can see the list of your watches in your Profile settings / Watches and the watch on your branch should have a single contraint set: branch=\[branch name\]

Mac
Fisheye shows a diff, Crucible says "No change"
Asked by Kelly Schoenhofen:

Odd issue, and I'm not convinced it's a bug, I think I'm just missing something.

A user created a Crucible review (we're on v3.3.1) and on 2 of the 4 files in the review, Crucible shows the two changesets it should be diffing (let's say AAAAAA and BBBBBB) but then below it says "No change". If I go to Fisheye and compare AAAAAA to BBBBBB, it clearly shows the change.

Why would Crucible say "No change" when Fisheye shows the change?

-Kelly Schoenhofen


Answers:
author: Jon Gunnip
body: Had same issue. We use SVN. Worked around it by creating a patch (svn diff -c \<rev\> \> \<rev\>.patch) and basing the review off of the patch instead.


author: Brandon Brigham
body: Our SCM is SVN/Subversion, however, not Git as the original issue author noted.


author: Brandon Brigham
body: I seem to be running into the same exact problem. Are there any updates on this? Was a root cause identified and resolved? Thank you.


author: Kelly Schoenhofen
body: No, the developer (in this specific instance, I'm going to just pick one file doing this behavior) added four lines. Our SCM is git (Stash). While in Crucible, you can click on the Fisheye pulldown arrow on the right, click File Diff, and it displays the diff perfectly. The url in the file diff is exactly the two revisions Crucible says "No change" to.


author: Tom Davies
body: Are the changes whitespace only?

Which version control system?
What is Fisheye evaluation administrator user ID?
Asked by Maciek Samsel:

What is admin user ID?


Answers:
author: Jeff Thomas
body: I don't believe there is an administrator account, only a password to access the admin section of Fisheye. After you've logged in to the admin section, you can create users with admin privileges.

comments: author: Maciek Samsel
body: I am not sure what's administrator section. There is only few controls not saying "administrator" just after registering evaluation. There is also login control, but it requires user ID. Hence I am asking the question.


author: Jeff Thomas
body: During the 4th step of installing Fisheye, you setup an admin password. When you go to [](http://fisheye.company.com/admin/)<http://fisheye.company.com/admin/>you'll be prompted to enter that admin password. Once you're in there, you can grant the administrator priviledge to a user.
How can I apply Fisheye in my current development enviroment?
Asked by david bong:

Dear Atlassian support team,

Would appreciate if your team could just explain to me , what excatly is Fisheye and how does it apply and helps in my development team and enviroment.

Thank you.


Answers:
author: Piotr Swiecicki
body: At the risk of stating the obvious, have you took a look at [FishEye Feature Tour](https://www.atlassian.com/software/fisheye/overview/feature-overview "FishEye Feature Tour")? It should answer your question, but I would be more than happy to help if you have further questions.

Kind regards,  
Piotr
Crucible - Reindex
Asked by Constantin Scheuermann:

Hi there,

i am totally new in Crucible and would like to know what re-indexing exactly means. What does it re-index? The SVN or something local, restricted to the Crucible instance.

Can somebody help me out?

Thanks in advance


Answers:
author: lpater
body: Hi Constantin,

a Crucible reindex (available in Global Settings/Crucible/Re-index) doesn't reindex any repository caches or indexes. Instead it recreates the Lucene index for Crucible reviews and comments, based on the data in your database. The Lucene index is used to populate review dashboards, and to do review search.?

You shouldn't ever need to do it in normal usage. It is useful if the indexes get corrupted somehow, or if you manually modify/restore the database.


author: Constantin Scheuermann
body: Hi Kelly, hey Lukasz,

okay that was my concern that something influences the source repository. It's not in our reponsibility, thats why i need to be sure that nothing is changing it.

Somehow after my initial import crucible wants to reindex.

Thanks for your fast replies as always :)

Greetings Constantin


author: Kelly Schoenhofen
body: Mmm, I think you mean the SCM reindexing options in the Fisheye admin page on the repo?

There is a little (?) popup next to almost each of the options I believe, and they give abit of help. We use git with Fisheye/Crucible, not Svn, but I believe they act the same - all the reindexing is in the Fisheye/Crucible database, nothing goes back to your source control system.
Fisheye installation
Asked by Rahul Aich [Nagra]:

Hi

I have recently installed fisheye on linux environment.

I am trying to change the bind port from the default port 8060 to port 80 (so that i dont have to give port number in the URL)

When i change the port in the config.xml it does not accept port 80 (fishey does not start with port 80)

If I give any other port (say 8061, 8062, 8080 etc..) in the config.xml, it works (fisheye starts normally)

How can i get fisheye to start up on port 80?

Rahul


Answers:
author: Piotr Swiecicki
body: Hi Rahul,

In \*nix systems ports in range 1..1023 are called privileged ports and only processes owned by root user would be able to bind to those ports. I'm guessing this is the reason why you can't run your server on port 80.

There are few alternatives you can consider to solve this problem:

* start FishEye as a root user - NOT RECOMMENDED, this is considered bad practice from security perspective, potential JVM vulnerabilities can be used by malicious attackers to take control of your machine
* set up reverse proxy on port 80 that would internally route all the traffic to FishEye instance listening on non privileged port. Typically nginx or apache server would be used, see [](https://confluence.atlassian.com/display/FISHEYE/Integrating+with+other+web+servers)<https://confluence.atlassian.com/display/FISHEYE/Integrating+with+other+web+servers>
* alternatively you could set up web server (apache, nginx, etc.) on port 80 which would automatically redirect clients to unprivileged port

I hope that helps.  
Kind regards,  
Piotr

comments: author: Rahul Aich [Nagra]
body: Thanks Piotr, we got round this problem by setting up reverse proxy in front of fisheye server.

Rahul


Tags: fisheye-crucible-administration
Seeing difference from branch create using SVN and Crucible
Asked by Eric Heitmuller:

Hello,

I am currently evaluating crucible and have managed to successfull hook it up to our SVN repository, however I am having a problem when creating reviews.

When branching off of trunk and creating a commit, I am able to add the commit to the review and see the files that have been changed, but only the entirey of the file without the color coding I typically see when changes in between commits are shown.

Is there a way to have the start of the branch as an "initial commit" to compare my changes against - therefore seeing the color coded differences with only 1 commit?


Answers:
author: lpater
body: Hi Eric,

This should happen by default - you should be able to see differences made in the changeset you've added to the review.

Please make sure that the 'Add to Review as:' option is set to 'Diffs' when adding the changesets to the review (setting it to 'Whole files' would cause the behavior you described.

comments: author: Eric Heitmuller
body: Hi Lukasz,

Unfortunately I have selected adding to review as Diffs up until this point, I'm still shown the whole file.
Bulk edit for changing Fisheye User Auth Type
Asked by Chris JP:

After integrating Crowd with Fisheye is there a way to change all the users Auth Type from "built-in" to "crowd" or will this have to be done for each individual user manually?

Fisheye - v3.2.0

Crowd - v2.7.0

Thanks,

Chris


Answers:
author: Maciej Swinarski
body: Hi Chris,

In FishEye 3.3 you could use the new user management endpoint:

```
PUT: /rest-service-fecru/admin/users/{name}{ "type":"crowd" }
```

In FishEye 3.2 you would have to do it manually (or modify the DB manually: cru_user.authType - not recomended).

mac

comments: author: Chris JP
body: Hi Mac,

Is there any doucmentation on the new user management endpoint? I haven't been able to find any as of yet.

Thanks,

Chris


author: Maciej Swinarski
body: Hi Chris:

Here they are:

users: [](https://docs.atlassian.com/fisheye-crucible/3.3.0/wadl/fecru.html#d2e131)<https://docs.atlassian.com/fisheye-crucible/3.3.0/wadl/fecru.html#d2e131>

groups: [](https://docs.atlassian.com/fisheye-crucible/3.3.0/wadl/fecru.html#d2e2)<https://docs.atlassian.com/fisheye-crucible/3.3.0/wadl/fecru.html#d2e2>

Mac


Tags: fisheye-crucible-administration
Mentions in Crucible
Asked by E:

we have a large group using crucible (3.2) and typically our managers will @mention our PM's and developers to followup on items. Is there a way to see all these mentions to search against them? We are finding that people don't "see" them all the time like in JIRA or Confluence


Answers:
author: Nick
body: Comments are stored as \[\~username\] in the comment text wikimarkup, so you can do a comment search for the string "\[\~" to see all comments in all reviews. Sorting "By date" will help too.

e.g. [](https://fisheye1.atlassian.com/qsearch?q=%5B~&t=6&s=0)[https://fisheye1.atlassian.com/qsearch?q=%5B\~\&t=6\&s=0](https://fisheye1.atlassian.com/qsearch?q=%255B%7E&t=6&s=0)

I'd be interested to hear however why you think that people don't see the mentions in Crucible as they do in JIRA or Confluence. ie. Are they getting the emails ?

comments: author: Piotr Swiecicki
body: fixed link: [](http://go.atlassian.com/fisheye-mention-search)<http://go.atlassian.com/fisheye-mention-search>


author: E
body: Thanks Nick this "helps" but still looking for something more obvious.

my users DO get emails but only when they are part of the review. and they don't call out that they were mentioned in a comment like in Confluence and Jira. "XXX mentioned you in a comment" or "you were tagged in a post" kind of emails.

So the PM's and other users have to read each and every comment to see if they were tagged or not. this is ok for developers as they need ot be reading this but not all my PM's are technical so they get lost quickly.

Also in confluence we get the nice little alerts and even i jira i believe there are gadgets which show this but more importantly on both systems the emails are more specific.


author: Nick
body: Ah - I think any user who is mentioned, regardless of being on the review or not, should receive a mention an email.

If this is not the case, please let me know.
Timeout during adding git repo (file protocol)
Asked by Micha? Wieczorek:

I want to add git repository to fisheye. (fisheye and git installed locally on my windows desktop)

Repository location: file:///E:/GitRepos/test

When I click 'test connection I get (debug mode on):

```
Exception executing command "C:\Git\bin\git.exe ls-remote -h file:///E:/GitRepos/test" process timed out com.atlassian.utils.process.ProcessTimeoutException: process timed outError testing connection.Error talking to repository: at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:148)at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:442)at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:588)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)Connection failed.
```

But I'm able to execute command "C:\\Git\\bin\\git.exe ls-remote -h file:///E:/GitRepos/test" in console (also as a fisheye service user account).

What do I have to change to add local git repo to fisheye?


Answers:
author: lpater
body: Hi Michal,

are you running FishEye as a service, or interactively? If you're running interactively it might be worth checking the console to see if git isn't trying to get some input from the user, and FishEye times out waiting for it to end executing.

Other than that it should be able to index local repositories with the path provided. If you continue having trouble do raise a [support request](https://support.atlassian.com/). Include a support zip with debug logs attached as described [here](https://confluence.atlassian.com/display/FISHEYE/Contacting+Support).

comments: author: Micha? Wieczorek
body: I'm running FishEye as a windows service. Service user has access to git folder.

I'll try to run interactively and then I'll raise a support request.

Thanks.


author: Micha? Wieczorek
body: waiting for support request answer


Tags: fisheye-crucible-administration
Empty changeset in Crucible
Asked by Chris:

When attempting to add an empty Git changeset to a Crucible inspection, Crucible goes through the process but doesn't actually add the changeset. This causes the changeset to not appear to have been inspected in JIRA and causes issues downstream.

Any ideas how to add an empty changeset to an inspection, or how to give the empty changeset inspection credit?

Thanks.


Answers:
author: lpater
body: Hi Chris,

this is not currently possible - you can't add empty changesets to reviews, and there's no way to mark changesets as reviewed manually.

[](https://jira.atlassian.com/browse/CRUC-6393)<https://jira.atlassian.com/browse/CRUC-6393>is a feature request for a similar functionality - please vote on it, and add a comment if it's missing something you'd like to see.

comments: author: Chris
body: Thanks for the response. I suspected that was the case. I've added a vote to CRUC-6393; hopefully it will be added at some point.

Thanks.
Deleting a FishEye user
Asked by boerh (AC):

I have a license to create 50 FishEye users and am running into this limit currently. I can't create a new user without deleting an existing user. There are a number of users that are not active anymore and that I'd like to de-activate. However, there is no such functionality in FishEye. I don't know what will happen if I delete a user. Will the user information get lost in for example code reviews or code commits? I can't find any information in the FishEye documentation about this. Please advise.


Answers:
author: Piotr Swiecicki
body: Hi Hugo,

It's documented in [](https://confluence.atlassian.com/display/FISHEYE/Deleting+or+deactivating+a+user)<https://confluence.atlassian.com/display/FISHEYE/Deleting+or+deactivating+a+user>and this is pretty common practice for customers to delete unused FishEye users to make room for new ones without extending the licence. You can safely rely on this and rest assured this won't cause any issues.

Hope that helps,  
Piotr


author: Jeff Thomas
body: Hugo,

I just deleted a user on my test system to see what would happen. I have both Fisheye and Crucible.

If you have Crucible and the user is involved in any reviews, they still still show up in the review, but as a deleted user. Their name will appear as "Name (deleted user)". All comments and reviews were still there.

For Fisheye, the commit data still contains the author of the commit, so you'll still see the information in the original commit. The commit just won't be linked to a Fisheye user's account.

Let me know if you'd like to me look at anything else.

Cheers,

Jeff

comments: author: boerh (AC)
body: Thanks Jeff for your quick response. So, if a user gets deleted the commit data still contains the author name and for reviews the user name will also still be there. That's reassuring.

Do you know of any other placed in FishEye and Crucible where deleting a user could lead to issues/data loss? I don't have a test environment readily available and if I did I wouldn't know what exactly to check. Commits and reviews are the most important part but maybe there are other places that need to be checked?

Regards,

Hugo


Tags: fisheye-crucible-administration
Code statistics of specific branch for current week
Asked by sschuberth:

I just started using Crucible / FishEye on top of a Git repository. To get a feeling how much our code base is in a state of flux, for a specific branch, I'd like to see the amount of code changes (lines added / removed) in relation to the total lines of code for the last 7 days / the current week. I tried to come up with something using EyeQL but failed miserably at even getting the syntax right (I always get "unexpected token: thisweek" no matter how I try to use the "thisweek" keyword). Any hint how this could be accomplished? Does FishEye even know about the total lines of code, as I guess this is something specific to the programming language?


Answers:
author: sschuberth
body: Hi Sten,

thanks for the response. Getting the total number of lines (per file type) is crucial for our stats to get some meaning. However, it actually turned out to be quite easy to get the stats I need in plain Git. The idea is to simply get the diff to the "empty commit", which equals the lines of currently committed code. At the example of Java files my shell script looks like this:

```
empty=$(git hash-object -t tree /dev/null)total=$(git diff --stat $empty -- *.java | tail -1 | cut -d "," -f 2 | cut -d " " -f 2)echo "Total lines of Java code in repository: $total"
```

Next, I get the amount of changed code since the last 7 days like this:

```
stats=$(git log --since=1.week --pretty=tformat: --numstat -- *.java | awk '{ added += $1 ; removed += $2 } END { printf "%s,%s",added,removed }' -)added=$(echo $stats | cut -d "," -f 1)removed=$(echo $stats | cut -d "," -f 2)changed=$(expr $added + $removed)echo "Java statistics for the last 7 days: $added lines added, $removed lines removed, $changed lines changed"
```

With these numbers it's now easy to come up with a change ratio which sort of reflects how much the code base is in flux.

Given that this was not too hard at all, I hope FishEye will soon be able to support LOC stats for Git repositories, too ;-)


author: Sten Pittet
body: Hi Sebastian,

Unfortunately FishEye does not provide [Lines of Code statistic for Git](https://confluence.atlassian.com/display/FISHEYE/Cannot+View+Lines+of+Code+Information+in+FishEye) as this is something quite complex to build of Git repositories. We're looking into alternatives and I'd like to get your feedback.

Would you be happy to simply see a volume of changes other time without the ratio to the total line of code count?

Sten Pittet  
Dev Tools Product Manager
List of files needing review
Asked by David Knipe:

Is there any way to get a list of what files either have never been reviewed or have changed since their last review? We are not yet in a point in our development cycle where we want to review every single changeset but instead want to do a baseline on our 4000 files and then do delta reviews at a future date where needed.

Does anyone out there have an easy method for doing what we need?

Thanks in advanced.


Answers:
author: David Knipe
body: I think I might have figured this one out on my own. I did an EyeQL query:

select revisions from dir "/" where not is deleted and not reviewed and (path like \*.c\* or path like \*.h\*) and is head order by date desc group by file return path, revision, author, date, reviews

This seems to do what I want. The only thing I am unsure of is whether a file is considered "not reviewed" if has previously been reviewed but has been changed since the review.
Wild card search on content
Asked by Tim Davis:

Just discovered that Fisheye does not support wild card searches on content, which seems a bit of a limitation. Are there any workarounds or alternatives? Or plans to support wild cards in future? Any one else looking for this?

Help?


Answers:
author: Ben Stuart
body: You are correct. A "wildcard" character is not supported in the FishEye Search. As a workaround, I would suggest using EyeQL for the most refined searches.

```
select revisions where content matches "grant delete on"
```

Additional information about the Quick Search and EyeQL can be found in our [Searching FishEye](https://confluence.atlassian.com/fisheye/searching-fisheye-298976804.html#SearchingFishEye-filter) document. I understand this will not get you the exact results you're looking for, but at the moment it's the best option we have. We have feature requests I recommend everyone vote and comment on in the following requests:

* [FE-824](https://jira.atlassian.com/browse/FE-824)
* [FE-4790](https://jira.atlassian.com/browse/FE-4790)

I hope that helps!


author: Ivan Akcheurov
body: It was a big surprise for me as well.   
Atlassian, how come?
Errors when trying to import Fisheye Backup into new environment
Asked by Chris JP:

Overview - We have a live instance of Fisheye connected to a SVN repository, this in the process of being migrated into a new environment

When attempting to restore the data onto the new environment the following error is recieved after a few seconds of the process being initiated;

***ERROR - Errors parsing E:\\Atlassian\\FishEye\\config.xml:***

***ERROR - at line 32138: Expected elements 'max-indexable-size@http://www.cenqua.com/fisheye/config-1 updater@http://www.cenqua.com/fisheye/config-1' instead of 'show-checkout-url@http://www.cenqua.com/fisheye/config-1' here in element repository-defaults@http://www.cenqua.com/fisheye/config-1***

Fisheye Version: 3.1.1


Answers:
author: Piotr Swiecicki
body: Hi Chris,

It seems like you are trying to migrate newer version of Fisheye into older one. The checkout URL feature which configuration is found in your config.xml was introduced in FishEye 3.2, see [](http://blogs.atlassian.com/2013/12/fisheye-crucible-3-2-release-check-repositories-search-faster/.)<http://blogs.atlassian.com/2013/12/fisheye-crucible-3-2-release-check-repositories-search-faster/>.

It won't be possible to migrate that instance into Fisheye 3.1.1 you are using, can you perhaps check FishEye versions and ensure new environment is no older than old one?

Regards,  
Piotr


author: Chris JP
body: Hi Piotr,

That was indeed the problem - our test environemnt's backup i was restoring from had been uprgraded without me knowing!

Thanks,

Chris


Tags: configuration