youngmon/atlassian-qna huggingface dataset:
How to unlink issues in bulk?
Asked by Siva Veerla:

Hello Team,

How to unlink issues in bulk?


Answers:
author: Christian
body: The easiest way to do this would be through automation. Create an automation with a manual trigger. Create a For Branch, and for types of related issue select "JQL". Use a JQL statement to select the issues you want the links removed from, and then in the branch use the "Delete Links" action to remove the links.

comments: author: Siva Veerla
body: Hi Christian,

Thanks for the reply, can you please provide a sample automation rule for this.

Regards,

Siva


author: Christian
body: Hello Siva

The rule would look something like this:  
![Screenshot 2024-06-03 104630.png](https://community.atlassian.com/t5/image/serverpage/image-id/327568iE082E96CE165EDBF/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 104630.png")

Note: This is just a sample JQL Expression. What you will use will be specific to what issues you to unlink. **Make sure you verify you are using the correct JQL expression before running the automation, otherwise you could editing many issues you that you do not intend to edit.**

![Screenshot 2024-06-03 104923.png](https://community.atlassian.com/t5/image/serverpage/image-id/327569iB78E6DCD003FB17E/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 104923.png")

Best,

Christian


author: Hannes Obweger - JXL for Jira
body: Hi [@Siva Veerla](/t5/user/viewprofilepage/user-id/5485102)

welcome to the community!

If you're open to solutions from the Atlassian Marketplace, you may want to have a look at the app that my team is working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2715422).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields - including your issues' issue links - much like you'd do in e.g. Excel or Google Sheets. You can also *bulk-edit* (via copy/paste) and *bulk-unset* your fields in just a few clicks, like so:

![bulk-unlink.gif](https://community.atlassian.com/t5/image/serverpage/image-id/327560i32B3593CDBE09116/image-size/large?v=v2&px=999 "bulk-unlink.gif")

If you only want to work on issue links of a certain *issue link type* (like for example *blocks* ), you can do that too. I should also add that JXL can do much more than the above: From support for configurable *issue hierarchies* , to *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.

Any questions just let me know,

Best,

Hannes


Tags: cloud

jira-service-management

jira-service-management-cloud
Create a custom rule
Asked by Ian Ball:

The steps in this article say to create a custom rule but I do not see that option.

[Create an automation rule to prioritize your incidents \| Jira Service Management Cloud \| Atlassian Support](https://support.atlassian.com/jira-service-management-cloud/docs/create-an-automation-rule-to-prioritize-your-service-desks-incident/)


Answers:
author: Walter Buggenhout
body: Hi [@Ian Ball](/t5/user/viewprofilepage/user-id/5505338) and welcome to the Community!

That support article is very much outdated and refers to the legacy automation. You should just hit *Create Rule* and follow more or less the same steps then.

* Trigger: still *issue created*
* Use *If ... Else If ...* conditions to determine the various scenarious
* Use the *edit issue* action to update the priorities based on the options from the impact/urgency matrix you configured

Hope this helps!


author: Christian
body: Hello [@Ian Ball](/t5/user/viewprofilepage/user-id/5505338)

I think this article may be based on an older UI for Jira Automation. If you go to project Settings -\> Automation and hit this button:  
![Screenshot 2024-06-03 105449.png](https://community.atlassian.com/t5/image/serverpage/image-id/327574iFF7D0915FBE216FD/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 105449.png")

If you end up here, you are in the right place.

![Screenshot 2024-06-03 105918.png](https://community.atlassian.com/t5/image/serverpage/image-id/327576i4EDFAEBA7B9171C1/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 105918.png")

Best,

Christian

comments: author: Ian Ball
body: Hi Christian,

Thank you for responding and including screen shots. Follow up question is there a way to prompt Atlassian to update the article with proper steps?


author: Joseph Chung Yin
body: [@Ian Ball](/t5/user/viewprofilepage/user-id/5505338) -

Welcome to the community. I believe the reference page is for the Legacy Automation Rule setup. In the current Automation Rule component, you will not have the option named "Custom rule", since all the rules are essentially custom.

Hope this makes sense.

Best, Joseph Chung Yin


author: Dirk Ronsmans
body: Hi [@Ian Ball](/t5/user/viewprofilepage/user-id/5505338) ,

The documentation you're looking at seems to still be refering to the old "Legacy Automation"

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

There you do see the "add rule" and "add custome rule" option.

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

However in the new "Automation" it will just be under Rules -\> Create Rule

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


author: Fabian Lim
body: Hi [@Ian Ball](/t5/user/viewprofilepage/user-id/5505338)

I think it's just a basic jira automation rule. Trigger/Condition/Action. Looks like the documentation is not up to date.

Regards,

Fabian


Tags: cloud

jira-service-management

jira-service-management-cloud
Bidirectional flow between jira service project and software project
Asked by Muhammad Arslan:

I automated my Jira service project so that when I create an issue, it is also created in the software project (both issue forms have a due date field). Now, I want automation such that if I change the due date in the issue that is automatically created(in software project), it will also change in the original issue that was created in service management.


Answers:
author: Christian
body: Hello [@Muhammad Arslan](/t5/user/viewprofilepage/user-id/5511607)

For this, I assume when you are creating the second issue, there is some type of link between the issues like "Clones" or "Relates". This will be key to making this due-date synchronization working.

To do it, create an automation in the Software project that triggers on the due-date field value changing. Then, create a "For Each" branch and select "Linked Issues", and specify the link type between the two issues. Then in the loop set the Due date to match the trigger issue. If you create this in both the Service project and the Software project, it will have a bidirectional flow.

Let me know if that works for you or if you have any other questions.

Christian


Tags: cloud

jira-service-management

jira-service-management-cloud
Branches ending in ".R" suddenly appearing
Asked by xl600:

We are using Bitbucket 8.14 (Recently upgraded). I've been noting many repos with new branches showing always ending in ".R". These are not being created by users. Does anyone know what is creating these and why?

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


Answers:
author: TH
body: We're seeing the same behavior since upgrading.


Tags: bitbucket-server

server
Run GC
Asked by H?ctor Fenoll Malonda:

Hi

Please run garbage collection on our repository (sa\*\*\*\*\*\*\*\*23)

Could you execute it at 00:00 GMT?

I'm opening this request because since I can't create a support case for them to execute it.

Thanks, best regards


Answers:
author: Ben
body: Hi H?ctor,

I have executed a gc against that repository and it has reduced from 941mb to 688mb.

In the future, you have access to a paid workspace so you will be able to log a support request if you use that paid workspaceID as the URL on the support request:

* \*\*\*\*\*\*\*\*\*-scm

Just to let you know - our repository size limit is 4GB. Garbage collection is run automatically once a certain garbage threshhold is reached.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Receive email on every repo creation
Asked by Alessandro Pagiaro:

Is there a way to be notified if a new repository is created inside a workspace?


Answers:
author: Syahrul
body: G'day, [@Alessandro Pagiaro](/t5/user/viewprofilepage/user-id/4167407)

We only sent email notifications for watched objects as per our documentation: [Manage email notifications](https://support.atlassian.com/bitbucket-cloud/docs/manage-email-notifications-for-watched-objects/)

We do have an existing Feature request that I highly suggest you **Vote** and **Watch** so that you'll receive an update in the future at:

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

I hope this helps.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Details about Bitbucket cloud subscription plan in terms of managing PR review comments and storage
Asked by Siddharth Srivastava:

Hello Atlassian Bitbucket community,  
I am new to Bitbucket and need some details from you. We need to setup our client account with Bitbucket and need your support.  
Our focus is mainly on the Free subscription account, but do share with us in detail about Standard and Premium to consider if free account features does not support our requirement.  
1) How many review comments we can incorporate in different subscription, as it mentions on your site we can have unlimited PR reviewer, any limitation on comments storage?  
2) How we can track these review comments later. Technically, client needs to store it in a single file, so how we can achieve this.  
3) How much storage we will get in different subscription overall  
4) How we will share our Bitbucket branch with Client account which is in different network ? How to configure Active directory users with Bitbucket?

Best Regards,

Siddharth


Answers:
author: Ben
body: Hi [@Siddharth Srivastava](/t5/user/viewprofilepage/user-id/5341106)

I have assigned the open support ticket that you have logged with us in our portal, please check your email/support portal for further responses to this question.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Cannot access my deactivated account
Asked by Sathish Somanathan:

I am unable to access my repos . Could you please help restore this ?  

<https://username@bitbucket.org/workspace-id/>


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

The Bitbucket Cloud account with the same email as your community account is not deactivated. This account doesn't have access to the workspace you are trying to access.

You can reach out to an admin of the workspace and ask them if they can grant you access. The Bitbucket Cloud support team cannot grant you access to another workspace.

Just a heads up, I edited the username and workspace-id from the URL you posted to comply with our privacy policy.

Kind regards,  
Theodora


author: Ste Wright
body: Hi [@Sathish Somanathan](/t5/user/viewprofilepage/user-id/5340660)

If your account is inactive, contact Atlassian Support to reactivate it - <https://support.atlassian.com/>

Ste


Tags: bitbucket-cloud

cloud
is it possible to see all the users with access to bitbucket at anytime in the past?
Asked by sankara Rao Kalagadandu:

is it possible to see all the users with access to bitbucket at anytime in the past?

How to extract user activity in Bitbucket cloud


Answers:
author: Ste Wright
body: Hi [@sankara Rao Kalagadandu](/t5/user/viewprofilepage/user-id/5165275)

Not sure it's possible to see *anytime*in the past, unless you've been exporting/storing that detail somewhere.

I'd check out the following help pages to see what your audit log shows you:

* <https://support.atlassian.com/security-and-access-policies/docs/track-organization-activities-from-the-audit-log/>
* <https://confluence.atlassian.com/bbkb/bitbucket-cloud-audit-log-events-1178872155.html>

Ste


Tags: bitbucket-cloud

cloud
Fork sync enable throws error code 128
Asked by test 1:

I have few forked repos from original repo and auto sync was enabled for all forked repos. but now few of them does not show sync button even though its enable in settings. When i try to diable and enable back it show error message about git --no-tag gc.auto=0 refs/heads/\*...etc error code 128. No repository or check permission etc.

Could you please advise how i can get auto sync feature or sync button back whenever original repo is updated ?


Answers:
author: Syahrul
body: G'day!

May I know if you are using Bitbucket cloud or Bitbucket server because we don't have an auto sync fork feature in Bitbucket cloud:

[Feature request - Enable Auto-sycn for forked repository](https://jira.atlassian.com/browse/BCLOUD-12170)

We only support manual sync in the Bitbucket cloud at this moment [Manual sync fork repository](https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/)

If it's server then I will need to change the label as it's currently labeled with Bitbucket cloud.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Cloud API - Create Repository
Asked by Ryan Mangum:

I'm having some difficulty creating a repo under a workspace using the cloud API through a repo setup script. This is the curl command:  

<br />

```
curl --request POST \

   --url "https://api.bitbucket.org/2.0/repositories/${workspace}/${repo_slug}" \

   --header "Authorization: Bearer ${BITBUCKET_REPO_SETUP}" \

   --header "Accept: application/json" \

   --header "Content-Type: application/json" \

   --data "{

      \"type\": \"repository\",

      \"name\": \"${repo_slug}\",

      \"project\": {

         \"key\": \"${PROJECT_KEY}\"

       }

    }"
```

When I execute this command I get the following error:

```

{
   "type": "error", 
   "error": {
      "message": "You do not have access to view this workspace."
   }
}

```

This is seemingly a permission issue, so the first thing I did was check the project access token's permissions. I verified it has the correct permissions:

* repository
* repository:admin
* repository:delete
* repository:write

When I execute a GET request with the same token to the same workspace I get a successful response:

```
curl --request GET \ 
   --url "https://api.bitbucket.org/2.0/workspaces/${workspace}" \ 
   --header "Authorization: Bearer ${BITBUCKET_REPO_SETUP}" \ 
   --header "Accept: application/json"
```

What am I missing?


Answers:
author: Syahrul
body: G'day, [@Ryan Mangum](/t5/user/viewprofilepage/user-id/5266859)

Welcome to the community!

Are you an administrator of the workspace with the ability to create a repository through the user interface? If so, which type of token did you use to create the repository? There are three types of tokens available: the Workspace token, the Repository token, and the Project token, which is referred to as the [Bitbucket Access Token](https://support.atlassian.com/bitbucket-cloud/docs/access-tokens/).

If you do not have administrative privileges in the workspace, it is expected that you won't be able to create a repository due to insufficient permissions hence the error

```
You do not have access to view this workspace??
```

You need to request your administrator to provide you with access to create a repository to allow you to create a repository.

I hope this helps.

Regards,  
Syahrul

comments: author: Ryan Mangum
body: I am an administrator for the project, and the request above is being sent with a project level access token. Just so I understand, I cannot create a repo within a project that I have an admin token for, and I will need a workspace admin token to do this?


author: Syahrul
body: Hi [@Ryan Mangum](/t5/user/viewprofilepage/user-id/5266859)

It looks like there's a bug with the Project access token with the create repository endpoint that is currently tracked at:

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

Please **Vote** and **Watch** the bug report so that you'll receive an update whenever it's fixed.

As a workaround, please use [App Password](https://bitbucket.org/account/settings/app-passwords/) instead temporarily.

I hope this helps.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Commits from other Repos
Asked by Tim Cannings:

I have the odd issue that i seem to have branches from other repos in other repos. At first this appeared in source tree but not on the WebPortal. I assumed sourcetree was having some sort of issue seeing multiple branches and was incorrectly showing them.

However it appears that i am seeing commits and branches that shouldnt be in the a repository as they are from another?

Has anyone had something similar? Probably something we've done although its a strange occurrence as our Repo are separate??

Tim


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

While it is not common practice, it is possible to add in repo1 a branch that belongs to repo2.

For example, you can add a second remote to a clone of repo1 with

```
git remote add second_remote git@bitbucket.org:my-workspace/repo2.git
```

Fetch all references:

```
git fetch --all
```

Create in the clone of repo1 a branch that tracks the remote branch feature from repo2

```
git checkout -b feature --track second_remote/feature
```

and then push this branch to repo1 with

```
git push origin feature
```

where **origin** is the remote repo1.

You can delete both locally and in the Bitbucket Cloud repo any branches that shouldn't be there. However, I would suggest checking with your team first, in case there was a reason someone pushed this branch to repo1.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Manual triggered pipeline on self-hosted not starting
Asked by Eric Christensen:

Hi,

When running a manually triggered pipeline running on a self-hosted runner it get stopped because of build minutes.

The automatically triggered ones works but not manual.  
Did some searching on the community forum and found a similar post from \~1 year ago with a closed bug report

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

Am I missing how to get around the issue or is the bug introduced again?


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

I tried to reproduce this issue with a workspace on the free plan that is out of build minutes, but I haven't been able to. Both automatically triggered and manual pipelines run on a self-hosted runner.

If you are using one self-hosted runner, and a build is already running, then the build that is triggered next will start as soon as the build currently running is finished.

* Does the pipeline you are triggering manually have the following in all of its steps?  

  ```
  runs-on:
  ? - self.hosted
  ? - macos # this could be linux, linux.shell or windows, depending on the runner
  ```

* Are you perhaps triggering the pipeline for an older commit or for a branch that does not have the above**runs-on** definition?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
what is the latest version of Rest API that can be used for Bitbucket Data center?
Asked by Joel Sunil:

For Bitbucket Datacenter currently we are using Rest Api v1 and it seems that Rest Api v2 does not work. From what I found through some quick research, it seems that Rest Api v2 is only for cloud and Rest Api v1 is for both server and datacenter. My question is basically if there is a rest api v2 implementation that can be used for Bitbucket Datacenter now or if there are plans for the future? I just wanted to know if anything has changed by now that enables the use of Rest Api v2 in Bitbucket Datacenter. We use Bitbucket Datacenter v7.21.0


Answers:
author: Aron Gombas _Midori_
body: Atlassian will correct me if I'm wrong, but AFAIK the "v2" REST APIs are only for the Cloud. There are no plans to port them to Data Center. And, Server is end-of-support from February 2015 any way.

Consequently, you should build your integration for "v1".

comments: author: Christian Glockner
body: That is correct!

Cheers,  
Christian  

Premier Support Engineer  
Atlassian


Tags: bitbucket-server

server
Pipeline AWS Beanstalk - No Application Version Found
Asked by Cecilia Lagerwall:

Hi!  
I'm trying to deploy my Node.js app to AWS Beanstalk. For my previous apps it works without any problems. But for this one I can't get it to work.

I'm using atlassian/aws-elasticbeanstalk-deploy:1.0.2 and I've also tried with 1.0.3.

The pipeline uploads it to my S3 bucket and I can see the version in the Beanstalk Application Versions but it's not deployed. I can manually from the AWS UI deploy the version. But the pipeline fails to find the Application Version and deploy it.


Answers:
author: Cecilia Lagerwall
body: SOLVED!

I've been using the wrong environment name ?


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud
Bitbucket Pipelines Self Hosted Mac Runner Not Seeing Alias in .bashrc
Asked by Chad Stewart:

Using Bitbucket pipelines with a self-hosted macos runner. I have a .bashrc file with

alias godot="/Applications/Godot.app/Contents/MacOS/Godot"

in it. However whenever that step runs I am getting an error that it can't find the godot command. If I source the bashrc locally I can type "godot" in the command line and the program launches. However pushed commits that trigger the pipeline aren't able to find it.

Do I need to create a bashrc in the shared folder? Do I need to source it manually from within my yaml file?


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

I can reproduce this issue as well and sourcing the .bashrc file in the yml doesn't seem to work either.

I am going to create a support ticket on your behalf for further investigation. You will receive shortly an email with a link to the ticket.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Use Azure AD Group for repo access
Asked by daniel.virkler:

I would like to leverage existing Azure AD groups for access to specific repositories. How is this possible? If it is not possible today, when will it be available? It is available with many of your other product offerings.

[Solved: BitBucket with Azure AD using atlassian access](https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-with-Azure-AD-using-atlassian-access/qaq-p/982921)

[Understand user provisioning \| Atlassian Support](https://support.atlassian.com/provisioning-users/docs/understand-user-provisioning/)

Supported products {#toc-hId--414325721}
----------------------------------------

Provisioning is available for all Atlassian accounts, which means that you can create, update, and deactivate accounts from your identity provider. Syncing groups is only currently available for Jira products, Confluence, Trello and not yet available for Bitbucket.


Answers:
author: Aaron Geister
body: [@daniel.virkler](/t5/user/viewprofilepage/user-id/5339556)   

Welcome to Atlassian Community and I am glad you are here to learn with us. I found this from Atlassian [Unified User Management](https://community.atlassian.com/t5/Bitbucket-articles/Unified-User-Management-is-coming-soon-to-Bitbucket-Cloud/ba-p/2453224?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_article&utm_content=topic) for Bitbucket. This is in progress. I didn't see the release date but its coming soon as an option to use IDP groups.  

Please review the link. I hope this helps.


Tags: bitbucket-cloud

cloud