youngmon/atlassian-qna huggingface dataset:
Looking for plugin to file Jira bug tickets in git
Asked by dman777:

I get requests through MS teams for bugs issues. I then create a Jira ticket for the bug.  

I see alot of github integration plugins in Adaptavist(which is what is used). Does anyone know one that would be good for my specific purpose of filing a bug automatically in my repo when I create a Jira bug ticket?  

If this could not be achieved with one of the many github integration plugins, I could build my own webserver and handle apis. Could I set the Jira Webhook to only trigger for bugs?  

I rather use a plugin if possible, though.   


Answers:
author: C_ Derek Fields
body: What does it mean to "file a bug"? Do you want to create a branch when the bug ticket is created? Or do you have something else in mind?

comments: author: dman777
body: To file a bug would mean a human would go to the github repo and go under the issues tab and create a new issue. But instead, I would like this to be automated when I create a Jira ticket that is a bug.


Tags: git
Importing from a self-hosted bitbucket server still in progress
Asked by sebastienca:

Hello,

I'm trying to migrate a repository from a self-hosted bitbucket server to a cloud based repository but the importation never finish (20h for the moment).

The progress window shows:

14:39:38 git import for: http://xxx  
14:39:38 Cloning http://xxx...  
14:39:38 Cloning into bare repository 'xxx'...  
14:39:42 remote: Counting objects: 182010, done.  
14:39:49 remote: Compressing objects: 66% ..... then 100% after some minutes

But nothing more.

The repo size is a little less than 1 GB.

I've done the same in Azure Dev Ops that I'm testing in parallel and the importation has succeeded after some minutes.

Is there something I can do to unfreeze the state of my repository import in bitbucket.org ?

Thank you for your help.


Answers:
author: Ana Retamal
body: Hi [@sebastienca](/t5/user/viewprofilepage/user-id/4123247), welcome to the Community!

It definitely shouldn't take that long for a repo that size. I have checked your Bitbucket Cloud account and found a repo that hasn't finished importing, so I'm assuming that's the failed one.

Have you tried the import again? And can you confirm that you're following the steps at [Import a repository](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository/?)? Do you see any other errors in the log in Bitbucket Server?

If you're still having issues, please let us know so we can investigate this further with you.

Best regards,

Ana


Tags: bitbucket-server

import

server
Need to access S3 buckets from bitbucket without AWS Access key id and secret
Asked by Aditya Mertia:

Hello,

We are currently using bitbucket CI/CD for deploying artifacts to S3 bucket. For accessing S3 bucket currently we are using repository variables AWS_ACCESS_KEY and AWS_SECRET. We would like to move away from access key/secret to a more secure way. Is it possible to do this?

Thanks

Aditya


Answers:
author: Ana Retamal
body: Hi [@Aditya Mertia](/t5/user/viewprofilepage/user-id/3899703), welcome to the Community!

Using AWS_ACCESS_KEY and AWS_SECRET is the recommended authentication method of Amazon, as explained on their page [Authentication.](https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)If you have made your keys public by mistake, you can generate new ones anytime.

Is there any reason why you don't believe that's a secure way? Or do you have any concerns about it?

Let us know, and we'll try to help you.

Best regards,

Ana


Tags: bitbucket-cloud

cloud
That page timed out while trying to load
Asked by bilelMn:

Hi,

I can't access a commit That page timed out while trying to load.

this error comes when i try to load the page to see the last commit in the project.

![1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/114014iCF824526EC4B1617/image-dimensions/549x273?v=v2 "1.PNG")![2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/114013i3854E68D01E5E54F/image-dimensions/544x61?v=v2 "2.PNG")

thank you and have a great day community


Answers:
author: Theodora Boudale
body: Hello and welcome to the community.

The most likely reason for this error would be a large diff in this commit.

We have the following limits for viewing content and diffs in Bitbucket Cloud:

* <https://support.atlassian.com/bitbucket-cloud/docs/limits-for-viewing-content-and-diffs/>

If any of those limits are exceeded then the page will time out. Can you inspect this commit locally to see if and which limits are exceeded?

The workaround here, if you want to be able to view this in Bitbucket website, would be to undo this commit and introduce its changes in more than one, smaller commits, that don't exceed the limits above.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
cant accept bitbucket
Asked by ???:

Hello,

