youngmon/atlassian-qna huggingface dataset:
Change of component
Asked by Chris G:

We have issues separated by components. I changed a component from "Cloud Infrastructure" to "Infrastructure". The issues using this compnent synced correctly and they now have the correct component. The only problem is that we have a queue and the members of that queue were able to see tickets with the component, originally "Cloud Infrastructure". But now the cannot see tickets in the queue with the component "Infrastructure. What can this be?


Answers:
author: Kris Dewachter
body: Hi [@Chris G](/t5/user/viewprofilepage/user-id/5495722) ,

Each queue has a "Filter By" JQL assigned. Can you check which filter is applied ? Maybe this filter is filtering out certain components.

![Screenshot 2024-05-13 at 14.19.20.png](https://community.atlassian.com/t5/image/serverpage/image-id/323319iA535FC00DDB5D0D5/image-size/large?v=v2&px=999 "Screenshot 2024-05-13 at 14.19.20.png")

Best regards,

Kris

comments: author: Chris G
body: Thanks Kris for the answer. I found the problem. It was a security level permission set in jira automation


Tags: cloud

jira-service-management

jira-service-management-cloud
How to organize end-users best to be able to create a queue per department / organization?
Asked by ACN Helpdesk:

What's the easiest method to categorize end-users in Jira service management? We have end-users located in different offices and would like to group them by office.

I found the organizations feature for customers, as well as the asset - department option.

Our goal is to have a queue for each office. Or to be able to filter them when needed by office.

I have figured out how to create a queue based on the reporter's location using 'reporter in organizationMembers(Name of the office). However, I'm unsure if this is the most effective approach.

Our end-users would also be added to Asset, and linked to Departments. Is there a way to create a queue based on the departments a person is in?

I hope to avoid working with labels linked to the organization.


Answers:
author: Kris Dewachter
body: Hi [@ACN Helpdesk](/t5/user/viewprofilepage/user-id/5405725) ,

There are multiple ways that would allow you to set this up.

If your end-users are already assigned to a a user group per office, you could already use the "memberOf()" selection in your JQL to select the tickets created by members of a specific usergroup.

Like you mentioned, assigning end-users to organizations is also a possibility. Then you can use the "organizationMembers("")" selection in your JQL.

Setting users in asset management would also be possible, but will be more difficult to setup.

Best regrds,

Kris

comments: author: ACN Helpdesk
body: Hi Kris,

Thanks! What do you mean with user group? I don't think I have set up those already.  
Do you mean via Directory \> Groups? Because if I try to create a group and add a 'customer' I can't find their name/email from the dropdown list. Isn't this only for admins and users that will be solving requests?


author: Kris Dewachter
body: Hi [@ACN Helpdesk](/t5/user/viewprofilepage/user-id/5405725) ,

Yes i mean the usergroups that you can access via "User Management" --\> "Directory" --\> "Groups".

Once a group is created, you should be able to add existing users (customers or backoffice users) to the group (if they have an Atlassian User Account).

Best regards,

Kris


Tags: cloud

jira-service-management

jira-service-management-cloud
2 of my repositories gone....
Asked by Jerry Kim:

Exactly what the title says.

I had two private repos on Bitbucket which I had access until mid-2022 before a year long hiatus. When I logged in today to clone them to my local machine, I realized they were gone! I've also checked multiple times on my other account, back and forth, but all to no avail. I don't recall receiving any sort of notification in my email that they'll just disappear.

As much as my disappointment goes, I want my projects back ?


Answers:
author: Jens Schumacher - Released_so
body: There isn't much the community can help with here. Your best bet is to get in touch with Atlassian support.   

You don't have any local copies of the repos?

comments: author: Jerry Kim
body: This is all I can see when I try seeking support through this link <https://support.atlassian.com/contact/#/>

Do you know of any way I can find direct support?

![Screenshot 2023-08-17 142114.png](https://community.atlassian.com/t5/image/serverpage/image-id/275646i12C8BDE626381A3D/image-size/large?v=v2&px=999 "Screenshot 2023-08-17 142114.png")


author: Patrik S
body: Hey [@Jerry Kim](/t5/user/viewprofilepage/user-id/5294425) and welcome to the Community!

I suspect you might be looking at the wrong workspace, so could you please look for those repositories in all the workspaces you have access to ?

You can follow the below steps :

1. Navigate to bitbucket.org and login into your account
2. Click on your **avatar icon** in the upper-right corner and select the option **All workspaces.**This should list all the workspaces your account has access to.
3. Click on one of the workspaces to open it, select the **Repositories**option in the top navigation bar, and verify if the repository you are looking for is on that list.
4. If not, proceed to the other workspaces on the **All workspaces** page.

You may also want to try the process above with any other accounts you think you had access to those repos previously.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Jerry Kim](/t5/user/viewprofilepage/user-id/5294425) !

Patrik S


Tags: bitbucket-cloud

cloud
(Unwanted) Issues now requiring Approval
Asked by Malkere:

I've been using the issue tracker for years to let user post bug reports. Recently something changed and now all issues are invisible until I login and manually open them one by one. Is there any way to turn this off, so that new issues go straight to the open status?


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

I'm afraid that it is not possible to turn off this behavior.

Earlier this year a lot of public issue trackers in Bitbucket Cloud were targeted by spammers.

One change we introduced after this incident was that issues submitted by users that don't have access to the repo will have the 'Submitted' status and they will be visible only to users with access to the repo and the issue creator, until a user with access changes their status to 'Open'.

This prevents any potential spam issues from being publicly visible and allows users with access to review them and then mark them as spam or open them. Otherwise, if you got 50 new issues in the issue tracker from users with no access, and 45 of them were spam, there would be no easy way to filter these 50 from the rest, and the spam ones would also be visible to users with no access.

Kind regards,  
Theodora

comments: author: Malkere
body: It would not be difficult to make this an option defaulted to on but still able to be turned off for those unaffected by such problems. Please consider this or pass it on to those that are able to if you can.

Thank you,  
Kyle


author: Patrik S
body: Hey [@Malkere](/t5/user/viewprofilepage/user-id/1928380) , and thank you very much for providing your feedback.

I went ahead and raised a feature request to implement this functionality, which you can find in the following link :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Kind regards,

Patrik S


author: Malkere
body: Thank you. Will do.


Tags: bitbucket-cloud

cloud
Orphaned repository / workspace / static website
Asked by Arefin Mohiuddin:

I host a static website <https://arefin86.bitbucket.org> As you can see, the site is live.

After a recent password update, I cannot find this repository or workspace on my account. I can access the workspace <https://bitbucket.org/arefin86/workspace/overview/> but I cannot see any code in it, nor create any new repository.   

I cannot push new changes either. Authentication fails no matter how many times I enter the password correctly. I even tried my old password.

If you try <https://bitbucket.org/arefin86/arefin86.bitbucket.org.git/> -- it says repo not found.   

The website is my portfolio that I share with potential employers and clients. Please help me retrieve it.

Thanks


Answers:
author: Ben
body: Hi Arefin,

Unfortunately - this is not possible.

We have a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) logged with our devs to allow you to include variables in pipe names, you can **Watch** this request to receive future updates related to it and **Vote** to improve its visibility in regard to customer demand:

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

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Need access to account but lost access to email address
Asked by Mark Manyen:

