youngmon/atlassian-qna huggingface dataset:
Grant access in a Issue Security Scheme to user who raised a ticket on behalf of another user
Asked by Norm Lee:

How do you grant access to the user who raises a ticket on behalf of another user in an Issue Security Scheme?  

The issue security scheme already allows the Reporter access to the ticket. When a user raises a ticket on behalf of another user, they are not the Reporter of the ticket so as soon as they submit the request, they do not have access to the ticket.  

Is there any way to add this user?   

If not directly to the Issue Security Scheme, how would I reference this user in an Automation to add them as a Requested Participant?


Answers:
author: John Funk
body: Hi Norm,

If The request participant field is not included in the issue security scheme, then the user will still not be able to see the issue. That field needs to be added to the issue security level, or you need to add them in another fashion that is included in scheme.


author: Ivan Lima
body: You can capture the user creator, who is different from the reporter when raised on behalf of another user. Have a look at <https://confluence.atlassian.com/jirakb/identify-requests-created-on-behalf-of-reporter-1318390571.html>, which can provide you with more details and options on how to identify these users, including through automation.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to add my own value in Canned response?
Asked by Mateusz Bajorek:

Hi,

is it possible to add my own smart value in canned response?

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

I would like to get Priority of the issue.


Answers:
author: Joseph Chung Yin
body: [@Mateusz Bajorek](/t5/user/viewprofilepage/user-id/5476468) -

Based on my knowledge for the canned response setup, the variable that is showing in the dropdown box is what available out of the box. Anything else is not available.

Please note that back in 2023 April timeframe, Atlassian did announced an EAP on using issue's smartvalue syntax within response body - See <https://community.atlassian.com/t5/Jira-Service-Management-articles/Early-access-program-canned-responses-in-Jira-Service-Management/ba-p/2327118>

I have not try it out back then or participated in the EAP due to workload. You should check with Atlassian Support if this feature is now GA or not. Or check out on JSM Cloud Roadmap page - [https://www.atlassian.com/roadmap/cloud?status=\&](https://www.atlassian.com/roadmap/cloud?status=&) for JSM product.

Another option for you is create automation rule against your JSM project in question to send out custom email to users where you can use issue smartvalue syntax in the email content. Here are the links for your reference:

* <https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/>
* [https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all\&page=1\&pageSize=20\&sortKey=name\&sortOrder=ASC](https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC)
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


author: Ste Wright
body: Hi [@Mateusz Bajorek](/t5/user/viewprofilepage/user-id/5476468)

I don't believe this is possible at this stage.

There are some feature requests you could check out though...

* [JSDCLOUD-12802](https://jira.atlassian.com/browse/JSDCLOUD-12802) - *A* *bility to create custom variables for use in Canned responses*
* [JSDCLOUD-12956](https://jira.atlassian.com/browse/JSDCLOUD-12956) - *Add custom fields to variables list in Canned Responses*

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
How to get new emails to the Service Desk to link to an existing ticket
Asked by Matt Roache:

Hi, We currently have a dual email domain environment, where our users log in/log tickets with our service desk using @email1 domain, however all emails to @email1 domain get forwarded to their new domain @email2. So when I add a comment onto a ticket lodged by a user, the email they get for it gets sent to @email1 which gets forwarded to @email2 automatically.   

This means that they see the Jira email in their new inbox. So when they go to reply to the email to add a comment to the ticket, Jira will generate a completely new ticket based off that reply, as the email comes from @email2 domain instead of the original.  

Is there anyway I can get the email to attach itself to the ticket based off the subject alone? So if it sees that an email has SD-1111 on the subject line, it will automatically add itself as a comment/reply on the ticket SD-1111


Answers:
author: Brant Schroeder
body: [@Matt Roache](/t5/user/viewprofilepage/user-id/5477667) welcome to the Atlassian community

JSM ties issues together using the subject line and email headers. If those exist it should be adding them to the issue regardless of it the issue was forwarded. How are you forwarding the email?


Tags: cloud

jira-service-management

jira-service-management-cloud
Resolution Screen - Slack Assist
Asked by Jeanne Schock:

I have a request type with a resolution screen that requires input to close the ticket. I would like to add this to our list of request types that we are managing in our slack agent channel.

Changing the status of the ticket to closed in slack does not work. I do not see the resolution screen.

Asking for confirmation that this is a limitation. And if not, suggestions for how to configure for it to work.

Thanks.


Answers:
author: Joseph Chung Yin
body: [@Jeanne Schock](/t5/user/viewprofilepage/user-id/5014908) -

Hi Jeanne:

It is to my knowledge that the pop-up screen that you see via the project UI in JSM when issue moves into the Closed status, it only available in the project UI and not outside of JSM.

As for using Slack integration to close your issues, my initial suggestion that you have to remove the pop-up screen for the issue transition in the WF. Instead using the pop-up to populate the Resolution field, you will add-in the post function call to default the resolution field to a specific valid value.

Afterward - publish your WF of the changes.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Jeanne Schock
body: Thanks for confirming that a very basic part of ticket closure doesn't function with slack integration.

The purpose of the resolution screen is to ensure that a correct closure code is selected from a menu. I will tell the team that requires this capture on closure that they have to choose between managing tickets in slack or coming up with another way to capture that information.

Thank you.


author: Logan Vantrease
body: Hi [@Jeanne Schock](/t5/user/viewprofilepage/user-id/5014908)  

Sorry for the long delay on this answer. Have you reviewed [Helpdesk+](https://marketplace.atlassian.com/apps/1224706/helpdesk-ai-powered-slack-support?tab=overview&hosting=cloud)?  

This app allows for transition screens from Slack when closing out an issue.

![Screenshot 2024-08-21 at 9.15.32?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/342992iBBF09C438F7EF85B/image-size/large?v=v2&px=999 "Screenshot 2024-08-21 at 9.15.32?AM.png")

comments: author: Jeanne Schock
body: Thank you for the suggestion. Additional fees are unfortunately not in our budget but I will save this for a potential future solution.


Tags: cloud

jira-service-management

jira-service-management-cloud
Trying to add organization, get error message
Asked by Matt Wangler:

When trying to add a customer I get the error message "We're having trouble. Check your connection and try again."

I was able to add orgnanizations in the past, any idea what the issue is?

Thanks,  
Matt


Answers:
author: Dexter de Vera
body: Hi [@Matt Wangler](/t5/user/viewprofilepage/user-id/4291006) ,

Have you tried to close your browser then retry it?

If still had an error, you can raise a ticket in [Atlassian Support](https://support.atlassian.com/contact/) .


Tags: cloud

jira-service-management

jira-service-management-cloud
unable to connect to Bitbucket site
Asked by Stasorlov516:

I can not connect to the site and my repository. How to fix this and where to look for information about the causes in the future?


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

Could you please provide more details about the exact issue you are facing?

* Do you have issues accessing <https://bitbucket.org/> from browser or when you try to clone, pull or push to repos?
* If you have issues accessing <https://bitbucket.org/> from browser, what error do you see?
* If you have issues with clone, pull or push, what is the exact command you are using and the full output of this command? Are you using HTTPS or SSH for these operations?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to create a branch with Permissions throught bitbucket API
Asked by sidhant:

How to create a branch with Permissions throught bitbucket API   

<br />


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

If you want to create a branch, you can use the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-branches-post>

If you want to create a branch restriction for a certain branch, you can use the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branch-restrictions/#api-repositories-workspace-repo-slug-branch-restrictions-post>

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

Kind regards,  
Theodora

comments: author: sidhant
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) thanks for the reply,  

I am trying to create a branch with certain permissions.  
I'm using the above the API endpoint you mentioned to create a branch. But is there any endpoint through which I can create the branch as well as set some permissions to the created branch


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

You can't do both operations with one API call. The API endpoints for creating a branch and for creating a branch restriction are different. You need to use the respective endpoint for each operation.

Kind regards,  
Theodora


Tags: api

bitbucket-cloud

cloud

rest-api
Why Pipelines App is not installed in my workspaces?
Asked by Laiv:

Hello!

I'm rearranging my code and transferring repositories to different workspaces. I'm creating workspaces per stack or language for simplicity.

For example, I have transferred

*<https://bitbucket.org/>**Laivindur**/blockchain-full-stack*

*to*

*<https://bitbucket.org/>**wks-javascript**/blockchain-full-stack*

The repository *blockchain-full-stack*has a pipeline which I have been able to execute while being in the former workspace. However, now, the new workspace is unable to execute pipelines.

Whenever I check the side menu "Pipelines" (from the new workspace), I see the execution history, but I got a banner showing the following

![bitbucket-pipelines-warning.png](/t5/image/serverpage/image-id/260709i2FBC8547ECB1F708/image-size/large?v=v2&px=999 "bitbucket-pipelines-warning.png")

If I follow the link, I get the following error

![bitbucket-pipelines-admin-error.png](/t5/image/serverpage/image-id/260710i31B321BE884231C1/image-size/large?v=v2&px=999 "bitbucket-pipelines-admin-error.png")

I have noticed that, unlike my former workspace, the new workspace has no "Pipeline" app installed, hence I can't enable pipelines at repository level.

Is there any restriction between the number of workspaces we own and the pipeline app?


Answers:
author: Laiv
body: Ok. I found the issue.

The side menu is buggy(?).

After transferring the repository, when you access the repository from the new workspace, the entries "Pipelines" and "Deployments" are available, but pipelines can't be executed because of the feature flag.

Once inside the repository's settings, the side menu has no "Pipeline" section, unless you refresh the view with Ctrl+F5.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

workspace
Container 'Build' exceeded memory limit
Asked by s.sadan:

Hi,

I am getting random errors '**Container 'Build' exceeded memory limit.**' and the 'test' step in the below pipeline is failing even though I have assigned it 2x memory.

image:  
name: xxx/abc:2023-04-19  
username: $user  
password: $password  
email: noreply@abc.com

pipelines:  
default:  
- step:  
name: build  
caches:  
- pip  
script:  
- git submodule update --init --recursive  
- make build  
artifacts: # defining the artifacts to be passed to each future step.  
- wheels/\*\*  
- step:  
name: lint  
caches:  
- pip  
script:  
- make lint  
- step:  
name: test  
size: 2x  
caches:  
- pip  
script:  
- make test


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

You'll need to look at what the test is doing to establish why it is consuming all of the memory.

comments: author: s.sadan
body: Thank you for your prompt response. Indeed, I acknowledge the importance of monitoring test cases in our current context. Based on my understanding, it appears that each step is allocated a default memory capacity of 4GB. However, in the case of the 'test' step it is configured to utilize twice the default memory capacity, resulting in a total of 8GB. Within this allocation, 1GB is earmarked for the 'Build' container, while the remaining 7GB is made available for the execution of the 'make test' process.

I would appreciate your confirmation regarding the accuracy of my assessment of the memory allocation described above.


author: Nic Brough -Adaptavist-
body: The memory allocation is not directly the problem. You need to look at what the test is doing that causes it to chew up all the memory it has been given.


Tags: bitbucket-cloud

cloud
Removing prior admin from bitbucket
Asked by Carlos Yanez:

Hi Bitbucket Community,

I have recently given admin access into my organisation's bitbucket space, taking admin responsibilities from a colleague - this colleague created the org's workspace but his account was there only for admin purposes.

Since I've taken over the admin role we want to remove his account from the workspace. However we are getting the following error message during the removal process:

***Unexpected token '\<', "\<!DOCTYPE "... is not valid JSON***

What are missing here?

Thanks!


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

Checking for the email you have used to post this question, your bitbucket account currently has access to only one workspace which the masked name is c\*\*\*_\*\*\*\*\*\*\*\*a (I'm sharing it masked as this is public forum).

That workspace is a Personal workspace that is attached to a user account. In the past, when a Bitbucket account was created, bitbucket would also automatically create a **Personal workspace** attached to that account. This is not the case anymore, and workspaces are no longer automatically created for users. They need to be manually created and are **not** attached to an account anymore (see [Difference between shared and personal workspaces](https://confluence.atlassian.com/bbkb/difference-between-shared-and-personal-workspaces-1141477191.html)).

While there's no feature to convert a personal workspace into a shared workspace, you have the option to create a new workspace and [Transfer the repositories](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) to this new shared workspace. This new workspace will be owned by any user that is part of the **Administrator** group.

So in this case, I would suggest creating a new workspace and transferring the repositories from the original workspace to the newly created workspace.

If you want to use the same ID, you will first need to [change the workspace ID](https://support.atlassian.com/bitbucket-cloud/docs/change-a-workspace-id/) of the original workspace to something else, like \<current workspaceID\>_old, so the original ID will be available to be used when you create a new workspace.

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

Thank you, [@Carlos Yanez](/t5/user/viewprofilepage/user-id/5232824) !

Patrik S


Tags: bitbucket-cloud

cloud
Require specific approval for part of tree...
Asked by David V_ Corbin:

Need to ensure that any PR on branch Target which contains files in \\dir\\subdir\\subsub\\... are approved by John Doe or Steve Smith. There may other approvers (Tom, Dick, Harry, Mary) but at least one the approvers must be John or Steve


Answers:
author: Michael R?egg _Mibex Software_
body: Hi David,

Another option is to use the concept of **Code Owners**. These are engineers who:

- are experts in a specific code area  
- can give valuable feedback to other team members  
- are interested that the code quality stays great

On Bitbucket, you can use the app [Code Owners for Bitbucket](https://marketplace.atlassian.com/apps/1218598/code-owners-for-bitbucket?hosting=datacenter&tab=overview).

These are the necessary steps for your use case:

1. put a file called CODEOWNERS into your repository

2. add Code Owners groups (line 1+2) to that file. Alternatively, you can also reference a Bitbucket user reviewer groups instead of defining your own groups for easier maintenance.

3. a rule with a file glob with the assigned code owner groups (line 3)

4. and a merge check (line 4)

```
@@@mandatory_reviewers   @JohnDoe @SteveSmith
@@@other_reviewers       @Tom @Dick @Harry @Mary
dir/subdir/subsub/**     @@mandatory_reviewers @@other_reviewers
Check(@@mandatory_reviewers >= 1)
```

You can play around with this without installing the app, by using our [Code Owners Playground](https://mibexsoftware.bitbucket.io/codeowners-playground/).

[Let me know](https://support.mibexsoftware.com) if you have any questions. More details can be found [in our docs](https://docs.mibexsoftware.com/codeowners/dc).

Best regards,

Michael from [Mibex](https://mibexsoftware.com) (vendor of the app Code Owners)


author: Ulrich Kuhnhardt _IzymesCo_
body: Hi David, welcome to the community!

I believe Bitbucket server/datacenter does not have file/path reviewer configuration.

We have built [Workzone](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview) to enable teams like yours to cover exactly [this use case](https://izymes.com/docs/workzone-add-file-and-group-reviewers-to-your-pull-requests/).

You can define which reviewers need to review which files/paths and you can enforce required approvals for each file/path by setting an approval quota. Workzone can block PR merges until all required approvals are given.

This is also a huge time-saver for your team as Workzone only adds relevant file/path reviewers _if_ the file/path is part of the PR changeset.

Let us know if you [need help setting this up](https://izymes.atlassian.net/servicedesk/customer/portal/1/group/1/create/3) or schedule a quick demo.

Hope this helps!

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd) - Tools for efficient teams


Tags: bitbucket-server

server
I couldn't push my changes to remote
Asked by Upendra Cheedella:

Facing a problem while pushing the changes to remote.  
I have added the ssh keys, but still facing the issue.

"Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists."  

<br />

This is happening after upgrading my mac.  
Thanks in advance.


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

The error message "Permission denied (public key)" can have multiple causes that are discussed in the article [Bitbucket Knowledge Base - Permissions denied (public key)](https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html).

I would suggest checking if you have added your SSH key directly to a repository or project (which are called Access Keys), or to your Bitbucket account. This is because access keys provide only read access to the repository, so you will not be allowed to push. In this case, you will need to remove the access key from the repo/project and instead add the SSH key to your account under **Profile avatar** (top right corner)**\>** **Personal Settings \> SSH Keys**.

Also, to make sure that SSH is using the correct key, I would recommend creating a file named **config** (it has no extension) under the folder **\~/.ssh/** with the following content :

```
Host bitbucket.org
     HostName bitbucket.org
     User git
     IdentityFile ~/.ssh/<name of your private SSH key>
     IdentitiesOnly yes
```

The IdentityFile property should contain the path to the private SSH key you have on your machine.

If after following those steps you are still receiving the public key error, we kindly ask you to share the output of the **git push** command including verbose logs :

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git push
```

This will bring additional logs, such as the SSH keys being used, so we can investigate further.

Thank you, [@Upendra Cheedella](/t5/user/viewprofilepage/user-id/5232784) !

Patrik S
How to compare a file from two different branches?
Asked by JA Fuhr:

I found this article but when I follow the suggested step to do the Compare, I do not get the option to select the branch I want to compare.

[Compare files on two different branches? (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Compare-files-on-two-different-branches/qaq-p/2073756)

My situation is that I have a production branch and an upgrade branch. I need to compare a single file, foo.html, in both branches to see the differences.

Following the steps in the answer above, I

1. Selected the repo
2. Clicked Branches in the left menu
3. Under Actions, clicked the three dots on the upgrade branch
4. Selected Compare
5. It goes to a page where the only options are Diff, Commits, Merged Pull Requests

I have four branches in this repo. How do I choose the two I want to compare?


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

After clicking on the Compare option under the three-dot icon menu, you should be redirected to a page similar to below image :

![Screenshot 2023-06-01 at 11.48.53 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/260779iA000D61D60B4D952/image-size/large?v=v2&px=999 "Screenshot 2023-06-01 at 11.48.53 AM.png")

The source and destination branch of the comparison can be configured by selecting the "change destination" or "change source" options in the UI. Once clicking on any of those options you should be provided with a drop-down to select the desired branch.

Once the branches you want to compare are selected, you can navigate to the **Diff** column where all the changed files between the branches will be listed. If a file is not listed there it means there's no difference.

To check the diff of a specific file you can click on its name in the Files changed list and it will automatically scroll the page to the corresponding diff.

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

Thank you, [@JA Fuhr](/t5/user/viewprofilepage/user-id/2183935) !

Patrik S

comments: author: JA Fuhr
body: Thanks!


Tags: bitbucket-cloud

cloud