youngmon/atlassian-qna huggingface dataset:
Atlassian vscode question: When selecting "Start Work" - How set default configuration ?
Asked by Boudjelal Yannick:

When I click "Start to work" all the default settings are false.

I would like the default transition to be "In Progress" and the default branch to be origin/develop ....

If you know where I can configure the default settings for "Start to work" Thank you


Answers:
author: Patrik S
body: Hello [@Boudjelal Yannick](/t5/user/viewprofilepage/user-id/5400275) and welcome to the Community!

After you click on the **Start work** button in a Bitbucket Issue on VS Code Extension, a new page will open where you have the option to start a new branch. If you unselect the Start a new branch option, VSCode will not create a new branch for the issue, and will just assign the issue for you and keep it in the branch that was previously checked out :

![Screenshot 2024-01-09 at 4.40.31?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/299738i6561F4DFD93159B7/image-size/large?v=v2&px=999 "Screenshot 2024-01-09 at 4.40.31?PM.png")

So if you always want to work on the *development* branch, you can first check out that branch in VSCode, and after clicking on *Start work* in the Issue, you can uncheck the setup git branch, so VSCode will not create a new branch, and will keep on the *development* branch.

Since the above is a workaround, if you would prefer to have a way to set the default transition and branches you can suggest this as an improvement for the VSCode extension by navigating to the Extension settings and clicking on **Send Feedback** button:

![Screenshot 2024-01-09 at 4.42.50?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/299739i6DE5F31A2B04FD5B/image-size/large?v=v2&px=999 "Screenshot 2024-01-09 at 4.42.50?PM.png")

Thank you, [@Boudjelal Yannick](/t5/user/viewprofilepage/user-id/5400275) !

Patrik S


Tags: bitbucket-cloud

cloud
Bitbucket DNS name resolution failure
Asked by sheshansh:

While I am running the bitbucket pipeline, randomly pipelines get failed with the error of bitbucket DNS name resolution failure, this is very random and frequent. Please provide a permanent fix for it. Runners are hosted on premises. Below are the screenshots for the errors:

![bb-pipeline-failure02.png](https://community.atlassian.com/t5/image/serverpage/image-id/299239i1DECCEE24EDCBE03/image-size/large?v=v2&px=999 "bb-pipeline-failure02.png")![bb-pipeline-failure03.png](https://community.atlassian.com/t5/image/serverpage/image-id/299240i00B70E461E9BF5CB/image-size/large?v=v2&px=999 "bb-pipeline-failure03.png")![bb-pipeline-failure01.png](https://community.atlassian.com/t5/image/serverpage/image-id/299242i65FFDF7300AD4220/image-size/large?v=v2&px=999 "bb-pipeline-failure01.png")


Answers:
author: Patrik S
body: Hello [@sheshansh](/t5/user/viewprofilepage/user-id/5399861) and welcome to the Community!

As you are using self-hosted runners, could you please confirm if the runner's host is behind a firewall? If yes, it's important to make sure that the IP addresses listed in the following documentation are allowed in the firewall, so the runners can connect to Bitbucket's infrastructure :

* [Valid IP addresses for bitbucket.org, api.bitbucket.org, and altssh.bitbucket.org](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-bitbucket.org--api.bitbucket.org--and-altssh.bitbucket.org)

If after allowing the IP addresses you are still facing the issue, you can also try forcing the DNS resolution through a different nameserver, such as Google DNS (8.8.8.8) by adding the following command in your pipeline step's script :

```
echo "nameserver 8.8.8.8" > /etc/resolv.conf
```

This should be added **before** the command that is failing with DNS resolution.

Hope that helps! Should you have any questions, feel free to ask!

Thank you, [@sheshansh](/t5/user/viewprofilepage/user-id/5399861) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Add existing bitbucket branch to a Jira issue
Asked by Gal Fatal:

Hi,

Looking for a way to link old branches to Jira issues (currently issue does not have linked branch)

The Development tool fields in Jira allow only to create branch, but not to link existing one.

Any idea ?

Thanks, Gal


Answers:
author: Syahrul
body: Hey [@Gal Fatal](/t5/user/viewprofilepage/user-id/2014272)

Unfortunately, it's impossible to link an existing or old branch with Jira issues after its creation. However, I want to understand why you wish to connect an old branch with the Jira issue. Could you provide me with a use case?

Regards,  
Syahrul

comments: author: Gal Fatal
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

I am supporting company that used Bitbucket in the last year (without Jira)

Now, they start using Jira and migrate some tasks from excel file.

So for the first time they would like to connect between existing branches in Bitbucket to the new Jira issue they add to Jira.

Another scenario is they sometimes create branch in Bitbucket BEFORE the Jira issue is ready and would like to connect them later.

Last scenario is sometimes they use one branch to resolve 2 Jira issues and would like to connect both Jira issue to the same branch. (not best practice but can happen)

Any idea for a solution oe workarround ?

Thanks, Gal


author: Syahrul
body: Hi [@Gal Fatal](/t5/user/viewprofilepage/user-id/2014272)

Thank you for providing more context.

Based on the information given and my current understanding, what you're attempting may not be possible directly through Bitbucket. However, I must mention that my familiarity with Jira's capabilities is somewhat limited. Therefore, I can't definitively say whether your case can be handled from Jira's end.

I would suggest contacting the Jira support team by creating a support ticket. They should be able to provide a more informed perspective on the matter.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
How to maintain image versions using Atlassian plugin in aws ecr
Asked by Venkatkp:

Hi Team,

How to maintain image versions using Atlassian integration plugin in aws ecr repository and how to rollback old version for Aws ecs update.

1. We are using aws ecr Atlassian integration plugin for build and push the docker image.

2. We are updating the ecs cluster using Atlassian integration plugin, but how to rollback to pervious version?

If we are building and pushing image to ecr repo old image tag renamed to dot.

Please provide me the bitbucket pipeline steps for image versions and rollback steps.


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

The reason why the image you are pushing to ECR is showing with a dot (.) is likely because that image had only one tag, and this tag was removed when you pushed a new image with that tag.

For example, let's say in your first pipeline you have pushed **myimage:latest** version 1 to ECR. Then in a second pipeline, you make changes to this image and push it again using the same **latest** tag **myimage:latest** version 2. Version 1 of the image will have its tag removed, and it will only be accessible by its docker image ID (digest). If version 1 of the image had other tags associated with it, it would still be accessible for those other tags that were not replaced.

With that in mind, to workaround this scenario, you could add additional tags besides \`latest\` when pushing to ECS :

```
TAGS: '0.0.1 latest'
```

So the image will be pushed with two tags. After an update (new image push), when \`latest\` tag is moved to the new image, you will still have old image with \`0.0.1\` tag which you can use when rolling back your ECS.

I would also suggest checking the discussion on [this similar question in community](https://community.atlassian.com/t5/Bitbucket-questions/We-are-using-atlassian-integration-for-build-and-push-the-image/qaq-p/2559362#M100146).

Thank you, [@Venkatkp](/t5/user/viewprofilepage/user-id/5399749) !

Patrik S


Tags: bitbucket-cloud

cloud
Whitelist IPs for pipelines in Amazon EKS
Asked by vgautam:

I want to whitelist Bitbcuket piplies so that I can run kubectl and eksctl commands from Bitbcuket pipelines without exposing my cluster to publicl internet. Right now I have whitelisted these IPs but still getting time out and connection is from a different IP.  
Error I am getting :  

     eksctl get iamidentitymapping --cluster xxx-Cluster---region=us-east-1
    Error: getting auth ConfigMap:
     Get "#": 
    dial tcp 52.203.6.213:443: i/o timeout

Whitelisted IPs from

* 104.192.136.0/21

* 185.166.140.0/22

* 18.205.93.0/25

* 18.234.32.128/25

* 13.52.5.0/25

also tried adding these but these are for outbound:  
[https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)/  
34.199.54.113/32  
34.232.25.90/32  
34.232.119.183/32  
34.236.25.177/32  
35.171.175.212/32  
52.54.90.98/32  
52.202.195.162/32  
52.203.14.55/32  
52.204.96.37/32  
34.218.156.209/32  
34.218.168.212/32  
52.41.219.63/32  
35.155.178.254/32  
35.160.177.10/32  
34.216.18.129/32  
3.216.235.48/32  
34.231.96.243/32  
44.199.3.254/32  
174.129.205.191/32  
44.199.127.226/32  
44.199.45.64/32  
3.221.151.112/32  
52.205.184.192/32  
52.72.137.240/32  

Is there a definite IP list to add to my EKS cluster to run deployments via bitbucket pipelines?  


Answers:
author: Patrik S
body: Hello [@vgautam](/t5/user/viewprofilepage/user-id/5390835) and welcome to the Community!

When connecting to external services from your Bitbucket Pipelines, it's usually only required to allow public IPs listed on [Valid IP addresses for Bitbucket Pipelines build environments](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments) .

However, since Pipelines infrastructure runs in AWS, if the external resource you are trying to connect/deploy to is also within the same AWS region as Pipelines, AWS will use internal private IPs (private VPC) for the connection instead of the documented pipelines Public IPs.

To solve this, you will need to whitelist in your AWS policy the Pipelines VPC IDs listed in the following article :

* [Pipeline using VPC endpoint or bitbucket account](https://confluence.atlassian.com/bbkb/pipeline-using-vpc-endpoint-or-bitbucket-account-1167742968.html)

Thank you, [@vgautam](/t5/user/viewprofilepage/user-id/5390835) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Push changes from pipeline when tag pushed.
Asked by Richard Cesar:

Hi, I am trying to create a workflow where when I push a new tag, the pipeline adjusts the README.md file to update the inclusion example automatically. Something similar was working fine for me from the default commit hook, but when I try to use the tag hook I run into issues. The issue I am running from is there appears there is no active repository (there is in the checkout hook). It also appears that fetch does not work, checkout does not work , commit does not work, push does not work. Basically "nothing works" (tm). With a raw git-commit/push the error is "fatal, you are not on a branch", stating a detached head. I have tried get checkout master, which tells me "error: pathspec 'master' did not match any file(s) known to git".  

Any advice would be greatly appreciated.


Answers:
author: Theodora Boudale
body: Hi Richard,

Just to give you some context, every step of Pipelines build runs in a Docker container where the repo is cloned, and that container gets destroyed when the step finishes. If the step runs on a **branches** definition, then only the branch that triggered the build will be cloned with a default depth of 50 (last 50 commits). It is possible to specify a different depth or full depth, see here:

* <https://support.atlassian.com/bitbucket-cloud/docs/git-clone-behavior/#Depth>

However, when a build runs on a **tags** definition, that specific tag is cloned. If you expand the **Build setup** in one of your builds that runs on tags you will see the clone command starts with

```
GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="v1.13.0" --depth 50 <....>
```

where **v1.13.0** will be your tag. When the value of the **--branch** argument is a tag, there are no branches in that clone (the same will occur if you make such a clone locally) and the repo is in a 'detached HEAD' state.

You will need to add commands in the yml file to create a branch, pull any changes, and then make a commit and push.

For example, if the tags are always added to commits of master branch and you want the build to push back to master branch, the script could look as follows:

```
script:
  - git switch -c master
  - git pull origin master
  - echo " some text " >> test.txt
  - git add test.txt 
  - git commit -m "adding some text to test.txt"
  - git push
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Need info about fish eye reports
Asked by ramasubbu perumal:

Could you please let me know the Fish eye reports limitations.We are going to implement the Fish eye in our organization.


Answers:
author: Nic Brough -Adaptavist-
body: That is a very vague question that we can't really answer. I could tell you that Fisheye reports don't make good tea, but I don't think that's what you are looking for, and you probably knew that already. What sort of limitations are you looking at? And, what is your current setup - the shape of the data you want to use it with is probably going to define any limitations you are going to run into

comments: author: ramasubbu perumal
body: Thanks for your respnse.We have to perform the below things in fish eye.

Using fish eye we would like to track the SVN to take chain change report, to give statistics on how many check-in happening in each code base, bow many cut has been taken from each branches...etc

For this any plugins are available to communicte with SVN. And also we need a detailed report as well.


author: Nic Brough -Adaptavist-
body: You don't need plugins to get the basics out. Start at <https://confluence.atlassian.com/display/FISHEYE/Subversion>

I think Fisheye's internal reporting already answers those questions, but you'll need to test it yourself to see how far you can get towards your "detailed report". It's all about what you need, and we can't really tell you more than "it probably does what you want" without exact requirements ("A detailed report" is a talking point, not a requirement)


Tags: atlassian-support
Use fisheye already, want to try Crucible
Asked by Admin Vivace:

I understand how to upgrade to using Crucible from Fisheye (<https://confluence.atlassian.com/display/CRUCIBLE/Upgrading+from+FishEye+to+Crucible>). However, I would like to understand if there is an easy way to go back to Fisheye if we think Crucible is not for us. Thanks.


Answers:
author: Felipe Kraemer
body: Hello Sridhar,

That document you mentioned is not the correct one. That one is for when you're using only FishEye and want to use **only** Crucible (instead of using FishEye **and** Crucible).

Basically, you can activate Crucible by adding a valid Crucible license at *Administration \> Systems Settings \> System Info* and clicking in the *Edit License* button.

If after the evaluation license expires you don't want to continue using Crucible, you can go back there and replace the license hash by the word *Disabled*.

I hope this helps!

comments: author: Admin Vivace
body: That is the right answer, indeed! Thanks Felipe.
fisheye re-sync
Asked by RAJESHP:

is there a way to automatically set re-sync index for fisheye weekly ?


Answers:
author: RAJESHP
body: p4, svn or git logs changed for e.g. to add a jira id after the fact (missed at the time of checkin)

then the fisheye integration for just that change set is broken.

i am looking for a simple api or cron that can re-index weekly or daily during off hours and pick up any changed logs once a complete fisheye scan is completed.


author: Piotr Swiecicki
body: You can use /rest-service-fecru/admin/repositories-v1/{repo}/reindex-source end point, described in [https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html](https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html "Fisheye Crucible REST API")

It might be time consuming for large repos thouhg, why do you need this?
Is it possible to configure this scanner to scan new repositories on remote svn server like http:///svn, not on the local where FishEye installed
Asked by Reksoft Reksoft:

Is it possible to configure this scanner to scan new repositories on remote svn server like http://\<server name\>/svn, not on the local where FishEye installed.


Answers:
author: Reksoft Reksoft
body: Hi Doug,

My question was Does this plugin "https://marketplace.atlassian.com/plugins/com.atlassian.fisheye.repositron" able to scan remote repositories"?


author: Doug Bass
body: Sure fisheye can scan remote repositories using the http or https urls. Try using "svn info http://server/path" to verify the url and path.


Tags: fisheye-crucible-administration
Number of users who logged in Crucible in last month?
Asked by Tarun Sapra:

hi,

Are there REST API calls available to determine the number of unique visitors to the crucible instance for a specific time period?

or is there an alternate way to achieve this functionality?

Thanks,


Answers:
author: Nick
body: I just created a small plugin for you which will inject Google Analytics into your FishEye/Crucible instance.

The plugin can be downloaded via [https://maven.atlassian.com/public/com/atlassian/plugins/fecru-ga/fecru-ga-plugin/1.1/fecru-ga-plugin-1.1.jar](https://maven.atlassian.com/public/com/atlassian/plugins/fecru-ga/fecru-ga-plugin/1.0/fecru-ga-plugin-1.0.jar) and is open source is at <http://bitbucket.org/atlassian/fecru-google-analytics/>

Once installed, refresh the admin screen and click on the Google Link in the Global Settings.

From here you can configure your Google Analytics tracking ID.

Cheers,

Nick


author: Jeff Thomas
body: Tarun: I don't see any timestamp that is updated when user logs in, but Crucible does store information about the last repository, user, review, and project that someone visits. Using that data, I was able to write a query to get the total number of unique users between two dates. The query below is written for Oracle, so you'll need to tweak it for the database that you're using.

```
select count (distinct cru_user_name) as total_active_usersfrom cru_recently_visitedwhere trunc(DATE '1970-01-01' + (cru_last_viewed/1000/86400)) between DATE '2013-09-01' and DATE '2013-10-01';
```

comments: author: Jeff Thomas
body: If there is a way to include Google Analytics, that might be the easier option. I'll keep looking to see if that's possible.


author: Jeff Thomas
body: You could use Google Analytics to get this data. Below are some links that talk about setting up Confluence with Google Analytics.

[Report Confluence Activity Using Google Analytics in the Wiki](https://blogs.atlassian.com/2009/12/report_confluence_activity_using_google_analytics_in_the_wiki/)

[Measure Your Wiki's Activity with Google Analytics for Confluence](https://blogs.atlassian.com/2011/11/measure-your-wikis-activity-with-google-analytics-for-confluence/)

comments: author: Tarun Sapra
body: it's crucible not confluence, do you mean to use confluence integration with analytics as a dummy?


Tags: fisheye-crucible-administration
Two git settings. Author field show also two, when I create a code review. How to change the order in Author field?
Asked by e:

I used two git settings. As a result -- When I choose commits from the GIT for Code Review my commits are separated. Old commits can be seen under "User Name \<uname@mycompany.com\>" and new commits could be seen when I choose "uname \<uname@mycompany.com\>".

The default option is that I see commits under "User Name". I would like the default to be "uname".

How do I change the priority on Author field?

Thanks!

Atlassian FishEye analysis with Crucible code review. (Version:3.1.1)


Answers:
author: gustavo_refosco
body: Hi,

Since FishEye 3.3.0 the changesets are filtered by all committers associated with an user as per the request made at [](https://jira.atlassian.com/browse/CRUC-6687)<https://jira.atlassian.com/browse/CRUC-6687>

You can configure your user mappings at **Administration \>\> User Mappings**


Tags: fisheye-crucible-administration
IIS Reverse Proxy with URL Rewrite, ARR & Fisheye
Asked by Pierre Arlt:

I Use IIS as an reverse proxy for fisheye   
[fisheye.xxxx.net](http://fisheye.xxxx.net) =\> fisheye.xxxx.net:860 =\> in some situations the client window (firefox) dies.  
I can request the page =\> for a short moment I see the page =\> fisheye reloads =\> the page dies.  
When I call the pages directly with the portbind 8060 I dont't have the problem.

**Not all fisheyepages has this strange behavior** =\> userpages, repropages.

I use IIS 8, URL Rewrite 2.0, ARR 3.0 (same problem with an ARR 2.5 setup).

A simmilar setup works with jira (port 80) and crowd very good.  
My setup has different websites, for crowd, jira, fisheye.

Why dies the client window -\> hav someone a succesfult setup with IIS Reverse Proxy with URL Rewrite, ARR \& Fisheye?

**Web Server ARR ProxySettings:**

![](../../../upfiles/arrSettings_2.jpg)

**Fisheye Server Settings:**

![](../../../upfiles/serverSettings_1.jpg)

**Web Confing Reverse Proxy Settings for : [fisheye.xxx.net](http://fisheye.xxx.net) =\> fisheye.xxx.net:8060**

![](../../../upfiles/web.configSettings_1.jpg)

**Not all fisheyepages has this strange behavior** =\> userpages, repropages.

![](../../../upfiles/clientWindowDies.jpg)


Answers:
author: Tiago Comasseto
body: Hi Pierre,

We have this [KB](https://confluence.atlassian.com/display/JIRAKB/Integrating+JIRA+with+IIS+using+ARR) that instructs how to integrate JIRA with IIS, but I was able to follow the same steps to others Atlassian applications (including Fisheye) and it works with no problem. I see your setup is pretty similar, I just don't see the rewrite rules.

In any case you may compare your configuration with the KB instructions and check your IIS logs for any error when you see the problem occuring.

Cheers


Tags: iis

reverse-proxy

rewrite

url
How crucible/fisheye track review of GIT pre-commit code
Asked by Soo Min Ooi:

Does anyone know how pre commit work with Fisheye?

E.g. Patch is submitted from developer's local to Crucible review, once review has been completed it is pushed to the repository. Hence how does developer indicate/link crucible review which was used to review the change when commiting to the repository?


Answers:
author: gustavo_refosco
body: Hi Soo,

I suggest you to take a look at [Using smart commits](https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits) documentation. There you will find a brief explanation with commands to reference your reviews from your commits.

In your case, I believe you will find useful information under **Updating an existing review** section.

Regards,

Gustavo Refosco


Tags: git

pre-commit