Email was \<redacted\>  
It may be associated with \<redacted\> or \<redacted\>


Answers:
author: Kian Stack Mumo Systems
body: [@Mark Manyen](/t5/user/viewprofilepage/user-id/3395955),

Without access to the email account, I'm not sure if recovery will be possible. Based on what I'm seeing in this [article](https://community.atlassian.com/t5/Bitbucket-questions/Recover-repositories-without-email-account-access/qaq-p/1845005) Atlassian cannot change the email address for you as they cannot verify your identity.

Thanks,   

Kian

comments: author: Patrik S
body: Hello [@Mark Manyen](/t5/user/viewprofilepage/user-id/3395955) and thank you for reaching out to Community!

Just reiterating what [@Kian Stack Mumo Systems](/t5/user/viewprofilepage/user-id/853673) said, Atlassian uses the email address to verify your ownership, so we are not able to change the email of an account if you don't have access to its primary email.

I see that the Bitbucket account associated with the email you used to post this question has repositories within its personal workspace.

If you don't remember the password of your Bitbucket account, you will need to [Start a reset process](https://id.atlassian.com/login/resetpassword?application=bitbucket&continue=https%3A//bitbucket.org/account/signin/). This will send a recovery link to the provided email address.

In case you also don't have access to that email, you will first need to recover the email account using any recovery options that your email provider (Gmail, Outlook, etc) offers. Once you get access back to your email account, you can then reset the password of your Bitbucket account.

Note: I've edited your question to remove the email address in order to protect your privacy, as this is a public forum.

Hope that helps to clarify your questions!

Thank you, [@Mark Manyen](/t5/user/viewprofilepage/user-id/3395955) !

Patrik S


Tags: bitbucket-cloud

cloud
Failed import of a repository now prevents use/deletion of repository
Asked by dgriffi2:

\<redacted\> is now showing as unavailable after a failed import into it. This is preventing us from getting to the page to delete the repository to recreate it, rename it, or do anything with it.

URL below seems relevant.

<https://confluence.atlassian.com/bbkb/repository-unable-to-be-opened-or-deleted-after-import-1188777756.html>


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

Looks like that repository was stuck in the "Importing" state. I went ahead and deleted the repository you shared, so you can now try to import again.  

Let us know in case you run into any issues.

Note: I've edited your questions' description to hide the repository name in order to protect your privacy.

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


Tags: bitbucket-cloud

cloud
Can you use a workspace variable to specify a pipe version?
Asked by michael.reeves:

I want to be able to centrally control the version of a pipe with a variable but currently this approach does not work:

I set a workspace variable SONARCLOUD_SCAN_VERSION to "2.0.0"

- pipe: sonarsource/sonarcloud-scan:${SONARCLOUD_SCAN_VERSION}

but it failed with:

Configuration error

It looks like you tried to use a pipe in your bitbucket-pipelines.yml that doesn't exist. Check the name of the pipe and try again.

You seem to need to do this with a hard coded version but we have 200+ repos all using this pipe so I'd prefer to centrally manage that:

- pipe: sonarsource/sonarcloud-scan:2.0.0


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

Unfortunately, currently the pipe name in Bitbucket Pipelines does not support parsing environment variables. We do have an open feature request to include the usage of variables in the pipe name, which you can access using the below link :

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

We encourage you to add your **Vote** on that feature ticket, as it helps the product managers to understand the interest. Also, make sure to add yourself as a **Watcher**in case you want to receive first-hand updates whenever there's any progress on the implementation of that feature.

Thank you, [@michael.reeves](/t5/user/viewprofilepage/user-id/5294241) !

Patrik S

comments: author: michael.reeves
body: Thanks for the quick reply.


Tags: bitbucket-cloud

cloud
Is there a way to enforce server side hooks
Asked by Julian Davchev:

We currently have setup commit-msg hooks, but as they are on the client side (dev's workstations) those could be easily bypassed.

Is there any way with Bitbucket Cloud to currently enforce the commit hooks. Ultimate goal in this case is to insure format of messages where actual Jira ticket is referenced.

Thanks.


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

Unfortunately, server-side hooks feature is currently not available in Bitbucket Cloud. We do have an open feature request to implement such functionality, which you can access using the link below :

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

We encourage you to add your **Vote** there to give the feature traction and help the product manager to understand the interest. Feel free to also mark yourself a **Watcher**to be notified whenever there's any progress on the implementation of that feature.

Also, as you mentioned that the ultimate goal is to format messages that have Jira tickets, if what you are willing to do is to enforce that each commit message has a valid Jira issue key, this is possible by enabling the [Require issue keys in commit message](https://support.atlassian.com/bitbucket-cloud/docs/link-to-a-web-service/#Require-linked-issue-keys-in-commits) feature under **Repository Settings \> Links**.

Thank you, [@Julian Davchev](/t5/user/viewprofilepage/user-id/2240957) !

Patrik S


Tags: bitbucket-cloud

cloud
Validate name Tag bitbucket
Asked by Jo?o Correia:

I'm setting up a pipeline in bitbucket and I was wondering if anyone could tell me if with a pipeline I can prevent a branch from being created or a tag from being created if it's outside a naming standard.  
would it be possible to do this using a pipeline, webhooks or some other way?

image: atlassian/default-image:3

pipelines:  
tags:  
'\*':  
- step:  
name: Check SemVer Tag  
script:  
- SEMVER_REGEX="\^\[0-9\]{2}\\.\[0-9\]{2}\\.\[0-9\]{2}$"  
- if \[\[ "$BITBUCKET_TAG" =\~ $SEMVER_REGEX \]\]; then  
echo "Valid SemVer tag.";  
else  
echo "Invalid SemVer tag. Tags should follow Semantic Versioning.";  
exit 1;  
fi

<br />


Answers:
author: Patrik S
body: Hello [@Jo?o Correia](/t5/user/viewprofilepage/user-id/5129968) and thank you for reaching out to Community!

By the time the pipeline/webhook is triggered, the tag/branch would have been already created, so I'm afraid it's currently not possible to enforce the branch/tag name conventions in Bitbucket Cloud.

We do have an open feature request to implement this functionality, which you can find in the following link:

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Jo?o Correia](/t5/user/viewprofilepage/user-id/5129968) !

Patrik S


Tags: bitbucket-cloud

cloud
Bitbucket AWS EBS Volume query
Asked by Adam Seaborne:

Hi folks,  

*New here, apologies if I'm in the wrong place - so please feel free to nudge me in the right direction* ?

Just a quick one hopefully - the [infrastructure recommendations for Bitbucket](https://confluence.atlassian.com/enterprise/infrastructure-recommendations-for-enterprise-bitbucket-instances-on-aws-970602035.html) only specifies utilising GP2 EBS volumes for storage when running on AWS - and this appears to have been updated as recently as April of this year.   

I've been in the process of moving most of our volumes over to GP3 (for reasons of cost saving, more IOPs), and Bitbucket is the last one left.  

Is there a reason why GP3 EBS volumes aren't currently recommended for Bitbucket?  

Is it a case that there's a particular reason for not being supported (or *not yet* at least), or is it fine, just a kind of 'at your own risk' situation? Or have I missed something rather obvious? (Very possible, I am liable to this on occasion ?)  

Many thanks! ?


Answers:
author: Adam Seaborne
body: Hi folks, not sure if allowed to self-reply but just giving this a nudge in case someone might have some thoughts on the above?  

Thanks! ?


Tags: bitbucket-server

server
Quering for Tags is extremly slow - How to limit the results in query?
Asked by Aleksandar Jaksic:

Hello,  

after migrating to Bitbucket Cloud and switching to API 2.0 we are having big issues with very slow API calls, especially for repositories with lots of tags.  

In order to fetch the tags and filter them, we are using this API call, which very often brings our web server in the timeout: curl --request GET --url '[https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28name%20\~%20%22tagname%22%29](https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28name%20~%20%22tagname%22%29)' --user "mycredentials" --header 'Accept: application/json'  

If we try to reduce number of tags and consider only ones created in last few days to speed up the process, we try to use: curl --request GET --url '<https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28target.date+%3E+%222023-08-10%22%29>' --user "mycredentials" --header 'Accept: application/json' which just gives us back "Something went wrong".  

I also couldn't find anything in documentation regarding tags on how you can limit number of results or search on anything else different than tag name.

Is there a possibility to restrict number of results/filter based on tag creation date or anything else, which could give us a quick response from API? With API v.1.0 and outside of cloud this operation was pretty fast.  

Kind Regards,  
Aleks


Answers:
author: Ben
body: Hi Aleksandar,

I have opened a support ticket on your behalf as you are a Premium user, please check your email for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
When Non Admin user is integrating BitBucket to our app it is redirecting to App Descriptor base url
Asked by Aparna Saripaka:

Hi We have one bitbucket app. To integrate bitbucket account with our app we need an admin user. by any chance if non admin user tries to integrate the account we are seeing redirection from bitbucket to our BASE URL from the "App Descriptor".   

Is there any way we can show some error page instead of redirecting to base url ?


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

I noticed that your question is more related to App Development. We actually have a dedicated community specifically for such questions. You can access this community and post your question there for more specialized assistance :

* <https://community.developer.atlassian.com/>

That community is dedicated to developers, who can provide you insights and advice related to app development.

Thank you, [@Aparna Saripaka](/t5/user/viewprofilepage/user-id/5293756) !

Patrik S  
[![Patrik S](https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/initials/PS-1.png "Patrik S")](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4603309)


Tags: bitbucket-cloud

cloud
Bitbucket standard variables are not resolved
Asked by Jeroen Lodder:

I have the following step within my pipeline to deploy to a local folder on the build server.

```
 - step: &deploy
name: Deploy
runs-on:
- self.hosted
- windows
script:
- dir -r
- $COMMIT_SHORT = git log --pretty=format:'%h' -n 1
- Compress-Archive -Path bin/*.exe, bin/*.dll -DestinationPath "C:\atlassian-bitbucket-pipelines-runner\Artifacts\${BITBUCKET_REPO_SLUG}-${BITBUCKET_BRANCH}-$COMMIT_SHORT-${BITBUCKET_BUILD_NUMBER}.zip"
```

But none of the variables are resolved, except COMMIT_SHORT, what is causing this?


Answers:
author: Jeroen Lodder
body: For windows powershell every variables work when used with $env:

```
$env:BITBUCKET_REPO_SLUG
```

comments: author: Patrik S
body: Hey [@Jeroen Lodder](/t5/user/viewprofilepage/user-id/2239104) and thank you for reaching out to Community!

As you correctly stated, Windows has a different syntax compared to Linux for referring to environment variables.

To reference a variable in a step that uses Windows runners you can use the syntax :

    $env:VariableName

as also described in the article [How to access environment variables in Windows Runners on Bitbucket cloud pipelines?](https://confluence.atlassian.com/bbkb/how-to-access-environment-variables-in-windows-runners-on-bitbucket-cloud-pipelines-1188416648.html)

Thank you, [@Jeroen Lodder](/t5/user/viewprofilepage/user-id/2239104) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
atlassian-python-api not working
Asked by Ali Alyas:

Trying to login to bitbucket cloud using the below script and it doesn't work

    from atlassian import Bitbucketbitbucket = Bitbucket(        url='https://api.bitbucket.org/',        username='admin',        password='admin')data = bitbucket.project_list()print(data)

Is there updated API for bitbucket cloud that i can use or what python api would support connectivity to bitbucket cloud?


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

atlassian-python-api is a library that uses our API, but it is not developed or maintained by Atlassian.

That being said, I don't see the script you posted in the library's documentation for Bitbucket Cloud, I think this may be applicable to Bitbucket Server. You can check the script on the following page, below the line "And to Bitbucket Cloud:":

* <https://atlassian-python-api.readthedocs.io/>

You could also use our API endpoints instead of the library. The documentation of our API is here:

* <https://developer.atlassian.com/cloud/bitbucket/rest/intro/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud