youngmon/atlassian-qna huggingface dataset:
Webhook automation
Asked by Amali:

Hey community,

My usecase is, when an issue in JSM instance A is updated, it needs to update in JSM instance B as well. I'm not able to figure out how to achieve this. I was able to create issues though. I appreciate all the support. I looked up many articles around but I couldn't wrap my head around it so far.

Kind regards,

Amalishiya.


Answers:
author: Gabriel Rodrigues
body: Hi [@Amali](/t5/user/viewprofilepage/user-id/5219537),  

If you're creating issues issues in instance B when issues are created in instance A, you likely set up automation in instance B with a webhook trigger to achieve this. To enable further updates on a 'cloned' issue in instance B whenever the original issue in instance A undergoes changes, follow these steps:

1. Create a field named "Original Issue Key" as a "Short text (plain text only)" field in instance B. This field will be used to store the original issue key from instance A within the issues created by the automation. Add the field to the appropriate screens so they're available in the cloned issues.
2. Modify the automation that creates the issue in instance B to store the original issue key from instance A in "Original Issue Key" field within the created issue.
3. Create another automation in instance B with an "incoming webhook" component as the trigger. Select "No issues from the webhook" in the "Execute this automation rule with option". In this automation, when the incoming webhook triggers, the response body will include an issue key accessible through the smart value {{webhookResponse.key}}, representing the original issue key.
4. Branch the automation using the JQL condition "Original Issue Key" \~ "{{webhookData.key}}" and edit the issues with the updated fields contained in the webhook response body. You can access the fields using a smart value such as {{webhookData.fields.summary}}.

The new automation in instance B will look like the following image:

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

To make this process work:

1. Copy the webhook URL from instance B.
2. In instance A, set up an automation to monitor issue changes as the trigger. Then use the 'Send a web request' action to perform an request to the copied automation URL, providing the issue data in Automation format within the web request body.

Feel free to ask any questions if you need further clarification or assistance with these steps.


Tags: jira-service-management

jira-service-management-server

server
Cannot try out Bitbucket Command Line Interface (CLI)
Asked by Muhammad:

When I try to check out CLI I am told that:

**We stand with Ukraine**  
**We have a commitment to our customers to provide a trusted service. In response, we are pausing the sale of all new software to Russia.**  
The issue is that I am from Pakistan, not Russia.


Answers:
author: Nic Brough -Adaptavist-
body: There are two main possibilities here

* Your account is associated with an organisation that is associated with the Russion government and hence sanctioned
* Your IP address is similarly sanctioned (either because your ISP is Russian owned, or appears to be geographically located in a sanctioned region - Russia, Belarus Crimea or the areas of Ukraine currently occupied by Russia)

If it is your IP address, then Atlassian are using "maxmind" for geo-location, and you can either get it corrected if the lookup of your IP address is wrong, or try a VPN that has an exit point that is not in a sanctioned region.

There's a great explanation of the geo-location stuff over at <https://community.atlassian.com/t5/Jira-questions/blacklisted-ip/qaq-p/2054182>


Tags: bitbucket-cloud

cloud
API - Getting Repository commits no longer works
Asked by Lukasz Taras:

Hi guys.  
I cant find any info about recent changes .... but i have used following API calls in the past. Last time in May 2022:  