We are a paid account but, my admin invites me and clicks Accept, so the message "This account is already at its plan limit and will need to be upgraded before adding more users." is displayed.

Why is that so?

- admin

<https://bitbucket.org/%7B3992dbdf-b730-41f3-814c-9811e067a21a%7D/>  
- company

<https://bitbucket.org/opusm/workspace/repositories>

Thank you.


Answers:
author: Theodora Boudale
body: Hello,

I can see that both you and the other user you mentioned have access to the workspace <https://bitbucket.org/opusm/>. It is possible that there was some delay in our systems getting updated with the paid plan, which may have caused this issue.

Can you confirm if things are ok now?

If you're still having issues, could you please let me know

1. was the invitation sent to you, or to the other admin?
2. was it an invitation for a specific repo or to a user group of this workspace?

Kind regards,  
Theodora


Tags: bitbucket-cloud
Best Practices for Bitbucket Cloud Service Accounts?
Asked by Patrick Chen:

Hello, we are moving from Bitbucket Server to Bitbucket Cloud.

Traditionally, we would use Active Directory service accounts to run certain automated actions with Bitbucket Server.

However, I am having trouble understanding how that would work with Bitbucket Cloud. We want to use service accounts to handle things like Jenkins integration and also Teamcity Onprem builds.

Additionally, we are using Atlassian Access hooked up to our Azure AD instance to provide both directory sync and SSO.

Any guidance on how to create, manage, and use service accounts in Bitbucket Cloud is appreciated.


Answers:
author: Mikael Sandberg
body: Hi [@Patrick Chen](/t5/user/viewprofilepage/user-id/4122662),

Welcome to Atlassian Community!

Instead of using service accounts you can use [App passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/). You would still need to create a service account if you want to separate the app password from users, but the benefit of app passwords is that you do not have to specify the password in a script.


Tags: bitbucket-cloud

