youngmon/atlassian-qna huggingface dataset:
Jira automation for upcoming due date
Asked by Hiromichi Kikuchi:

I want to set up an automated email that will send you an email for the upcoming due dates in the beginning of the week for things that are due that week. for example I want to send out an individual email to each assignee on Monday of all of the issues they have due that week. I want each individual assignee to only get the issues due to them in that week.


Answers:
author: Aron Gombas _Midori_
body: You can [create a saved filter](https://support.atlassian.com/jira-software-cloud/docs/manage-filters/) with a query something like:

```
assignee = currentUser() and dueDate > startOfWeek() and dueDate < startOfWeek("7d")
```

and then subscribe it.


Tags: cloud

jira

jira-cloud
Jira Automation: how to send a webrequest to an endpoint secured with OAuth authentication
Asked by Venkat:

Hi,

I have created an automation to run when an issue's priority is updated. The action is to reach an endpoint which is protected by OAuth Authorization. How can I achieve this? Is there a way to generate the access token and use it for the Send web request action

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


Answers:
author: Rick Westbrock
body: Web request actions have smart values which allow you to access the response data so if the token is returned in the "token" element of the JSON response body then you can access it using this smart value: {{webResponse.body.token}}

If you expand the "How do I access web request response values in subsequent rule actions?" section at the bottom of the web request it mentions the {{webResponse.body}} smart value and how to access its elements (along with several other smart values). I tried pasting that text but it won't let me save my comment so here it is in an image instead:

![web-request-smart-values.png](https://community.atlassian.com/t5/image/serverpage/image-id/330201i0316DFDD5AE4C824/image-size/large?v=v2&px=999 "web-request-smart-values.png")
Cannot push to bitbucket from Github Desktop
Asked by Ewoud van der Werf:

Hi folks,

I'm relatively new to git, I'm mostly used to Github with Github Desktop. I'm now collaborating with a team using Bitbucket, I had some trouble configuring everything but after following [this short video](https://youtu.be/FO-LLKc2GC8) I got Github Desktop working with Bitbucket.

However I cannot push my changes.

When I try in the Desktop client it says: "Authentication failed. Some common reasons include:..."

When I try to do git push origin it says: "remote: The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated. fatal: unable to access '[https://bitbucket.org/\*\*\*\*\*\*\*/\*\*\*\*\*\*\*\*\*.git/](https://bitbucket.org/*******/*********.git/)': The requested URL returned error: 403"

Could you help me with this? It's probably a simple issue I'm overlooking.  
The steps I used to clone the project with HTTPS are in the video I mentioned.


Answers:
author: Patrik S
body: Hey [@Ewoud van der Werf](/t5/user/viewprofilepage/user-id/5583129) ,

and welcome to the Community!

Based on the error message you are receiving, the issue seems to be related to authentication.

The URL in the logs suggests you're using HTTPS to interact with the repository.

In this case, if you confirmed that you have write access to that repository, could you please verify if you're using an [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) (not your account password) in your Github Desktop configuration to authenticate the git operation ? The app password is used on behalf of your account password when authentication git activity and API calls.

If you haven't already, please create a new app password and try pushing the content again.

Thank you, [@Ewoud van der Werf](/t5/user/viewprofilepage/user-id/5583129) !

Patrik S

comments: author: Ewoud van der Werf
body: Hi Patrik,

Thank you for your help! I was able to resolve the issue yesterday, it turned out I simply didn't have the permissions to write to the repository yet.


Tags: bitbucket-cloud

cloud

github

push
fatal: Could not read from remote repository.
Asked by Muhammad Hasham:

We are not able to pull any code change from remote origin

![Screenshot from 2024-09-03 16-52-25.png](https://community.atlassian.com/t5/image/serverpage/image-id/345246iA6B8EE2B8715DE7F/image-size/large?v=v2&px=999 "Screenshot from 2024-09-03 16-52-25.png")

When we checked the remote its already there

![Screenshot from 2024-09-03 16-49-42.png](https://community.atlassian.com/t5/image/serverpage/image-id/345243iDBD804EC5AB6F53C/image-size/large?v=v2&px=999 "Screenshot from 2024-09-03 16-49-42.png")

And we haven't added any Access key or SSH key against our repository or workspace

![Screenshot from 2024-09-03 16-51-09.png](https://community.atlassian.com/t5/image/serverpage/image-id/345244iD6CA85119E22354E/image-size/large?v=v2&px=999 "Screenshot from 2024-09-03 16-51-09.png")

Please kindly share, how can we resolve the issue.


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

I highly suggest you check our guidelines below on how to configure SSH with Bitbucket:

[SSH key for Linux](https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/)

Please make sure to add your key under your Personal Bitbucket account and your local SSH agent by using the ssh config.

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Resolving merge conflict & Automatically marking PR as remotely merged.
Asked by UShankar87:

**Trying to understand why it works.**

Pre-Req: **Branch creation**: Main -\> New Release Branch (release/2024-12-12) - \> New feature Branch (feature/NewMenu)

I add my changes to feature/NewMenu. Raise a PR from feature/NewMenu -\> develop Where I'm asked to resolve the merge conflicts, since other developer would have merged their feature branch to develop branch.

I follow below steps in git console:

1. git branch o/p shows : feature/NewMenu
2. git pull
3. git checkout develop
4. git pull
5. git merge feature/NewMenu o/p: shows auto-merge conflicts I resolve the conflicts.
6. git checkout -b mergefix/Resolved.
7. git add \& commit
8. git push

When PR is merged from mergefix/Resolved to develop. The other conflicted PR is not marked as remotely merged.

++**If I modify the last 3 steps it works as expected:**++

1. git add \& commit
2. git checkout -b mergefix/Resolved.
3. git push

Why does this work? What is the difference ?


Answers:
author: Patrik S
body: Hello [@UShankar87](/t5/user/viewprofilepage/user-id/3485351) ,

and welcome to the Community!

* **Original steps**

In the **original steps** you are creating a new branch `mergefix/Resolved` after resolving conflicts and then committing your changes only to this new branch.

When you create a new branch, Git uses the current HEAD as the base for that branch. Hence, when you create `mergefix/Resolved`, it is based on the `develop` branch after resolving the merge, and your commit containing conflict resolutions is only on this new branch.

However, because the conflicts were resolved and committed **after** switching to a new branch, Git does not recognize the original merge as having been completed on the `develop` branch. It essentially sees the conflict resolution as a separate line of development from the initial merge attempt from `feature/NewMenu`.

* **Modified steps**

On the other hand, in the **modified sequence** , you resolve conflicts and commit the changes **while still on the** `develop` branch before creating the new branch `mergefix/Resolved`. When you commit after resolving conflicts on the `develop` branch, Git records the merge as having been completed on `develop`. Creating the branch `mergefix/Resolved` afterward is suitable for pushing and raising a PR, but it does not affect how the merge commit itself is perceived.

The modified steps work as expected because the merge resolution is committed directly on the `develop` branch. This allows Git to recognize that the conflict from `feature/NewMenu` to `develop` has been resolved.

I hope that helps to clarify! Should you have any questions, let us know!

Thank you, [@UShankar87](/t5/user/viewprofilepage/user-id/3485351) !

Patrik S

comments: author: UShankar87
body: Thank you for the insights. [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)


author: Patrik S
body: You're very welcome!

Feel free to reach out if you ever need help in the future :)

Thank you, [@UShankar87](/t5/user/viewprofilepage/user-id/3485351) !  
Patrik S


Tags: bitbucket-cloud

cloud
How does the pricing work for large pipeline output
Asked by lukasz_wojcik:

Hi, I'm working on a project that is a PITA to build as it is resource intensive to build. I'd like to move that process to pipelines. I need help understanding pricing details. So let's assume, that output of the build stage is around 100GB in volume, and each build takes around 4h. I'm currently on free plan. Only 2 BB users need access to this feature. What would be my optimal plan, what would I be charged for. Is LFS the same as build artifacts size or does it refer to binaries that sometimes people include in their GIT repos ?


Answers:
author: Ben
body: Hi lukasz_wojcik,

May I know what you mean by the "output of the build stage is around 100GB in volume"? Are you referring to storage in the repository, or storage as a build artifact?

The repository size limit is 4GB across all plans, LFS limit is 10GB for Premium (you can purchase additional 100GB chunks for an extra $10 per month, per 100GB chunk) - more on LFS below:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-git-lfs-with-bitbucket/>

LFS is not the same as build artifact size. An artifact is simply something you store as a result of a build step so that it can be passed to another build step, the storage limit is 1GB for artifacts. LFS is storage outside the repository for large binary files.

Additionally, the maximum build time across all plans is 2 hours. If you need additional build resources to speed up the processing time - you can make use of 4x/8x pipelines steps which is a Premium feature (note that this consumes 4 times/8 times the build minutes as a regular step):

* <https://bitbucket.org/blog/announcing-our-new-ci-cd-runtime-with-up-to-8x-faster-builds>

Premium has the most amount of build minutes available per month (3500) and more can be purchased in chunks ($10 per month/1,000 minutes) - I'd highly recommend reviewing our plans page to determine the plan that is right for you:

* <https://www.atlassian.com/software/bitbucket/pricing>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket Yaml file can contain Stages and Runners in the same time?
Asked by Valeriu Ghisoiu:

Hello!

Bitbucket can support Stages also for Windows Runners?

(more exactly to run runners under stages)  
My idea is to have different steps for different actions without losing my already compiled data from the step before. (or lose time to compile it again).

(I can't use a local Docker to transmit commands in the different steps and data not lose)

Thanks in advance,

Valeriu


Answers:
author: Theodora Boudale
body: Hi Valeriu!

Yes, you can use stages with Windows self-hosted runners.

You still need to use the **runs-on** property in your yml for every step that you want to run on this runner. You can't define this on the stage level.
> My idea is to have different steps for different actions without losing my already compiled data from the step before. (or lose time to compile it again).

If you're talking about files generated in a step, the stages are not going to help with this. Files generated in one step are not transferred to the next step (even if the steps are part of the same stage), unless you define them as artifacts.

You can check the documentation below for more info about artifacts and how you can define them in your yml file:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/>

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

Kind regards,  
Theodora


Tags: cicd

cloud

pipelines

runner

windows
Bitbucket search slow these days?
Asked by Miikka M?kel?:

Hello,

Searching commits and switching through branches in the web UI seems to have gotten quite slow and janky this year.

Anyone else experiencing this similar feeling? ?


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

Does this concern Bitbucket Cloud or Bitbucket Data Center?

I see that there is a Bitbucket Cloud account with your email address in our system, but it doesn't have access to any repositories.

If you are unsure which one you use, the URL of a Bitbucket Cloud repo on your browser starts with <https://bitbucket.org/>, while Bitbucket Data Center repos use a different, custom URL.

Kind regards,  
Theodora


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
I m trying to store the bitbucket artifact in a step but error throws Searching for files not match
Asked by Chetan Patidar:

- step: \&DEPLOYMENT  
name: Adhoc-UAT-Release  
runs-on:  
- 'self.hosted'  
- 'macos'  
- 'oneapp.deployer'  
script:  
- cd \~ \&\& cd Desktop/c_p/oa/scripts \&\& sh goa_delivery.sh --bn $BITBUCKET_BRANCH --af uat --bt release --rt publish --ec GOOGLE_MAPS_API_KEY=$GOOGLE_MAPS_API_KEY,PLOATLINE_API_KEYS_PROD=$PLOATLINE_API_KEYS_PROD --pr $BITBUCKET_PR_ID  
- ls -lthra $BITBUCKET_CLONE_DIR  
artifacts:  
- build/app/outputs/bundle/uatRelease/app-uat-release.aab  
# - find . -type f -name "\*.aab" -print  
- \~/Desktop/temp-chetan/oa_coreapp_cd/\*\*/android_build/oa/build/app/outputs/bundle/uatRelease


Answers:
author: Chetan Patidar
body: Hi [@Ben](/t5/user/viewprofilepage/user-id/4537226) ,  

thanks for support .   

got the issue . i was doing something wrong related to bitbucket directory path


author: Ben
body: Hi Chetan,

We will need to take a look at your YAML, build logs and overall build environment to troubleshoot this further.

To do so, our support team needs a formal support ticket to be raised so that our system will allow us to grant the necessary access. You are a member of a Premium workspace, and therefore you are entitled to Premium support - please raise a support ticket using the Premium workspace URL with **Bitbucket Cloud** as the product and **Technical Issues**as the request type:

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

If you have issues raising a ticket, please let me know your timezone so I may raise this on your behalf with a team located in your area.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to trigger bitbucket pipeline for already available tags in repository.
Asked by Ashish Bilawne:

We have a critical requirement to enable the triggering of Bitbucket pipelines for tags that are already present in the repository. This feature is essential because it allows us to select and deploy from a list of available tags, directly from a dropdown menu.

The primary use case for this requirement is the need to perform rollbacks to previous versions of our code. In the event that we need to revert to an earlier stable version due to unforeseen issues with the current deployment, having the ability to easily select and deploy an old tag is crucial. This capability ensures that we can quickly restore functionality and minimize downtime, maintaining the reliability and stability of our applications.

By implementing this feature, we will enhance our deployment process, making it more flexible and robust, and ensuring that we can efficiently manage both new releases and emergency rollbacks.


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

Thank you for your feedback.

You could do this in one of the following two ways:

**1.** Open the **Commits** page of the repo on Bitbucket Cloud. If the tags are on a branch other than the repo's main branch, select **Show all** to see all commits.  

If you then open the commit with the tag you want to deploy, you will see the option **Run pipeline** at the bottom of the right sidebar. You can use it to trigger a certain pipeline for this commit.

**2.** Alternatively, from the **Pipelines** page of the repo, you can find the older build on the commit/tag that you want to deploy again. If you open the build, you will see an option to **Rerun** the build (next to the build number).

Do any of these options work for you?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not receiving email to reset Bitbucket 2FA
Asked by Andrea Caria:

Hi everyone,

I cannot log into bitbucket.org as I don't have any 2FA record in my auth apps for Bitbucket, no recovery codes, and the 2FA reset email does not get through.

I did not use bitbucket in the last weeks, and I did not remember to ever use 2FA auth.

I have tried to:

* I click the "Forgot code" link and I get to a page saying "Recover your account - We will send an email to \<my address\> with instructions on how to recover access to your Bitbucket account..." - I click on "Send recovery email"
* I get a success page "Recovery email has been resent. Check your inbox! Recover your account We've emailed instructions to: ..."
* I never receive any email. Not even after 24/48h. The email is not in spam/junk folders. I have tried multiple times in the last weeks with the same result.

Is there a way to restore my account and log in bitbucket?

Thanks,

Andrea


Answers:
author: Theodora Boudale
body: Hi [@Andrea Caria](/t5/user/viewprofilepage/user-id/5582106),

I replied to the other post you created on Monday here:

* <https://community.atlassian.com/t5/Bitbucket-questions/Re-Re-Not-receiving-email-to-reset-Bitbucket-2FA/qaq-p/2800924/comment-id/107368#M107368>

Your email address was in our suppression list so the emails we were sending were dropped. I removed your email address from our suppression list on Monday.

Can you please let me know if you have received the latest 2FA recovery email we sent or if you're still experiencing issues?

Kind regards,  
Theodora


author: vikram
body: Hi [@Andrea Caria](/t5/user/viewprofilepage/user-id/5582106)

Welcome to Atlassian Community,

If you try multiple times then your email id will be in block list (by Atlassian Team) -- for this you have to raise a support ticket to unblock your email id.

or

Check whether mail server is working correctly.

or

Please go through the below community Article / Documentation.

<https://community.atlassian.com/t5/Bitbucket-articles/How-to-get-support-for-Bitbucket-Cloud-invitation-and/ba-p/1932959>


Tags: bitbucket-cloud

cloud
unable to featch the repo enviroment variables through the python
Asked by Surendhiran Balaguru:

I am currently encountering an issue when attempting to fetch repository environment variables as part of updating their values.

1. **Creation of Values**: I can successfully create environment variables using the provided UUID.

2. **Fetching UUIDs**: However, I am unable to retrieve the UUID value via the API GET request. The request returns a 404 error with the following message:

   "There is no API hosted at this URL.\\n\\nFor information about our APIs, please refer to the documentation at: <https://developer.atlassian.com/bitbucket/api/2/reference/>"

Since I need to update multiple values in multiple environment values based on `env_name` in the repository (there are many, so I am aiming for automation), I am facing this challenge.

```
USERNAME = 'xxyy'

PASSWORD = 'xxxxyyyyy'

WORKSPACE = 'workspace'

REPO_SLUG = 'repo-name'

url = "https://api.bitbucket.org/2.0/repositories/{WORKSPACE}/{REPO_SLUG}/deployments_config/environments"

# Headers for authentication

headers = {

    'Authorization': f'Bearer {PASSWORD}' 
}

# Make the GET request

response = requests.get(url, auth=(USERNAME, PASSWORD), headers=headers)

if response.status_code == 200:

    # Parse the JSON response

    data = response.json()

    # Extract and print the repository names

print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
```


Answers:
author: Ian Dick
body: Are you trying to use this API?

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-deployments/#api-repositories-workspace-repo-slug-environments-get>

If so I think you need to drop the **/deployments_config** part of the URL, it's just **/environments** at the end:

```
https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/environments
```

comments: author: Surendhiran Balaguru
body: This works great thank you :)


Tags: bitbucket-cloud

cloud

get

python

uuid
I can't add bitbucket
Asked by Farid Hazrati:

I can't find Bitbucket under Products , Add ? how can I install then ?


Answers:
author: Ian Dick
body: ![Screenshot 2024-09-03 at 9.41.43?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/345163i5A6EFD8E97A9F181/image-size/large?v=v2&px=999 "Screenshot 2024-09-03 at 9.41.43?AM.png")  

You don't see the Bitbucket option in this menu?


Tags: bitbucket-cloud

cloud
How to push jupyter notebook file to bitbucket repository
Asked by Maheshwari Peruri:

I have tried every method but couldn't be able to upload the vs code file into bitbucket repository kindly help me with this.


Answers:
author: vikram
body: Hi [@Maheshwari Peruri](/t5/user/viewprofilepage/user-id/5581898)

Welcome to Atlassian Community.

Please go through the below documentation whether it helps or not let me know.

<https://docs.qubole.com/en/latest/user-guide/notebooks-and-dashboards/notebooks/jupyter-notebooks/managing-jupy-notebook-versions/link-jupy-notebook-bitbucket.html#push-commit-bb-jupy>


Tags: bitbucket-cloud

cloud
Bitbucket pipelines installation and deployment target via pipe to OpenShift
Asked by Prasanna Sivaramakrishnan:

Hi All,

I am new to bitbucket pipelines and have some foundational questions.

My understanding is that bitbucket pipelines is part of bitbucket cloud (hosted service) and can't be installed on AKS or Azure VM? It can be used to deploy to AKS via pipe.

I am trying to use pipe feature in bitbucket pipelines to deploy to Azure red hat openshift -https://azure.microsoft.com/en-us/products/openshift. I don't see anything available outside the box. Is this possible? what would be a alternate way to integrate bitbucket pipelines with Azure red hat openshift


Answers:
author: Patrik S
body: Hello [@Prasanna Sivaramakrishnan](/t5/user/viewprofilepage/user-id/5578175) ,

and welcome to the Community!

Your understanding is correct. Pipelines is the bundled CI/CD solution of Bitbucket Cloud, where you can run your build in Atlassian Cloud (we manage the infrastructure for you) or use self-hosted runners (the build runs in your own infra).

To facilitate the integration with third-party tools/services, Bitbucket Cloud offers a series of pipes that can facilitate your workflow, such as the deployment. You can find a list of the available pipes in the following link :

* [Pipelines - Pipes](https://bitbucket.org/product/features/pipelines/integrations)

While there's not a specific pipe for Azure OpenShift deployment at the moment, you may find other pipes that are applicable for your use case, such as the [atlassian/kubectl-run](https://bitbucket.org/product/features/pipelines/integrations?search=kube&p=atlassian/kubectl-run) that is a generic (not service-specific) pipe to deploy to Kubernetes environments.

Also, Atlassian pipes are open-source, so if you need a custom approach to pipes you can fork an existing pipe to make adjustments or [create your own](https://confluence.atlassian.com/bitbucket/how-to-write-a-pipe-for-bitbucket-pipelines-966051288.html) pipe.

I hope that helps! Let us know in case you have any questions.

Thank you, [@Prasanna Sivaramakrishnan](/t5/user/viewprofilepage/user-id/5578175) !

Patrik S


Tags: aks

azure

bitbucket-cloud

bitbucket-pipelines

cloud

kubernetes

openshift

pipe