[https://api.bitbucket.org/2.0/repositories/lukasztaras86/medifast/commits?page=1\&pagelen=100](https://api.bitbucket.org/2.0/repositories/lukasztaras86/medifast/commits?page=1&pagelen=100)  

Which worked like a charm. Tried this today, and i get 'Repository not found' while all my credentials are correct and valid. Can you guide me what has changed ?


Answers:
author: Norbert C
body: Hi Lukasz,

Thanks for reaching out to Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

This is interesting, when I was querying using the similar URL, I was able to list the commits within my repository.

Can you tell me which API client do you use?

Thank you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
Zip file not showing as an artifact
Asked by kbaley:

I have the following in my pipeline:

- apt-get update \&\& apt-get install zip -y  
- zip -r api.zip MyApp/\*\*  
- ls .  
artifacts:  
- api.zip

In the log files, I see the files being zipped and the \`ls .\` step does show an api.zip file. But it doesn't appear in the Artifacts tab nor is it available in subsequent steps. Any thoughts on why?


Answers:
author: kbaley
body: I figured it out. What I left out of my sample was a "cd myFolder". So I was changing directories in my script and the zip file was being created in it, as expected. But I forgot to include the full path to it in the artifacts so it should have been:

artifacts:

- myFolder/api.zip

comments: author: Omkar posam
body: Hi [@kbaley](/t5/user/viewprofilepage/user-id/178678) I have same issue and even though adding full path during upload it shows path not exist.

<https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-artifact-issue/qaq-p/2231012#U2231412>

Also can you help how to zip subfolders in the build folder...Because it is only zipping my files and not sub-folders.

link to pipeline


Tags: bitbucket-cloud

cloud
Hi community, is there a way to control how diff treats file encoding?
Asked by David Andres Ayala Munoz:

I'm facing some issues regarding the ANSI encoding of my VB6 files (which includes Spanish characters like ?, ?, ?, ?, ?, and ?, both upper and lower cases).

And when we create some PR that has nothing to do with those characters, somehow the PR always detect those character as changes, making the code review almost unmanageable because the PR has so many changes that shouldn't be there.

What I'd like to do is all file handling processes keep/respect the original file encoding, in this case ANSI.


Answers:
author: Theodora Boudale
body: Hi David,

I'm afraid that it is not possible to control this at the moment.

We have a feature request in our issue tracker for specifying a repository's encoding:

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

If you'd be interested in that feature, I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
README not rendered, but why?
Asked by Kaziq:

Hi, I'm trying to get my README.md file to display in the source page, but I only see:

```
Not getting that to display...

Normally, you'd see the README here, but something didn't go right.

Try again
```

Clicking on the "Try again" link shows a turning circle for a few seconds and then the same message again.

My README.md file renders just fine with <https://markdownlivepreview.com/>

How can I get to know what the problem with the file is?  

I have created my file locally, then committed and pushed it. I also tried to follow the guide to create the README file from the web interface - I deleted the file, and tried to find the "Create README" button the manual mentions, but I couldn't find it anywhere.

The repository is here, if someone wants to take a look: <https://bitbucket.org/Kaziq/brymen-and-sanwa-ir-interface/src/master/>


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

Please allow me to step in as Norbert is out of office.

Since your repository is public, I checked the **Developer Tools** \> **Network** tab while loading the Source page of your repo. In there, I can see the request to get the README.md file returns a 400 error with the error message:

```
We cannot detect the file's encoding; unable to render file.
```

If I clone the repo and check the file's encoding, it shows as 'iso-8859-1':

```
$ file -I README.md
README.md: text/plain; charset=iso-8859-1
```

Would it be possible to change the file's encoding to UTF-8 and then push it to Bitbucket? As per my testing, this should solve the issue.

Kind regards,  
Theodora

comments: author: Kaziq
body: Yay, it works now. Thank you.


author: Theodora Boudale
body: That's good to hear, you are very welcome.

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


author: Norbert C
body: Hi Kaziq,

Thank you for contacting Atlassian Community. I'm Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

I would like to inform you that we're not able to display the README file as you're linking the picture to your local repository, which unfortunately doesn't work:

```
![Board view from the top](/images/brd_top.png)
```

As a workaround, can I suggest you to upload the pictures under the Downloads section and change the syntax to something like this?

```
![Board view from the top](https://bitbucket.org/Kaziq/brymen-and-sanwa-ir-interface/downloads/brd_top.png)
```

Please let me know if that helps.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Kaziq
body: Thank you for the suggestion, but it still doesn't work.

I also noticed the image file extensions were wrong (png vs. jpg). I changed them, but the problem persists.

I pasted the updated images to the online markdown viewer, and they show up just fine.

What could be the issue now?


Tags: bitbucket-cloud

cloud

readme
Workspace creation not possible
Asked by Delisle Sylvain:

Dear,

How can we create workspace on our Bitbucket server, i have got admin rights on the server?

Best regards,

Sylvain Delisle


Answers:
author: Fadoua
body: [@Delisle Sylvain](/t5/user/viewprofilepage/user-id/4967920) You mean you are trying to create a project in BitBucket? if yes here is the link:

<https://confluence.atlassian.com/bitbucketserver/creating-projects-776639848.html>

best

Fadoua

comments: author: Delisle Sylvain
body: Dear,

Many thanks for your response,

My question is about how to create workspace in bitbucket, documentation describes this functionality cf. <https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/>, at the moment we can not access this functionality even if we have admin access rights on Bitbucket server?

Is it a missing configuration option on our Bitbucket server, or this functionality is not available on our server?

Best regards,

Sylvain Delisle


Tags: bitbucket-server

server
Make FTP pipeline error fail current step
Asked by MennoVink:

I'm using pipe: atlassian/ftp-deploy:0.3.7 as a manual pipeline step and i'd like the step to report failure when the pipe fails.

In a previous step i have

artifacts:  
- foo/bar_v\*.exe

and then in the ftp deployment step i have

LOCAL_PATH: foo/bar_v\*.exe

It seems that this glob pattern is not supported, as indicated by the message

mirror: Access failed: /opt/atlassian/pipelines/agent/build/foo/bar_v\*.exe: No such file or directory

Any ideas how i could turn pipe failure into a step failure?


Answers:
author: lissyaka
body: [@MennoVink](/t5/user/viewprofilepage/user-id/56188)hi.

<br />

According to the [pipe README](https://bitbucket.org/atlassian/ftp-deploy/src/master/):  
LOCAL_PATH - Optional path to local directory to upload.  

So it should be a path to directory:

LOCAL_PATH: foo  

Cheers

comments: author: MennoVink
body: Thanks for the answer, but this is not what i am asking. I have already solved that issue. What i am asking here is how to make the pipeline step fail when something in the pipe fails.


author: lissyaka
body: Pipeline will fail when the status of this command inside pipe != 0:

```
lftp -u $USER,$PASSWORD -e "set ftp:ssl-allow no; mirror ${ARGS_STRING} ${LFTP_DEBUG_ARGS} ${EXTRA_ARGS} -R ${LOCAL_PATH} ${REMOTE_PATH};quit" $SERVER
```


Tags: bitbucket-cloud

cloud

ftp
Why are there 2 levels of 2FA?
Asked by Laur:

I have 2FA enabled for my **Atlassian account** . It gets asked when I [log into](https://bitbucket.org/account/signin/) my Bitbucket account using Atlassian account.

Why does bitbucket [allow enabling 2FA](https://bitbucket.org/account/settings/two-step-verification/manage) again? Would this mean I need two different 2FA codes when logging in?

What benefit would enabling it *also* on bitbucket side offer? What am I missing here?


Answers:
author: Syahrul
body: Hi [@Laur](/t5/user/viewprofilepage/user-id/4967673)

Welcome to the community!

There are currently two types of mobile authentication for Atlassian, which are 2FA on the Atlassian account and 2SV for Bitbucket account specific.

Atlassian account 2FA is used across the Atlassian account level across Atlassian products, while Bitbucket 2SV is used only for Bitbucket products as another security layer.

It's mainly used for **Premium features**to enforce Bitbucket-specific 2SV

[Bitbucket cloud premium features](https://bitbucket.org/product/premium)

That said, the benefit is for **Premium features** and can be enabled if you wish to have additional security for your code access.

I hope this clarifies.

Cheers,  
Syahrul

comments: author: Laur
body: To be clear, it's okay not to enable it, as Atlassian account 2FA will still provide us with additional auth layer. correct?


author: Syahrul
body: Hi [@Laur](/t5/user/viewprofilepage/user-id/4967673)

Yes, It's fine if you decided not to enable it as long as your Workspace doesn't enable the Premium feature to enforce 2SV for the Bitbucket cloud.

Hope this helps.

Cheers,  
Syahrul


Tags: 2-factor-authentication

account

bitbucket-cloud

cloud

login

security
Setup slack notifications for all repositories
Asked by Fabian Hoffmann:

I'd like to get notified whenever a Bitbucket Pipeline failed.  

I am looking for a way to configure this globally for all of the Repos in our workspace.  

So far I am aware of postscripts in each Bitbucket Pipeline yaml file or to activate Slack for each repositories.  

Isn't there a global way of doing that? Or at least is is possible to configure the Slack notifications via the Bitbucket 2.0 API?

thanks and regards,  
Fabian


Answers:
author: Theodora Boudale
body: Hi Fabian,

I'm afraid that there is no way to configure Slack notifications via API, or do a bulk set-up for multiple repositories from the website.

At the moment, this needs to be configured for each repository separately with one of the ways you mentioned.

We have a feature request in our issue tracker for the ability to configure the integration via API for multiple repos:

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

Since you're interested in that feature, I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora

comments: author: Fabian Hoffmann
body: Thanks for the feedback Theodora,  

I upvoted the feature request.  

Kinds regards,  
Fabian


Tags: bitbucket-cloud

cloud

notification

slack
Multiple docker images
Asked by Scott Nickless:

Hi,

Question regarding the 'AWS ECR push image' pipe, we create several docker images as part of our pipeline. What is the best way to use this pipe in our pipeline?

At the moment we're trying to run it after each image is built, but since it's starting up another docker container, is it a bit wasteful.

Are there any alternatives that anyone can suggest including installing the AWS CLI into the docker container and using that to push the images to our ECR?

It would be awesome if it's possible to create an array and loop through the array in the pipeline, but I think I'm getting to a point where I'm better off creating our own docker container to build our application.

Thanks all for your help.

Scott


Answers:
author: lissyaka
body: [@Scott Nickless](/t5/user/viewprofilepage/user-id/3854174)hi.  

You can create your [own custom pipe](https://bitbucket.org/blog/build-flexible-ci-cd-pipelines-with-custom-pipes) according to your case.

Cheers


Tags: aws

bitbucket-cloud

cloud
How to install npm bitbucket package BRANCH
Asked by Meagan:

So I know how to install our repo via

```
npm i bitbucket-url-here
```

Is there a way to install a branch rather then main?

Most of the searches I found were only on installing the main branch of a repo.

Thank you!


Answers:
author: Gert Stalpaert
body: I also want to know on how to install a branch using package.json ...

This does not work :(  

```
"dependencies": {
    "<module name>": git+ssh://git@bitbucket.org/<organization>/\<repo>#<branch name>,
    ...
}
```


Tags: bitbucket-cloud

cloud

npm
Runners for Windows pipeline - 'If statement' does not execute?
Asked by Louis Elston:

-----------------------------------------  
#- if \[ $Env:CHANGEBUILDNUMBER == 'Yes' \]; then ./ChangeBuildVersion2.bat $Env:BITBUCKET_BRANCH $Env:BUILDVERSIONNUMBER $Env:BITBUCKET_CLONE_DIR\\eLookCommon \> $Env:BITBUCKET_CLONE_DIR\\Buildlogs\\ChangeBuildVersion2.log; fi  
The above commented out "if \[" line fails because it is looking for an '(' after the if.  
So, went to PowerShell format....  
- if($Env:CHANGEBUILDNUMBER -eq "Yes") {  
echo "CHANGEBUILDNUMBER Variable was Yes, so the build number will be changed."  
./ChangeBuildVersion2.bat $Env:BITBUCKET_BRANCH $Env:BUILDVERSIONNUMBER $Env:BITBUCKET_CLONE_DIR\\eLookCommon \> $Env:BITBUCKET_CLONE_DIR\\Buildlogs\\ChangeBuildVersion2.log  
}  
#else  
# {  
# echo "CHANGEBUILDNUMBER was NOT Yes, so the build number will NOT be changed."  
# }  
-----------------------------  
The 'if' line that you see above (and the commented out else code), do not execute and do not give any errors. This is what the output look like, basically it is just showing the entire if statement...  
![NothingHappens.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/201930iDCB6A8855C339E3A/image-size/large?v=v2&px=999 "NothingHappens.PNG")  
Is anyone using Bitbucket 'Runners for windows'? There is absolutely no examples (that I can find).


Answers:
author: Louis Elston
body: This works (using '()', and ';'...  
- if ($Env:BUILDVERSIONNUMBER) {git add $Env:BITBUCKET_CLONE_DIR\\eLookCommon\\CommonAssemblyInfo.cs; git commit -m "Committing new build version number."; git push origin $Env:BITBUCKET_BRANCH}


Tags: bitbucket-runners

bitbucket-server

server
Unable to review password recovery email
Asked by Asher Azad:

Hi, I have another bitbucket account "\<email_removed\>". I am unable to receive the password recovery email. I am trying to login from months but the problem persists.

Might be my email stuck in your bounce list.

Please help me in this regards.


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

Your email was indeed in one of our suppression lists, as we attempted to send an email at a time that it was not operational.

I went ahead and removed this email address from our suppression list.

Could you please try requesting a new password reset email now?

A new email needs to be requested, as the previous ones were dropped.

Just a heads up, I removed your email from your post to protect your privacy.

Kind regards,  
Theodora


Tags: bitbucket-cloud
Remote repository exceed 3GB size, need a remote git gc
Asked by Tommy Dwi Putranto:

my repository increased over 2GB different with my local repository. so i think i need to git gc on the server repo.  

this my repo:  
<https://bitbucket.org/tunaiku/senyumku-ios-version>  

please help me  

Thanks


Answers:
author: Norbert C
body: Hi Tommy,

Thanks for reaching out to Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

A GC has been initiated on your repository and the size is reduced to 1.2 GB.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: atl-rvw

bitbucket-cloud
Update versions lambda
Asked by Rubenz G:

I need to have 4 versions of my lambda function, the idea is that I can update each version from my pipeline without updating the latest version. How can I do it?


Answers:
author: lissyaka
body: [@Rubenz G](/t5/user/viewprofilepage/user-id/4967047) hi.  

We have a pipe [aws-lambda-deploy](https://bitbucket.org/atlassian/aws-lambda-deploy/src/master/). Maybe this will fit your case.  

Cheers


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud

lambda
How to condense SourceTree boookmarks
Asked by Dave Bohl:

I have a lot of repos in SourceTree - enough that the bookmarks on the left scrolls. This can sometimes be a problem for me because I don't see that there are updates or uncommitted changes in some repos.

Is there any way to condense the bookmarks? Maybe by hiding the branch name (especially if it's on the master branch) and/or hiding the path?

image2017-3-9 14:56:30.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-to-condense-SourceTree-boookmarks/qaq-p/128560?attachment-id=12223){#link_116872d93361b3}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/3810/1/image2017-3-9%2014%3A56%3A30.png){#display_116872d93361b3_0}


Answers:
author: Seth
body: Right-click: Add Folder.

You have to drag each repository into the folders. Then you can collapse the folders to hide groups of repos.

comments: author: Dave Bohl
body: Thanks, that helps. Although I still can't quickly see which repos have changes in them. (It shows it on the repo, but not on the folder containing the repo, so I can't see it when the folder is collapsed.)
Red Check appears on all classes in Visual Studio after cloning and retrieving Remotes
Asked by Timothy Conway:

We have begun using STASH and Source Tree at work with VS 2013. For some reason, the problem below only affects my computer. When I clone for the first time, everything has a red checkmark by it in Visual Studio. For other developers, they have a blue lock icon. I have worked this around by selecting everything and pressing Undo from the context menu.

But this becomes an issue when I retrieve all remotes from what others have worked on using Fetch and Pull. All new work when retrieved into my Visual Studio is checked red. Undo at this point would remove the changes, which I obviously want to keep. Not doing undo means I have to commit and so on.

I should mention that we work on individual classes that are part of a larger solution. Multiple people do not work on different parts of the same class, if that is of any help.

Any ideas on why this happens only on my computer and how I can fix it.

Thanks

Tim


Answers:
author: Timothy Conway
body: Forgot to mention, Source Tree version is 1.8.3.0