youngmon/atlassian-qna huggingface dataset:
how to automatically create a ticket in jira when the pipeline failure in gitlab cicd
Asked by Kv Kamalakar reddy:

can anyone provide the solution

i am trying to automate like when the pipeline is failed by using the error msg info

in jira ticket should be create automatically


Answers:
author: Josh_Unito
body: [@Kv Kamalakar reddy](/t5/user/viewprofilepage/user-id/5507374)

<br />

I just published a tutorial on [how to import issues from Jira to GitLab](https://bit.ly/ATL-GitLab-Jira-Guide) with Unito's 2-way integration.

It should be pretty clear, but let me know if it's not!

1. [Sign up for Unito](https://bit.ly/UnitoSignUp) (includes a free trial!)
2. Add a label to GitLab called "failed"
3. Create a flow
   1. Connect your GitLab and Jira accounts
   2. Set a flow direction (Unito can automatically create issues in GitLab based on your issues in Jira and vice versa)
   3. Apply rules with the condition that a GitLab issue should only sync to Jira if the "failed" label is applied.
   4. Link fields (choose exactly which fields you need to sync between Jira and GitLab)
   5. Launch!
4. Then, you just go to any issue with that error message, add the "failed" label to it and a matching issue will appear as a synced Jira ticket.

Feel free to reach out with any questions


Tags: cloud
If I create an issue in Jira, can that issue be replicated in Github?
Asked by luisa Fernanda:

```
Si creo un problema en Jira, ?se puede replicar ese problema en Github?
```


Answers:
author: Dhiren Notani_Exalate_
body: Hi [@luisa Fernanda](/t5/user/viewprofilepage/user-id/5509579) ,

Thanks for posting your question here on the Atlassian Community!

I am Dhiren, one of the Solutions Engineers working with Exalate.

Yes, it's definitely possible to synchronize Jira Issues with GitHub Issues that too bi-directionally using a completely decentralised solution "Exalate".

[Exalate](https://marketplace.atlassian.com/search?query=jira%20issue%20sync) provides you a fully customizable Groovy based scripting engine for limitless customization.

Do let me know your exact use-case and I can help you better.

Thanks, Dhiren


author: Diana_Architect_ZigiWave
body: [@luisa Fernanda](/t5/user/viewprofilepage/user-id/5509579) hi there and welcome to the Atlassian community. Indeed, you sync Jiar/Github (Issues) easily bi-directionally. I see others have posted some proposals, so i'll just add to the list ZigiOps (check[ZigiOps at the Atlassian marketplace](https://marketplace.atlassian.com/apps/1229172/zigiops-integrate-jira-with-github?hosting=cloud&tab=overview)). It's a fully no-code integration platform that makes bi-directional integrations in minutes (fast and safe - none of your data is stored). It is scalable and easy to customize. Feel free to explore how it makes the [Jira GitHub issues integration](https://www.zigiwave.com/integrations/github-jira-integration?utm_source=atls-jgit&utm_medium=atls-jgit&utm_campaign=atls-jgit&utm_id=atls-jgit) and even test it via the Free Trial.

Regards, Diana (ZigiOps team)


author: Ollie Guan
body: Hi [@luisa Fernanda](/t5/user/viewprofilepage/user-id/5509579) ,

**jira-github-issue-sync**

<https://github.com/weareswat/jira-github-issue-sync>

**GitHub + Jira Two-Way Sync**

[https://marketplace.atlassian.com/apps/1218053/github-jira-two-way-sync?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1218053/github-jira-two-way-sync?tab=overview&hosting=cloud)

**github-issue-sync-2-jira**

<https://github.com/marketplace/actions/github-issue-sync-2-jira>


Tags: cloud
implement a rule to not allowing story to be marked done if all the subtasks are not done,
Asked by Purvi Patel:

implement a rule to not allowing story to be marked done if all the subtasks are not done. Only if all subtasks are done then allow story to be marked done.


Answers:
author: Maciej Dudziak _Forgappify_
body: Hi [@Purvi Patel](/t5/user/viewprofilepage/user-id/5507586)

If you are in a company managed project, then there is ootb Subtask blocking condition, which will be much easier to use

Cheers

comments: author: Purvi Patel
body: I am not a Jira expert, would you be able to direct me how to set it up?


author: Maciej Dudziak _Forgappify_
body: Sure! Follow the steps:

1. **Identify the Workflow:**
   * Go to your Jira project's settings \> 'Workflows'.
   * Find the workflow associated with the issue type where you want to enforce closing sub-tasks first
   * If you see the new editor, switch to the old editor.
2. **Locate the Transition:**
   * In diagram mode, click on the line pointing to the Done status and click **Conditions** in the properties panel
3. **Add a Condition:**   
   * Add a new condition of the type "Sub-Task Blocking Condition".
   * Select all the sub-task statuses required to allow parent issue transition
4. **Save and Publish:**
   * Save your changes to the validator.
   * Publish the updated workflow.

You can also check out the [video](https://youtu.be/R_PFKatLD28) where I follow similar steps, but I am adding a different validator. The steps at the beginning are very similar.

I hope this is helpful for you, regards!


author: Purvi Patel
body: It worked

Thank you!
Customer added as watcher with automtion
Asked by Kuba Nowakowski:

Hey! Here is a workflow I need to implement

1. Sales submits a service desk ticket
2. Jira adds a new customer user with an email sales provided in the request form
3. New customer gets an email with the tickets link

Right now I got to the point of creating a new user but how can I connect them to the ticket with automation?

![Screenshot (3).png](https://community.atlassian.com/t5/image/serverpage/image-id/326111iF9702832BE497D9E/image-size/large?v=v2&px=999 "Screenshot (3).png")Please advise!


Answers:
author: Jehan Bhathena
body: Hi [@Kuba Nowakowski](/t5/user/viewprofilepage/user-id/5504336)

In theory, you can add 2 more actions after the "Add new customer"

Add a Re-fetch issue Data, so that the new customer is reflected in the further steps, and using the Edit Issue, update the Request Participants field to include the newly added customer using the same smart value as before.

Do let me know if this works for you.

comments: author: Kuba Nowakowski
body: Hey! Thanks, it works!


Tags: jira-service-desk-cloud
I'm unable to view issue tracker
Asked by Shlomo Friedman:

I'm unable to enable issue tracker on a repository, even thought I have admin access.


Answers:
author: Patrik S
body: Hello [@Shlomo Friedman](/t5/user/viewprofilepage/user-id/5580747) ,

and welcome to the Community!

New workspaces created through an Atlassian Organization no longer have the default issue tracker as a feature.

We strongly recommend using Jira to track issues going forward. You can find integrations instructions on the following documentation:

* [Connect Bitbucket Cloud to Jira Cloud](https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-cloud/)

Thank you, [@Shlomo Friedman](/t5/user/viewprofilepage/user-id/5580747) !

Patrik S


Tags: bitbucket-cloud

cloud
Repositories have disappeared
Asked by Daniel Vetter:

My repositories under this account are missing completely from the web UI. I was going to file this as a support ticket, but it appears that filing tickets is a paid feature, so I've made this community post instead.

Thank you in advance for your help.


Answers:
author: Mark C
body: Hi [@Daniel Vetter](/t5/user/viewprofilepage/user-id/5580761)

Welcome to the community.

May I know if you are able to log in to [Bitbucket.org](https://bitbucket.org/)?

Regards,  
Mark C

comments: author: Daniel Vetter
body: Yes, I am.


author: Mark C
body: Hi [@Daniel Vetter](/t5/user/viewprofilepage/user-id/5580761)

Thanks for that.

I've checked your Bitbucket Cloud account, however, I didn't see that you have repositories or are connected to any workspaces at the moment.

Could you check if you are using the correct email address?

Regards,  
Mark C


author: Daniel Vetter
body: Oh man, now I feel real dumb. I was basing my memory on the repo workspace, but looking at the commits I saw the actual email I used and just managed to sign in with that one. So yeah, it was just me using the wrong email, combined I guess with workspaces being public even though thankfully the repositories in them are not. Sorry for the noise!


author: vikram
body: Hi [@Daniel Vetter](/t5/user/viewprofilepage/user-id/5580761)

Welcome to Atlassian Community.

If you are using free subscription and not accessed for long time, then there is possibility of not showing your repositories.

or

Cross verify are you using the correct email ID (sometimes we forget).

Vikram P.

comments: author: Daniel Vetter
body: I am using the free subscription and I haven't logged in to the web ui in a long time, so that's probably it. Is there anything we can do to get them to show up again?


author: vikram
body: Hi [@Daniel Vetter](/t5/user/viewprofilepage/user-id/5580761)

We have to request Atlassian Support team to show up again.

Vikram P


Tags: bitbucket-cloud

cloud
Creating a new branch from an existing tag in Bitbucket Cloud
Asked by Grant Glendinning:

The option to create a branch from an existing tag has disappeared in Bitbucket Cloud.  

The "Create Branch" button only shows a "From branch" filter which only lists branches and not tags.


Answers:
author: Theodora Boudale
body: Hi Grant,

Thank you for reaching out.

The development team restored this functionality a few hours after you posted. Tags should now be listed in the **From branch** dropdown.

Is the issue resolved for you now?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Use one runner exclusively
Asked by Achim Kre?:

We want to tie a pipeline to one specific runner (cloud, not self-hosted). Is it possible to configure my pipeline, so that it will always run on the very same host with the same MAC, user and IP address etc.? This is important for our internal network configuration, since the pipeline is going to communicate with servers in our enterprise infrastructure.


Answers:
author: Syahrul
body: G'day, [@Achim Kre?](/t5/user/viewprofilepage/user-id/5567055)

I don't understand your inquiries here, but do you plan to have the Bitbucket pipeline (cloud) run on your infrastructure? If yes, then no, it's not possible. You'll have to use Runner and have it installed in your local environment.

Please provide more context if this is not what you were looking for.

Regards,  
Syahrul

comments: author: Achim Kre?
body: [@Syahrul](/t5/user/viewprofilepage/user-id/744536), thanks for the reply. Here the answer:  
We are planning to use the pipeline in Atlassian infrastructure. The pipeline will need to communicate with our own corporate infrastructure. For that purpose, it would be necessary to have a fix IP and MAC address to comply with our internal network requirements. So we probably would need to tie the pipeline to a specific runner in Atlassian infrastructure. Is that possible?


author: Syahrul
body: Hi [@Achim Kre?](/t5/user/viewprofilepage/user-id/5567055)

Thanks for the information. Unfortunately, a static IP for the Bitbucket pipeline is not currently possible.

We have a list of IPs you can whitelist, please check them at:

[IP addresses to allowlist in your corporate firewall](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)

Regards,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud
How to calculate the size of a repository for n number of projects
Asked by vijay.s:

Hi All,

One of our customers is using Bitbucket server 4.12 Version, and they are planning to migrate it to DC or cloud soon.

Now they want to cleanup some old list of projects from their instance, how to calculate the size of a repository for particular projects only?


Answers:
author: vikram
body: Hi [@vijay_s](/t5/user/viewprofilepage/user-id/5345452)

Welcome to Atlassian Community

Please go through the below knowledge document, you will get and understand the calculation of repository size.

[How is the approximate repository size calculated in Bitbucket Server? \| Bitbucket Data Center \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserverkb/how-is-the-approximate-repository-size-calculated-in-bitbucket-server-1064085143.html#:~:text=Bitbucket%20Server%20uses%20the%20following%20process%20to%20calculate,sizes%20of%20the%20individual%20loose%20objects%20it%20encounters.)

with Regards

Vikram P


Tags: bitbucket-data-center

bitbucket-server

data-center

server
Map branch prefix to ticket type
Asked by markus_thiel:

When pressing start work in the vscode extension we can select if it should be a bugfix/feature/hotfix/release.. that's nice.. but even nicer would be if we could map this automatically!  

Perhaps based on issue type?


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

Are you using this extension?

* <https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode>

If so, the extension has a public issue tracker:

* <https://bitbucket.org/atlassianlabs/atlascode/issues>

You can create an issue there for any feature requests or bugs you may come across.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

vscode
Check out one additional branch in bitbucket pipeline
Asked by Tim Dery:

In a pipeline step, I want to check out one more branch than the branch the pipeline is running on (the main branch).

I found the "clone: depth: full" option, which works.

However, that grabs all the branches in the repo, which takes additional time getting things that I don't need, especially if there's a lot of branches.

Is there a way to check out exactly one additional branch in a pipeline?


Answers:
author: Tim Dery
body: I answered my own question with help from <https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-pipelines-Checkout-a-different-branch-than-master/qaq-p/2220686>

You can't just check out another branch from a pipeline. A \`git branch -a\` shows that the default pipeline's git only knows about the branch it's running on:

```
git branch -a
* my-branch
remotes/origin/my-branch
```

If you try to check out any other branch, it errors out because git doesn't know about any other branch.

If you run

```
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
```

Then

```
git fetch
```

git will see all of the branches and you can check them out etc

For my specific case, this isn't what I want, as it's pulling info on all the branches, which is effectively the same as a "clone depth:full" - it takes time to get all that info depending on the number of branches.

However, if I do

```
git config remote.origin.fetch "+refs/heads/main:refs/remotes/origin/main"
```

and

```
git fetch
```

then git can see the branch it's running on and branch main:

```
git branch -a
* my-branch
remotes/origin/main
remotes/origin/my-branch
```

which I'm then able to use in my pipeline.


author: Saxea _Flowie_
body: Hi [@Tim Dery](/t5/user/viewprofilepage/user-id/5579943) ,

Have you tried just using git commands in the script section?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipelines
How to automatically have full access to PR comments?
Asked by Daan Acohen:

One of my colleagues is admin on a repository but he can't see my PR comments. Does he need to grant access to himself for each branch/repository separately? Or is there a way to automatically get full access to comments in all situations. As an admin, one should not have such a problem. But he has.

As this colleagues is an admin himself, I want him to be able to fix it. So what should I tell him?


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

No additional permissions are needed in order for someone to be able to view comments on a pull request.

If you open this PR on Bitbucket's website, and look on the right side of the PR page, do you see these links to discard or finish a review?

![Screenshot 2024-09-03 at 13.44.38.png](https://community.atlassian.com/t5/image/serverpage/image-id/345231i2B27F044166BAFFB/image-size/large?v=v2&px=999 "Screenshot 2024-09-03 at 13.44.38.png")

<br />

If so, you will need to finish the review for the comments to be visible to other users.

When you try to add a comment to a PR for the first time, you will see the option **Start review** and **Add comment now**:

![Screenshot 2024-09-03 at 13.46.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/345232iDE72B38A1DD37B95/image-size/large?v=v2&px=999 "Screenshot 2024-09-03 at 13.46.50.png")

If you select **Add comment now** , the comment will be immediately visible to other users with access. If you select **Start review** , then this comment and any comments you add before selecting **Finish review** won't be immediately visible to other users. They will only be visible when you finish the review.

Can you please check this and let me know?

Kind regards,  
Theodora


Tags: admin

bitbucket-cloud

cloud

comment

pr
Migration of company-1 to company-2 for Jira and Bitbucket.. Bitbucket Development links will fail.
Asked by RomanM:

We have moved a reference to the COMPANY-1 bitbucket workspace into the COMPANY-2 atlassian.net account. COMPANY-2 now owns COMPANY-1. This workspace was connected to the COMPANY-1 account where the Microsoft Single Sign On was related to the COMPANY-1 logins. Our problem is that our Jira task links for the bitbucket development Dialog (branch, pull requests, commits, etc.) will not work as it currently is since we login into the COMPANY-2 Atlassian with our COMPANY-2 Microsoft SSO accounts for Jira. What can be done to resolve this problem? Can the ownership for the COMPANY-1 Bitbucket repositories be transferred where all of our links would work in the browser for which we are SSO authenticated with our COMPANY-2 accounts? Is there maybe another solution that we are not aware of? What we want to avoid is to have to login into COMPANY-1 account to be able to get to the Bitbucket Dev dialog links in Jira.


Answers:
author: RomanM
body: Ok it seems to work fine once you choose to use the SSO option for the 1st company on the Bitbucket page If you are already logged into the 2nd company's Atlassian .


Tags: bitbucket-cloud

cloud

cloud-migration

jira
is there any way to create bitbucket workspace without organization?
Asked by dbwhddn100:

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

A year ago, there was create workspace button. but now it disappear.

-----  
and it seems to be created in organization using add product button.  

is there any way to create bitbucket workspace without organization?  


Answers:
author: vikram
body: Hi [@dbwhddn100](/t5/user/viewprofilepage/user-id/5579810)

Welcome to Atlassian Community.

Yes, you can create Bitbucket space without organization.

steps to create as below (but supports only 5 repositories and limited space)

* Go to the following URL: admin.atlassian.com
* Log-in to your Atlassian Administration account.
* Select the Products tab on the top navigation bar.
* Select the Add product button.
* Select Bitbucket from the list of products.
* with Regards

Vikram P


author: Theodora Boudale
body: Hi [@dbwhddn100](/t5/user/viewprofilepage/user-id/5579810) and welcome to the community!

It is not possible to create a workspace outside an organization. The steps that Vikram provided for creating a workspace are correct, but ++the workspace will be created within an organization++.

There is also no limit on the number of repositories. If the workspace is on the Free plan, there is a limit on the number of users with access (5 users).

Kind regards,  
Theodora


Tags: bitbucket-development

cloud
Sonar build wrapper throws error
Asked by Gokulakrishnan R:

Hello Team,

I am integrating Sonarcloud using Bitbucket pipeline to perform C++ Linux based code analysis.

build gets failed or throws error, please find the below failed job

Build Failed:

export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH cd 5g-cpe/L3 source .settings_file build-wrapper-linux-x86-64 --out-dir bw-output make clean all \<1s + export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH cd 5g-cpe/L3 source .settings_file build-wrapper-linux-x86-64 --out-dir bw-output make clean all bash: export: \`5g-cpe/L3': not a valid identifier bash: export: \`.settings_file': not a valid identifier bash: export: \`build-wrapper-linux-x86-64': not a valid identifier bash: export: \`--out-dir': not a valid identifier bash: export: \`bw-output': not a valid identifier


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

Based on the output you posted here, it looks like you have included multiple commands in a single line in your bitbucket-pipelines.yml file's script. I don't know how exactly that looks on your yml file and what syntax you have used.

Can you try editing the yml file and having each command on a separate line, as follows?

```
script:
  - export <the rest of the command>
  - cd <the rest of the command>
  - <third command>
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I push with tortoisegit two repositories on same workspace. old one is okay, but new one return err.
Asked by mikeshimura:

I push with tortoisegit two repositories on same workspace, old repository can push without error but newly created one returned following error.

You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated. fatal: Could not read from remote repository.

I checked tortoisegit setting, but only url has difference, but other setting is same.

Is there some restriction to newly created repository?

old good url

ssh://git@bitbucket.org/mikeshimura/yjstylego.git

new bad url

ssh://git@bitbucket.org/mikeshimura/ygodnew.git

other settings are same


Answers:
author: mikeshimura
body: Self resolved.

URL had space trailer and I removed it.


Tags: bitbucket-cloud

cloud
How to list all repositories having the access token?
Asked by duy_nguyen:

I would like to export all repositories which having the access token. How can i do that?


Answers:
author: Ben
body: Hi duy_nguyen,

Unfortunately - this is not yet possible in the Bitbucket Cloud UI or via our API. We have a feature request raised with our developers, however, that you may **Watch** to receive future updates related to its implementation and **Vote**for it to improve its visibility with regard to customer demand:

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

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Can't leave workspace
Asked by Edvardas Baltrunas:

Hey there,

How can I leave the workspace if there is no "Leave" button aside?


Answers:
author: Ben
body: Hi Edvardas,

If there is no leave button next to the workspace, it could be because you are the only member on that workspace (for example, if it is a personal workspace) - the "leave" button is removed to prevent the workspace from being orphaned.

**To verify this:**

* Click your avatar in the top-right, select **All Workspaces**
* Click on the workspace you'd like to leave to select it
* Click the **gear cog** icon in the top-right, and select **Workspace Settings**
* Navigate to **user directory** , are you the only person here? If so, you should delete the workspace instead from the **General**subheading

I did take a look at your current workspace membership and performed a refresh on each workspace in case there was a stale membership preventing you from leaving, but found this not to be the case.

I hope this helps, please let me know if any issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud