youngmon/atlassian-qna huggingface dataset:
How to control the formatting of new object names?
Asked by Malinda Davis:

I have a user that is loading info into the Asset database in JSM and he wants to control the names of objects that users are adding to certain object types (all lower case and without certain special characters). I can't seem to find a way to do this...is it possible?


Answers:
author: Malinda Davis
body: Actually, Diego with Atlassian support gave me the answer and it can be done. You need to go into the configuration options for the name attribute of the object type in question. Under the configuration options for the name attribute, it has a validation tab that allows you to enter a Regular expression. This Regular expression controls what the name can be.

To require all names of any new objects in that Object type to always be lower case with no spaces, you can use this Regular expression:

```
^[a-z]+$
```

I've tested this and it works. When I tried to make an object that didn't meet the restrictions of the Regular expression, it refused to make it.


author: Joseph Chung Yin
body: [@Malinda Davis](/t5/user/viewprofilepage/user-id/4623724) -

Two options are available for your consideration -

1) Business process training for the users who have permission to create objects types in your Assets schema.

2) If you are using automation rule to facilitate the object type creation in your JSM project, then I believe you can utilize toLowerCase() smart issue syntax to convert the value during the object type creation.

In my opinion, it is always better to educate the users on learning the proper rule when creating object type in your schema.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: assets

cloud

jira-service-management

jira-service-management-cloud
Adding/editing menu fields
Asked by Adam Peddicord:

Hello,

I am trying to locate where I may add options to this field in our Jira Service Manager view and our Admin is OOO.

We have an existing field that provides us the ability to select an answer from a menu of items when a ticket moves to Resolved.

I have tried navigating to Fields but don't see a way to add or edit the field I need to add another menu option too. I believe I have the proper permission levels to accomplish this and I can't find a knowledge base/support article that can help me do this.

Can someone please help?

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


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Adam Peddicord](/t5/user/viewprofilepage/user-id/5466462) and welcome,

in the JIRA Administration section -\> Issues -\> Custom Fields you need to search the multi-select field "Third Party Partner" and add options at your convenience.

In order to do that you need to be a JIRA Administrator.

Hope this clarifies,

Fabio


Tags: cloud

jira-service-management

jira-service-management-cloud
Change domain URL for Jira Service Management main site
Asked by Chema Mart?nez:

I've managed to change the Customer Portal domain to one more "corporative" so, clients can access using this new name (iex ticketing.company.es/servicedesk/customer/portal)

But I'd like to know if it's possible to change the domain, not for the Custom Portal, but the main site, so our technical specialists can access it easily.


Answers:
author: Lee Reyes
body: exactly the same concern.

i'd like to know how to change the URL of the "main site" from <https://mycompany.atlassian.net> to something that uses our domain.

i was able to configure it for our customer portal but not for our "main site"

ive seen <https://support.atlassian.com/organization-administration/docs/add-a-custom-domain/> however, when adding a custom domain for our "main site" under the "product" dropdown, the "main site" option is not available.


author: Dan Breyen
body: Hi [@Chema Mart?nez](/t5/user/viewprofilepage/user-id/5466395) welcome to the community! If I understand you correctly, you would like to change Companyname.atlassian.net to something different?

It's my understanding that on the cloud, you would still need to use Atlassian's cloud, but you can make a custom domain that is using your company's domain. You can create a Custom Domain for each of your systems under Administration / Products / Product URLs.

Here's a[KB Article](https://support.atlassian.com/organization-administration/docs/add-a-custom-domain/) from Atlassian with more information.

Hope that helps.

comments: author: Chema Mart?nez
body: Hi Dan!,

Currently, we have the URL <https://mycompany.atlassian.net>, that leads to the main Service Management Application, in wich our agents work. We also have the Customer Portal, for allowing clients to request us issues.

We set up a custom domain (ticketing.services.mycompany.es) in order to change the Customer Portal URL, so it become easier to remember. The point here is that, during this process, we cannot add a custom domain for other thing that's not the Customer Portal itself (iex, the main app)

Specifically, we'd like to access to <https://mycompany.atlassian.net> by using, for example, <https://company_subdomain.mycompany.net>.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to count up the total # of computers by brand in Assets?
Asked by Sandra Lawrence:

I am trying to collect a count of each brand of computer we have. They are listed in assets. How do I set up an AQL to get this by brand?

I am in Data center.


Answers:
author: Joseph Chung Yin
body: [@Sandra Lawrence](/t5/user/viewprofilepage/user-id/4448641) -

Please let us know if the Computer brand is setup as an object type or an object's attribute?

So we can assist you further.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Sandra Lawrence
body: it is both. I have it as an attribute in my Object Type ***USER;***but I also have it as its own Object type that allows me to assign a computer to each user.


author: Sandra Lawrence
body: I am trying to count by brand the number of computers out there in my user asset

list.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to use access tokens for pull and push code to bitbucket
Asked by Sudhansu_Sahoo:

Hi,

I created an access token with all permission.

Now I want to use it to push and pull code from bitbucket.

I tried using api: I was not able to push folders with it.

thatswhy I used gitpython to do the operations, but it is not asking for access token while pulling and pushing code.

I do not use pipelines for this, just normal repositories

Can someone suggest me a workaround for this


Answers:
author: Mark C
body: Hi [@Sudhansu_Sahoo](/t5/user/viewprofilepage/user-id/5197253),

Welcome to the community.

Could you confirm which Access token you're currently using? - <https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/>

Also, you mentioned you've tried using it against an API but you were not able to push folders with it.  
Could you share the API endpoint you're using and the error message you're getting when you've tried that?

Regards,  
Mark C

comments: author: Sudhansu_Sahoo
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823) ,

Thank you for your response.

This is the endpoint i am using:

\* <https://api.bitbucket.org/2.0/repositories/godigit/pyops-test-project/src/>

here is the data i am sending to the api:  
payload = {}  
files=\[  
('file.txt',('file.txt',open('/D:/Requirement/pyops_validator/test_folder/new_folder/file.txt','rb'),'text/plain'))  
\]  
headers = {  
'Accept': 'application/x-www-form-urlencoded',  
'Content-Type': 'application/x-www-form-urlencoded',  
'Authorization': 'Bearer \<Access token\>'  
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)


author: Mark C
body: Hi [@Sudhansu_Sahoo](/t5/user/viewprofilepage/user-id/5197253)  

Could you try to do a CURL command instead and see if it works for you?  

You can check some sample CURL commands from [this link](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post).  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

git
Auto renewal issue, now it not showing .
Asked by itservicedesk:

15th renewal was there , now it showing because autodebit not happen ,it urgent basis kindly do the need full.

Regards

Murali M

\<phone number removed\>.


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

Your question was raised in the Bitbucket forum, however, I do not see a Bitbucket license associated with your email. Does this issue concern a different product?

In any case, if there was a problem with a payment and you need assistance, please reach out to our Customer Advocate team via <https://support.atlassian.com/contact/#/>

In "What can we help you with?" select "Billing, payments, and pricing". Then, in "Select a topic", select "Problems with a payment or credit card".

We cannot resolve any billing issues in community, you need to reach out to our Customer Advocate team.

Just a heads up, I removed the number at the end of your post (I assumed it was a phone number) to protect your privacy.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Where is 'Manage account'?
Asked by Chris Kapilla:

Day zero: I want to add a GPG key to bitbucket. The instructions say 'click on profile picture and select Manage account', but Manage account is not there.

From any page in Bitbucket, the only options are 'Switch Account' and 'Recent Workspaces'

What am I doing wrong? Thanks


Answers:
author: Syahrul
body: G'day, [@Chris Kapilla](/t5/user/viewprofilepage/user-id/5197096) and Welcome to the Community!

I believe you are looking at Bitbucket server documentation, as Bitbucket cloud currently doesn't support the GPG key. We do, however, planning to release it somewhere in Q3 2023, as mentioned in our feature request:

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

Please **Vote** and **Watch** the feature request so that you'll receive an update whenever we have any in the future.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Disable pipelines read access rights for public repositories
Asked by zoltan_zvara:

