youngmon/atlassian-qna huggingface dataset:
When I trigger a pipeline from another pipeline and the first fails, I want all to fail
Asked by ralph Hovens:

I've setup a pipeline A that triggers another pipeline B. If B succeeds and A succeed all is good. If B fails, but all the other steps of Pipeline A succeed, A succeeds as probably kicking of Pipeline B is seen as a succes. I would actually like to have the build fail at that point. How can I achieve this?

Actual results from Pipeline A:

? Build started successfully.

Build number: 29. Follow build logs at the following URL:

? Pipe finished successfully.

Actual results from Pipeline B:

#29 status failed


Answers:
author: Theodora Boudale
body: Hi [@ralph Hovens](/t5/user/viewprofilepage/user-id/4175318) and welcome to the community!

You can use the following pipe for triggering another Pipelines build (perhaps you are using this already?):

* <https://bitbucket.org/atlassian/trigger-pipeline/src/master/>

If you check in the link above the available variables for this pipe, there is a flag called **WAIT** . If you set **WAIT: 'true'** for the pipe, the pipe will wait for the triggered pipeline to complete. If the triggered pipeline fails, the pipe (and therefore pipeline A) will also fail.

Is this something that works for you?

Kind regards,  
Theodora


Tags: bitbucket-pipelines

cloud
Repositories Showing as Empty after Migration
Asked by Paul Janicki:

Hi,

Our server which was hosting our bitbucket instance has become unusably slow, so we are migrating everything off of it to a new server. We have managed to migrate the database to a new SQL instance, and copied the home directory and reinstalled bitbucket on the new server as well. Logins are working, and we can see the branches and names of repositories. However whenever we try and access any repository, all we get is the

"You have an empty repository

To get started you will need to run these commands in your terminal.

