youngmon/atlassian-qna huggingface dataset:
???????????
Asked by Shiho:

??????

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


Answers:
author: Shiho
body: ???????????


author: Vero Rivas
body: Hi [@Shiho](/t5/user/viewprofilepage/user-id/4699428)

Look at this post, maybe can help you

<https://blog.trello.com/automation-magic-trello-boards>

Cheers


Tags: language-ja
Notification when start date is within 30 days
Asked by Milou.nijskens:

Hi Team,

I would like to configure an e-mail notification when a start date is less than 30 days from now. However, I can only find automation possibilities for end dates. In other words, I do not want to receive a notification when the start date is SET, but when the start date occurs within less than x days.   

Example: I need to buy a gift for my friend's birthday. The start date of the task is 010322 and the end date is 010422. I would like to receive a notification via mail one month prior to the start date (010222) as a reminder for the upcoming task.   

Hoping to receive an answer.  

Kind Regards,  
Milou Nijskens


Answers:
author: Hannah Humbert - Simpla Workflows
body: Hi [@Milou.nijskens](/t5/user/viewprofilepage/user-id/4699317) ! Welcome to the community :) good question! It looks like there isn't a straightforward automation that will achieve this for you. You have due date commands like "30 days before a card is due, send and email", but nothing that revolves around the start date. The start date field is kind of new, so perhaps having start date commands is on the roadmap. I'd reach out to [Trello directly](https://trello.com/contact) to see if it's something that's planned for the future!

In the meantime, the only thing that came to mind was to create a [daily report](https://help.trello.com/article/1192-creating-reports-with-butler). So you could create something that says, every day, send a report of all cards starting in 30 days. On some days, there might be no cards starting in 30 days, so you might want to include other things in the report like overdue cards, or cards due today, etc.

comments: author: Heath
body: I'm struggling to find how you set up a reminder that's not one of the 8 out of the box times max 2days.


author: Hannah Humbert - Simpla Workflows
body: [@Heath](/t5/user/viewprofilepage/user-id/2726138) you can setup your own custom reminder using [butler automation](https://support.atlassian.com/trello/docs/butler-overview/) :) what you want is a due date command.
How to handle `unsafe-eval` using bitbucket static sites
Asked by jdahlke:

I coded a static page using gatsby and deployed it. :80 is no problem, also when i hosted it on a github static page the console didnt spammed errors. For each `<GatsbyImage/>` i am using in my project, i get this chrome-console-error on my static page.

    [Report Only] Refused to connect to '<URL>' because it violates the following Content Security Policy directive:"connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.comapi-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.ioxid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io <URL>".

Can someone point me to 1. understand the problem 2. handle it properly to avoid all this console errors. i hate errors in live projects ;-)


Answers:
author: Theodora Boudale
body: Hello,

Could you perhaps give us the URL of the Bitbucket static website that shows these errors so we can take a look?

Kind regards,  
Theodora

comments: author: jdahlke
body: Hello,

please remove the URL later, so it will not be show, since this is still in development.

The URL is: \<URL-removed\>

I might be able to solve it with this approach follwing this thoughts <https://blog.vcarl.com/securing-gatsby-csp/>, using this npm package, but i did not find time to evaluate this approach, yet.

<https://www.npmjs.com/package/gatsby-plugin-csp>


author: Theodora Boudale
body: Thank you, I have taken note of the URL and removed it from your post, I'll be taking a look into this issue.

Are there any images in that website that are not being displayed? Or only the console errors?


author: jdahlke
body: Strangley enough: all Images are getting loaded. As i mentioned above, i had the site at github.pages before, where no CSP errors occured.

So to answer you question: yes, all Images are loded.

While my dev build contains only dev-warnings produced by from eslint and webpack, i cannot confirm other errors then which you can see here:

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

Also: my english is mediocre.


author: jdahlke
body: And when i dig deeper it looks more like an open gatsby.js issue as one can read here <https://github.com/gatsbyjs/gatsby/issues/10890>


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

I spoke with one of the developers regarding this, these errors in the console are for reporting purposes only for our engineering team, they should appear on every Bitbucket page at the moment. They don't represent anything breaking and I'm afraid that they cannot be avoided.

Kind regards,  
Theodora


author: jdahlke
body: Ok, thank you for replying. Just in case you are interested: i initally have been at githubpages, where those kind of errors did not occur. I think we can close here.


Tags: bitbucket-cloud

cloud
Can only push own commits
Asked by ?????????:

In the plugin Adaptavist ScriptRunner for Bitbucket Server installed on Atlassian Bitbucket v6.10.0. We have an excellent function Policy to enforce Can only push own commits in the section Enforce trusted commit authors, but can we configure it so that we have a list of users that can bypass this restriction, so I want to select a list of users on the server to which this restriction will not apply?


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@?????????](/t5/user/viewprofilepage/user-id/3497448) ,

In the latest release of ScriptRunner for Bitbucket we have now added a Condition field to the [*Enforce Trusted Commit Authors*](https://scriptrunner.adaptavist.com/latest/bitbucket/PreReceiveHooks.html#_enforce_trusted_commit_authors) pre-hook.

Using this Condition field should enable you to filter out a list of users you do not wish the pre-hook to run for.

Please let me know if I can be of further help?

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket


author: Julius Davies _bit-booster_com_
body: Our competing (and free) "[Control Freak](https://marketplace.atlassian.com/apps/1217635/control-freak-hook-for-bitbucket?hosting=datacenter&tab=overview)" plugin can handle this usecase easily.

Use the "User Exemptions" list to put in the users that are allowed to push all commits.


Tags: adaptavist

bitbucket-server

scriptrunner

server
Bitbucket Docs on Github
Asked by Rowayda Khayri:

Hello,  
Where can I find Bitbucket docs on Github, please?  
I want to access this page:  
<https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-problems-in-pipelines>


Answers:
author: Theodora Boudale
body: Hi Rowayda,

Bitbucket Cloud documentation can be found at <https://support.atlassian.com/bitbucket-cloud/>, it is not hosted on GitHub.

I am a bit unsure about what the issue is.

Do you have issues when you are trying to access <https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-problems-in-pipelines> ?

Is this page not opening for you? If so, can you attach here a screenshot from your browser that shows what you see when you try to open this page?

Kind regards,  
Theodora

comments: author: Rowayda Khayri
body: Thanks, Theodora. I was looking for the docs hosted on Github so that we can contribute to updating them.


Tags: bitbucket-cloud

cloud

github
Unable to create group with the rest api function when using "administrator" personal access token
Asked by Ling Shih Chih:

Currently I am writing a script to test the Rest API functions of BitBucket. Using the administrator personal access token, I was able to use most of the Rest API functions, such as creating projects, repository. The administrator account also has "system admin" set in the global permission.

However, when I try to use the create group API function (http://hostname:7990/rest/api/1.0/admin/groups?name=testcreategroup) , it will result in error code : 401.

```
[errors:[
   [context: null,
    message: You are not permitted to access this resource, exceptionName:com.atlassian.bitbucket.AuthorisationException]
 ]
]
```

When I test using curl in the command line, using the administrator token will result in the same error. However if I use username and password instead (-u admin:password), the command will be successfully executed and the group created.   

Would like to clarify if this is an issue/bug, or is this an expected behavior from using personal access token for group creation? or am I actually missing out some permission setting for the administrator account/token?   

Thanks in advance.


Answers:
author: Rasti
body: Facing the same issue. Could be related to [\[BSERV-11724\] Personal access tokens does not have permission to access SSH keys - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/BSERV-11724) ?

comments: author: Rasti
body: As one of the issue comments proposed "Looks like the solution is just using basic authentication instead of access tokens..." I tried it and can confirm that.

So use, when possible by your installation, basic authentication instead.


author: Jesse Mcconathy
body: Bumping this as I am experiencing the same issue but with deleting groups.

I have been unable to find a way to generate a token that has permission to do this.


author: Nikil Paul
body: Was this resolved? I'm facing a similar issue as well. I'm able to hit the admin/groups on my bitbucket server api endpoint using the personal access token I've created for my admin account, but I'm not able to hit admin/permissions/groups (I get the same error message that Ling has posted). I have no troubles when I use my username and password for authentication though.


Tags: bitbucket-server

server
Is it possible to change or create new Jira branch type names and edit the prefix?
Asked by paulo_silva:

I am working with my team to define the pattern for creating Branches in our work. I would like to know if it is possible to create new branch patterns in Jira. I tried to search but couldn't find it. Can anyone tell?

The existing types of branches that exist by default are: Bugfix, Feature, Release and Hotfix. I would like to know if it is possible to create other types or edit these?

Thank you!


Answers:
author: Mikael Sandberg
body: Hi [@paulo_silva](/t5/user/viewprofilepage/user-id/3936426),

Welcome to Atlassian Community!

The branching model cannot be changed, it is based on the [Gitflow Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) which is the most common one used. There is a request to be able to create custom types, [BCLOUD-10744](https://jira.atlassian.com/browse/BCLOUD-10744) and I would encourage you to go and vote on it if you would like to see it implemented.

comments: author: paulo_silva
body: Hi [@Mike Sandberg](/t5/user/viewprofilepage/user-id/215655). Thanks for your answer! That is exacltly what I was looking for. It would be very nice if it were implemented, so I followed your recomendation and voted on it. Sorry for my bad english, its not my native language.


Tags: bitbucket-cloud

cloud

jira
400 Bad Request on PR comment: "expected unicode"
Asked by Stefan Ray:

Trying to comment on a PR in bitbucket cloud I get a 400 error with the response message:

{

"type":"error",

"error":{

"fields":{

"dest_rev":"expected unicode"

},

"message":"Bad request"

}

<br />

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


Answers:
author: Stefan Ray
body: ok figured that out. When the comment is on a PR where the destination branch has been removed the PR cannot be commented upon, or the PR can't have its destination branch changed.


Tags: bitbucket-cloud

cloud
Create repo in Bitbucket fails - Handler dispatch failed; nested exception is java.lang.Error: java.
Asked by Rupert Thomas:

I'm running Jira, Bitbucket and Confluence with Docker Compose, following this example:

<https://community.atlassian.com/t5/Jira-articles/Running-Atlassian-server-product-on-Docker/ba-p/1209665>

I've changed the docker-compose.yml file, to add local directories as data volumes for each of the applications - e.g.:

volumes:  
- D:/DevTools/BitbucketData:/var/atlassian/application-data/bitbucket

All seems well, and can create projects etc in Jira and Bitbucket. When I come to create a repository in Bitbucket, however, I get the following error (full screen):

Handler dispatch failed; nested exception is java.lang.Error: java.io.IOException: No such file or directory {#toc-hId--1322088243}
-----------------------------------------------------------------------------------------------------------------------------------

The repository creation works ok if I use a Docker named volume, however, e.g.:

...

volumes:  
- bitbucketVolume:/var/atlassian/application-data/bitbucket  

volumes:  
bitbucketVolume:

Any ideas why that would be the case? I prefer to use the absolute directory path, rather than the named volume, to simplify data backup.

The host machine is running Windows 10, Docker 19.03.12. It is Bitbucket Server v7.6.0 (the current latest tag on Docker hub).


Answers:
author: FPA Support
body: Have you by chance had any luck getting this fixed? I am also running into the same error/issue with bitbucket in docker. I host it on linux and have the application data folder hosted on a windows machine I mount to via docker-compose. Everything works except being able to make new repositories.


Tags: bitbucket-server

server
Problem with Bitbucket PostgreSQL Database
Asked by Philipp huemer:

Hello,

i cant get bitbucket to use Postgresql as Database i always get this Error.

```
The configuration entered is not valid. A database connection could not be established. Please check your configuration and try again.	com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:217)	com.atlassian.stash.internal.db.DefaultDatabaseManager.prepareDatabase(DefaultDatabaseManager.java:183)	com.atlassian.stash.internal.maintenance.SpringMaintenanceTaskFactory.migrationTask(SpringMaintenanceTaskFactory.java:132)	...Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:postgresql://http://hostname/BitBucketdb?targetServerType=master	org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)	com.atlassian.stash.internal.db.DefaultDatabaseValidator.validate(DefaultDatabaseValidator.java:43)	com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:214)	...No suitable driver found for jdbc:postgresql://hostname/BitBucketdb?targetServerType=master	java.sql.DriverManager.getConnection(DriverManager.java:689)	java.sql.DriverManager.getConnection(DriverManager.java:208)	org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:155)	...
```


Answers:
author: Christian Glockner
body: Hi Philipp,

I see **http://hostname** in the JDBC URL, which doesn't look right. Are you sure you entered the URL and the hostname of the PostgreSQL server correctly?

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Philipp huemer
body: Hi Christian,

yes i did i just renamed it to post it on here. I dont want to get the real server IP in a forum. Im currently trying to get the Driver Installed for Postgresql but i wont work.

Cheers,

Philipp


Tags: bitbucket-server

server
Help needed in using helm deployments in bitbucket pipelines
Asked by Vinay Muralimohan:

I am using bitbucket pipelines to build my gradle project , dockerize the app, upload the docker image using AWS ECR pipe and finally deploy the docker image into AWS EKS using pipe. Now I want to utilize helm chart to deploy my app into EKS cluster and I couldn't find any support or example or any plugin/pipe to achieve the same.

Can anybody help me how to achieve the same?

Thanks,

Vinay


Answers:
author: Yves Vogl
body: I created a pipe for this some years ago. I tried to contribute it to Atlassian but they did not accept contributions from individuals.

<https://github.com/yves-vogl/aws-eks-helm-deploy>


author: Rajneesh Mitharwal
body: As of now using custom docker image only seems to be a solution.

<https://hub.docker.com/r/alpine/helm/tags>  

**example pipeline:** <https://github.com/FairwindsOps/rok8s-scripts/blob/master/examples/ci/bitbucket-pipelines.yml>

comments: author: Vinay Muralimohan
body: Have gone through this before posting, that solution doesn't cut it for me. Anyway I created a shell script to get executed with list of aws cli, kubectl and helm install commands to complete the deployment.


author: Nicola Abis
body: Hi Vinay, I want to use helm in pipeline too (although my need is only to run \`helm template\` command). Could you please share your shell script and/or bitbucket-pipelines.yml file with the helm commands to deploy on k8s cluster?

That would be very nice of you and very helpful for me :)


Tags: aws

bitbucket-pipelines

helm
Can I use a expression based on the branch name as a trigger value in bitbucket pipeline config?
Asked by Mike Bridge:

I have a long step that I would like to trigger automatically from the \`staging\` and \`dev\` branch, but manually in prod.

I have this:

```
branches:
  '{dev,staging,prod}':
  - step:
      name: Ship It!
      trigger: manual
```

I was wondering if I could do something like this:

```
branches:
  '{dev,staging,prod}':
  - step:
      name: Ship It!
      # pseudocode
      trigger: ${ $BITBUCKET_BRANCH=="prod" ? "manual" : "automatic" }
```

... or is there a better way to do this?


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

I'm afraid that syntax like the one you suggested is not possible.

I believe the simplest way to achieve what you want would be to define an automatic step for dev and staging branches only, like this:

```
pipelines:
? branches:
? ? '{dev,staging}':
? ? ? - step:
? ? ? ? ? script:
? ? ? ? ? ? - ...
```

In this case, a build will run automatically for every new commit in dev and staging branch.

No build will run automatically for every new commit in prod branch.

However, if you open a commit of the prod branch in Bitbucket UI, you can select the option **Run pipeline** (at the right side of the page) and then select to run the pipeline branches: {dev,staging} for this commit.

Is this something that works for you?

Kind regards,  
Theodora


author: Mike Bridge
body: Yes, it sounds like that would work, although I may just extract the whole prod pipeline and just change that one variable there.

Ultimately it might be a nice feature to have simple expression handling so you can generate strings inside yaml values with a simple templating language.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
The user-provided path myapp.zip does not exist.
Asked by Deepak:

My First two steps of pipelines are successful but when I am trying to upload to S3 bucket using the pipe it says the user provided path does not exits .

I have properly created Repo variable and also searched on ur documentation , I have used the artifact as well .

I am trying to upload to S3 and deploy to EC2.

Below is my bitbucket-pipelines.yml

```
image: node:12.18.4
pipelines: 
   branches: 
      feature/develop: 
         - step: 
             name: Installation 
             caches: 
                - node 
             script: 
                - npm install 
             artifacts: 
                - node_modules/** # Save modules for next steps 
         - step: 
             name: Build 
             script: 
                - npm run build:production 
             artifacts: 
                - dist/** # Save build for next steps 
         - step:  
             name: upload 
             script: 
                - pipe: atlassian/aws-code-deploy:0.5.3 
                  variables: 
                       APPLICATION_NAME: $APPLICATION_NAME 
                       S3_BUCKET: $S3_BUCKET 
                       COMMAND: 'upload' 
                       ZIP_FILE: 'myapp.zip' 
                       VERSION_LABEL: 'my-app-1.0.0' 
        - step: 
            name: deploy 
            script: 
                - pipe: atlassian/aws-code-deploy:0.5.3 
                  variables: 
                       AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION 
                       AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID 
                       AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY 
                       APPLICATION_NAME: $APPLICATION_NAME 
                       DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP 
                       S3_BUCKET: $S3_BUCKET 
                       COMMAND: 'deploy' 
                       WAIT: 'true' 
                       VERSION_LABEL: 'my-app-1.0.0'
                       IGNORE_APPLICATION_STOP_FAILURES: 'true'
                       FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
```


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

Looking at your bitbucket-pipelines.yml file, I don't see any file myapp.zip being generated, which I believe is the reason for the error that you are getting.

In order for this to work, you will need to:

* add in your script a command that zips the directory you want to upload into a file named myapp.zip
* in the artifacts of the step where you generate this zip, add the path to myapp.zip file
* in case you generate the zip file in a directory other than the build directory, then the ZIP_FILE: variable should have as value the path to the myapp.zip instead of only its name.

Please feel free to let me know if this helps and if you have any other questions.

Kind regards,  
Theodora


Tags: atl-gruland

aws

aws-codedeploy

bitbucket-pipelines

cloud
How do I deal with a Confluence Cloud Site backup that exceeds 200 MB?
Asked by Najera Rutherfordson:

Hi there,  
The site I'm trying to restore dates back to June 2018.  
Full backup zip files can contain up to 200 MB of data (uncompressed XML files) and unlimited attachments.  
My Confluence site backup was 906MB, and the attachments folder was 800MB[,](https://slidesharedown.com/) but the import failed. On the restore page, there is a link to an "alternative method of restoring data".  
Can you suggest a course of action? Despite looking around, I haven't found anything helpful. Thank you.


Answers:
author: nancy jack
body: Hello,  
My question is also similar (How do I handle a backup that exceeds 200MB?) I am experiencing the same issue on [insta bio](https://socialwordplay.com/how-to-add-paypal-link-to-instagram-bio/) , if you find a solution, please let me know.  
Thank you very much.


author: Alvisin parker
body: Hi,

I also have a similar question (How do I handle a backup that exceeds 200MB?) I am experiencing the same issue on [virtual parking pass](https://theparkingarea.com/virtual-parking-pass/), if you find a solution, please let me know.

I appreciate it.


author: Sebastianson Serfas
body: Hi,

I have a same question (How do I deal with a Confluence Cloud Site backup that exceeds 200 MB?) I facing issue on my [site](https://slidesharedown.com/) if you get solution plz mention me.

Thanks