youngmon/atlassian-qna huggingface dataset:
Set customField of User Schema Type via API (manager Picker)
Asked by Rajesh Ale:

Hi,  

we have a customfield which is of user schema type and am trying to populate that via API.   

But unfortunately its accepting only accountId and not name,emailAddress or any other..   

The issue is to populate that field, I need to make one call to get accountId of that user and then make another call. (Don't want to make multiple calls)   

<br />

Working:

```
? "customfield_12007": { "accountId": "5af0ec83eee87f2exxxx"}
```

<br />

any alternative way to populate in one single Api call.


Answers:
author: Vijay Dadi
body: Hello,

The custom field which is of user schema type, yes it always takes the user account id as input but that is how it is working.

You can have an automation to make web request to user.

https://\<JIRAURL\>/rest/api/3/user/search?query={{object.Email}}

then you can use the response to set account id.

"customfield_12007": { "accountId": "{{webResponse.accountid}}"}

Hope this helps !


Tags: cloud

jira-service-management

jira-service-management-cloud
Safe customer notifications not disabling for Admin Accounts
Asked by marc.lagrande:

I am experiencing an issue with our Jira Service Management instance where the "Safe Customer Notifications" setting is not disabling for admin accounts. Despite multiple attempts to turn off this setting, it remains active. Not sure what to do to remove this.   

<br />

![image_720.png](/t5/image/serverpage/image-id/329544iC20D1074C93588A9/image-size/large?v=v2&px=999 "image_720.png")![Screenshot 2024-06-12 142233.png](/t5/image/serverpage/image-id/329545i4E2C5EA5D2076771/image-size/large?v=v2&px=999 "Screenshot 2024-06-12 142233.png")


Answers:
author: Nadhila Savira
body: Hey Mark,

Nadhila here from Atlassian.

We'd love to investigate this further through a support ticket, and I see that you have already submitted one. We will proceed from said support ticket moving forward.

Good day!


Tags: cloud

jira-service-management

jira-service-management-cloud
Hi community!! Has anyone tried to access an asset attribute from an automation rule?
Asked by Kristal Vanessa Mora Vargas:

Hi community!! Has anyone tried to access an asset attribute from an automation rule? I've tried, but it keeps throwing errors.

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/329516iB6C0C318EFFD950D/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Vijay Dadi
body: Yes, you can add a step "lookup obkects" and add your condition.

in the next step you can access the attributes of the object which you had searched as below

{{lookupObjects.\<field_name\>}}

Hope this helps !


Tags: cloud

jira-service-management

jira-service-management-cloud
Create a commit by uploading a file API with query params won't work
Asked by Nimrod Golan:

Hi,

I'm trying to use the following [API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post) in order to update an existing feature branch's file.

I'm using Postman with the following request URL: <https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/src?branch=>\<my-branch\> with content-type as "application/x-www-form-urlencoded" as a header and with body as "x-www-form-urlencoded" with the following key-value for the desired file which I want to modify:  
key: "/README.md"

value: "new-value"

when initiating the request I'm getting back 201 created status but the file that was modified is the readme file located on my "main" branch and not on my feature branch.

what am I missing here?


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

The [Create a commit by uploading a file endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post) expects the branch name to come as one of the key/value pair when using application/x-www-form-urlencoded. You can try to specify the key as ***branch**and the* **value**as the branch name :

* key: "branch"
* value: "branch_a"

This should make the commit to be created on the top of the branch provided.

Could you try that suggestion and let us know how it goes?

Thank you, [@Nimrod Golan](/t5/user/viewprofilepage/user-id/4609205) !

Patrik S

comments: author: Nimrod Golan
body: That worked, thanks! maybe it's better refine it on the endpoint documentation.


Tags: bitbucket-cloud

cloud
The Resp went over 4 gigs and we can't shrink it down again.
Asked by florian.westerteicher:

Hi,

I tried reducing our resps size recently, as to not go over the Limit of 4 gb size.

However, after pushing a bunch of size-reduced images, I stumbled over an error, which is pretty similar to the one described here: <https://community.atlassian.com/t5/Bitbucket-questions/Repo-size-exceeds-4GB-cant-push-fixes/qaq-p/1900069>

Could we try the approach done here, on our resp? So we can be sure that's not the issue, before we consider other options.


Answers:
author: florian.westerteicher
body: I already raised a ticket. Please ignore this.


Tags: bitbucket-cloud

cloud
Add filter to PR to show only conflicted files
Asked by netmajor:

I have Pull request with haundred of files. When I have conflict it is hard to find on witch files it occurs. It is posiible to add new filter to show only conflicted files ?  

<br />


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

You can make use of the *File view* in the right sidebar of the Pull Request to navigate the files containing a conflict, as in the following example :

![Screenshot 2023-11-14 at 4.25.19?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/291699iD81C6B21C1660257/image-size/large?v=v2&px=999 "Screenshot 2023-11-14 at 4.25.19?PM.png")

All conflicted files will be presented with a warning yellow icon after the file name. You can look for the files with conflicts in that list, and if you want to check a file more in detail you have the option to click on the respective file in the list and the page will automatically scroll to focus on the file selected.

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

Thank you, [@netmajor](/t5/user/viewprofilepage/user-id/5363075) !

Patrik S

comments: author: netmajor
body: Hi , I am using BB 8.15 and i can not find options you are mention :/ it is available in newer version?


Tags: bitbucket-cloud

cloud
How to buy build minutes when in free plan ( 2023 )
Asked by Josel Mariano:

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

Hi guys,!   

How do you buy extra build minutes when in free plan. I have read all the information that the internet can offer, but I can't just find a way to buy extra build minutes, it's either have been removed intentionally and have been failed to be documented somehow.  

Been trying to reach out the support and putting comments on other forums and questions, but I haven't been replied nor have been entertained for my issue. I did have this going on since July 23rd, 2023. And I can't find any concrete information on the internet as well, so I now create this question for all the lads confused as well

Thank you and regards


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

Right below the table in the screenshot, there is a link **Add overage**:

![Screenshot 2023-11-15 at 12.08.53.png](https://community.atlassian.com/t5/image/serverpage/image-id/291791iF7B71F8B519741D0/image-size/large?v=v2&px=999 "Screenshot 2023-11-15 at 12.08.53.png")

<br />

If you select that, you will get asked to provide credit card info and then the new plan of the workspace will be Free with Overage Coverage.

If you then exceed the build minutes that come with the Free plan, we will add 1,000 build min to that workspace for that billing period for $10. If you exceed these minutes as well during the same billing period, we will add another 1,000 build min to that workspace for that billing period for an additional $10, etc.

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

Kind regards,  
Theodora

comments: author: Josel Mariano
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   

Thank you for answering my question, I just got back to bitbucket from way back years ago, I thought it was still the same in terms of the build minutes on where you buy only extras.   

So it now changed to "automatically billed" whenever you exceed every 1k build minutes

Some Atlassian documentation still says that you can still buy extra build minutes but doesn't mention about overage, I guess some documentation ( or forum answers I think ) needs to be updated as well.   

Thank you very much cheeers


author: Aron Gombas _Midori_
body: You can't buy extra build minutes, but the flow is that you enter your credit card information and let Atlassian charge it if you exceed the free build minutes. We are using it, and it works.

See this similar question for more hints: <https://community.atlassian.com/t5/Bitbucket-questions/How-to-buy-build-minutes-when-in-free-plan-2023/qaq-p/2531394>


Tags: bitbucket-cloud

cloud
More storage for student project
Asked by Buddy Crushman:

My fellow SNHUdents and I are trying to collaborate on a group project. Is there anyway ewe could get more storage for our project? Our professor said we could ask Atlassian for more storage since we were students.  

Thank you for your time.


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

By storage, do you mean additional storage for your repositories or more collaborators?

Atlassian offers an Academic Bitbucket Cloud Subscription for unlimited users on a certain workspace. The limit for the size of each repo remains at 4 GB (this applies to all billing plans), but with an academic plan you get 5 GB file storage for LFS (this is shared among all repos in the workspace that use Git LFS).

You can use the following form to apply for an academic subscription:

<https://www.atlassian.com/software/views/bitbucket-academic-license>

In the field **Existing Bitbucket Cloud account name** please enter your Bitbucket username, which can be found here: <https://bitbucket.org/account/settings/>

In the field **Existing Bitbucket Cloud Team account name** please enter the workspace ID of the workspace that you want the academic plan for. You can see all workspaces your account has access to here: <https://bitbucket.org/account/workspaces/> If you then select **Manage** for a certain workspace you are an admin of, you will see in the new page the workspace ID.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket - We couldn?t log you in
Asked by Kyle ONeill:

I am unable to login to bitbucket. I have tried different browsers, clearing cache \& cookies, etc. I am always redirected to a page with the message:

"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: Alex Koxaras _Relational_
body: Hi [@Kyle ONeill](/t5/user/viewprofilepage/user-id/5362461) and welcome to the community,

Your account might be deactivated or be marked as dormant. Perhaps [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) can help you on this one

comments: author: Kyle ONeill
body: Thank you, hopefully this can get sorted out quickly and easily.


author: Ingo Schmied
body: I am hoping to add Kyle to our dev team, so any possibility of expediting his access to Bitbucket would be immensely appreciated.


author: Theodora Boudale
body: Hi Kyle,

Your Bitbucket Cloud account was indeed marked as Dormant, which is the reason you were seeing this error.

I went ahead and reactivated it, could you please check if you are able to log in now?

Thank you for flagging this Alex!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
ssh not working
Asked by Michael Sun:

Below is ssh client side log.

$ git fetch  
debug1: Connecting to bitbucket.org \[104.192.141.1\] port 22.  
debug1: Connection established.  
debug1: identity file /c/Users/msun/.ssh/id_rsa type -1  
debug1: identity file /c/Users/msun/.ssh/id_rsa-cert type -1  
debug1: identity file /c/Users/msun/.ssh/id_ecdsa type -1  
debug1: identity file /c/Users/msun/.ssh/id_ecdsa-cert type -1  
debug1: identity file /c/Users/msun/.ssh/id_ecdsa_sk type -1  
debug1: identity file /c/Users/msun/.ssh/id_ecdsa_sk-cert type -1  
debug1: identity file /c/Users/msun/.ssh/id_ed25519 type 3  
debug1: identity file /c/Users/msun/.ssh/id_ed25519-cert type -1  
debug1: identity file /c/Users/msun/.ssh/id_ed25519_sk type -1  
debug1: identity file /c/Users/msun/.ssh/id_ed25519_sk-cert type -1  
debug1: identity file /c/Users/msun/.ssh/id_xmss type -1  
debug1: identity file /c/Users/msun/.ssh/id_xmss-cert type -1  
debug1: identity file /c/Users/msun/.ssh/id_dsa type -1  
debug1: identity file /c/Users/msun/.ssh/id_dsa-cert type -1  
debug1: Local version string SSH-2.0-OpenSSH_9.3  
debug1: Remote protocol version 2.0, remote software version conker_07fc110085 834526c7cefa  
debug1: compat_banner: no match: conker_07fc110085 834526c7cefa  
debug1: Authenticating to bitbucket.org:22 as 'git'  
debug1: load_hostkeys: fopen /c/Users/msun/.ssh/known_hosts2: No such file or directory  
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory  
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory  
**++*debug1: SSH2_MSG_KEXINIT sent*++**   
Connection reset by 104.192.141.1 port 22  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

I checked my ssh key is correct, and there is only one under personal settings.


Answers:
author: Sanjen Bariki
body: Hi [@Michael Sun](/t5/user/viewprofilepage/user-id/5222555) ,

Welcome to Atlassian team !

Please find the below same community quries and the solution provied by the Atlassian team..?

* [Link](https://community.atlassian.com/t5/Bitbucket-questions/Connection-reset-by-104-192-141-1-port-22/qaq-p/1896579)

Hope the mentioned solution by atlassian will help you resolve this issues.

**Please accept the answer If it helps you ?.**

Regards,

Sanjen Bariki

comments: author: Michael Sun
body: I have two pc. One is at office and one at home through vpn.

The one did not work is through vpn, the office one does work. I wonder if it has something to do with vpn.

Thanks for the help.

The second link can not be found.

* <https://confluence.atlassian.com/bbkb/troubleshooting-bitbucket-cloud-mtu-mss-issues-858778091.html>


Tags: bitbucket-cloud

cloud
Not able to access bitbucket
Asked by Webkrunch:

I'm not sure if this is the correct place, but I'm not able to clone from bitbucket. I'm getting this error

\`\`\`

Host key verification failed.

\`\`\`

I did add my private key's public version to my account.

I also tried adding this to my hosts file

\`\`\`

104.192.143.3 bitbucket.org

\`\`\`

but then I landed up with another error that said bitbucket timed out.

I'm not sure what I'm doing wrong


Answers:
author: Sanjen Bariki
body: Hi [@Webkrunch](/t5/user/viewprofilepage/user-id/796841) ,

Welcome to Atlassian team.

Please find the below link to resolve the Host key verification failed issue, In that atlassian mentioned all the solution.

* **[Link](https://community.atlassian.com/t5/Bitbucket-questions/git-clone-on-server-host-key-verification-failed/qaq-p/2215154#:~:text=The%20'Host%20key%20verification%20failed,via%20SSH%20from%20a%20machine).)**

For bitbucket time out issues, Kindly contact with you Bitbucket Admin team they will help you to resolve it properly.

**Please accept the answer If it helps you ?.**

Regards,  
Sanjen

comments: author: Webkrunch
body: [@Sanjen Bariki](/t5/user/viewprofilepage/user-id/5115866) thank you soo much for replying. It did help alot.


Tags: bitbucket-cloud

cloud
Creating Bitbucket Pipeline template
Asked by Oguz Gurler:

Is it possible to create a pipeline template in Bitbucket and enforce its use across all projects, and if so, how can this be achieved?


Answers:
author: Theodora Boudale
body: Hi Oguz!

If you're on the Premium plan, we recently released Pipelines configuration sharing. You can find more details on the following documentation page:

* <https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/>

You could use this if you want to execute the exact same pipeline in multiple repos.

Please keep in mind that this cannot be enforced, meaning that someone with write access to the importing repo could edit the bitbucket-pipelines.yml file and remove the imported pipeline.

In the exporting repo, the definition **export: true** needs to have a space between **export:** and **true**. This is not the case in the first example of our documentation, and it has already been raised with the documentation team.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Error when pushin tag to repository
Asked by mihai onoprienco:

I was pushing a git tag back to repository, using this [example](https://bitbucket.org/bitbucketpipelines/pushing-a-tag/src/master/bitbucket-pipelines.yml)

it used to work, but now it doesn't anymore, I get this error:

**fatal: could not read Username for '[http://bitbucket.org](http://bitbucket.org/)': No such device or address**


Answers:
author: Theodora Boudale
body: Hi Mihai!

We would need some additional info in order to be able to help you.

Could you perhaps post the content of your bitbucket-pipelines.yml file here so we can see the configuration for the pipeline that is failing? Please make sure you sanitize any private/sensitive data prior to sharing.

If you don't feel comfortable sharing that here, you can also create a ticket with the support team, which will be visible only to you and Atlassian staff.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation. You can provide the URL of this failed build in the ticket details.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket is failing to start - Preparing Plugin Framework
Asked by Scott Lasater:

We recently had a server crash, and since then, Bitbucket has failed to start and gets stuck at Preparing Plugin Framework.


Answers:
author: Julius Davies _bit-booster_com_
body: Do you happen to know what version of Bitbucket this is happening on?  

I've had luck running through these steps in the past:  

<br />

On each node of your datacenter cluster (or your only node if on "Server"):

* shut down bitbucket

* take backup of $BITBUCKET_HOME/plugins/.osgi-cache/

* completely delete $BITBUCKET_HOME/plugins/.osgi-cache/

* restart bitbucket

<br />

Also, I find Bitbucket works better for me when I use the latest Java JDK 11 compared to Java JDK 8. I find both Oracle JDK and OpenJDK work fine.

comments: author: Scott Lasater
body: It's version 7.21.2, and I'm using OpenJDK 11.

I used msconfig to turn off the BitBucket services, but after backing up and deleting the /.osgi-cache/ folder, I could not reenable the services in msconfig, and the console crashed.

Scott


author: Julius Davies _bit-booster_com_
body: Ugh, this sounds like a tough situation.

At this point I would take a backup of everything (folders and database) and then try using a brand new (fresh) Bitbucket 7.21.2.

Leave the BITBUCKET_HOME as is.

If that \*STILL\* doesn't work and if you are still entitled to upgrades, I would try upgrading to Bitbucket 7.21.3 to see if the upgrade process repairs the situation.

NOTE: upgrading to 7.21.3 will cause changes to the database that might make downgrading back to 7.21.2 impossible, hence the importance of taking backups of everything beforehand.

2nd NOTE: I believe Bitbucket Data Center does not support Windows, and so running Bitbucket on Windows will soon be unsupported by Atlassian. Only Bitbucket Server is supported on Windows, but unfortunately Bitbucket Server will be EOL on Feb 15, 2024.


author: Julius Davies _bit-booster_com_
body: Do you happen to know what version of Bitbucket this is happening on?  

I've had luck running through these steps in the past:  

<br />

On each node of your datacenter cluster (or your only node if on "Server"):

* shut down bitbucket

* take backup of $BITBUCKET_HOME/plugins/.osgi-cache/

* completely delete $BITBUCKET_HOME/plugins/.osgi-cache/

* restart bitbucket

<br />

Also, I find Bitbucket works better for me when I use the latest Java JDK 11 compared to Java JDK 8. I find both Oracle JDK and OpenJDK work fine.


author: Bastian Stehmann
body: Hi [@Scott Lasater](/t5/user/viewprofilepage/user-id/5061414) ,

Do you see any errors in the log files?

comments: author: Scott Lasater
body: I'm not seeing any glaring errors in the logs; since the services failed to enable, I believe the application became corrupt. I'm trying to reinstall it to repair the corruption.

I did backup the application folder and repository folder.


Tags: bitbucket-server

server
Unable to pull code
Asked by gaozengbin:

Today I tried to clone the code and received this error message. I deleted the local RSA key and regenerated and uploaded the key. Then I executed ssh -T git@bitbucket.org according to the official documentation you provided, and got a successful message, but I still receive an error message after re-cloning the code. What's going on? In addition, I have admin rights for the project, and the operations on the web page are normal.

Error msg:

$ git clone git@bitbucket.org:smartphonetechtrex/cscpay_consumer_android.git  
Cloning into 'cscpay_consumer_android'...  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.  
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.


Answers:
author: Carlos Garcia Navarro
body: Hi [@gaozengbin](/t5/user/viewprofilepage/user-id/5361588) ,

Welcome to the Community! Have you checked this other post? <https://community.atlassian.com/t5/Bitbucket-questions/fatal-Could-not-read-from-remote-repository/qaq-p/2268749>


Tags: bitbucket-cloud

cloud
my repository size has increased, however my code is low
Asked by sarabjeet:

the complete folder size has increased drastically.  

The .git folder has reached 500+ MB. However, my code is still under the provided limits.

This is restricting me to push the code


Answers:
author: Ben
body: G'day!

I can see that you belong to a paid workspace, so I have raised a ticket on your behalf through our support portal.

Please check your email for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud