youngmon/atlassian-qna huggingface dataset:
Using smart values a paratemers in plusBusinessHours()
Asked by Juan Caracoche:

to avoid creating lot of if then rules, I created a lookup variable to set the SLA in hours based on issue's priority.

I'm able to get the value for a given issue's priority but when trying to use that output to add those hours to the {{issue.created}} to set the Due Date, I'm not getting anything.

{{issue.created.plusBusinessHours(daysRndSLA.get(issue.priority.name.toLowerCase()))}}

Log show me that {{daysRndSLA.get(issue.priority.name.toLowerCase()}} is returning the value

On the other hand, this works

{{issue.created.plusBusinessHours(16))}}

I tried combinations of creating an intermediate variable, the variable's log look ok but combining with the plusBusinessHours() it doesn't work.

I want to avoid doing 5 if then rules.

Thank you in advanced

PS: I'm using Jira Cloud


Answers:
author: Kalyan Sattaluri
body: Hello [@Juan Caracoche](/t5/user/viewprofilepage/user-id/5499185)

if {{daysRndSLA.get(issue.priority.name.toLowerCase()}} is giving a value, then try to convert it to number, like below and try:

{{issue.created.plusBusinessHours(daysRndSLA.get(issue.priority.name.toLowerCase()).asNumber)}}

Hope it helps.

comments: author: Juan Caracoche
body: Thank you!!! It works!

I have tried with ".number" I did not try "asNumber"

Thank you you save me doing a mess with multiple ifs!
Move Issue Automation
Asked by Doireann Casey:

Hi,

I want to create an automation where i move a ticket from one board to another based on a status updated. One board is a scrum board and one is a kanban. I am able to move the tickets manually but I want to automate this process.

Also to note, the scrum board is team managed, and the kanban is company managed. I have tried this but i keep getting this error but I am not sure what it means:  

"Can not create issue in project/issue type 10029/10049"

Thank you.


Answers:
author: Jack Brickey
body: Hi [@Doireann Casey](/t5/user/viewprofilepage/user-id/5498424) , welcome to the Community. You can't move an issue between projects. I think you are trying to use the Move issue to board action which, as described in the action description, *You can move an issue from the backlog to one of the board's columns, and vice versa*. This occurs within the same project.

let me know if this makes sense.

comments: author: Doireann Casey
body: thank you. So there is no way to automate that move? I can do it manually between both projects e.g. Project A Scrum to Project B Kanban but i want to automate the process since there will be a lot of tickets


author: Jack Brickey
body: Hi [@Doireann Casey](/t5/user/viewprofilepage/user-id/5498424) , no you cannot move issues yet ([AUTO-549](https://jira.atlassian.com/browse/AUTO-549) ). You might look at this workaround- [move-an-issue-to-another-project-using-automation](https://support.atlassian.com/cloud-automation/docs/move-an-issue-to-another-project-using-automation/)


author: Doireann Casey
body: Thank you for your help, I got this working. Really appreciate it!


Tags: cloud

jira

jira-cloud
How to translate a variable to a user for "Asignee field"
Asked by Vogel_ Steve:

I have a question on automation.

I'm trying to set a manually triggered automation to create subtasks.

I need to set the subtask assignee based on the user selecting an "organization" rather than a specific user.

Here is my example flow:

Manual trigger -- require user input : "field name" = "Assign to" selection option "validation" (only 1 for my test)

Then

Create new sub-task: need it to be assigned to a specific user (i.e the predefined user for "validation").

Can't seem to figure out how to "translate" the field name value of "validation" to a user ID for the assignee field.

I tried creating a variable and using a look up table to no avail...

Any help would be appreciated,


Answers:
author: Vogel_ Steve
body: And yes, I can accomplish this with branching but I want to be able to change assignee mappings easily (i.e in one place).


Tags: cloud

jira-cloud
Obtain BitBucket Version from REST API
Asked by MarkRx:

How can I get the version of BitBucket Data Center that is running from the REST API? I can't find anything for it in the [REST documentation](https://developer.atlassian.com/server/bitbucket/rest/v910/intro/)


Answers:
author: Aman Shrivastava
body: Hi [@MarkRx](/t5/user/viewprofilepage/user-id/349685)   

You have found the correct API and it's listed in the our [API document](https://developer.atlassian.com/server/bitbucket/rest/v809/api-group-system-maintenance/#api-api-latest-application-properties-get).  

Regards,  
Aman


author: MarkRx
body: Not sure where this is documented but this is the answer:

https://\<server\>/rest/api/1.0/application-properties

```
{
? ? version: "8.9.9",
? ? buildNumber: "8009009",
? ? buildDate: "1704686765251",
? ? displayName: "Bitbucket"
}
```


Tags: bitbucket-data-center

data-center
Allow editing of pull request created from a fork
Asked by Hasmukh Mistry:

I can not edit pull request created to parent from a fork repo.  

How can I make it editable?


Answers:
author: Aron Gombas _Midori_
body: I think it requires you to have WRITE permission on the source repository, the fork in this case.

comments: author: Hasmukh Mistry
body: Well, I have WRITE PERMISSION on the source repository. Seems like after the PULL request is created to Parent. I need WRITE Permission there. Thanks.


Tags: bitbucket-cloud

cloud
ssh-run:0.8.0 fails with command not found with script on Windows Server
Asked by Jannis L?chtefeld:

So we are currently using the below step to restart our backend server. On one Server it works without any issues and on the other we receive the output as below. Anyway, the ssh run also states the step was succesfull.

We are using Windows server and the second server is a full clone of the first.

Any ideas what might cause that?

(i replaced the actual path in the output with its variable name)

*** ** * ** ***

```
?
```

/usr/bin/bash: line 5: n: command not found  
116
/usr/bin/bash: line 6: ?h: command not found  
117
/usr/bin/bash: line 7: $'\200o': command not found  
118
/usr/bin/bash: line 8: C: command not found  
119
/usr/bin/bash: line 5: n: command not found  
120
/usr/bin/bash: line 6: $backendPath: Is a directory

- step: \&restart-backend  
name: 'Restarts the backend'  
script:  
- 'echo ''cd'' $backendPath ''\&\& pm2 restart ecosystem.config.js'' \> restart-script.sh'  
- 'echo ''cd'' $backendPath ''\&\& pm2 status'' \>\> restart-script.sh'  
- pipe: atlassian/ssh-run:0.8.0  
variables:  
SSH_USER: $User  
SERVER: $Server  
PORT: $Port  
SSH_KEY: $sshkey  
DEBUG: 'true'  
MODE: 'script'  
COMMAND: 'restart-script.sh'


Answers:
author: Ben
body: Hi [@Jannis L?chtefeld](/t5/user/viewprofilepage/user-id/4143519)

The most common cause behind this, is that the command you are attempting to run does not appear to be installed, or the path is incorrect - the solution would be to run install commands prior to executing these commands.   
We have an article with some troubleshooting steps below:

* <https://confluence.atlassian.com/bbkb/bitbucket-pipelines-command-not-found-error-1267761733.html>

If you are still encountering issues - we'll need to grant ourselves access to your workspace to check your full build logs, YML config and environment. To do so - we need a formal support ticket so our system will allow us to grant ourselves this access, as a community support ticket is insufficient.

As you are a member of a Premium workspace, you are entitled to raise such a support ticket - please do so by using your Bitbucket Cloud URL:

* <https://support.atlassian.com/contact/>

If you are unable to do so, please let me know which timezone you are in so I can raise a ticket with the team in the correct region.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Email notification not going through
Asked by Juan Marques:

Hello,

For a while now, Bitbucket has not been sending notifications for changes in the repo, pull requests, and other activities, even though no configurations have been altered. This issue is affecting the entire team.


Answers:
author: Mark C
body: Hi [@Juan Marques](/t5/user/viewprofilepage/user-id/3762191)

Welcome to the community.

May I kindly ask if you are watching and subscribing to the specific repository?

You can check that by following the steps below:

* Go to your repository
* Click the ellipsis icon next to the "Clone" button
* Click Manage notifications

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
??????????????????????????????
Asked by h-katou:

???????????????????????????????????????????????????r?????????

?????????????????????????????????????????????????????????????????


Answers:
author: Takumi Ebina
body: [@h-katou](/t5/user/viewprofilepage/user-id/5578280) ???????????????????????????????

????????????????????????????????????????????????????????????

* ??????????(????????????)  
  <https://www.atlassian.com/ja/company/contact/japan>


Tags: bitbucket-cloud

cloud
Default to "Add Comment Now"
Asked by Justin Ray:

Is there a way to set my default review mode to "Add Comment Now"? I routinely conduct a PR review only to find out hours or days later that my comments are sitting in the ether, locked behind the "Finish Review" button.

I assume that part of the driving force behind this change was to not spam the author with an email per comment. I can certainly appreciate this as I had to enable email rules to silence BB review emails.

Perhaps a better solution would be to temporally batch emails by PR (perhaps by hour or day?). Another solution could be that the comments are released immediately in the PR but the email notification is only sent on "Finish Review".

Thanks


Answers:
author: Ben
body: Hi Justin,

Unfortunately, there is no option in Bitbucket Cloud to have a default review mode.

Thank you for sharing your feedback. I have raised a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) with our developers to potentially implement this - please feel free to **Watch** this FR for future updates related to it and **Vote** for it to improve its visibility with regard to customer demand:

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

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
The Azure app type is App Service, how we choosen the template to deploy in azure by bitbucket?
Asked by Austin_Zhang:

Recently we want to deploy the code by bitbucket pipleline to azure app service, but we found the template 'Bitbucket Pipelines Pipe: Azure Web Apps Deploy' need a azure_app_id,  
but it not exist in the app service overvicw page, so any update for this requirement?  
Could you please give me some guildline about this request?


Answers:
author: Patrik S
body: Hello [@Austin_Zhang](/t5/user/viewprofilepage/user-id/5578237) ,

and welcome to community!

You can find a list of integrations (pipes) between Bitbucket Pipelines and external services, such as Azure, at the following page :

* <https://bitbucket.org/bitbucket/product/features/pipelines/integrations>

Filtering by the Azure keyword, you'll find several several deployment integrations to assist you on deploying your application in Azure. Each of the pipes has a detailed documentation explaining each variable that needs to be provided and where you can find it on Azure.

I would recommend going through that page and checking each of the pipes documentation, and if you have any questions, let us know.

Thank you, [@Austin_Zhang](/t5/user/viewprofilepage/user-id/5578237) !

Patrik S


author: Oleksandr Kyrdan
body: Hi [@Austin_Zhang](/t5/user/viewprofilepage/user-id/5578237)

Thank you for your question!

If you follow the documentation of [azure-web-apps-deploy pipe](https://bitbucket.org/atlassian/azure-web-apps-deploy), you could find details about the pipe, usage examples and variables required:

|-------------------|-----------------------------------------------------------------------------------|
| AZURE_APP_ID (\*) | The app ID, URL or name associated with the service principal required for login. |

Also, pipe is open sourced and you are always welcome for a pull request with new features or improvements.

Best regards,  
Oleksandr Kyrdan


Tags: azure

bitbucket-cloud

cloud
Hey I'm unable to find private issue tracker how to find issue tracker without jira
Asked by Prasanth Nalluri:

"I'm having trouble locating a private issue tracker and need suggestions for alternatives to Jira."


Answers:
author: Ben
body: Hi Prasanth,

Workspaces created through the new UUM experience no longer have the default issue tracker as a feature, this is intentional.

To track issues - you would either need to use an academic/free JIRA license (see [integration instructions](https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-cloud/)) or find an alternative issue tracker outside of Bitbucket.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Reviewer approved webhook event not supported for Bitbucket Data Center?
Asked by Marie P:

Hi there,

I would like to use the "pr:reviewer:approved" webhook event on Atlassian Bitbucket v8.19.7.

It is listed as a possible event for Bitbucket Server in <https://confluence.atlassian.com/bitbucketserver055/event-payload-940682389.html>.

Even though events like "pull request opened" or "pull request updated" do work and send the event successfully, the body for the "pull request approved" event gives me this message:

**"message": "Event is not supported: pr:reviewer:approved", "status": "error"**

I would appreciate any hint or information about this topic. Why couldn't it be supported in my actual environment? Does it depend on any plugins or versions of Bitbucket Server that need to be installed?


Answers:
author: Aman Shrivastava
body: Hi [@Marie P](/t5/user/viewprofilepage/user-id/5577978)  

I quickly tested Bitbucket Data Center version 8.19.7's native "Pull request - approved" webhook event, and it triggered successfully (screenshot attached).  
![Screenshot 2024-09-01 at 10.19.24?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/344968iBEFC612D44DE4CB1/image-size/large?v=v2&px=999 "Screenshot 2024-09-01 at 10.19.24?AM.png")   
This issue can be coming from a configuration setting or plugin in your Bitbucket setup. The \<Bitbucket-Home-Directory\>/log/**atlassian-bitbucket.log** file may include more information about this error; however, if no evident errors are found, please raise a ticket with [Atlassian support](https://support.atlassian.com/) to check the underlying cause of the issue.  

Regards,  
Aman


Tags: approved

bitbucket-data-center

data-center

pull-request

webhook
Why does it say "If it exceeds 2 GB, access will be restricted to read only" if I have the standard
Asked by mcarmen:

Tu plan actual es %(planName) [Cambiar plan](https://bitbucket.org/evolta-desarrollo/workspace/settings/plans/)

Resumen de usoa {#toc-hId--348697202}
-------------------------------------

|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| **12 usuarios** en tu plan [Ver estos usuarios](https://bitbucket.org/evolta-desarrollo/workspace/settings/user-directory?on_plan=true)                       | $36 |
| **0 MB** de almacenamiento de archivos usados 5 GB restantes hasta obtener almacenamiento adicional M?s informaci?n                                           | $0  |
| **0 minutos de compilaci?n** ha utilizado este per?odo de facturaci?n 2500 minutos de compilaci?n restantes hasta obtener minutos adicionales M?s informaci?n | $0  |
| **Estimaci?n de la factura (seg?n el uso actual)** Periodo de facturaci?n: 13 agosto 2024 - 13 septiembre 2024                                                | $36 |

Si tengo el plan est?ndar no deber?a mostrarme ese mensaje, porque no tengo LFS  


Answers:
author: Patrik S
body: Hello [@mcarmen](/t5/user/viewprofilepage/user-id/5577979) ,

welcome to the Community :)

When your repository size reaches 2 GB or more, you will receive a warning in the Repository details panel indicating that you are over halfway to the 4 GB repository size limit. The [repository size limit](https://confluence.atlassian.com/bbkb/what-are-the-repository-and-file-size-limits-1167700604.html) is applicable to all repositories in Bitbucket Cloud, regardless of the plan your workspace is in.

This is to grant the performance and stability of the platform for all the users.

To learn more about managing your repository size, please refer to our documentation [Reduce repository size](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/).

Thank you, [@mcarmen](/t5/user/viewprofilepage/user-id/5577979) !

Patrik S


Tags: bitbucket-cloud

cloud
I need to run GC on the bitbucket server repository
Asked by Rodney Stuart Milne:

The repository I need to run is

\[REDACTED\]

I have removed large files and forces pushed the changes. When I clone the repository its less than 60mb yet it reflect over 2.7gb in bitbucket.

Thanks!


Answers:
author: Ben
body: Hi Rodney,

I've successfully executed a gc against that repo and the size is now \< 500mb.

The size locally vs cloud will differ, as metadata such as PR's are stored as part of that total repository size.

I would recommend having yourself and colleagues perform a fresh clone to prevent the possibility of pushing back old refs.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to update the code on hosting?
Asked by Evgeniy Romanov:

Please help!

Hi! I'm trying to make my first push on hosting, but it's not working.

I did:

1. Made a commit in my branch.

2. I merged my branch with the master branch.

3. Done a pipeline for my branch and for the master branch

Please help!

-----

Is there a way to upload screenshots here?


Answers:
author: Patrik S
body: Hey [@Evgeniy Romanov](/t5/user/viewprofilepage/user-id/5220004) ,

and welcome to the Community!

I'm not sure I fully understand your question.

Could you please clarify what exactly you're trying to achieve? Is it deploying to an external service using Bitbucket Pipelines?

It would be great if you could share more details about your use-case so we can share more accurate instructions.

As for the screenshot, it's definitely possible to include it on your comment. For that, you can select the "Insert Photos" icon in the Text Editor when you're writing a comment.

Thank you, [@Evgeniy Romanov](/t5/user/viewprofilepage/user-id/5220004) !

Patrik S


Tags: bitbucket-cloud

cloud

git-push
Error opening/reading branch names containing "config/*"
Asked by Andrea Catharina Knagenhjelm:

We have upgraded our bitbucket server to datacenter 8.19.5. We are getting issues with branches named config. I see on the server that there is a file called config in each repository. But this has not been an issue earlier in older version of bitbucket. Anybody naming a branch config/\<somenamehere\> in the UI, and check for PR will result in this error:

ERROR \[http-nio-7990-exec-9\] a01771 @DUCCLCx535x1439853x0 sddbrh *192.168.40.25,127.0.0.1 "GET /projects/GIT/repos/bender/pull-requests HTTP/1.0" c.a.s.i.w.HandlerExceptionResolverImpl **INTERNAL: Error opening/reading** \[/opt/atlassian/home/bitbucket/shared/data/repositories/1490/config/prod-ccivv1\] io.grpc.StatusRuntimeException: INTERNAL: Error opening/reading \[/opt/atlassian/home/bitbucket/shared/data/repositories/1490/config/prod-ccivv1\]*

Has there been changes made to the new bitbucket server? Has anybody else seen this issue?


Answers:
author: vikram
body: Hi [@Andrea Catharina Knagenhjelm](/t5/user/viewprofilepage/user-id/1012271)

Welcome to Atlassian Community.

For your issue you have to raise an Atlassian Support ticket as it can be resolved by Atlassian Team only.

<https://support.atlassian.com/>

It seems a bug with the issue which you are facing.

Vikram P

comments: author: Andrea Catharina Knagenhjelm
body: Support ticket has been made. Thank you.


Tags: bitbucket-data-center

bitbucket-server

data-center

server
I want the number of commits that were made on a specific branch for a date range using restapi .
Asked by Nanshu Arora:

I want the number commit count on specific branch for a date range using restapi .


Answers:
author: Patrik S
body: Hello [@Nanshu Arora](/t5/user/viewprofilepage/user-id/5577347) ,

and welcome to the Community!

You can use the Bitbucket API to fetch commits from a specific branch, more specifically, the following endpoint:

* [List commits for revision](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-revision-get)

```
`https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/{branch}`
```

Replace `{workspace}`, `{repo_slug}`, and `{branch}` with your repository's workspace, repo slug, and branch name, respectively.  

That particular endpoint does not directly support filtering by date range in the request itself, so you'll need to handle this filtering manually in your application or script. You'll retrieve the commits from that API endpoint and then filter them locally based on the date.

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

Thank you, [@Nanshu Arora](/t5/user/viewprofilepage/user-id/5577347) !  

Patrik S


Tags: bitbucket-cloud

cloud
Unable to change the Workspace ID
Asked by isubhashsingh:

When I try to change the Bitbucket Workspace ID using portal, API returns 500 status code when check in the network tab of the browser developer tools. UI shows "Something went wrong" error message with below error code.

```
Error Code:?1bf8c1f02e524a51b650627bcf7d456a

```

Refreshing page doesn't help and status page shows "All Systems Operational".

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


Answers:
author: Syahrul
body: G'day, [@isubhashsingh](/t5/user/viewprofilepage/user-id/5577231)

Welcome to the comunity!

The error translates to:

```
This workspace ID is not available
```

I'm not sure why it's not throwing the error directly, but this means the workspace name you wish to change is not available. So please choose a different name.

Regards,  
Syahrul

comments: author: isubhashsingh
body: Error translation helped. Thank you!


Tags: cloud