youngmon/atlassian-qna huggingface dataset:
AQL "cross asset" queries
Asked by Daniel:

Hi,

I'm tearing my hair out trying to get some form of AQL to work somehow - and test it.

I have 2 assets in my schema: "Billing Accounts" and "Users".

"Billing Accounts":

* Name (default label)

"Users":

* Name
* Email (default label)
* Billing Account: Object linking to "Billing Accounts"

This way I have a link between a given user and their corresponding billing account name.

I want to run an AQL query where I can select the a "Billing Accounts" object where that object is linked to a Users object where the Email is equal to a known value.

From the Asset lists, I can write an AQL "advanced query" it fails if I try to reference another object in my schema than the one where I'm trying to run it on.

For example, in the "Billing Accounts" asset the AQL query:

```
"Billing Accounts"."Name" = "My Company"
```

Returns the My Company asset object as expected.

But

```
"Billing Accounts"."Name" = "Portal Users"."Billing Account" AND "Portal Users"."Email" = "me@yopmail.com"
```

Returns an error, despite there being an object with the email me@yopmail.com, and that object is linked against an asset.

I can and often have written SQL joins all day, and even JQL for advanced reporting, but I cannot find a way after 2 days of throwing everything against the wall of getting an AQL query to link 2 objects together...

I've tried the same queries, setting up the Asset Object as a custom field, : The field accepts both :

```
objectType="Billing Accounts" AND objectType = "Users"
```

and even

```
schemaType="Customer Support Related Data"
```

As a valid Filter Scope, but whatever I try in the Filter Issue Scope is always rejected.

I've tried playing with the inboundReferences, outboundReferences, there has to be a way to query and join 2 assets together, otherwise why bother having references, but I just cannot find any way to get a list of objects that are linked to another object where that antother object has a field with a value of xyz...

Help...? Please? I can't see where I'm going wrong, and can't find any similar use case discussed or explained on line...


Answers:
author: Victor Feria
body: Hi Daniel,

I have now the same issue as you with join in AQL, did you find a solution?  
I believe that AQL does not support it, you can only filter attributes with related objects.

Thank you


Tags: cloud

jira-service-management

jira-service-management-cloud
Mulitilevel cascading field
Asked by Madhuri Latha:

Hi ,

We want to create Multi level cascading fields in JSM , can we try with behaviours or any other option

Thanks


Answers:
author: Joseph Chung Yin
body: [@Madhuri Latha](/t5/user/viewprofilepage/user-id/5488408) -

Out of the box, it is not possible. You will need a third party add-on to provide you with that functionality. Here is a one that you can take a look at from Atlassian Marketplace -

[https://marketplace.atlassian.com/apps/1224654/multilevel-select-for-jira-cascading-select-custom-field?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1224654/multilevel-select-for-jira-cascading-select-custom-field?tab=overview&hosting=cloud)

A question, you need to determine is what is your business need to have a setup for your ask.

Hope this helps.

Best, Joseph Chung Yin


Tags: cloud

jira-service-management

jira-service-management-cloud
Spam in Jira Service Desk
Asked by Laura Revello:

Hello,

How can we avoid SPAM in Jira Service Desk?

We received 20.000 requests during the weekend.

Thanks in advance!

Laura.


Answers:
author: Joseph Chung Yin
body: [@Laura Revello](/t5/user/viewprofilepage/user-id/4389706) -

Welcome to the community. In JSM (Data Center on prems env), you can lockdown who can have access to your JSM portal UI (i.e. allowed customers). Are those "SPAM" requests all got created via email submission?

If your are the system admins, then you can access Clogwheel icon's (Administrations) Systems \>\> Applications \>\> Jira Service Management \>\> Email requests and review your "Email Channel" configuration setup to prevent unwanted emails to be processed in your JSM setup. Take a look at this reference link on Managing email chanel - <https://confluence.atlassian.com/servicemanagementserver0512/managing-the-email-channel-1306298270.html>

In the same "Email requests" section, you can also manage your allowlist - <https://confluence.atlassian.com/servicemanagementserver0512/managing-the-allowlist-and-blocklist-1306298274.html>

I will be surprised if those mass amount of requests are all created from the portal UI. You may also need to work with your network Exchange team to find out more on the original of those emails requests are coming.

Hope this helps.

Best, Joseph Chung Yin


Tags: jira-service-management

jira-service-management-server

server
Error in automation
Asked by George Mitsiou:

I have an automation that creates a task automatically on a specific date, but fails with the below error log

![jira.png](/t5/image/serverpage/image-id/326142i753374D1ECDB62AF/image-size/large?v=v2&px=999 "jira.png")

Any idea?


Answers:
author: Joseph Chung Yin
body: [@George Mitsiou](/t5/user/viewprofilepage/user-id/5305821) -

Have you try to create a same task manually (without the usage of automation) and determine which Option that the error is referring to?

If you can provide more details of your automation rule - especially the create issue action setup, we can then assist you further.

Best, Joseph Chung Yin

comments: author: George Mitsiou
body: Hello,

you may find below the rule details

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

How I can execute it manually ?


author: Joseph Chung Yin
body: [@George Mitsiou](/t5/user/viewprofilepage/user-id/5305821) -

What I meant by creating it manually, I mean that for you to create a "Task" issue with the fields as you configured in your Create Issue action against the Technical Account Mgmt project and not executing the rule manually.

What is your Create Issue Action configuration you set for your rule?

Best, Joseph


Tags: cloud

jira-service-management

jira-service-management-cloud
How to use private registry for bitbucket pipe
Asked by Mohammad Imran Ansari:

I want to write the bitbucket pipe and store it in my custom private registry how can i do it. I see in the comments it says we can only store it in Docker Hub.


Answers:
author: Patrik S
body: Hello [@Mohammad Imran Ansari](/t5/user/viewprofilepage/user-id/5135481) and thank you for reaching out to Community!

I'm afraid that pipes currently do not natively support the usage of private docker images, and we already have an open feature request to implement this functionality :

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

We encourage you to add your **Vote** there to give this feature traction and help the product managers understand the interest. Also, you have the option to **Start Watching**that ticket to be notified whenever there's any update.

Below is an example workaround if you want to use a private image store in DockerHub, where you can use the syntax **docker://\<repository-name\>/\<image-name\>:\<tag\>**to reference the pipe :

```
pipelines:    default:        - step:        script:          - echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin                                   - pipe: docker://<my-private-image-repository>/<my-private-pipe>:<tag>                        variables:              MY_VARIABLE: 'foo'              MY_OTHER_VARIABLE: 'bar'
```

It's important to execute the docker login before the pipe's execution, so it will have access to the private images.

In that feature's comments, you can find some other suggested workarounds to use private images as pipes that might be helpful for your use case, depending on the registry you are using :

* [AWS ECR private images](https://jira.atlassian.com/browse/BCLOUD-18270?focusedId=3168401&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-3168401)
* [Using insecure custom registry](https://jira.atlassian.com/browse/BCLOUD-18270?focusedId=3204188&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-3204188) (only available with self-hosted runners)

Hope that helps! Let me know in case you have any questions.

Thank you, [@Mohammad Imran Ansari](/t5/user/viewprofilepage/user-id/5135481) !

Patrik S


Tags: bitbucket-cloud

cloud
Microsoft SSO - ERROR: AADSTS90015: Requested query string is too long.
Asked by Michael Van Olden:

Using Microsoft SSO. I am trying to accept a Bitbucket invitation and am getting this Error:  

AADSTS90015: Requested query string is too long.  

I have already tried both options suggested here:  
<https://confluence.atlassian.com/bbkb/troubleshooting-aadsts90015-requested-query-string-is-too-long-error-while-accepting-bitbucket-cloud-invitation-using-the-microsoft-sign-in-button-1236602026.html>  

Neither option worked for me.  

<br />


Answers:
author: Syahrul
body: G'day, [@Michael Van Olden](/t5/user/viewprofilepage/user-id/5325681)

Welcome to the community!

I believe this is a known issue related to URL encoding, which can cause the invite email to exceed the allowed limit of 2048 characters. We have a documented solution in our knowledge base that I highly recommend reviewing as a workaround:  
[Troubleshooting "AADSTS90015: Requested query string is too long" error while accepting Bitbucket cloud invitation using the Microsoft sign-in button](https://confluence.atlassian.com/bbkb/troubleshooting-aadsts90015-requested-query-string-is-too-long-error-while-accepting-bitbucket-cloud-invitation-using-the-microsoft-sign-in-button-1236602026.html)

In summary, you must log in to Bitbucket before clicking on the link. In some cases, this approach allows the user to accept the invitation without encountering the issue.

Alternatively, you may need to decode the invite URL to shorten it before opening the invite link.

Let me know how it goes.

Regards,  
Syahrul


author: Michael Van Olden
body: Also found this link, but no solutions here either:  
<https://community.atlassian.com/t5/Jira-questions/AADSTS90015-Requested-query-string-is-too-long/qaq-p/2416294>


Tags: unknown-hosting-type
Repos are missing in search only visible from direct link
Asked by bauerdev:

Started around a year or so ago. I've notices that some of my repos are missing. Searching will result in "No repositories match". The project list is also different.

Once I get the missing repo URL (from the client), it will open and now it will reappear and will be shown in the repo search. Also, my projects list is now different this will persist until I logout..

Anyone had this? How do I consolidate both?


Answers:
author: bauerdev
body: Seems to be related to "Workspaces". Once I switch a workspace, I can toggle to old/new repos and projects.

I came to this trying to solve another issue where I could not create a new repo since the 'Create' button would only have the option "Snippet".

Not sure how did my repos and projects got split, but now at least it makes some sense.

comments: author: Mark C
body: Hi [@bauerdev](/t5/user/viewprofilepage/user-id/268258),  

Thank you for reaching out to the community.  

Based on the description, this seems to be related to the **Single workspace scoped navigation** feature that is part of [Improving navigation for Bitbucket users](https://bitbucket.org/blog/improving-navigation-for-bitbucket-users).

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to Connect to Bamboo with a Bitbucket Webhook
Asked by leegyu86:

I want to trigger Bitbucket's Event Payloads to run my Bamboo Plan.

In the Webhook menu of Repository Setting in Bitbucket, what should I enter for the Name, URL, and Secret of Bamboo for Create Webhook?

I entered TEST_WEBHOOK as the Name, Bamboo Plan <https://bamboo.nsoft.com/build/admin/triggerManualBuild.action?buildKey=ADA-TBT> as the URL, and Bamboo's Personal Access Token as Secret.

I then pressed the Test connection button and received a 403 response along with the Body message below.

```
{"status-code":"403","error-code":"XSRF_FAILURE_NO_TOKEN_IN_COOKIE","message":"Unable to access this resource due to a failed XSRF check. Please ensure that a valid XSRF token is provided in the request."}
```

Please help me.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Lee,

you can't trigger a build in bamboo via webhook the same way you start a build from the UI (hence the XSRF failure).

Here is a setup guide on how to trigger a post commit build from Bitbucket (Cloud) <https://confluence.atlassian.com/bamboo/triggering-a-bamboo-build-from-bitbucket-cloud-using-webhooks-873949130.html>

Note that you have to enable and configure webhooks in bamboo first!

I know you have Bitbucket server - but you should be able to use the same approach on the Bitbucket side, entering the Bamboo webhook URL and secret.

Hope that helps, Ulrich

// [Izymes - Tools for efficient teams](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)


Tags: bamboo

bitbucket-server

server
504 error
Asked by danishjamal:

when i login bitbucket page showing me 504 error when will be fixed?


Answers:
author: Theodora Boudale
body: Hi [@danishjamal](/t5/user/viewprofilepage/user-id/5245563) and welcome to the community.

I believe you are affected by the following incident:

* <https://bitbucket.status.atlassian.com/incidents/wp2hfmkyzknl>

Our engineering team is working to resolve this. You can select the **Subscribe to updates** link on that page if you'd like to get notified on updates and the resolution of this issue.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to login to admin account with sso in-place
Asked by Madhumitha G:

Hi Team,   

We are having a separate admin account, when we login using SSO we are not able to login with the admin account.  

Could someone please help us on how to switch account from my own account to admin account without SSO?  

Thanks in Advance!


Answers:
author: Melo
body: Hi [@Madhumitha G](/t5/user/viewprofilepage/user-id/5325105), welcome to the community!

If you have a local admin account and you're locked out because of the SSO Configuration, you can enable the auth_fallback functionality. I've done that for Jira/Confluence but haven't tested it for Bitbucket.

Here is the documentation of how to enable it via REST API: <https://confluence.atlassian.com/bitbucketserverkb/how-to-enable-auth_fallback-functionality-when-using-sso-in-bitbucket-data-center-975033030.html>

I hope that helps.

Cheers,

Melo


Tags: bitbucket-server

server
Delete/ignore history of specific files
Asked by AnthonyDemanueleFSG:

There are several versions of this question in this forum and they all end up pointing to the same page in the [KB here.](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)

In our case, we have a specific set of files that we want to have on the repo so all team members get the same files but once a new version is available, we don't really need to ever go back to the previous version.

Is there a simple way to do this automatically or with a rule based system so we keep the repo size in check, please?

Thank you.


Answers:
author: Ben
body: Hi Anthony,

The purpose of a DVCS system like Bitbucket Cloud is to preserve file history and allow you to track file history and roll back files to previous states via their commit history. Therefore, the feature you have suggested is not present in the Bitbucket Cloud UI.

Unfortunately, converting and deleting files using the BFG tool is a manual process (although you could potentially automate this by writing a bash script) - and a gc would still need to be performed in the backend to reduce the size (either automatically once the garbage threshold is reached or manually via a support request).

In general, it is recommended that large binary files are not stored in the commit history at all and that these are instead tracked in GIT LFS storage (which sits outside the main repository and does not contribute to the size every time a new commit is added). This is why that documentation linked is often suggested.

Please let me know if you need further information.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: AnthonyDemanueleFSG
body: Thank you!


Tags: bitbucket-cloud

cloud
Using Pipelines to Deploy to Self Hosted Kubernetes cluster
Asked by Marv Agabi:

What is the best way to use pipelines to deploy to a self hosted i.e. local kubernetes cluster? I've looked into runners but I'm not sure if this would be the best option for this. Any help or pointing in the right direction would be greatly appreciated.


Answers:
author: Ben
body: Hi Marv,

You can deploy to a Kubernetes cluster via either Pipelines (which runs on Atlassian infrastructure and contribute to build minute usage on your subscription plan) or using self-hosted Runners (which run on your own infrastructure and do not contribute to build minute usage on your subscription plan).

Your individual use case will determine whether it is best for you to use Pipelines or Runners.

To assist you, here is some documentation concerning both runners and deploying to Kubernetes:

* [Deploy to Kubernetes](https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-kubernetes/)
* [Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/)

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Marv Agabi
body: Thanks for the information, so to confirm the best solution in my use case since my k8s cluster is self hosted and not directly accessible over the internet is to use a runner running on the k8s itself?

Or is there some other solution or agent that would make this easier?

Thanks,

Marv


author: Ben
body: Hi Marv,

Whichever environment contains the runner will need to have our outbound IP addresses whitelisted to ensure that Bitbucket can communicate and send commands to the runner:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

Would this be possible within your k8s cluster?

Cheers!

- Ben (Bitbucket Cloud Support)


author: Marv Agabi
body: That shouldn't be a problem, I'll do some testing. Thank you for the information!

Marv


author: Ben
body: No worries Marv - glad to be of assistance! :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
I am really struggling with git push -u origin master
Asked by jojo:

when I do \`git push -u origin master\`, it will show me as below:

--

The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

--

any one could give help....


Answers:
author: Mark C
body: Hi [@jojo](/t5/user/viewprofilepage/user-id/5324622),

Welcome to the community.  
To get more information on why Git push is failing, you can debug it by adding the debug flags below:

You can run the command below:

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -v" GIT_CURL_VERBOSE=1 git push -u origin master
```

![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) You can run the command in your terminal (For Mac/Linux) or Git bash(For Windows)

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Push failed Error message
Asked by Spencer Shaw:

We are getting the following error message:

remote: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
remote: \[ALERT\] Your push failed because the account 'quickbusteam' has exceeded its  
remote: \[ALERT\] user limit and this repository is restricted to read-only access.  
remote: \[ALERT\] Change your plan to restore write access:

We arent aware of any changes to our plan recently so unsure why we are suddenly getting these messages.


Answers:
author: Ben
body: Hi Spencer,

I can see that your workspace has been downgraded to Free due to an issue with the payment method - as you have 6 members present on your workspace, this exceeds the 5-user limit for Free.

I would suggest following our article below to resolve this issue:

* <https://confluence.atlassian.com/bbkb/fix-error-your-push-failed-because-the-account-has-exceeded-its-user-limit-1183680240.html>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to extract bitbucket username for all the users in workspace
Asked by Sai Santhosh Porthapragada:

I need to retrieve the usernames of all users from the Workspace user directory, but when I attempt to export user data, I only receive information such as Public Name, Email Address, Last Login, Has2SV, and On Plan.

How can I obtain the usernames?


Answers:
author: Mark C
body: Hi [@Sai Santhosh Porthapragada](/t5/user/viewprofilepage/user-id/5324488),

Welcome to the community.

Unfortunately, it is not possible to export usernames in Bitbucket Cloud UI or via an API endpoint.  
However, you can [raise a support request](https://support.atlassian.com/contact/#/) to us to discuss this further.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Upgrade to premium plan without payment details?
Asked by Megan Liou:

Hi,

We created Bitbucket free plan with 2 users. We would like to explore /test the premium feature - access tokens. Are we able to upgrade to premium plan without entering payment details?


Answers:
author: Melo
body: Hi [@Megan Liou](/t5/user/viewprofilepage/user-id/4964291), I believe you can.

You probably need to use a different account. It also asks me for the billing contact if I try to use an existing Bitbucket account.

The link for the trial/pricing page: <https://www.atlassian.com/software/bitbucket/pricing>

I hope that helps.

Thanks,

Melo


Tags: bitbucket-cloud

cloud
Repository is over the size limit (4 GB) and will not accept further additions.
Asked by Taqi:

Hello BitBucket Support Team,  

I've deleted the files locally but is still unable to commit for the same error. I've found out there are some previous commits contains large media files. Is it possible to ask the Support Team to run git gc?  

Thank you. Your responses are much appreciated.


Answers:
author: Syahrul
body: G'day [@Taqi](/t5/user/viewprofilepage/user-id/5323858)

Welcome to the community!

I have triggered Git GC on the affected repository, and the size has been reduced to 1.5GB after it was completed.

Can you review the size and let me know if it's what you expected?

Regards,  
Syahrul

comments: author: Taqi
body: Apologies for late reply. I can commit and push now. Thank you so much.


Tags: bitbucket-cloud

cloud