cloud
Prevent merge if a jenkins build fails (can't retrieve successful status)
Asked by Petr Shchukin:

How can I prevent PR from being merged if a build against the last commit of the current branch fails? I've turned on 'Minimum successful build' check, but how can I send the status of my build? I have a jenkins job which is being kicked off by native Web Hook. (I have no bitbucket plugins). Thanks.


Answers:
author: Mikael Sandberg
body: Hi [@Petr Shchukin](/t5/user/viewprofilepage/user-id/4122287),

Welcome to Atlassian Community!

You need to notify Bitbucket about the status of the build. You can use this Jenkins app to do it, [Bitbucket Build Status Notifier](https://plugins.jenkins.io/bitbucket-build-status-notifier/).

comments: author: Petr Shchukin
body: Thanks!


Tags: bitbucket-cloud

cloud
How are pull requests approved if not using merge checks?
Asked by Dave Hattig:

How are pull requests approved if not using merge checks? Can anyone that gets added as a reviewer approve?

Thanks for your help. New to bitbucket and trying to learn as fast as I can. :)


Answers:
author: Mikael Sandberg
body: Both the reviewer(s) and the author of the pull request can approve/merge the pull request. If you are not using the merge check the author can create and then merge the pull request without an approval.


Tags: bitbucket-server

server
how can i upload an artifact ?
Asked by yosser_mahfoudh:

this is my pipeline . i need to add a script for the upload of my artifact . please i need help

image: "maven:3.6.3-openjdk-11"  
pipelines:  
default:  
-  
step:  
artifacts:  
- target/builldname.jar  
caches:  
- maven  
script:  
- "mvn -B install"  
- "ls -R $BITBUCKET_CLONE_DIR"


Answers:
author: Halyna Berezovska
body: [@yosser_mahfoudh](/t5/user/viewprofilepage/user-id/3803216) you can use your artifacts just in all steps you write afterwards.

Check out our template example <https://bitbucket.org/bitbucketpipelines/template-java-spring-boot-elastic-beanstalk/src/6328ba025be4a461a3e004c61b1e25817627b6a0/bitbucket-pipelines.yml#lines-43>  
Here jar is packaged additionally with zip, but you can skip this step and use just jar in the next deploy step.

So you pipeline will look sth like this:

```
step:
 name: Build
 script:
   - mvn -B install
 artifacts:
   - target/build.jar
step:
  name: Deploy
script:
  - deploy target/build.jar to your destination
```

If you need specific workflow deploying to aws or azure or google or somewhere else, check out our pipes marketplace or repo above (there you can navigate to other public repos in the project).

Regards, Galyna


Tags: bitbucket-pipelines
Failed to register application revision in pipeline
Asked by asmaa_mahmoud:

I've use bitbucket pipeline for auto-deploy my laravel application with AWS codedeploy , but still give me error (Failed to register application revision) at step aws deploy register-application-revision in build

would you help please and give me reason of this problem ?


Answers:
author: Oleksandr Kyrdan
body: Hi [@asmaa_mahmoud](/t5/user/viewprofilepage/user-id/3651858) ,

could you provide us with more details about your build?


Tags: bitbucket-pipelines
how would you add a ssl certificate using proxy server (windows server- IIS)
Asked by Supreetha:

Hello,

I am trying to update ssl using proxy server that is IIS in windows server but i am unable to do so !!

Any help much appreciated

Thank you

Supreetha


Answers:
author: Nic Brough -Adaptavist-
body: What, specifically, makes you "unable to update ssl"?

You have not described how it is being done now (IIS is essential to know, but doesn't tell us anything about how you've set it up), what you are trying to do, or where it is going wrong and blocking you.

comments: author: Supreetha
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

I am trying to add https through proxy server using IIS

when i make the changes in server.xml file in bitbucket and use rewrite url in IIS window, I end up with IIS window or with an error stating the CGI specification error hence the server is terminated.

I am not sure where i am going wrong ?

Thank you

Supreetha


author: Nic Brough -Adaptavist-
body: That does not describe what you are trying to do in enough detail. It's got a couple of pointers to things you might be editing and a class of error message.

Maybe it would be easier if you told us what documentation you are following and what you are doing differently to what it says?


author: Supreetha
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

i have made changes in the server.xml file of bitbucket to connect to https on the IIS of the windows server as shown below

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

In Windows server i.e IIS i have added a new site and url rewrite i have added the url and selected the rewrite option.

i have added my web-config.xml file

![web-config.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/115132i5EE4FA1447112741/image-dimensions/593x303?v=v2 "web-config.PNG")

i am not sure where i am going wrong and if I go to [https://bitbucket.______.com](https://bitbucket.______.com?)

I end up getting iis window


author: Nic Brough -Adaptavist-
body: Have you got the proxy working without SSL?


author: Supreetha
body: No i haven't will do now and let you know

Thank You


Tags: bitbucket-server

server
AWS lambda deployment: Error parsing parameter '--zip-file': Unable to load paramfile
Asked by Prasanth_Sasidharan_ext:

Hi ,

I am a newbie to bitbucket pipeline. Trying to configure a pipeline to do the following but getting an error while accessing the zip file in the deployment step saying the file is not found.

- Maven build package (which generates a zip file)

- Deploy the zip file to AWS lambda using the pipe "atlassian/aws-lambda-deploy:0.5.5"

**++bitbucket-pipelines.yml++**

image: maven:3.6.1

pipelines:  
default:  
- step:  
name: Build  
caches:  
- maven  
script: # Modify the commands below to build your repository.  
- # mvn -B verify # -B batch mode makes Maven less verbose  
- mvn -DskipTests -B package  

- step:  
name: Deploy  
script:  
- pipe: atlassian/aws-lambda-deploy:0.5.5  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION  
FUNCTION_NAME: $LAMBDA_FUNCTION_NAME  
COMMAND: update  
ZIP_FILE: $LAMBDA_ZIP_FILE  

<br />

++**Logs:**++

++Maven build log :++

INFO\] Building zip: /opt/atlassian/pipelines/agent/build/target/csi-stepstone-0.0.1-SNAPSHOT-lambda-package.zip

++Deployment step log++

Error parsing parameter '--zip-file': Unable to load paramfile fileb://opt/atlassian/pipelines/agent/build/target/csi-stepstone-0.0.1-SNAPSHOT-lambda-package.zip: \[Errno 2\] No such file or directory: 'opt/atlassian/pipelines/agent/build/target/csi-stepstone-0.0.1-SNAPSHOT-lambda-package.zip'  
\[31m??-- Failed to update Lambda function code.\[0m  
Searching for files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/\*\*

Am I missing anything basic here?


Answers:
author: Prasanth_Sasidharan_ext
body: This is resolved.

I added the step for artifact in the maven build and use the artifact in the deploy step.

Below is the final script.

image: maven:3.6.1

pipelines:  
default:  
- step:  
name: Build  
caches:  
- maven  
script: # Modify the commands below to build your repository.  
- # mvn -B verify # -B batch mode makes Maven less verbose  
- mvn -DskipTests -B package  
artifacts:  
- target/\*  

- step:  
image:  
name: atlassian/default-image:2  
name: Sonar Scan  
caches:  
- maven  
script:  
- mvn -Dmaven.test.failure.ignore=true -B package # -B batch mode makes Maven less verbose  
- mvn sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN -Dsonar.bitbucket.minSeverity=INFO #Sonar Configuration  

- step:  
name: Deploy  
script:  
- pipe: atlassian/aws-lambda-deploy:0.5.5  
variables:  
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID  
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY  
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION  
FUNCTION_NAME: $LAMBDA_FUNCTION_NAME  
COMMAND: update  
ZIP_FILE: target/$LAMBDA_ZIP_FILE  

<br />


Tags: aws

bitbucket-pipelines

cloud

lambda

maven
What does it mean "Git Large File Storage per account"?
Asked by ???:

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

Hi!

What is the meaning "Per Account" in here?  
Because for me It feels like I need to pay for per users! (E.g If my team has 7 people, is it (7 x 10) / month for 100gb?)

Do I need to pay for numbers in my team or Is it just 10$ even my team is 7, or 10?


Answers:
author: Theodora Boudale
body: Hello,

This is actually per workspace and not per account that has access to this workspace's repos.

If you opt for extra Git LFS storage, it will be 10$/month for 100 GB of Git LFS (in total, for all repositories that are owned by this workspace). It doesn't matter how many accounts have access to this workspace's repos.

I understand the confusion with the phrasing. At the moment, a billing plan is associated with a Bitbucket Cloud workspace. Before workspaces were introduced, a billing plan was associated with a Bitbucket Cloud account (individual or team), which is why the word account is used in that page.

I'll bring this up with my team internally so this is clarified in that page.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pipeline Build is Failing - Deploy to S3 Step
Asked by Grab Qpons:

My build is failing with error "The user-provided path /tmp/artifact.zip does not exist.? Failed to upload /tmp/artifact.zip to S3."

Can you please advise what is missing out in my steps?

---- Below is the snippet of my bitbucket-pipelines.yml --------

> ```
> ![Screen Shot 2020-10-11 at 10.49.14 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/113855i7054FD515C07F7DA/image-size/large?v=v2&px=999 "Screen Shot 2020-10-11 at 10.49.14 PM.png")
> ```


Answers:
author: Pritam Kumar
body: Hello [@Grab Qpons](/t5/user/viewprofilepage/user-id/1012051) ,

Without looking at output of previous steps I can't guide much but look at error there might be some issue in artifact generation in 'Build and Compress' step.

comments: author: Grab Qpons
body: Hello [@Pritam Kumar](/t5/user/viewprofilepage/user-id/3621868) ,

Please see below and let me know if it helps. Appreciate your help

```
--- 
image: "node:7.3.0"
pipelines: 
tags:
latest:
- step:
image: "atlassian/pipelines-awscli:latest"
services:
- docker
script:
- IMAGE="${AWS_REGISTRY_URL}/grabqpons-api-gateway"
- TAG=${BITBUCKET_BRANCH:-$BITBUCKET_TAG}
- "echo $TAG"
- "export TAG=`git describe --abbrev=0 --tags`"
- "echo $TAG"
- "export TAG='latest'"
- "echo $TAG"
- aws configure set aws_access_key_id "${AWS_ACCESS_KEY_ID}"
- aws configure set aws_secret_access_key "${AWS_SECRET_ACCESS_KEY}"
- eval $(aws ecr get-login --no-include-email --region "${AWS_DEFAULT_REGION}" | sed 's;https://;;g')
- docker build -t $IMAGE:$TAG .
- docker push $IMAGE:$TAG
branches: 
dev: 
- 
step: 
image: "atlassian/default-image:2"
name: "Build and Compress Code"
script:
- "cd /opt/atlassian/pipelines/agent/build"
- pwd
- "ls -al"
- "rm -rf node_modules"
- "zip -r /tmp/artifact.zip *"
- pwd
- "ls -al"
- 
step: 
name: "Upload artifact (code) to AWS S3"
script:
- pipe: atlassian/aws-code-deploy:0.2.10
variables:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
COMMAND: 'upload'
APPLICATION_NAME: ${APPLICATION_NAME}
ZIP_FILE: '/tmp/artifact.zip'
S3_BUCKET: ${S3_BUCKET}
- 
step: 
image: "atlassian/pipelines-awscli:latest"
name: "Deploy code to AWS EC2"
services:
- docker
script:
- pipe: atlassian/aws-code-deploy:0.2.10
variables:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
COMMAND: 'deploy'
APPLICATION_NAME: ${APPLICATION_NAME}
DEPLOYMENT_GROUP: ${DEPLOYMENT_GROUP}
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
WAIT: 'true'
S3_BUCKET: ${S3_BUCKET}
- 
```


author: Kishore Gottumukkala
body: Hello there,

Appreciate it if anyone of you can help in identifying the problem.

Thanks


Tags: bitbucket-pipelines

cloud
Table Transformer - How to itereate elements returned by String Split function
Asked by mzaldivar:

Hello community,

This question is about the javascript function Split using FORMATWIKI.

I see examples where you can do this: T1.'Column_Name::string-\>split("/")-\>0, T1.'Column_Name'::string-\>split("/")-\>1, etc. However, since Split function returns an array of strings, is there a way to iterate each of the elements of such array?

Thank you very much for any insights.

Best,

__

Mario


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@mzaldivar](/t5/user/viewprofilepage/user-id/5126024),  

You may also check [this example](https://docs.stiltsoft.com/tfac/cloud/custom-transformation-use-cases-with-advanced-sql-queries-42241587.html#CustomTransformationusecaseswithadvancedSQLqueries-%E2%96%AASplittingcellvaluesinacolumntodifferentrows) from our documentation (please navigate to the section "Splitting cell values in a column to different rows" if the anchor doesn't work). Seems that it looks similar to your question.  

If you need to do smth else, please provide a screenshot of your source table and describe what exactly you need to achieve (here or via our [support portal](https://jsd.stiltsoft.com/servicedesk/customer/portal/2) that is based on Jira Service Desk and is confidential), we'll try to help with the query.

comments: author: mzaldivar
body: Hi Katerina

Thanks for the reply! - What I was looking for is more a way to store the elements of the returning array so that I can format each one. For example, in one single cell I have N URLs, such as http1, http2, http3, etc and I want to convert each one into links. So I was thinking of splitting and iterate one by one. Would that be the right approach with table transformer?

Thanks!


author: Katerina Rudkovskaya [Stiltsoft]
body: Yes, your case seems to be similar to the one I provided a link to.After splitting your links using the similar beginning or a character between them, you may use another Table Transformer macro with the FORMATWIKI function to recreate clickable links from each entry.You may share a screenshot of your source table here or via our support portal as I've mentioned before and we'll look into the case thoroughly.


Tags: filter

table

table-filter

table-filter-and-charts

table-transformer
New user cannot be added to Confluence space
Asked by BrianC:

I have added a new user to our Confluence Cloud. When I attempt to add the user to the Individual Users section of the Confluence Space Permissions, I see the user in the list to select from, but when I click Add, I receive the following error message:

User 610822d60b454a00680216f8 could not be found. Please confirm his or her existence with a Confluence Administrator.

I am the Confluence Admin, so I know the user has been added with a Confluence license. Any ideas as to the issue here?

One thing to note is that the user has not yet accepted the invite to join - just sent today - but I would not think that would be the issue.

I also notice that when I add new groups to Confluence, they are not available to select at all in the Groups section of this same page (Space Permissions).

Is there a larger issue at play here?


Answers:
author: Benjamin
body: [@BrianC](/t5/user/viewprofilepage/user-id/5126018) ,

Looks like there could be some larger here. I was testing my site to see if I could reproduce your issue but I'm able to add user and groups to a space permission without issue. I was able to find a selection.

I'm not aware of any particular setting that would prevent that. May want to raise a ticket with Atlassian suppose to investigate your site.

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

-Ben

comments: author: BrianC
body: I tried this again this morning and it worked flawlessly. I suspect there is a delay in "propagating" the data to the UI, which seems odd to me in SaaS solution. Either way, all good now!

Thanks!


Tags: cloud

confluence-cloud