youngmon/atlassian-qna huggingface dataset:
Optional approvals (outside of the workflow)
Asked by Tim H_:

We usually have use cases where an agent wants to double-check with his manager. This is, however, not mandatory and, thus, not part of any workflow. It can also happen at any stage of the process, so a workflow step would make no sense anyway.

I wonder if it's possible to add something like "optional approvals" where the agent can, but does not have to, ask a manager for approval. The fallback solution would be to just assign the issue to the manager. But approvals would surely be a nicer option.

Any help is greatly appreciated!


Answers:
author: John Funk
body: Hey Tim,

I would actually say this is a great example of having a different status. If you're wanting to add an optional approval, that would mean a different status anyway, typically.

I would just add another status and assign it to the supervisor when the agent moves it to that status. Otherwise, if it's not needed just continue on your regular workflow path.

comments: author: Tim H_
body: Hey [@John Funk](/t5/user/viewprofilepage/user-id/7148),

thank you for this input. I'm trying this right now. But would I really only need 1 additional status?

Let's take this workflow:

1. External approval (customer's manager, mandatory)
2. Request in review, preparing a solution
3. Buying components
4. Assembling components
5. Installing software
6. Ready for delivery
7. Finishing on site
8. Closed

Steps 2-7 all may or may not require an additional approval by the respective team leader. Sometimes no approval is necessary (if it's a standard solution), sometimes 3 or 4 approvals by different team leaders are necessary.

I'm not sure if just 1 additional status "Approval by team leader" is sufficient. 2-7 would have transitions to it and I could probably add transitions from that new status to 2-8.

But what about the second, third or forth approval? Can I cover several distinct approvals with just one status?

Tim


author: John Funk
body: It depends if you need to track whether it was the first approval or second approval, etc. You could probably get back with a single status if you like. You can make it work either way. I would tend to use the extra status though.


Tags: approval

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

server

workflow
Getting 500 server error while hitting the commit diff api on bitbucket cloud
Asked by Sahil Kalamkar:

Here is the id which I received with the error response

465a1285ec7a466ebb0b8c62921ac17b  

Basically after hitting this api  
<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-diffstat-spec-get>  

Can someone help here?


Answers:
author: Ben
body: G'day Sahil!

Welcome to the Bitbucket Cloud community! :)

May you please share the full command you are running (with workspaceID/reposlug omitted) along with the output of this command?

I can then perform testing on my end and also look up the error code in our backend.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to deploy folders and image files using ftp-deploy pipeline
Asked by Marcos Almeida:

Hello,  

I am having a happy and also a hard time using Pipelines for the first time. After finally understanding how it works I could deploy my files using ftp-deploy. Yey!  

But I could notice that the image files from my Wordpress page were not present in my theme deployment, as well as the custom folders I created, and I was wondering what I need to do to make it work and deploy all the files present in my themes folder.  

I tried to use as well the sftp-deploy, but unfortunately my server has some trouble with it, so I decided to use the ftp-deploy.  

here is my .yml file  
"  
pipelines:  
branches:  
master:  
- step:  
name: Deploy to production  
deployment: production  
script:  
- pipe: atlassian/ftp-deploy:0.4.0  
variables:  
USER: $SFTP_USER  
PASSWORD: $SFTP_PASSWORD  
SERVER: "myserver.com"  
REMOTE_PATH: "/my-path/wp-content/themes/my-theme"  
"  

**UPDATE**I could make it work by adding a slash at the end of my remote path  
REMOTE_PATH: "/my-path/wp-content/themes/my-theme/"  
But it deploys a folder inside of my theme called "build"  

How can I deploy without creating that folder.  

Also I would like to know how can I make it deploy just the new files I add to my theme, without clearing the fpt and deploying all the files again.  

<br />

Thanks a lot!


Answers:
author: Igor Stoyanov
body: [@Marcos Almeida](/t5/user/viewprofilepage/user-id/5137414) hi.  
"How can I deploy without creating that folder." Try this example:

Copy recursively to the remote server directories and files without source directory `build`.  

```
script:  - pipe: atlassian/ftp-deploy:0.4.0    variables:      USER: my-ftp-user      PASSWORD: $FTP_PASSWORD      SERVER: 127.0.0.1      REMOTE_PATH: /tmp/my-remote-directory      LOCAL_PATH: build
```

"Also I would like to know how can I make it deploy just the new files". Check \`lftp mirror\` parameters from[official man page](https://manpages.ubuntu.com/manpages/trusty/en/man1/lftp.1.html) for your needs.

As far as i know from [previous question](https://community.atlassian.com/t5/Bitbucket-questions/how-can-i-deploy-only-changed-files-to-ftp-server-using/qaq-p/1993353) this is not supported but maybe you will find a solution.  

Regards, Igor

comments: author: Marcos Almeida
body: Hey Igor!  

Thanks for your answer.  

Finally I could solve the troubles of my server and use the pipe: atlassian/rsync-deploy:0.8.1, which works much faster.  

<br />

Also for the "build" folder, I found that solution after a long search.  

LOCAL_PATH: "${BITBUCKET_CLONE_DIR}/"  

It takes automagically my local path as I understood. Attention to the slash at the end.  

Thanks again (:


Tags: bitbucket-pipelines

cloud

deployment

ftp
How do I view a list of our milestones?
Asked by strangecode:

We use milestones when creating issues, but I don't see a way to view a list of all milestones for a project. It would also be nice to view a list of all milestones, with issues grouped under the milestone they belong to.

I'm sure this feature must exist, but I can't find it and searching google or atlassian docs can't find it.

Thanks


Answers:
author: Theodora Boudale
body: Hi [@strangecode](/t5/user/viewprofilepage/user-id/4369828),

I assume that you are referring to the Bitbucket built-in issue tracker?

If you have admin access to the repo with the issue tracker, you can do the following:

* Open the repository on Bitbucket Cloud website
* Go to **Repository settings** (from the left sidebar)
* Select **Milestones** (from the new option on the left sidebar)

You will see on that page all possible values for Milestones. These are values that have been added by a repo admin and not all of them are necessarily used in existing issues.

If you try to create an issue, you will see a field named Milestone, and the dropdown for that field will show you the same values.

<br />

While viewing the list of issues in the Bitbucket issue tracker (<https://bitbucket.org/{workspace-id}/{repo}/issues>), you can select the **Milestones** header, and then issues will be sorted and grouped per milestone.

You can also use the Advanced search option on the issues page in order to view issues of a certain or multiple Milestones (you can add the filter Milestones multiple times in the Advances search page).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

milestone
Can auto linking of the Jira issues be prevented inside the Bitbucket pull request overview section?
Asked by lintek214:

When users create pull request, they will sometimes make addition comments about the request in the overview section. When they do, they are including related Jira issue numbers. When that happens, those issues will also show the pull request. However, it's only because of the Jira and Bitbucket auto-linking through the Jira issue number this happens. It becomes confusing looking at an issue linking to pull request which it has no real impact to. Is there a way to prevent this? Maybe with some special char characters around the Jira issue number?


Answers:
author: lintek214
body: I figured out what is going on. It's not as I described after all. My users are committing changes on the same development branch (which is linked to a single issue) using different issues in the commit message. The pull request, regardless of the issue is displayed in the Summary title, is now seen in all issues that have commits on that branch. And when I look at the pull request's commit listing, it confirms this fact.

I just wish they wouldn't do this. I want them to use a single issue for branch/commits/pull requests. I just don't see a way to prevent the mixing of issues across the three objects.


Tags: bitbucket-cloud

cloud

jira

jira-cloud
Feature: request to add full API query support to all paginated objects
Asked by Sander Mol:

Greetings Atlassian,

The current [query implementation](https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication) is quite extensive and is a great way to write performing functionality for the lack of specific endpoints.

The documentation of mentions it supports *most*of the endpoints that return a paginated object
> Most 2.0 API resources that return paginated collections of objects support a single, shared, generic querying language that is used to filter down a result set.

I have, however, noticed that multiple paginated endpoints do not support the query (\`q=\`) syntax. For example, the following endpoints will do nothing with the query syntax:

**GET api.bitbucket.org/2.0/repositories/{workspace}/{slug}/deployments_config/environments/{deployment-uuid}/variables?q=secured=true**

```
{
  "page": 1,
  "values": [
    {
      ...
      "secured": false
    },
    {
      ...
      "secured": true
    },
    {
      ...
      "secured": false
    }],
    ...
}
```


Answers:
author: Sander Mol
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)A very humble ping  


author: David Bakkers
body: Hello [@Sander Mol](/t5/user/viewprofilepage/user-id/3164047)

<br />

This site is only a forum for the use by the general public, it's not 'monitored' by Atlassian.

Google '*bitbucket cloud feature requests*' to know where and how to register such ideas for Bitbucket cloud.

comments: author: Sander Mol
body: I have tried the embedded "Share Feedback" in our Jira environment, but do not remember getting any reaction.  

At least through this medium, my requests actually go into the Jira backlog of Atlassian.

If there are better medium, please let me know (instead of letting me google something ;) )


author: David Bakkers
body: [Bitbucket Cloud suggestions](https://jira.atlassian.com/issues/?jql=project%3DBCLOUD%20AND%20type%3DSuggestion%20AND%20statusCategory!%3DDone%20ORDER%20BY%20updated)

There are only 1,459 suggestions ahead of yours.


author: Sander Mol
body: [@David Bakkers](/t5/user/viewprofilepage/user-id/1575730)Let us keep this post on topic...

Atlassian's open Jira board does not allow creating your own tickets any more, since quite a while already. The recommended approach for new features/improvements is to use either the "Share feedback" button in your product instance, or use the Atlassian forum:
> If it's something new, use the Give Feedback option in the help menu of our products, or start a conversation in the [Atlassian Community](https://community.atlassian.com/bitbucket).

This has also been confirmed by Atlassian's Support Engineer that **is**active on this forum.
> And yes, it's ok to communicate these requests here.

Of course, as a paid user, I can also is the internal support ticket system (which might be something I will do in the future).


Tags: bitbucket-cloud

cloud

rest-api
Is anyone else having incorrect commit histories when pulling?
Asked by Thomas Johnson:

Hey y'all,

In Bitbucket, I can clearly see a commit I pushed 47 minutes ago. I went to my other machine and did a successful "Up to date" git pull, and I do not see it.

Is Atlassian having server issues again?

**Bitbucket UI**

![2023-02-02_13-08.png](https://community.atlassian.com/t5/image/serverpage/image-id/237965iBBD1B5A916A3C59E/image-size/large?v=v2&px=999 "2023-02-02_13-08.png")

**GitHub Desktop - Repository History**

![2023-02-02_13-08_1.png](https://community.atlassian.com/t5/image/serverpage/image-id/237966iDE4601B0D46C16AD/image-size/large?v=v2&px=999 "2023-02-02_13-08_1.png")

I hopped back on the other computer and no matter how many times I click "Push origin", it doesn't.

![2023-02-02_14-36.png](https://community.atlassian.com/t5/image/serverpage/image-id/237977iF1FD8A01A4985255/image-size/large?v=v2&px=999 "2023-02-02_14-36.png")

The last time I experienced this kind of issue, there was an outage.

The [Bitbucket status page](https://bitbucket.status.atlassian.com/) says all systems operational which is clearly not true.

![2023-02-02_14-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/237979i926F79A69D92286F/image-size/large?v=v2&px=999 "2023-02-02_14-38.png")

Thanks in advance,

-T


Answers:
author: Thomas Johnson
body: The answer is to move your stuff to GitHub because this is the second time this has happened without any kind of status update from Atlassian. Peace out.


author: Erez Maadani
body: Hey [@Thomas Johnson](/t5/user/viewprofilepage/user-id/5085651)

Try pulling your code using the git cli.

If if it manage to pull all history, it's a client issue.

If it doesn't and there are no connection issues, it could be BitBucket side or some machine between the client and BitBucket.

If there are connection issues, they have to be solved first ;)

comments: author: Thomas Johnson
body: I have done that. git cli is returning with "Everything up-to-date" on push and "Already up to date." on pull.

This is a Bitbucket issue.


Tags: bitbucket-cloud

cloud
Why doesn't aws-ecs-deploy support PortMapping name in the ContainerDefinitions?
Asked by Brandon Robinson:

Using the aws-ecs-deploy-1.6.2, I keep getting an error stating:

? Failed to update the stack.  
An error occurred (InvalidParameterException) when calling the UpdateService operation: portName(whatsours-stripe-service-8095-tcp) does not refer to any named PortMapping in the container definitions.

This is due to the fact that we had to add PortMapping name to our task definitions in AWS ECS because we want to enable client/server Service Discovery; however, our task-definition-development.json file doesn't allow us to add name in the portMappings. If we add it, then we receive the following error:

? ECS task definition parameter validation error:  
Parameter validation failed:  
Unknown parameter in containerDefinitions[0].portMappings[0]: "name", must be one of: containerPort, hostPort, protocol  
Any solutions?

```
?
```


Answers:
author: Igor Stoyanov
body: [@Brandon Robinson](/t5/user/viewprofilepage/user-id/5136837) hi. Thanks for your question.  

Looks like boto3 library should be updated in this pipe to fix this error (add support for it):  
? ECS task definition parameter validation error:  
Parameter validation failed:  
Unknown parameter in containerDefinitions[0].portMappings[0]: "name", must be one of: containerPort, hostPort, protocol  
We will notify you when new release will become available.  

Regards, Igor

comments: author: Brandon Robinson
body: Hell Igor,

Thank you for your response. Looking forward to the new release given the circumstances.

Thanks again,

Brandon


author: Oleksandr Kyrdan
body: Hi [@Brandon Robinson](/t5/user/viewprofilepage/user-id/5136837)

The new version of the [aws-ecs-deploy pipe](https://bitbucket.org/atlassian/aws-ecs-deploy) is released:

```
atlassian/aws-ecs-deploy:1.7.0 
```

The boto3 dependency is updated to the latest version (1.26).

Best regards,  
Oleksandr Kyrdan


Tags: aws

bitbucket-cloud

cloud
Can't push to BitBucket from any IDE - fatal: Authentication failed
Asked by Akunma Ndujiuba:

Whenever I try to push a change from my local, the server says that it can't connect to BitBucket and I need to complete a CAPTCHA to log in. When I would try to log in with the CAPTCHA code, the site would give an error saying that my password is incorrect even if it wasn't. If I reset my password, it would allow me to log back in but if I tried to push any changes to the repo the CAPTCHA error comes up again.

I've been using SourceTree to push changes, but when I use VSCode instead it gives an error: fatal: Authentication failed.

I've tried uninstalling and disconnecting my account but this problem still comes up whenever I try and push to the remote repositories.

Any help would be greatly appreciated!!


Answers:
author: felipe_barbosa
body: I have the same problem :/

comments: author: felipe_barbosa
body: It was resolved this morning for me.


Tags: bitbucket-cloud

cloud

sourcetree
how to incudle backup and remove command to deploy artifact in s3
Asked by Gilbert Bencito:

I am trying to deploy my webapp in s3 bucket using pipeline... how can i include in the script the command to bucket my existing files in s3 then remove it before deploying the latest data..


Answers:
author: Igor Stoyanov
body: [@Gilbert Bencito](/t5/user/viewprofilepage/user-id/5136717) hi. Thanks for your question. Try this example if you want to clear your s3 bucket before upload.  

```
script:  - pipe: atlassian/aws-s3-deploy:1.1.0    variables:
    S3_BUCKET: 'my-bucket-name'
    LOCAL_PATH: 'build'
    EXTRA_ARGS: "--delete"
```

Under the hood pipe [use \`aws sync\` command](https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html):  
--delete (boolean) Files that exist in the destination but not in the source are deleted during sync.

Regards, Igor


author: Gilbert Bencito
body: Hi [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492)

Thanks a lot for your suggestion. May i Know how can i backup the data before clearing it?

comments: author: Igor Stoyanov
body: [@Gilbert Bencito](/t5/user/viewprofilepage/user-id/5136717) i don't know exactly, but check [this page](https://docs.aws.amazon.com/aws-backup/latest/devguide/s3-backups.html).

Regards, Igor


Tags: aws

bitbucket-cloud

cloud
CI/CD Is it possible to use node_modules folder pushed in repository?
Asked by Costantino Carta:

Hello everyone,

I'm trying to build a pipeline to deploy my angular14 app into a private server.

I'm facing this issue:

as we've built a custom angular material theme in our app we have changed some files within 'node_modules' folder.

Within the styles.css file there are references at that particular theme defined in a file within angular material folder in node_modules.

I can't run 'npm install' command in my pipeline as we lose the definition of our custom theme and we get an error in the building phase caused by the references defined in 'styles.css' file.

Is there a way to push my 'node_modules' folder within the docker container within the pipeline instead of installing the dependencies from 'package.json'?

The 'caching' solution seems to not be helpful to this particular case..

Does anyone have a solution?

Thanks in advance,

Costantino.


Answers:
author: Erez Maadani
body: From Docker perspective, \`node_modules\` is just another folder and you can COPY it like any other file/folder.

You should note that:

1. The folder should exists within the docker context in order to be copied.
2. The folder is not excluded using the .dockerignore file.
3. Some dependencies have different OS variations, IE: the dependency for MacOS is different from the Linux one.

Last point \& personal recommendation - Coping the node_module is not stand procedure and may lead to unexpected results. Do revise your process. It might be a bit safer to first install the mode module you want to override its CSS, override the CSS files and then install the rest of the dependencies. Something like this:  
*npm install module*   
*cp new_file.css node_module/module/old_file.css*   
*npm install*

Hope that helps

comments: author: Costantino Carta
body: HI Erez,

thank you so much for your response!

I will follow your suggestion avoiding to copy all the node_modules folder.

I'm gonna try replace the files I need. I want to ask, how can I put my files in the docker container through the bitbucket pipeline? Sorry but I am a newbie using docker.

Thanks in advance


author: Erez Maadani
body: Hey [@Costantino Carta](/t5/user/viewprofilepage/user-id/5136628)

Usually, you first clone your project which brings all your files.

Then, If you run your docker command from the root folder, all files will be included by default.

If your code base includes multiple projects, you might have to pass the correct Dockerfile and context to the docker command.

This might help: <https://docs.docker.com/engine/reference/commandline/build/>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

node
CORS issue
Asked by Adnan Vallippadan:

I am developing an application, which uses bitbucket APIs. My browser returns a CORS exception. How can I resolve that?  
It was working before, The issue raised recently.   

When I searched for the issue, I can see several solutions saying for adding more header information.   
Unfortunately, It didn't solve my problem.  
I've attached the screenshot, from my console.  

![BitbucketCORSIssue.png](/t5/image/serverpage/image-id/237860i41556425B79DACBC/image-size/large?v=v2&px=999 "BitbucketCORSIssue.png")  

I am using flutter for my web application development. Please help me to solve this.


Answers:
author: Jeroen De Raedt
body: Hi [@Adnan Vallippadan](/t5/user/viewprofilepage/user-id/3591169),

thanks for bringing this issue to our attention! We identified the issue that was affecting your integration - and this now has been patched.

Please let us know if you are still experiencing issues.


author: Ulrich Kuhnhardt _IzymesCo_
body: I came across a similar issue and filed <https://ecosystem.atlassian.net/browse/ECOHELPPUB-37> - however Atlassian stated that the affected endpoints were internal.


Tags: bitbucket-cloud

cloud

rest-api

security
Bitbucket is extremely slow and terminates the sessions
Asked by Himanshu Pandey:

Bitbucket is extremely slow and terminates the sessions


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

There was an incident earlier, but it's been fixed. See <https://bitbucket.status.atlassian.com>

If you see problems in the future, check with status.atlassian.com

comments: author: felipe_barbosa
body: I still have the issue since today morning.


author: felipe_barbosa
body: It was resolved this morning for me.


author: Nic Brough -Adaptavist-
body: Good news that it has started working again! Thank you!


Tags: bitbucket-cloud

cloud