youngmon/atlassian-qna huggingface dataset:
Should not edit Jira Forms after closing the issues
Asked by Ravisekhar_g:

Hi

We had tickets with Jira FORMS. When tickets is closed the Jira form should be freeze i.e. should not editable is their any way..?

Regards

Ravi


Answers:
author: Patrick Tripodi
body: Hi Ravi,   

You have the option to lock the form once submitted.   

![SCR-20240505-lhgs.png](https://community.atlassian.com/t5/image/serverpage/image-id/321967i1570691CC9063E36/image-dimensions/413x182?v=v2 "SCR-20240505-lhgs.png")

If you are wanting it to be editable until transitioned to Closed. Then I do not believe there is a way after looking at the API available.   

<br />

Cheers,  

Patrick Tripodi  
GLiNTECH


Tags: cloud

jira-service-management

jira-service-management-cloud
Multiple Customers for one Organization
Asked by Melissa McCabe:

If I have 5 customers to a specific Organization and I create a ticket but I only want one of those customers to get it, is that possible? Not every customer for the organization always wants a ticket.


Answers:
author: Dan Breyen
body: Hi [@Melissa McCabe](/t5/user/viewprofilepage/user-id/5489002) welcome to the community! Yes, you can turn off that setting so everyone in the organization does not get notified when a new ticket is created. Under Settings (the gear) choose 'Products', then look under 'Jira Service Management' and select 'Configuration'. In the Organization Management section there should be a radio button 'Should new requests automatically be shared with a customer's organization?', you'll want to set that to "No".

I agree, the reporter should get the emails, and if they want to share it with others, they can add them as 'Request Participants'.

Hope that helps.


Tags: cloud

jira-service-management

jira-service-management-cloud
Raise a ticket in a jira project on behalf of a different jira project
Asked by Jordan Cohen:

Hello,

I am responsible for managing multiple Jira projects under our instance. Some projects accept requests via email, while others accept tickets only through the portal. We have noticed that when agents from one project (with a custom email) raise a ticket on another project's portal on behalf of their project, the reply doesn't create a Jira ticket in their project. It just remains in the Gmail account. Although we have changed the settings, every notification now creates a new ticket, and they are not clustered together.

I had assumed that it would be easy for projects to raise tickets on other projects under the same instance, but apparently, it's not. So, I am looking for an ideal solution apart from asking agents to raise tickets on their behalf.

Thank you!


Answers:
author: John Funk
body: Hi Jordan,

I don't completely understand the process you are using, but will make some comments.

Agent A with Project A goes to the project B's portal and raises and issue on behalf of Agent A. Is that what is happening?

comments: author: Jordan Cohen
body: Hi [@John Funk](/t5/user/viewprofilepage/user-id/7148)

Project A has a custom Email address.

Agent A from project A goes to project B's portal and raises a ticket on behalf of project A.

Agent B from project B respond to project A. The response is received in is project's A Email account but it doesn't create a ticket in project A' Jira.

We found a way around that but everytime agent B responds, it creates a new ticket in project A.


author: John Funk
body: You should not use the same email to raise issues on behalf of as you do for the email address on the project that creates tickets.


Tags: cloud

jira-service-management

jira-service-management-cloud
Are our Recipient?s email address on a suppression list?
Asked by Philippe Tattini:

Some users of our domain '@postfinance.ch' are not receiving email notifications of Jira when people answer tickets or tagged comments.

We already have checked that our Exchange server don't block any email from Altassian.

Can you please check if emails of our domain @postfinance.ch are on a suppression list on your side?

Thanks.


Answers:
author: Philippe Tattini
body: Hi [@Andy Heinzer](/t5/user/viewprofilepage/user-id/541137),

It seems this is a known issue:

<https://community.atlassian.com/t5/Jira-Service-Management/Recipient-s-email-address-is-on-a-suppression-list/qaq-p/2643674>

Could you please help us?

Thanks, Philippe

comments: author: Andy Heinzer
body: [@Philippe Tattini](/t5/user/viewprofilepage/user-id/5488846) I did not see any clear users on your domain that were currently being suppressed, but I cleared any we might have for that domain just now. If you still have users that are not receiving notifications as expected, please let me know which users these are explicitly.

Thanks

Andy


author: Philippe Tattini
body: Yes, I will. Thank you Andy!


Tags: cloud

jira-service-management

jira-service-management-cloud
Bitbucket Pipelines: Get Project Name
Asked by Joseph Robbins:

Hi, I am trying to find a way to access the name of the project my repo belongs to in pipelines. I am aware that I have access to the project's key via the BITBUCKET_PROJECT_KEY variable as documented here: <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/> . However, I want the name rather than the key, is there any way to do this apart from using the REST API to look it up using the key? Thanks!


Answers:
author: Joris Vleminckx
body: Hmm, maybe you can set it as a repo variable? Bit awkward but if it's just a few repos, it should be easily done.

comments: author: Joseph Robbins
body: Yea, I can definitely do that but was hoping there might be a way to get it automatically I hadn't thought of, thanks for the reply!


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
WTF is going on?`account hacked?
Asked by do not use this account:

Suddenly bitbucket incorrectly shows my workspace ID as "wothker" - when it should be "wothke". I cannot reset the ID to the correct "wothke" since that id "is not available"...  

With the incorrect workspace ID I can obviously no longer see any of my projects/workspaces (nor create new projects in the correct workspace).  

WTF is going on? The atlassian support page also seems to be down and I am only getting an error message every time I try to send a message. Has Bitbucket been hacked?

Is there a way to find out which moron hijacked my workspace, i.e. which account my workspace now supposedly belongs to?


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

This sounds like you have created a second account and started using that to connect to Bitbucket.

comments: author: do not use this account
body: I do have a 2nd account but that one uses the workspace UD "jwothke".. none of my two accounts refer to my "wothke" workspace ID anymore!   

And why would that corrupt my existing workspace ID? And more importantly - how do I restore original correct workspace ID?


author: Nic Brough -Adaptavist-
body: Yep, I've got about 40 Atlassian accounts and although I usually only use two very distinct ones, I do get mixed up on the others, often using the wrong one to try to access systems, and I've mistakenly created some of them when trying to use a slightly different one.

You're going to need to look at exactly what account you are using. Start by logging out, and then logging into id.atlassian.com to check all the details. Probably the best thing to look at is the email address - Atlassian accounts do not allow for duplicates, but they do not treat aliases or adjuncts as duplicates (I say "adjuncts" because I don't know what they're really called, but with gmail and some other services, you can have an address like bob@gmail, but sending mail to bob+alice@gmail will land the mail in bob's inbox)

If you are definitely using your original account there, then the next most likely thing is that another admin has made changes to your access or structure of the system.


author: do not use this account
body: damn, you are right.. it was all my fault. the correct account used a 3rd email address that my browser apparently had not remembered the login for... the "wothker" workspace belonged to an unused account that I must have inadvertedly created at some point when I tried to login using a wrong email address..


author: Nic Brough -Adaptavist-
body: Yep, exactly what I've done, more than once!


Tags: bitbucket-cloud

cloud
docker command not found in Kubernetes runner
Asked by Hanz Yu:

I was expecting able to call docker on workspace runner running in K8s, but it showed this error:

bash: docker: command not found

I have verified the runner is Online and below is the pipeline script:

```
pipelines:

custom:

pipeline:

- step:

name: Step1

size: 4x # default 4gb, 8x for 32gb

runs-on: 

- 'self.hosted'

- 'linux'

script:

- echo "This step will run on a self hosted runner with 16 GB of memory.";

- docker --version

- step:

name: Step2

script:

- echo "This step will run on Atlassian's infrastructure as usual.";
```

```
image used: 
```

```
image: docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner
```

<br />

Pipeline:  
<https://bitbucket.org/acn-ce/temp-hanz/pipelines/results/8>

Similar issue, but is not K8s runner:

<https://confluence.atlassian.com/bbkb/docker-command-not-found-error-while-running-docker-commands-in-self-hosted-runner-1206785605.html>

```
kubectl -n bitbucket-runner exec runner-vq4rw -c runner -- bash -c "ls /tmp/3d518a01-e540-5a30-836b-98973c55e83a"
```

docker

runner.log

```
kubectl -n bitbucket-runner exec runner-vq4rw -c runner -- bash -c "cat /tmp/3d518a01-e540-5a30-836b-98973c55e83a/runner.log"
```

\[2023-07-20 07:38:19,930\] Runner version: 1.489

\[2023-07-20 07:38:19,976\] Runner runtime: linux-docker

\[2023-07-20 07:38:22,967\] Copying Docker cli to working directory.

\[2023-07-20 07:38:23,305\] Starting websocket listening to RUNNER_UPDATED events.

\[2023-07-20 07:38:23,502\] Updating runner status to "ONLINE" and checking for new steps assigned to the runner after 0 seconds and then every 30 seconds.

\[2023-07-20 07:38:23,752\] Updating runner state to "ONLINE".

\[2023-07-20 07:38:53,505\] Updating runner state to "ONLINE".

\[2023-07-20 07:39:23,505\] Updating runner state to "ONLINE".

\[2023-07-20 07:39:53,505\] Updating runner state to "ONLINE".

. . .


Answers:
author: Hanz Yu
body: I got it I should specify a dind image:

<https://github.com/rewardenv/docker>

<https://janosmiko.com/blog/2021-09-08-bitbucket-pipelines-runners-in-k8s/>


Tags: bitbucket-cloud

cloud
Repositories Recover
Asked by Dodovy Admin:

Dear Team,

unfortunately, our repository is lost kindly let help us to recover as we are near our launch

Thank you


Answers:
author: Syahrul
body: G'day [@Dodovy Admin](/t5/user/viewprofilepage/user-id/5272777), and Welcome to the community.

Can you provide context on what is lost and if you accidentally deleted the repository?

Have you checked your audit log to see if the repository was deleted? If yes, please provide me with the repo name so I can check if recovery's possible.

-  
Syahrul

comments: author: Dodovy Admin
body: dodovy management is the name


author: Dodovy Admin
body: im not able to find pls help us to recover


author: Dodovy Admin
body: its not available in the audit log as well some one hacked and has deleted it pls help us to recover we are in the near to launch


author: Syahrul
body: Hi [@Dodovy Admin](/t5/user/viewprofilepage/user-id/5272777)

Thanks for the update. I can't find any repository using dodovy management in your workspace so I wonder if you have it under a different name before?

If you have the repository URL I can quickly check on my end. Also, I notice you've deleted most of your repository in the workspace so do you need all of that to be restored or just the management repository that was missing?

I look forward to hearing from you.

-  
Syahrul


author: Dodovy Admin
body: all the repositories from dodovy workspace we need for the recovery it please. as it was deleted by an unauthorised person,


author: Syahrul
body: Hey [@Dodovy Admin](/t5/user/viewprofilepage/user-id/5272777)

I have restored all the deleted repositories. Please review it and change the repo name according to your need.

Also, please ensure to change your password to avoid having unauthorised person logging in to delete the repository again in the future.

Let me know how it goes.

Cheers,  
Syahrul


author: tomboxfan
body: [@Syahrul](/t5/user/viewprofilepage/user-id/744536) Good morning! My repo was deleted as well and no local backup.

The repo is with me for 10yr plus. Can you please help recover it for me?

I am so sorry for the trouble caused. But I really dont know who I can go to.

The repo was deleted on Jan 18th.

[Recover deleted repository (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Recover-deleted-repository/qaq-p/2583775)


author: Wouter van Rij
body: Hi,

Thanks for the assist. I've updated my credentials to make sure this doesn't happen again.

All the best,

Wouter.


Tags: bitbucket-cloud

cloud
Cant Log in
Asked by Marcelo Llanes:

Hi, I lost my mail account asociated to bitbucket, used to login, is a gmail account, how can I get the bitbucket account again?


Answers:
author: Patrik S
body: Hello [@Marcelo Llanes](/t5/user/viewprofilepage/user-id/5272477) and welcome to the community!

You can try to recover access to your original Gmail account by visiting Google's Account Recovery page (<https://accounts.google.com/signin/recovery>). Follow the instructions provided to recover your Gmail account. If you are successful in recovering your Gmail account, you can then use it to log in to your Bitbucket account.

Unfortunately, if you do not have access to the email associated with your Bitbucket account, we will be unable to assist you in regaining access to your account as the email address is used to prove ownership of the account. In that case, you may need to create a new Bitbucket account with a different email address. Also, if you have a local copy of your repositories, you can push them back to your new account.

Thank you, [@Marcelo Llanes](/t5/user/viewprofilepage/user-id/5272477) !

Patrik S


Tags: bitbucket-cloud

cloud
Permission denied (publickey) with maven scm plugin
Asked by mafuj_jia:

Hi folks,

my pipeline step is failing while executing below command

```
mvn -B -s .etc/ci/settings.xml release:clean release:prepare -DconnectionUrl=scm:git:$BITBUCKET_GIT_HTTP_ORIGIN -DautoVersionSubmodules=true -DscmCommentPrefix="[skip ci]" -Darguments=-DskipTests
```

with the error

\[ERROR\] The git-push command failed.  
\[ERROR\] Command output:  
\[ERROR\] Warning:\*\*\*\*\*\*\*\*@bitbucket.org: Permission denied (publickey).

I am not sure which/whom public key is referring to


Answers:
author: Patrik S
body: Hello [@mafuj_jia](/t5/user/viewprofilepage/user-id/5272238) and welcome to Atlassian Community!

I see you have opened an internal ticket reporting this issue, so I'm just sharing the resolution here in case someone from the community comes across the same error.

When pushing back to a repository from within a pipeline build, the ssh key used will by default be the one defined in **Repository Settings \> SSH Keys**(under Pipelines section).

On that page, you can either use your own existing key or get Bitbucket to generate the keys for you. Once the keys are setup, you will need to copy the **public key** and add it as an Access key in the Workspace (Workspace Settings \> SSH Keys) that contains the repo you are pushing to.

It's important to note that only Workspace access key provides read and write access. Project-level access keys and repository-level access keys only provide read access - more details on [Difference between repository, project an workspace access keys](https://confluence.atlassian.com/bbkb/difference-between-repository-project-and-workspace-access-keys-1188785759.html) .

Thank you, [@mafuj_jia](/t5/user/viewprofilepage/user-id/5272238) !

Patrik S


Tags: bitbucket-cloud

cloud
Two entries in Bitbucket access log by ssh protocol
Asked by ??????????? ?????:

Hello!

Can someone explain why in Bitbucket access log we have two entries while it is one git clone operation context?

```
127.0.0.1| ssh | i@1XF09QXx808x25354x1 | user | 2023-07-19 13:28:36,784 | SSH - git-upload-pack '~user/test-service-_programs.git' | "SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.3" | - | - | - | - | - | 1isq3vc | 
127.0.0.1| ssh | o@1XF09QXx808x25354x1 | user | 2023-07-19 13:28:36,921 | SSH - git-upload-pack '~user/test-service-_programs.git' | "SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.3" | 0 | 207 | 221263| cache:hit, clone, protocol:1, ssh:user:id:19057 | 136 | 1isq3vc |
```


Answers:
author: Christian Glockner
body: Hi,

The first line is written when the request is received, the second one when the request has been handled.

You can read more at <https://confluence.atlassian.com/bitbucketserverkb/how-to-read-the-bitbucket-server-log-formats-779171668.html>

Cheers,  
Christian  

Premier Support Engineer  
Atlassian


Tags: bitbucket-server

server
SSH keys in Bitbucket Cloud
Asked by Svetlozar Petkov:

My pipeline fails when it starts to initialize the **git pull** command with the following error:  

**Host key verification failed**

I created a key pair in the SSH keys section of the repository settings and added the public key to the **authorized_keys** file of the custom user I created on my server which uses a **linux shell runner** from bitbucket. I tried everything from importing the public key of the user to the my personal keys, create a known hosts file as said in some documentation and basically almost everything else, but the error persists. Can anyone provide insight as to why this is happening and how to fix it ?


Answers:
author: Patrik S
body: Hello [@Svetlozar Petkov](/t5/user/viewprofilepage/user-id/5259535) and thank you for reaching out to Atlassian Community!

When connecting to a server over SSH, one of the first things that SSH will do if to verify if the server's fingerprint match with any entry on the local known_hosts file. If no entry is found that matches your server's fingerprint, the connection will fail with "*Host key verification failed*".

As pipelines steps are executed in docker containers, each execution of a step is a fresh start of the container, meaning the known_hosts file within the container will just contain the default entries of the docker image you are using, which likely does not container the entry for your external server (unless you are using a custom image where you added it).

In this case, you can use the [**Pipelines Known Hosts** feature](https://support.atlassian.com/bitbucket-cloud/docs/set-up-pipelines-ssh-keys-on-linux/#Update-the-known-hosts) to save your server's known hosts, so pipelines will automatically add the fingerprint to the known_hosts inside the container when the build starts. For that, you can follow below instructions:

1. Navigate to **Repository Settings \> SSH keys** (under pipelines section)
2. Provide your server's IP address or domain name and click on **Fetch
   ![Screenshot 2023-07-21 at 2.28.41 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/270475iFAA3D7828A5DD8BC/image-dimensions/503x227?v=v2 "Screenshot 2023-07-21 at 2.28.41 PM.png")**
3. Bitbucket will try to fetch the fingerprint from the server. After the fingerprint is fetched, click on the now available **Add Host**button, as this will save that fingerprint on Bitbucket.
4. Now, for your subsequent builds, that fingerprint should be automatically added by pipelines inside the container's known_hosts file.

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

Thank you, [@Svetlozar Petkov](/t5/user/viewprofilepage/user-id/5259535) !

Patrik S


Tags: bitbucket-cloud

cloud

ssh
Allowing Branch Creation Under Protected Branch Path in Bitbucket Cloud: Enforcing Pull Request Work
Asked by Oguz Gurler:

Hi,

I'm using Bitbucket Cloud for my repository and have implemented protected branches to ensure code quality and review.

However, I want to allow all users in my project to create branches under a protected branch path, while still enforcing a pull request workflow for code submission and review.

Is there a way to configure Bitbucket Cloud to achieve this workflow? I appreciate any insights or recommendations from the Bitbucket community on how to achieve this balance between branch creation and pull request enforcement.

Thank you


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

I'm afraid this is currently not possible in Bitbucket Cloud. For a user to be able to create a branch under a protected branch pattern, they will need to have write permissions to that branch.

We have an open feature request to include a branch permissions rule that allows branch creation but not direct writing (enforcing pull request) :

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

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, [@Oguz Gurler](/t5/user/viewprofilepage/user-id/5151642) !

Patrik S


Tags: bitbucket-cloud

cloud
"git archive" command is considered Git operation or Archive files
Asked by Diego Alba Ruiz:

Hello,  

I would like to know if the "git archive" command falls under the "Git Operations" or the "Archive files" group.  
I have this question because I need to know the request limitations that I can do as specified in the following URL:  
<https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/>


Answers:
author: Patrik S
body: Hello [@Diego Alba Ruiz](/t5/user/viewprofilepage/user-id/5271671) and welcome to the community!

The **git archive** command in the git client counts as a Git operation in Bitbucket Cloud request limits. This means you can have up to 60,000 requests per hour.

Let me know in case you have any questions.

Thank you, [@Diego Alba Ruiz](/t5/user/viewprofilepage/user-id/5271671) !

Patrik S


Tags: bitbucket-cloud

cloud

git