youngmon/atlassian-qna huggingface dataset:
Automation rule should send email based on lookup issues but it either sends duplicates or no emails
Asked by Abiy Kaltiso:

**What I am trying to do**

Trigger: Every weekday at 8:30am  

Action: Lookup stale issues based on a JQL query  

Then: Email the assignees of those issues with a list of their stale tickets

Expected result: assignees with stale tickets should each get 1 daily email at 8:30am with all of their stale tickets in a list  

Actual results: assignees get duplicate emails.

or

If I uncheck the box "Run a JQL search and execute actions for each issue in the query" on the scheduled trigger step then I thought that would solve the problem but instead it ends up not sending any emails at all with the error, "Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty." in the audit logs  

The JQL I have in the screenshots are just test issues. Actually query to find stale issues will be be based on last updated date.   

![Screen Shot 2022-08-25 at 1.23.33 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/212832i7A2AA8A932D1B2BF/image-size/large?v=v2&px=999 "Screen Shot 2022-08-25 at 1.23.33 PM.png")![Screen Shot 2022-08-25 at 1.23.45 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/212831i27CF739A4473D727/image-size/large?v=v2&px=999 "Screen Shot 2022-08-25 at 1.23.45 PM.png")


Answers:
author: Edrick
body: you need to create an action which create a variable and as the value of the variable add this **{{#lookupIssues}}{{assignee.emailAddress}} {{/}}** . Then use the created variable on the **to** for the email. ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/224232i2867F5332470E4FB/image-size/large?v=v2&px=999 "image.png")

comments: author: francis.pierre-louis
body: [@Edrick](/t5/user/viewprofilepage/user-id/2260585) did this actually work? And [@Abiy Kaltiso](/t5/user/viewprofilepage/user-id/4698988) did you ever find a solution. Im having the same issue.


author: Mauricio Heberle
body: Did you try using the variable?


author: Edrick
body: im having the same issue, any more suggestions


author: Mauricio Heberle
body: Try removing the Jql from trigger

comments: author: Abiy Kaltiso
body: Hi Mauricio, as mentioned if I remove the JQL from the trigger then no emails are sent and I get the error in the audit logs, "Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty."


author: francis.pierre-louis
body: Anyone resolve this?
Repositories are missing.
Asked by nouscodes:

I logged into my account and found no repositories found. Completely empty. I have quite a few repositories and I have used them till last year. Can you please help me how can I access my repositories again.

I tried making my workspace name and Id same as suggested in the the community. It didn't work


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

I believe you had more than one email associated with your Bitbucket account, and you tried to log in with an email alias instead of the primary email address, which ended up creating a new Bitbucket account associated with the alias. I see the account you used to post this question was created yesterday, so that's likely the reason why you are not seeing your repositories.

This scenario and the steps to fix the problem are outlined in the following article :

* [Email address transferred to a new account](https://confluence.atlassian.com/bbkb/email-address-transferred-to-a-new-account-1188411865.html)

So I would suggest going through the steps in that article to log in with the correct email address, and if you have any questions, feel free to ask.

Thank you, [@nouscodes](/t5/user/viewprofilepage/user-id/5476480) !

Patrik S


Tags: bitbucket-cloud

cloud
Recover Repositories from old login system ?
Asked by Bill Smith:

I had several repositories that have disappeared. I have read that there was a change in the login system that causes this. Is there a way to restore my old repositories ?


Answers:
author: Ben
body: G'day Bill!

Welcome to the Bitbucket Cloud community :)

Please review the following article below and attempt the steps contained within it - it is highly likely that you have not logged in using the correct email address:

* <https://confluence.atlassian.com/bbkb/email-address-transferred-to-a-new-account-1188411865.html>

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Bill Smith
body: This did not help. Any other ideas ?


author: Ben
body: Hi [@Bill Smith](/t5/user/viewprofilepage/user-id/5476240)

If you can't find those repositories remotely, and you have local copies - I'd suggest pushing those up to your current workspace.

Are you able to point me to where you had heard about changes to the login system? We have made changes to how workspaces are displayed, as well as sunsetting Mercurial (HG) repository support but nothing related to login. If I can see the page/thread you're referring to this may give me further context.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Bill Smith
body: It seems it needed to catch up. It seems to be working. Thank you.


Tags: bitbucket-cloud

cloud
Fork main project to develop smallest one
Asked by Adriano Pizzi:

Hello,

I manage a project (Project 1) that has different functionalities. My new customer bought a subset of functions of this main project (from now we call Project 2).

Project 2 doesn't have some folders of Project 1 and does not include the objects in those folders.

This customer needs some changes to Project 2.

When I'll make the requests for Project 2 I need to put the changes into Project 1 to improve it and because I don't want two different codes to manage.

If I fork the Project 1 to Project 2 when I make pull request the deleted folders are deleted into Project 1?


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

If you want to merge changes from Project 2 back into Project 1 using a pull request, things can get a bit complex. If you've deleted folders in Project 2 and you create a pull request to merge these changes back into Project 1, those deleted folders would indeed be marked for deletion.

However, there's a "workaround" that may be useful in your case. When you're ready to merge changes from Project 2 to Project 1, you can:

1. Create a new branch in **Project 1**
2. Merge your changes from **Project 2** into this new branch
3. Manually restore the deleted folders in the new branch of **Project 1**.
4. In Project 1, create a pull request to merge this new branch back into the main branch.

This way, the changes from Project 2 can be incorporated into Project 1 without losing any folders.

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

Thank you, [@Adriano Pizzi](/t5/user/viewprofilepage/user-id/5476326) !

Patrik S

comments: author: Adriano Pizzi
body: Thank you, [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)


Tags: bitbucket-cloud

cloud
Unable to log in because MFA device is unavailabe
Asked by ashfaque:

I have MFA enabled for my Bitbucket cloud account. Lately, my MFA device was dead, and so is the MFA app verified for Bitbucket login, and the Mobile number and registered email were also gone.  
Since I have managed google suite email, so I tried my admin to help me reset the password and disable the MFA for my account, after disabling my MFA, it still asks for the MFA code. I am still unable to login.  
Raised a support ticket, but I haven't had gotten into my account successfully. I can use other services of Atlassian without any problem.


Answers:
author: Ben
body: Hi ashfaque,

I can see that you are part of an organisation who may be managing your MFA, so I would encourage you to reach out to an administrator from your organisation to take a look into this as we cannot manage these settings from our end.

I also have not found a ticket in our system from the email address you have logged this with - please raise a support ticket with **Bitbucket Cloud** as the product and **Technical Issues \& Bugs** as your issue with the company workspaceID as the url in the following format: <https://bitbucket.org/workspaceID>

* <https://support.atlassian.com/contact/>

If you have issues raising a ticket, please let me know what timezone you are in and I will raise one on your behalf within your timezone to ensure that the appropriate team is assigned to this.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Unable to login due to Invalid two-step verification code
Asked by Kian Wei Lim:

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

I've set up two-step verification code for my Atlassian account, but when I try to log in to Bitbucket, the system keeps prompting this error message even though I've entered the six-digit code from the Google Authenticator app.


Answers:
author: Ben
body: Hi Kian,

You have MFA enabled on both your Atlassian account and your Bitbucket Cloud account, the screenshot you have shared is prompting you for Bitbucket MFA.

We have an article below explaining the difference and troubleshooting steps to reset your Bitbucket Cloud MFA, please review this and follow the troubleshooting steps:

* <https://confluence.atlassian.com/bbkb/how-to-disable-reset-2fa-on-bitbucket-cloud-and-atlassian-account-1236932929.html>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
how to delete file from repository at reached Max Size?
Asked by JYH:

I have reached maximum storage.  
Afterwards, I tried deleting the large files, but it was impossible.  
I would like to delete all 4 files in the path below.  
Can you help me?

\[REDACTED\]


Answers:
author: Ben
body: G'day!

I can see the repository you have mentioned has been deleted on your end - it appears that you have created new repositories in its place of a reduced size. Is this correct? If so, please let me know if we are still able to help you.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
bash apt-get not found in pipeline
Asked by Cesar Alejandro Chavana Cazarez:

Hello

I've been trying to run my pipeline with this yml configuration file but i keep getting this problem

```
bash: apt-get: command not found
```

This is the yml  

```
image: ruby:3.0.3

pipelines:

default:

 - step:

name: Run minitests

script:

# Dependencias necesarias 

 - apt-get update && \

apt-get install -y \

fonts-liberation \

libasound2 \

libatk-bridge2.0-0 \

libatk1.0-0 \

libatspi2.0-0 \

libcups2 \

libdbus-1-3 \

libdrm2 \

libgbm1 \

libgtk-3-0 \

libnspr4 \

libnss3 \

libu2f-udev \

libvulkan1 \

libxcomposite1 \

libxdamage1 \

libxfixes3 \

libxkbcommon0 \

libxrandr2 \

xdg-utils && \

rm -rf /var/lib/apt/lists/*

# Configuracion de chrome y chromedriver 

 - dpkg -i driver/117.0.5938.132/google-chrome.deb

 - export CHROMEDRIVER_PATH=driver/117.0.5938.132/

 - export PATH="${CHROMEDRIVER_PATH}:${PATH}"

 - export BROWSER=:chrome

 - export LOAD=eager

 - gem install bundler

 - bundle install

 - rake runner:run_tests
```

It's the image im using? i used the same image in a docker with the same steps and everything runs fine, i don't understand why this happens in the pipeline


Answers:
author: Saxea _Flowie_
body: Hi [@Cesar Alejandro Chavana Cazarez](/t5/user/viewprofilepage/user-id/5475706) ,

The issue is the '\\' this are used for escaping in the shell. You can remove it and it should work.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipeline

ruby
Get pipeline information by build number with api.bitbucket.org/2.0 api's
Asked by Philip wasserman:

<https://api.bitbucket.org/2.0/repositories/{workspace}/repo/pipelines/?q=build_number=1>

This returns all the piplines I just need the one with the build build number of 1

I tried :

q=%28build_number%3D1

q=build_number%3D1

nothing works. :(


Answers:
author: Philip wasserman
body: Hi I got the answer

I used:

[https://api.bitbucket.org/2.0/repositories/{workspace}/repo/pipelines/1](https://api.bitbucket.org/2.0/repositories/%7Bworkspace%7D/repo/pipelines/?q=build_number=1)


Tags: bitbucket-cloud

cloud
We are having problems with our old developers transferring our "Bitbucket Repo" over to me
Asked by Daniel Collins:

I need help as we have moved to new developers as a result of ongoing issues and they will not respond to transferring the bitbucket repo into my name so our new developers can fix numerous issues with our website. I need support to contact me!


Answers:
author: marc -Collabello--Phase Locked-
body: You'd need to contact support at <https://support.atlassian.com/>

However if the account is not under your control, I doubt that Atlassian will change the account to your control.


Tags: bitbucket-cloud

cloud

transfer
error 500 after try to upload file to the main branch
Asked by Felipe Ignacio Illanes Lopez:

I'm using Ansible locally as curl template for the interaction with the Bitbucket API. A couple of month ago the script works perfectly but today crash after try to upload content with a multipart/form-data

The code with problem (this give 500 error, and don't say so much to identify the problem...)

- name: Upload content to main  
ansible.builtin.uri:  
url: <https://api.bitbucket.org/2.0/repositories/my_company/>{{ repository_name }}/src  
method: POST  
body:  
.gitignore:  
filename: .gitignore  
body_format: form-multipart  
status_code: 201  
headers:  
Content-Type: multipart/form-data  
Authorization: '{{ auth_token }}' //use an account with admin access , all scopes  
Is same as curl but when i try to execute show a msg "something went wrong" , can someone help? thank you :)


Answers:
author: Felipe Ignacio Illanes Lopez
body: Actually i solved the problem, but the script was ok, the problem was some configuration in the bitbucket cloud project (impact in all the repositories under that name). For some reason in the "Branch Model" section, with the option "development branch" i put **use main branch** and for "Production branch" i put **No production branch**. With that changes my script works and can create repositories (my total script do that)

Because the configuration was defined with: Development branch -\> use specific branch and Production branch -\> use specific branch. With this option i recieve the error mentioned en before question.

I share my github if someone needs help, and if can someone explain why with that options works?

My github <https://github.com/fillanes/create-bitbucket-repo-ansible/> . And thanks for take a time for read this :)


Tags: bitbucket-cloud

cloud
Load Users into Bitbucket Cloud via CSV
Asked by brian_flanagan:

I have existing bitbucket projects/repos that were created before the Access integration went live. I need to unboard/invite potentially hundreds of users and the only way I see to do is inviting via email. Even then im limited to 10 users at a time. Is there no way to do bulk user loads?

From what I saw on the Access forums the only way to get Access integration now, is it start over or wait till 2025?! when they backport the "new" way of doing things?

What am i missing?


Answers:
author: Ste Wright
body: Hi [@brian_flanagan](/t5/user/viewprofilepage/user-id/5146749)

You mention Access - is this Atlassian Access?

And where are you inviting these users from? Is it within Bitbucket or within your Org?

Ste

comments: author: brian_flanagan
body: It is from within Bitbucket itself. Because i have an existing Bitbucket Cloud org setup before they integrated Access with Bitbucket (feb 2024), I cant simply start over.

all I get is the following -

![Screenshot 2024-04-14 at 5.51.43?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/318231iAEFB7293A22BBDD8/image-size/large?v=v2&px=999 "Screenshot 2024-04-14 at 5.51.43?PM.png")![Screenshot 2024-04-14 at 5.51.09?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/318230iF49297583D22557C/image-size/large?v=v2&px=999 "Screenshot 2024-04-14 at 5.51.09?PM.png")


author: Theodora Boudale
body: Hi Brian,

I'm afraid that it is not possible to load users into Bitbucket Cloud via CSV.

For workspaces that are still administered in Bitbucket Cloud (and not in admin.atlassian.com), we still support an API endpoint for invitations. Perhaps you could use that to build a script that invites multiple users.

On this page, you can see an example of inviting a user to a certain repo:

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

On this page, you can see an example of inviting a user to a user group:

* <https://support.atlassian.com/bitbucket-cloud/docs/invitations-resource/>

When unified user management becomes available for workspaces created before February 2024, these APIs will not work as soon as you move your administration from in Bitbucket Cloud to admin.atlassian.com.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

user-creation
You've exceeded the number of parallel steps allowed for your plan - despite no change to steps
Asked by Chai:

Hello,

Since yesterday, we have noticed this error being thrown at the time of running pipeline

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

However, we didn't really change the number of parallel steps. So we think this error is incorrect.

Moreover, retriggering the same pipeline works. This leads us to believe that there is some other potential limits that we are hitting e.g. number of concurrent pipeline runs perhaps.

The wiki on [bitbucket pipeline limitations doesn't talk about limits on concurrent runs](https://support.atlassian.com/bitbucket-cloud/docs/limitations-of-bitbucket-pipelines/)


Answers:
author: Syahrul
body: G'day, [@Chai](/t5/user/viewprofilepage/user-id/5474926)

Welcome to the community.

The screenshot of the error you share means you've reached the 100 parallel steps limit. We do mention that on the limitation page:

"Parallel steps: up to 100"

Can you raise a support ticket on our [Support portal](https://support.atlassian.com/contact/) and explain why you need to run more than 100 parallel steps? We may have a workaround that we can suggest once we understand your workflow better.

Regards,  
Syahrul

comments: author: Chai
body: Thanks. Raised a support ticket and they helped with workaround.


Tags: bitbucket-cloud

cloud
URGENT : Repositories unreachable anymore
Asked by Tanguy:

Dear community,

Since this morning I'm not able to reach my repositories related to my workspace anymore. saving all our content on those repositories ...  
This morning I was surprised that I'm not able to reach my content anymore, yesterday everything worked fine ...  

Can you help me please ? I'm very worried .... :(


Answers:
author: Dave Rosenlund _Trundl_
body: I am sorry to hear that, [@Tanguy](/t5/user/viewprofilepage/user-id/5474909) ?

There were reported issues with Bitbucket Cloud yesterday, but there are no reported issues today.

[https://bitbucket.status.atlassian.com](https://bitbucket.status.atlassian.com?)

In the future, it would be best to check the status page 1st. And if you're not seeing any systemwide issues to open a support ticket with Atlassian in cases like this one.   

Hope this helps,

-dave

comments: author: Dave Rosenlund _Trundl_
body: P.S. welcome to the community ?


author: Tanguy
body: Hi [@Dave Rosenlund _Trundl_](/t5/user/viewprofilepage/user-id/1164057)

Thank you very much for your reactivity and your answer !

I will check next time, I wasn't aware about the page you sent, good to know ! :)

I finally found what was the issue, all the permissions have been removed and the repositories permissions broken as well then.

I guess due to the Cloud incident yersterday ...

BTW ... the problem is solved now.

Once again thank you !


author: Dave Rosenlund _Trundl_
body: Awesome! Very glad to hear it ?


Tags: bitbucket-cloud

cloud
How I can recover deleted repository from web
Asked by anant.sakhare:

I have accidentally removed the the 2 repositories from the my workspace, how I can recover the complete code of it. It is so much important for me.   
Can we recover them ?


Answers:
author: Daria Kulikova
body: Hello [@anant.sakhare](/t5/user/viewprofilepage/user-id/5474838) ,

Welcome to the Atlassian Community!

Unfortunately, if you hadn't had a backup of your repositories, it can be hard. In any way, it's better to contact to Atlassian support, Probably, there was a case like yours described here: <https://community.atlassian.com/t5/Bitbucket-questions/Recover-deleted-Bitbucket-Workspace/qaq-p/2452903> . Everything depends on the time when the deletion took place.

To avoid situations like that, it is always a good idea to have automated backups of your Bitbucket environment. For example, GitProtect backup and Disaster Recovery software for Bitbucket provides automated scheduled backups ensuring that each line of code is always accessible and recoverable. Once you set up your backup policy and the event of failure happens, like repository deletion, you can simply restore your Bitbucket repositories and metadata using a point-in-time restore, granular recovery of repositories and selected metadata, cross-over recovery, restore to the same or new repository, or to your local instance. You can try the backup solution for free for 14 days and find out more about GitProtect backups on Atlassian Marketplace: [https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud&tab=overview)

Hope this answer will be helpful and you will be able to restore your deleted repositories,

Kind regards,

Daria

comments: author: anant.sakhare
body: can you share me link where I can raise ticket to Atlassian support ? I have deleted repositories in this week only.


author: Daria Kulikova
body: Try this link: <https://support.atlassian.com/bitbucket-cloud/>


author: Nikola Perisic
body: Welcome to the community [@anant.sakhare](/t5/user/viewprofilepage/user-id/5474838)

The repositories can be restored only by the Atlassian team. Reference: <https://community.atlassian.com/t5/Bitbucket-questions/Repositories-Recover/qaq-p/2424952>

I will tag Atlassian here, so this issue gets a higher awareness.

comments: author: Nikola Perisic
body: Hi [@anant.sakhare](/t5/user/viewprofilepage/user-id/5474838)

This is the link: <https://support.atlassian.com/contact/#/>


Tags: atlassian

bitbucket-cloud

cloud
Cannot login to my account
Asked by Dimitri Kurashvili:

Can you please help me with login to my account?

![Screenshot 2024-04-12 143120.png](/t5/image/serverpage/image-id/317944i847627F9F0199A60/image-size/large?v=v2&px=999 "Screenshot 2024-04-12 143120.png")


Answers:
author: Theodora Boudale
body: Hi Dimitri and welcome to the community!

Your Bitbucket Cloud account was deactivated, which is the reason for the error you were seeing.

I went ahead and reactivated it, could you please try logging in when you have some time and let me know if the issue is resolved?

Kind regards,  
Theodora

comments: author: Nikola Perisic
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) for jumping in!


author: Nikola Perisic
body: Welcome to the community [@Dimitri Kurashvili](/t5/user/viewprofilepage/user-id/5474806) !

This is because due to the inactivity of your account. Reference: <https://community.atlassian.com/t5/Bitbucket-questions/Cant-login-to-Bitbucket-account/qaq-p/2552842>

I've added Atlassian as a tag to raise the awareness of this issue. If you don't hear from them soon, make sure that you raise a support ticket: <https://support.atlassian.com/contact/#/>


Tags: atlassian

bitbucket-cloud

cloud