New to Git? [Learn the basic Git commands](http://docs.atlassian.com/bitbucketserver/docs-0512/Basic+Git+commands?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash)

### Configure Git for the first time" {#toc-hId-1200717492}

Unfortunately I am not an end user for the software, so know nothing about Git itself. I have checked the permissions for the home folder and it seems correct.

I am completely stuck!


Answers:
author: Christian Glockner
body: Hi Paul,

The most likely cause of the problem is that either the data from the home directory (in particular from the shared directory in it) wasn't copied properly or there is a permission issue that's preventing the user Bitbucket Server is running as from accessing the repositories.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

git

repository

server
Can I see the pull request I watch anywhere?
Asked by Cornelia Eiken:

On my Bitbucket dasboard I can see all Pull Requests I am involved in als creator or reviewer.

I'd like to see also the pull request that I only watch.

As far as I know, I get e-mails when there are changes to those watched pull requests. I get a lot of e-mails and I filter bitbucket mails and rarely read them.

My reason to watch those pull requests is solely to know when their build was successful.

As a workaround I make myself reviewer. But this causes problems with our merge policy that all reviewers have to agree. (I don't want to review the code and don't want to pretend I did by marking it green).


Answers:
author: Tyler T
body: Hi [@Cornelia Eiken](/t5/user/viewprofilepage/user-id/2671527) , thank you for your feedback. We see the value in this type of display on the dashboard. Our team plans to discuss it further. I've linked this post on our internal ticket.

Thank you


Tags: bitbucket-server

server
How to control/manage the master branch and how to fork?
Asked by Lionel Dyck:

We are using Bitbucket on the bitbucket.org site and I have a few questions:

1. While I want my developers to be able to clone to their local workstation how can I prevent/restrict developers from committing to the master (or other branches)?
2. I do not see a Fork option for any of our repositories - only Clone. Thus question 1.

What I would like is for each developer to Fork a repo and then when they are ready to get it into the main repository to generate a Pull request.

Can this be done? If so, what am I missing?

TIA


Answers:
author: Theodora Boudale
body: Hi Lionel,

For **1.**, it is possible to create branch permissions (for master, or any other branch you want) and specify which users can push directly to this branch. The rest of them won't be able to do so.

You can read more on branch permissions and also find instructions on how to create them here:

* ++<https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/>++

For **2.**, while you are viewing the repo in Bitbucket Cloud website, select the + sign on the top left corner (right below the search sign):

![Screenshot 2020-12-07 at 15.52.05.png](https://community.atlassian.com/t5/image/serverpage/image-id/121211iD89C69E8A2AEB985/image-size/large?v=v2&px=999 "Screenshot 2020-12-07 at 15.52.05.png")

Then you'll see more options, including the **Fork this repository**:

![Screenshot 2020-12-07 at 15.52.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/121212i5E3FB22CF1886A64/image-size/large?v=v2&px=999 "Screenshot 2020-12-07 at 15.52.14.png")

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

Kind regards,  
Theodora

comments: author: Lionel Dyck
body: THANK YOU - this is perfect.

But: Is there a way to make FORK more obvious (not in the + menu) ?


author: Theodora Boudale
body: Hi Lionel,

You are very welcome!

Regarding the fork option, I'm afraid that it is not possible to configure where this option shows.

I can open a feature request for this if you'd like, for our product managers to take into account.

Where would you expect to find this option in the repository page?

Kind regards,  
Theodora


author: Lionel Dyck
body: How about a Clone pulldown with a Fork option?


author: Theodora Boudale
body: Hi Lionel,

Thank you for the feedback and apologies for the delay in my reply.

I went ahead and created a feature request for this in our issue tracker:

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

Please make sure to add your vote there (by selecting the **Vote for this issue** link). You can also add yourself as a watcher by selecting the **Start watching this issue** link, if you'd like the get notified 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 ticket.

If you have any questions or need anything further, please feel free to let me know!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

fork

pull-request
Not getting invitation mail for the repository
Asked by Vikas Jethnani:

Hello,

The id is vikas.jethnani@betterplace.co.in

It has been tried multiple times to add me to the project but i'm not getting any invitation mail. Accessing the project directly via link shows an authentication error but the user list has the id (with Resend Invitation option that been tried multiple times already).

Can someone help how to get around this issue?

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Vikas Jethnani](/t5/user/viewprofilepage/user-id/4184045) ,

I checked in our system and I saw a hard bounce event for this email, created on 22nd September 2020, informing us that the email does not exist.

There might have been an attempt to send an invitation or another Bitbucket email while the email account was not operational. The hard bounce informs us that the email does not exist and in this case it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed the email from the suppression list, could you please ask one of the admins to send you a new invitation now?

A new invitation needs to be sent, as the previous ones were dropped.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Commits, chronological order.
Asked by Max:

Hello everyone, it is possible to obtain the commits via <https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commits>

in chronological order? Maybe some workaround exists?

Thank in advance, Max


Answers:
author: Theodora Boudale
body: Hi Max and welcome to the community.

By default, this endpoint returns the commits in reverse chronological order (newest commits are returned first).

I'm afraid that it is not possible to reverse the order, as the commits endpoint does not support filtering and sorting at the moment.

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

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

I would suggest to add your vote (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 are posted in the feature request.

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

Kind regards,  
Theodora

comments: author: Max
body: Hi Theodora,

thank you for your answer! I will vote for this issue

Best regards, Max


Tags: bitbucket-cloud

cloud
downgrade bitbucket from version 7 to 6
Asked by Bernd Eichner:

Hello,

We would like to know if there is a procedure to downgrade from Bitbucket 7.4 to 6 (our previous version was 6.6.3).

Thank you.


Answers:
author: Christian Glockner
body: Hi Bernd,

Downgrades in Bitbucket Server aren't possible, unless you restore a backup of the database and the home directory from before the upgrade.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
How to make personal access token
Asked by xinstruments:

It seems that i can't find a way to generate personal access token. From help pages i gather that i need to go to **Profile picture** \> **Manage account** \> **Personal access tokens**

the problem is that there is no option to "Manage account". When i press my icon i have an option to open personal settings or go to workspaces.


Answers:
author: Theodora Boudale
body: Hi [@xinstruments](/t5/user/viewprofilepage/user-id/4183538) ,

I believe that the instructions you've been reading might have been for Bitbucket Server, instead of Bitbucket Cloud.

The equivalent of access tokens in Bitbucket Cloud is app-passwords.

You will need to go to **Profile picture** \> **Personal settings** \> **App passwords**.

You can read more on the following documentation page:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

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

Kind regards,  
Theodora

comments: author: xinstruments
body: thank you. it worked


author: Theodora Boudale
body: You are very welcome, glad to have helped!


Tags: bitbucket-cloud
How to get the UUID of a user in Bitbucket Cloud
Asked by Kota Sreenivasa Shravana Kumar:

Greetings

I wanted to know, How to get the UUID of a given user in Bitbucket cloud using REST API call?

The use case is, I want to remove a user from a group where uuid is required. The API call is as follows - Taken from the Atlassian documentation.

<https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/>

curl --request DELETE --user \<username\>:\<API Token\> [https://api.bitbucket.org/1.0/groups/\<workspace\>/{group}/members/{uuid]()}

Thanks !


Answers:
author: Caterina Curti
body: Hi all,  
The unique identifier that you want to use is the **[Atlassian Account ID](https://support.atlassian.com/atlassian-account/docs/what-is-an-atlassian-account/)** (also known as AAID).

The Atlassian Account ID is accepted in the REST API requests and available in the response as the **account*_id*** field.

Here is an article where I explain how to retrieve the AAID: [Retrieve the Atlassian Account ID (AAID) in bitbucket.org](https://community.atlassian.com/t5/Bitbucket-articles/Retrieve-the-Atlassian-Account-ID-AAID-in-bitbucket-org/ba-p/2471787)

The most common REST API endpoint to retrieve the account IDs of users is the [members endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get). It returns the account_id of all users belonging to a workspace when calling the *[https://api.bitbucket.org/2.0/workspaces/{workspace}/members](https://api.bitbucket.org/2.0/workspaces/%7Bworkspace%7D/members)* endpoint.

While the UUID was the standard a few years ago, these days the Atlassian Account ID is the preferred, recommended and future proof option as a unique identifier for users.

Caterina


author: Theodora Boudale
body: Hi [@Kota Sreenivasa Shravana Kumar](/t5/user/viewprofilepage/user-id/510166) ,

You can retrieve a list of all users that have access to a certain workspace (that you are an admin of) and the UUID for each one using this endpoint:

* <https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/members>

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

Kind regards,  
Theodora

comments: author: Satish Kayam
body: Hi [@theod](/t5/user/viewprofilepage/user-id/4125703)

I have tried to hit the above mentioned URL:

example:

* [https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Binstadevelopers%7D/members](https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/members)

Like this, I have hit in the browser bit it was opening this

link <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication>

Can you help me on this, how to get the logs using API.

Cheers

Satish Kayam


Tags: atl-gruland

bitbucket-cloud

cloud
Need to run git gc on my remote repository
Asked by Hamza Ahmed:

My repository increased over 2GB and i am unable to commit changes on remote repo.  
can you please run git gc on me remote repo.  
Thanks   
Link to Repository:   
<https://bitbucket.org/orangefoxlabs/ml_android_gen2>


Answers:
author: Theodora Boudale
body: Hi [@Hamza Ahmed](/t5/user/viewprofilepage/user-id/4092407) ,

I ran a git gc for this repo and its size went down to 160.1 MB.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: Hamza Ahmed
body: Thank you so much [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)  
you have saved my lots of time.


author: Theodora Boudale
body: You're very welcome, glad to have helped.


author: Tommy Dwi Putranto
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) can you help me too. my repository increased over 2GB different with my local repository. so i think i need to git gc on the server repo.  

this my repo:  
<https://bitbucket.org/tunaiku/senyumku-ios-version>  

Thanks


Tags: bitbucket-cloud
Jira -> github integration. Need to limit pull requests.
Asked by Dave Hattig:

Hi,

I am really unfamiliar with Github, but today I was notified that one of our teams needed to disable Jira to Github integration because the process is consuming all of the allowed API request allocation. I was told every minute for every repo in the organization.

So my question:

Is there a way to configure the existing Jira -\> Github integration to pull Github hourly or 4 times a day or some other threshold that is maintainable. If so can you please provide steps.

Thank you in advance for any suggestions.


Answers:
author: Dave Hattig
body: Disregard question.


Tags: git
Change a private repo into a public
Asked by syphon:

*Hello folks???? I'm new to BitBucket and sadly I've encountered a problem.*

**My Problem**:

How can I convert a private repo into a public one.


Answers:
author: Theodora Boudale
body: Hi [@syphon](/t5/user/viewprofilepage/user-id/4182932) ,

I assume that your request is about a Bitbucket Cloud repo (hosted on <https://bitbucket.org/>)?

If so, is the option "This is a private repository" from **Repository settings** disabled?

If this is indeed the case, the most likely reason is that the repository belongs to a private Project.

Projects are like folders, that can be used to organize/group repositories within a workspace.  
A project can be either private or public.  
Private projects can contain only private repositories, while public ones can contain both private and public repos.

If you navigate to **Projects** within your workspace, you can create a public Project (uncheck the option "Private project" in the create page).

Afterwards, you can navigate to the **Repository settings** \> switch the project this repo belongs to to the public one, and then the option "This is a private repository" will become enabled.

You can also change the visibility of your existing project, if you navigate to **Projects** \> select the project \> **Project settings**.

If the issue is different than what I described, I would like to ask if you could share some more details on the error your encounter so we can better help you.

Kind regards,  
Theodora

comments: author: syphon
body: Thanks Theo


author: Theodora Boudale
body: You are very welcome.


Tags: bitbucket-cloud
Unable to send the email invitation to new user
Asked by Manikanta_A:

HI Team,

One of my team member joined recently ( Yurii_Hliievi@belk.com ) and we are trying to add him in bit bucket but none of the invitations are going to him.

Please look into this issue ,we need to add him into bitbucket ASAP.

Regards,

Manikanta A.


Answers:
author: Ang?lica Luz
body: Hello [@Manikanta_A](/t5/user/viewprofilepage/user-id/3732718),

Thank you for reaching out to Atlassian Community!

There was a bounce on their email address and it was probably what was causing the invitation not being delivered:

```
550: 550 5.4.1 Recipient address rejected: Access denied. AS({hex}) [SN1NAM02FT038.eop-nam02.prod.protection.outlook.com]
```

I removed this bounce and it should work now.

Please, invite the user again and let us know how it goes.

Regards,  
Ang?lica

comments: author: Manikanta_A
body: Thank you [@Ang?lica Luz](/t5/user/viewprofilepage/user-id/986290)

I am good now.


Tags: bitbucket-cloud

cloud
Deploy code to a server behind a firewall
Asked by 1180778:

My college provided me with 2 virtual machines, one linux and one windows, I was planning to deploy code from my repository into the linux VM and then windows can access it via a samba shared folder because linux will rn my backend and windows will use pm2 serve build for my spa.

My problem is that both servers are on a closed network, accessible only via VPN that they provide us, Is there any way for me to create a pipeline to deploy that code to my machine in this case?

And also can I configure it to do some commands like:

npm install -g, npm start

or

npm install -g, npm run build, pm2 serve build 3000 --spa


Answers:
author: Justin Thomas
body: Hi [@1180778](/t5/user/viewprofilepage/user-id/3172432)

Unfortunately, it's currently not possible to access your resources in a private network from Bitbucket Pipelines unless you open up a port and then [ssh](https://bitbucket.org/atlassian/ssh-run/src/master/) into the machine to do the deployment.

I have got some good news for you, we are currently working on Bitbucket Pipelines self-hosted runners. This will allow you to execute your Bitbucket Pipelines step in your infrastructure behind a firewall. The current plan is to have a GA in Feb/March 2021. We will be doing an EAP in January, so please fill out the following [form](https://forms.gle/qtCuKex6CHaCoUGQ7) if you would like to get involved.

Cheers,

Justin Thomas

Product Manager, Bitbucket


Tags: bitbucket-pipelines

bitbucket-server

linux

npm

server

windows
Confluence searchv3 REST API
Asked by Queenie Ma:

Hi. In my app, I want to create a similar search experience as the **Live Search** component:

![Screen Shot 2023-02-08 at 12.24.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/239338i635BE4EF518D1EF1/image-size/large?v=v2&px=999 "Screen Shot 2023-02-08 at 12.24.11.png")

I see that this calls an endpoint like this (which seems to be private because I can't find any information on it in the documentation):

```
/rest/searchv3/1.0/search?queryString=test&user={user_id}&pageSize=5&highlight=false&sessionUuid=0-0-0-0&where=CS
```

However, when I call this endpoint using [OAuth 2.0 (3LO)](https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/) and the **search:confluence** scope, I get back an **Unauthorized** error:

```
{
  "code": 401,
  "message": "Unauthorized; scope does not match"
}
```

What scope should I use to call this endpoint? Or is there a similar public endpoint that I can use that will provide the same functionality (with the **bodyTextHighlights** returned)?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Queenie Ma](/t5/user/viewprofilepage/user-id/5143244) and welcome,

here the documentation for Confluence Cloud rest api <https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-search/>

Hope this helps,

Fabio


Tags: api

cloud

confluence-cloud

oauth

rest

search
Ahoj jsem z ?esk? republiky a str?nky neum?m ud?lat porad? m? n?kdo
Asked by JAROSLAVA SVOBODOVA:

Neum?m vytvo?it str?nky jsem d?chodkyn? a ani neum?m ?e?


Answers:
author: Jaroslava Svobodova
body: D?kuji


author: Brant Schroeder
body: [@JAROSLAVA SVOBODOVA](/t5/user/viewprofilepage/user-id/5143159) Welcome to the Atlassian community

Confluence is a team workspace where knowledge and collaboration can take place. If you are trying to setup a Confluence workspace can you let us know what issues you are having. It is not a website builder.


Tags: cloud

confluence-cloud
Deleting a draw.io diagram
Asked by George Kurian:

I had a draw,io diagram on one of my pages that I deleted. But now whenever I go to the App shortcut in the left navigation pane and click on draw.io diagrams; it shows an untitled diagram on the page in the right panel. When I click on the untitled diagram, it throws the below error:

![Error.JPG](/t5/image/serverpage/image-id/239316i22F19874FE4D1654/image-size/large?v=v2&px=999 "Error.JPG")

I have tried deleting the cache. I am using chrome to access Confluence.


Answers:
author: Marija Radovic
body: Hi,

In order to remove the diagram from the drawio section on the left, just navigate to the source Confluence page, click three dots top right \> Attachments \> Custom contents and delete the diagram under "drawio Diagrams" tab.

Does this help?

Marija

comments: author: George Kurian
body: Thank you. That helped. I was looking only under the Attachments tab. Didnt realize there was a link to it under Custom Contents.


author: Dittmar_ Arno Extern
body: Thanks. Worked 4me as well.

If you can't find it, you might want to close the EDIT mode first ;-)


Tags: cloud

confluence-cloud