Is it possible to disable access to the \`Pipelines\` menu for public repositories?

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

In other words, for any user, the \`Pipelines\` menu would not appear and would not be accessible.


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

I'm afraid that this is not possible. When a repository is public, all of its pages are publicly available (except the **Repository settings** page, which is only available to admins).

If you have a public repo (which means that the bitbucket-pipelines.yml file is also public), could you please explain why you are looking to make the Pipelines page private?

Kind regards,  
Theodora

comments: author: zoltan_zvara
body: I'm worried the pipeline would log a credential, like a password or PAT, into the build logs by mistake. On the other hand, the consumer of the said repository is not interested in the pipeline itself, therefore, disabling that menu item would simplify a lot of stuff an increase security.


author: Theodora Boudale
body: Hi [@zoltan_zvara](/t5/user/viewprofilepage/user-id/628909),

Thank you for the details. Would it work for you if you kept this repo private and created a public fork of the repo to share?

When you create a fork of a repo, the Pipelines builds and the repository variables do not get transferred to the fork. Pipelines is by default disabled in the fork (unless you manually enable it from **Repository settings** \> **Settings** (under the section **PIPELINES**), so a build will not run when you sync/update the fork.

Please keep in mind that a fork is not synced automatically, it can only be synced manually:

* <https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/#Sync-your-fork>

Additionally, the sync operation syncs the main branch of the repo only. You could write a script though that syncs all branches (if that is a requirement) and run it on set intervals to update the fork.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not able to add access key
Asked by Calvin Chieng:

I got this error when trying to add an access key - someone has already added that ssh key to another account

Is there a way to find out which account?


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

* The best way to do it is ask the person who gave you the key - they should not have given it to you, as keys should not be shared across accounts.
* If it was you who used the key elsewhere, then it's going to be about remembering where you did it.

But either way, start at <https://bitbucket.org/>\<your org\>/workspace/settings/auditlog - that shows who has been adding keys (I'm not sure how large it might get before being purged, the small low activity one I'm looking at has records back to July 21, but there's only a few hundred entries)


Tags: bitbucket-cloud

cloud
Cannot build multi-architecture docker images (docker buildx build) with pipelines?
Asked by meteograms:

From [this guide](https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Docker-BuildKit-restrictions) it appears that it's not possible to build multi-architecture docker images (i.e. \`docker buildx build\`) using bitbucket pipelines? Surely not?

This is very simple [over on GitHub](https://github.com/marketplace/actions/build-and-push-docker-images), so if it's not possible on bitbucket then maybe it's time to migrate...


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

This is not possible for Pipelines builds that run in our own infrastructure. However, you can try using a Linux Docker runner:

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

Runners allow you to run builds in Pipelines on your own infrastructure, you can see the build log of each build on the **Pipelines** page of a repo, and you won't be charged for the build minutes used by your self-hosted runners.

You can check some examples in the following comments from a feature request about this:

* [https://jira.atlassian.com/browse/BCLOUD-15317?focusedCommentId=2874863\&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2874863](https://jira.atlassian.com/browse/BCLOUD-15317?focusedCommentId=2874863&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2874863)
* [https://jira.atlassian.com/browse/BCLOUD-15317?focusedCommentId=2937837\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2937837](https://jira.atlassian.com/browse/BCLOUD-15317?focusedCommentId=2937837&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2937837)

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker
unable to login on mac chrome
Asked by Sahej Aggarwal:

I am unable to login on mac in chrome browser in bitbucket

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.


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

The Bitbucket Cloud account with the same email as your community account was inactive. I went ahead and reactivated it. Please feel free to let me know if you are able to log in now and if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
NetCore Console App in Pipelines how to inform error
Asked by lprada:

Hi, I am running a console netcore app in the pipeline and I need to now how to inform pipeline that a error happend and make the build faild.


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

A Pipelines step (and build) will fail if a certain command in that step's script returns a non-zero exit code.

If you want to make the build fail when a certain error occurs, you need to ensure that a non-zero exit code is returned when the error occurs.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How to increase limit for number of branches in bitbucket.
Asked by A Niu:

When my user tried to create new branch, he got below error, how can I increase the limit?  

<br />

Branch creation canceled

* Sorry you have reached 2nd limit 10 from branching rule hook

Thanks,

Arthur


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@A Niu](/t5/user/viewprofilepage/user-id/2952476) ,

please check that there are not specific webhook at project/repo level that block you on that.

Bitbucket has not a specific limit relted to number of branches.

Hope this helps,

Fabio

comments: author: A Niu
body: Thanks Fabio.

I found it is the limits from web console. It works if my user used CLI.

Regards,

Arthur


author: paisa loto
body: thanks


Tags: bitbucket-server

server
Git pull failed
Asked by Nagaraju:

Hi,

I'm facing this issue in Android Studio as below,

git@bitbucket.org: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

OS -\> Linux.  
Website followed -\> <https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html>


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

The private SSH key you created may not be offered.

I am not sure how Android Studio handles authentication; if it using the SSH key pair you created in the \~/.ssh folder of your machine, I would suggest creating a file named **config** in your \~/.ssh folder and adding the following lines (if the file exists, just add the following content)

```
Host bitbucket.org
        AddKeysToAgent yes
        IdentityFile ~/.ssh/id_rsa
