youngmon/atlassian-qna huggingface dataset:
Changing URL of crowd Server
Asked by Dovid Bender:

Hi,

We are moving our crowd server (version 3.4.5) to a new host. For all of our other applications (confluence, jira etc.) we were able to find the configuration for how to connect to Crowd. For BitBucket I was not able to find it. The only place that I did find it was under Settings -\> User directories. There I was able to see Crowd server along with the information about it but no place to change the actual URL of the crowd server. Currently it's pointed to localhost and I don't see a way to change it.


Answers:
author: Mirek
body: Well according to official documentation

<https://confluence.atlassian.com/bitbucketserver/connect-bitbucket-to-crowd-776640399.html>

It should be under **User Directories** (under 'Accounts')

Which version of Bitbucket do you have?

comments: author: Dovid Bender
body: ![bitbucket_del_me.png](https://community.atlassian.com/t5/image/serverpage/image-id/145526i03F1104DDCF9B532/image-size/large?v=v2&px=999 "bitbucket_del_me.png")


author: Dovid Bender
body: I have version 6.10.5, As you can see the in above image when I go to user Directories all I see is that I have a crowd server but there is no way to edit it.


author: Mirek
body: Well you probably are logged in as a user from that Directory. In order to edit it you need to have an admin account from Internal Directory. Then you should see edit option for Crowd server.


author: Dovid Bender
body: [@Mirek](/t5/user/viewprofilepage/user-id/781521) My User is full admin for the system. I can manage and do anything except this. I can even add another directory I just can't edit this one.


author: Mirek
body: [@Dovid Bender](/t5/user/viewprofilepage/user-id/3030611) , as I mentioned if your user is from the Crowd directory you would not be able to edit it - you cannot edit something that you are part of to prevent locking out.

So in order to do so you would have to log in as user that would be from internal directory (not Crowd) and would have admin access. Then you should see an edit button.

Please read **Updating directories** from below documentation to get detailed info about this limitation

<https://confluence.atlassian.com/adminjiraserver/configuring-user-directories-938847049.html>


author: Dovid Bender
body: I somehow missed that. I switched to a local user and that let me change it.


author: Mirek
body: Glad that it worked :)


Tags: bitbucket-server

crowd

server
CheckStyle Feature Request Could I change the titles of my reports
Asked by Mellester:

I have a php linter and a java script liner generate reports using the check-style pipe  
In parallel steps. I would like to use a ENV variable to set the title of this both reports.  

<br />


Answers:
author: Daniel Costa
body: You can use a variable to define the report title, like this:

```
after-script:  - pipe: atlassian/checkstyle-report:0.4.0    variables:       CHECKSTYLE_REPORT_TITLE: 'my-report'
```


Tags: bitbucket-pipelines
How to access merge checks from Bitbucket cloud api?
Asked by Arumugam Subramanian:

I would like to get all the information related to merge checks on the Pull request from API. Is it possible in bitbucket cloud API 2.0?


Answers:
author: Theodora Boudale
body: Hi [@Arumugam Subramanian](/t5/user/viewprofilepage/user-id/2697464) ,

I assume that you want to get the status of the merge checks for a specific PR?

I'm afraid that this is not possible at the moment via API.

We have a feature request for this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-20734>

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora

comments: author: Arumugam Subramanian
body: Thank you [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)


Tags: api

bitbucket-cloud

cloud
How to stop my Account getting locked by BitBucket when using it locally for managing my repos?
Asked by Jatin Patel:

![recaptcha.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/145417iB39D7C3C3E086377/image-size/large?v=v2&px=999 "recaptcha.JPG")

I am not sure why this is happening. As I am not doing any requests with wrong password anywhere to connect to server.  
FYI: I tried to connect using SSH with that server but was not able to do that successfully. So may be while doing that I might have messed something up.

Please help on this as It is time consuming and wasting lot of time in that process each time i have to update or push/pull my repos with server.


Answers:
author: Roopan, Ashish [DPYUS NON-J&J]
body: same issue


Tags: jira-service-desk-server

jira-service-management

jira-service-management-server
Schedule a pipeline every X hours
Asked by Patrick:

Use case: we would like to schedule a deployment pipeline every X hours.

Bitbucket pipelines allows us to schedules pipelines once per hour, once per day or once per week.

In our case once per hour is too frequent (costing too much in terms of build minutes), and once a day is not frequent enough.

Is there a way to schedule a pipeline to run, let's say, every 3 hours?

Thanks.


Answers:
author: Theodora Boudale
body: Hi [@Patrick](/t5/user/viewprofilepage/user-id/4414738) and welcome to the community.

I'm afraid that at the moment it is not possible to schedule a pipeline every X hours.

We have a feature request for this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-18496>

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

In the meantime, one workaround I could suggest would be to create a script that triggers your pipeline using our API (this doc has several examples):

* <https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines/>

and then set up e.g. a cron job in one of your machines that runs this script every 3 hours.

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

Kind regards,  
Theodora


Tags: bitbucket-pipelines
Apache Tomcat AJP RCE Vulnerability (Ghostcat) disable AJP service
Asked by grantmcinnes:

Our 3rd party ASV is detecting an incident against our self hosted Bitbucket Server instance:   

Apache Tomcat AJP RCE Vulnerability (Ghostcat)

According to an article I found, the AJP connector service can be disabled by commenting out or removing the appropriate line from the `$CATALINA_HOME/conf/server.xml` file and restarting Tomcat.  

Based on my understanding, Tomcat is embedded as part of Bitbucket Server and not a seperate install so how can this service be disabled?


Answers:
author: Daniel Eads
body: Hi [@grantmcinnes](/t5/user/viewprofilepage/user-id/3233867) ,

I see you've listed that you're on Bitbucket Server 7.6 in your question information. Given that, can you double-check your ASV for a specific CVE it is checking against and what its detection criteria is?

CVE-2020-1938 (Ghostcat) was mitigated in Tomcat 9.0.31, which we incorporated into Bitbucket Server [starting in version 7.1.0](https://jira.atlassian.com/browse/BSERV-12222). Bitbucket Server versions in the 7.6 line are not susceptible to CVE-2020-1938.

If by chance you are on an older version, you can look in **bitbucket.properties** for this string:

```
connector-protocol=AJP/1.3
```

Bitbucket Server's containerized setup is a bit different than most applications running in Tomcat - for example in Jira, you would set an AJP connector up in the server.xml file. In Bitbucket Server, configuration items like this are [in the bitbucket.properties file](https://confluence.atlassian.com/bitbucketserver/configuration-properties-776640155.html).

It is very uncommon to have AJP enabled with Bitbucket Server, [although it is possible](https://jira.atlassian.com/browse/BSERV-11582). I would go through those two steps to see if this is something you need to modify:

1. Bitbucket Server 7.6 has a mitigated Tomcat version - no need for concern on this version or newer
2. If you're on Bitbucket Server older than version 7.1.0, check the bitbucket.properties file for an enabled AJP connector

Let me know what you find and we'll get you sorted if there's something to change!

Cheers,  
Daniel \| Atlassian Support

comments: author: grantmcinnes
body: [@Daniel Eads](/t5/user/viewprofilepage/user-id/1527694) Thanks for the reply.


Tags: bitbucket-server

configuration

security

server
Does anyone know how to delete this product??
Asked by Tom Bowden:

I'm a sysadmin for Jira/Confluence cloud. At some point some of my users, including me, got stuck with seeing BitBucket as a product they can access. We're not being billed or anything but it's really annoying to see the product in the top left hand product menu when no-one has ever used it.

The documentation online has led me in circles.

Has anyone else suffered this?

Thank you.


Answers:
author: Nic Brough -Adaptavist-
body: Your Site admin should be able to shut it down, but it is a global thing, I suspect you've some of your people ask for it, so it got added, but that means everyone on the site gets to see it.


Tags: bitbucket-cloud

cloud

delete
broken character on shift_jis encoding
Asked by li1.lin:

The file is broken when I open a shift_jis encoding file.

![333.png](/t5/image/serverpage/image-id/145271i7702DEEF762D008C/image-size/large?v=v2&px=999 "333.png")

Please give some info to resovle this this problem.

Thanks!


Answers:
author: Danyal Iqbal
body: did you edit the file in the online editor?

What is the encoding of the file when you pull? What was the original encoding?

```
file -bi
```

As far as i knoe the online editor defaults to UTF-8 and there is no option to change it.

comments: author: li1.lin
body: Thanks for your reply.

The encoding of the file is shift_jis.  
I didn't edit it in the online editor.


Tags: bitbucket-server

server
rsync-deploy : How to deploy only files that have changed?
Asked by 867-fujita:

My pipeline deploy all files. I want it to deploy only files that have changed. I added '-u' option in 'EXTRA_ARGS', but it didn't work. Here is my code.

```
- step:
    name: Test Deploy
    deployment: Test
    script:
       - pipe: atlassian/rsync-deploy:0.5.0
         variables:
           USER: $RSYNC_USER
           SERVER: $RSYNC_SERVER
           SSH_PORT: $RSYNC_SSH_PORT
           REMOTE_PATH: '/home/myname/public_html/'
           LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/html/'
           DEBUG: 'true'
           DELETE_FLAG: 'false'
           EXTRA_ARGS: '-uv --exclude=.htaccess --exclude=.htpasswd --exclude=.env'
```

Am I missing something?


Answers:
author: Raimundas Ra
body: I resolved my issue with thesw flags -c (checksum) and --update

```
EXTRA_ARGS: '-c --update ${BITBUCKET_CLONE_DIR}/'?

Try maybe this one below

```

```
EXTRA_ARGS: '-uv -c ${BITBUCKET_CLONE_DIR}/html/ --exclude=.htaccess --exclude=.htpasswd --exclude=.env'
```


Tags: bitbucket-pipelines

cloud

deployment

rsync
Monitoring multiple bitbucket repositories
Asked by Vishal Sarode:

HI All,

I have 60 repositories managed by me and some by other team members.

I am looking for a way to list all repositories master branch and last update done on that repository master branch and who did the last commit.

I am getting notifications for required repositories but end of a day if I need to check what all has changed in all the repositories, it gets difficult.

Any help to create this kind of report/ dashboard to monitor commits on 60+ repositories specific branch will be helpful.

Thanks in advance.

Vishal


Answers:
author: Javier Coira [RoninPixels]
body: Hi [@Vishal Sarode](/t5/user/viewprofilepage/user-id/2639465) ,

If you are interested in some commercial apps, we provide [Dashboard Hub for Jira](https://marketplace.atlassian.com/apps/1223898/dashboard-hub-for-jira-reports-charts) and [Confluence](https://marketplace.atlassian.com/apps/1224619/dashboard-hub-for-confluence-reports-charts) , which can display bitbucket info with nine different gadgets.

I'm not sure if some of them fit your requirement, but it's a start point. You can take a look at a bunch of metrics quickly.

You also can see info from other Atlassian applications like Jira, Confluence, Opsgenie...

![some bitbucket gadgets.png](https://community.atlassian.com/t5/image/serverpage/image-id/147322iEAE7853A4827D174/image-size/large?v=v2&px=999 "some bitbucket gadgets.png")

You can see a live demo here [https://bit.ly/AgileTeam_dashboard](https://bit.ly/AgileTeam_dashboard?) (sharing feature)

Hope this helps!


Tags: bitbucket-cloud

cloud
Which bitbucket REST API to use for a company account hosted on a DataCenter?
Asked by romashatomar:

Hi,

I am trying to integrate bitbucket with one of our applications and am confused on which API to use for it. At this point, I am trying to get a response from bitbucket being used in our organization and am using Personal Access token via Basic Auth

When trying to use :  
<https://api.bitbucket.org/2.0/repositories/>**PROJ**   
*I get a 401 unauthorized exception with Basic Auth and with No Auth , there is no exception response but there is no data returned.*

Using :

https://bitbucket.\<**CompanyName** \>.com/rest/api/1.0/projects/re/repos/**PROJ**/ with Basic Auth (Personal Access token), I am able to get a response back from the server. I have not tried other APIs yet.

Which one of the above should I be using and is the latest API. (Though I am having trouble with 2.0) or maybe the URL for the 2.0 API (with company account ) is different than the above.

Can someone please point me in the right direction?  
Going forward, I need to commit files , create branch, create pull requests etc .

Thank you

Romasha


Answers:
author: romashatomar
body: I was able to find the answer to my question. In case your company is using Bitbucket server or Data center , using https://bitbucket.\<**CompanyName** \>.com/rest/api/1.0/projects/re/repos/**PROJ** / is the way to go.

2.0 API should be used if the company bitbucket is hosted on cloud. (1.0 API for cloud has been deprecated but the bitbucket server Rest API still uses the above URL with 1.0 )


Tags: bitbucket-server
Bitbucket version 7.12.1 Active directory and group connectivitys problems
Asked by Support Ocean:

IWe are finishing to install a new local BITBUCKET server.

We got a bitbucket admin user not part of the Domain.

We connect the AD with BITBUCKET and it is good even if the synchronisation is not perfect so far.

We try to have 3 groups with differents rights. Those groups are all nested. 2 of those groups are working good. When we tried to test and safe the schema, the tests are good for users in 2 out of 3 groups.

In Advanced settings, we did Check Enable nested groups.

In User Schema Settings, we input the following line ( i will removed the company name from the line) in the UserObjectFilter:

(\&(objectCategory=Person)(sAMAccountName=\*)(\|(memberOf:number:=cn=cnA,OU=ou,OU=ou,OU=ou,DC=companyname,DC=com)(memberOf:1.2.840.113556.1.4.1941:=cn=cnB,OU=ou,OU=ou,OU=ou,DC=companyname,DC=com)(memberOf:1.2.840.113556.1.4.1941:=cn=cnC,OU=ou,OU=ou,OU=ou,DC=companyname,DC=com)))

Number = 1.2.840.113556.1.4.1941

Could someone let us know what is wrong? or what we are missing?

Alain


Answers:
author: Support Ocean
body: This is not an answer.

We wonder if you may need more information to help us fix this issue?

If yes what is needed? And how do i find what is needed?

Alain


Tags: bitbucket-server
Forking Pull Request
Asked by Christine Sobolewski:

We have forked a repository, repo2 from repo1, and when we branch off the main branch in repo2 and then create a pull request the branch wants to automatically merge back into the repo1. Is it possible to change the default branch of the merge to the forked repository repo2 instead of repo1?


Answers:
author: Saurabh Singh
body: Hi [@Christine Sobolewski](/t5/user/viewprofilepage/user-id/4389665),

Good day!

At this time, there is no ready-made functionality to handle this on the Bitbucket Cloud UI. Having said that, you can reach out to Bitbucket Cloud Support with a request to remove the upstream fork link from repository 2. The only caveat is that you will not be able to create a pull request for repository 1 in the future.

You can raise the ticket here: <https://support.atlassian.com/contact> ( by choosing 'Technical issues and Bugs' and Bitbucket as a product).


Tags: bitbucket-cloud

cloud

fork

pull-request
Unable to upload artifacts to bitbucket download section
Asked by Pimped:

I have everything setup as documented.

I've tried uploading using the atlassian/bitbucket-upload-file:0.3.2 -\> 401  
I've tried using curl and this also results in a 401.  

I've been struggling for over 3 hours now to get this to work.  
Really starting to mis gitlab actions...  


Answers:
author: Pimped
body: Fixed this with help from Atlassian: apparently your 'personal' app account username must match your own username...


author: Pimped
body: By everything I mean:  
- setup the app account with the rights as documented  
- setup the repository variables with the values for the app account  
- and I'm admin of the repository  

Why it this not working as documented?


author: Ilja Zweigert
body: I have exactly the same issue. A reply would be awesome!


Tags: bitbucket-pipelines
How to get all the data in Smart Multi-Row
Asked by Srisaiyeegharan Kidnapillai:

I have a ConfiForm where I have defined a Smart multi-row field "users" which contains 3 text fields "name", "email" and "city".  

I'm using ConfiForms IFTTT Integration Rules \| event = onCreated \| action = Create Jira Issue to create a Jira ticket with the information captured in 'users' smart multi-row.

My understanding is that the body in the IFTTT integration rule supports Velocity Template Language. I'm trying to use VLT to get all the data in the Users field (Which could be 1,2,3..n) depending on how many rows get added by the person submitting the form.

<br />

I have the following VLT.  
#set($count = "")  
#foreach($row in $users)  
#set($name = $row.name)  
#set($email = $row.email)  
#set($city = $row.city)  
#set($count = $velocityCount)  
#end  

I'm trying to get the values and concatenate them however I'm not even able to read the values in name, email and city. I do see that the count value gets updated to 1,2,3..n depending on the number of rows/users the submitter is adding to the form.

How do I go about reading the values in the smart multi-row? I have tried \[entry.users.name\] but this reads the value for me but restricted only to the very first User.


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Srisaiyeegharan Kidnapillai](/t5/user/viewprofilepage/user-id/5194735) and welcome to this community

Smart multi-row, as well as other smart fields holds only references to records it is linked to

There is no rich object behind it - just an UUID (or multiple, in case of multi-select fields) to a record in another form

Alex


Tags: confiforms

confluence-server

server
How to bulk reassign pages/space creator from one person who's gone to me?
Asked by Anthony Pena:

Hello

We have many Pages and Space created by someone in my department that is no longer with us, now, all those still showing this person's name when he's no longer with us and he left in a very bad way. So, the Executive asked me to reassign all those pages/spaces to myself in order to remove him from there. Is this possible? If yes, how please?

Thanks,

Anthony


Answers:
author: Kristj?n Geir Mathiesen
body: Hi [@Anthony Pena](/t5/user/viewprofilepage/user-id/5194383) and welcome!

Currently this is not possible, [see this Suggestion](https://jira.atlassian.com/browse/CONFCLOUD-7247), which you can vote on and watch.

There does not seem to be a firm date on the ability to change owners of Confluence pages. It's currently under development, I am told, and they are hoping that we'll see it on the [roadmap](https://www.atlassian.com/roadmap/cloud) at the next update.

HTH,  
KGM


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Confluence does not have the concept of a page "owner" - pages belong to the space owners.

The author is **not** the owner.

The author of a page is the person who created it, and that should never be changed. You rarely want to destroy the information of who created a document, and it's illegal in a lot of cases too. The "owner" is a different concept.

You should tell your Executives that the author of a page is an audit item, the ownership is a function of space ownership (for now)

comments: author: Kristj?n Geir Mathiesen
body: Mind you [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) that with Confluence Automation, there are use cases where one wants the author of the page to be a current employee of the company. For example, we are looking for a way to keep the pages up to date and will use Automation to notify the page author if a page hasn't changed in 4 months (as long as the page does not have the label 'evergreen' on it). This process will not work very well if some of the authors have left the company. So in this use case, we want to swap out inactive authors for active users.

Just sharing our use case :)


Tags: cloud

confluence-cloud
Editing the macro menu
Asked by Matyas Barta:

Hello all,

Lately I have been working with confluence and I'm using a macro that is not in the basic list when I open the drop-down menu. Is there any way for me to change what is displayed in the menu (first picture) or at least create a new group (Favourites with that being the default group) in the section which comes after selecting "Other macros" option (second picture)?

![macro.png](/t5/image/serverpage/image-id/251344iADF4C03BA730DA75/image-size/large?v=v2&px=999 "macro.png")![macro2.png](/t5/image/serverpage/image-id/251345iD448718B9EA2A96C/image-size/large?v=v2&px=999 "macro2.png")  

Regards,

Matyas


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Matyas Barta](/t5/user/viewprofilepage/user-id/5194356) and welcome to the community,

Please take a look at this post which has the same question <https://community.atlassian.com/t5/Confluence-questions/How-can-I-choose-which-macros-appear-in-the-dropdown/qaq-p/1713208>

comments: author: Matyas Barta
body: Thank you Alex!


Tags: confluence-server

server
When i create new page , it's created under the inviter space!!!
Asked by Mohamed Mahmoud:

I got an invite link to access Confluence a month ago. When i accessed it, i can see my profile /name ...etc

There is a "Create" button to create new page. Whenever i click it, it creates my page under the inviter space :) !!!!

![Jira_1.jpg](/t5/image/serverpage/image-id/251320iB4DA02810C2FFFE5/image-size/large?v=v2&px=999 "Jira_1.jpg")![Jira_2.JPG](/t5/image/serverpage/image-id/251321i1504F7B7DED6FE44/image-size/large?v=v2&px=999 "Jira_2.JPG")


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

The create button will, by default, start creating a page under the page you are currently on, if you have create/edit permission in the space. If you do not, it will go back to the last page you visited that you do have permissions to create pages underneath.


Tags: cloud

confluence-cloud