```

<br />

where **\~/.ssh/id_rsa** ++replace++ with the path and name of your private SSH key, whose public key you have uploaded to Bitbucket.

This will ensure that this specific SSH key is offered every time you clone/pull/push to a Bitbucket Cloud repo.

I would also suggest double-checking permissions: permissions should be 700 for the \~/.ssh directory, 644 for the public SSH key, and 600 for the private key.

Please feel free to let us know how it goes and if you need any further help!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Add same step to hundred bitbucket repos?
Asked by r2c-cse:

Hi!

I want to add a step (semgrep scans) to all the bitbucket repos I have in my workspace.

I have more than 100 repos. Is there a way to do it automatically and not one-by-one manually?

Thanks.


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

I'm afraid that this is not possible at the moment, a step needs to be added to the bitbucket-pipelines.yml file of each repo.

Our engineering team has been working on implementing the feature you are requesting, reusing yaml steps across repos:

* [https://www.atlassian.com/wac/roadmap/cloud/reusable-ci-workflows?search=reusable\&p=ca8f751c-aa](https://www.atlassian.com/wac/roadmap/cloud/reusable-ci-workflows?search=reusable&p=ca8f751c-aa)

I don't have an exact ETA to share, but you can add yourself as a watcher to the following feature request (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates:

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

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: It is not trivial, but there is a detailed hint in that other thread.

Maybe it is applicable in your case, as well: <https://community.atlassian.com/t5/Bitbucket-questions/How-to-reuse-some-steps-across-pipelines-but-with-minor-changes/qaq-p/1754240>


Tags: bitbucket-cloud

cloud
Can we have nested groups in Bitbucket
Asked by Shruti S G:

Can we add a group under the group in Bitbucket?


Answers:
author: Ben
body: Hey Shruti!

We currently are implementing a nested group structure within our Atlassian Access product - you can see the details for this located here:

* <https://jira.atlassian.com/browse/ACCESS-654>

If you would like to see this specifically for Bitbucket Cloud - may I know uyour specific use case so I can raise a feature request on your behalf to our development team?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Shruti S G
body: If it applies to Bitbucket Datacenter as well, i would like to raise a feature request


author: Ben
body: Hey Shruti,

I've just raised the same for Bitbucket DC:

<https://jira.atlassian.com/browse/BSERV-14100>

Cheers!

- Ben (Bitbucket Cloud Support)


author: Karthik Mahesh
body: [@Shruti S G](/t5/user/viewprofilepage/user-id/4390821) [@Ben](/t5/user/viewprofilepage/user-id/4537226) For Bitbucket DC, it already supports nested groups. However enabling this option may degrade performance.  
See document :   
<https://confluence.atlassian.com/bitbucketserver/connect-to-an-ldap-directory-776640403.html>

- Karthik (Bitbucket DC Support)


author: Andre Schlegel-Tylla
body: I also want this feature. A simple example. I'd like to have a group for each dev team and a group which includes all developers.

Currently I have to edit at least two groups for each on/offboarding or movement between teams.


Tags: bitbucket-cloud

cloud
define and calling stage using yaml anchors
Asked by Prashantanu Singh Rathore (Temp):

Is it possible to define a stage under definations and call like steps. ?

<https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/>


Answers:
author: Mark C
body: Hi [@Prashantanu Singh Rathore (Temp)](/t5/user/viewprofilepage/user-id/4191202),

Thank you for reaching out to the community.

Indeed, it is possible to use **stages** as anchors.  
Here's an example way to do it as mentioned in this other [community post](https://community.atlassian.com/t5/Bitbucket-questions/Will-the-new-Stages-feature-allow-defining-Stages-as-a-yaml/qaq-p/2222304#M89631):

```
definitions:  steps:    - step: &just-a-step        name: Do the thing        script:          - echo 'Doing the thing'  stages:    - stage: &my-awesome-stage        name: My awesome stage        steps:          - step: *just-a-steppipelines:  branches:    master:      - stage: *my-awesome-stage
```

Hope it helps and let me know how it goes.

Regards,  
Mark C

comments: author: Prashantanu Singh Rathore (Temp)
body: Thanks its working. I tried for paraller step exuection inside an stage. But it failed. Please verify the following config

stages:  
- stage: \&continuous-integration-pipeline  
name: continuous-integration-pipeline  
steps:  
- step: \*Install-Dependencies  
- parallel:  
- step: \*Unit-Test  
- step: \*E2E-Test  
- step: \*Build


author: Prashantanu Singh Rathore (Temp)
body: Okay. this link says stage does not parallel steps.

<https://support.atlassian.com/bitbucket-cloud/docs/stage-options/>


Tags: bitbucket-cloud

cloud