youngmon/atlassian-qna huggingface dataset:
Dashboards for Clients
Asked by Vikas:

Hi All,

I would like to provide customers access to a dashboard. I do have 2 projects setup:

1. Open to all where the dashboard should be restricted data only to the organization is assigned to.

2. Project is restricted and access to the project is based on Invite and should be behave like above to this.

Vikas Bhatia


Answers:
author: Nadhila Savira
body: Hi Vikas,

This is Nadhila from Atlassian.

The native Dashboard feature on Jira and JSM are actually meant only for your internal users, who are paid licensed users, so we cannot make this Dashboard available to your Customers unfortunately.

However, there is some great apps in our marketplace that may help you achieve this, such as [Dashboard Hub Pro](https://marketplace.atlassian.com/apps/1223898/dashboard-hub-for-jira-reports-charts).

Please feel free to reach out to their support channel if you have further questions about this product.

comments: author: Ivan Garcia _Appfire_
body: Thanks for suggesting our app [@Nadhila Savira](/t5/user/viewprofilepage/user-id/4969280) :)

Hello [@Vikas](/t5/user/viewprofilepage/user-id/5518133) ! This is Ivan from Appfire

[Dashboard Hub Pro](https://marketplace.atlassian.com/apps/1223898/dashboard-hub-for-jira-reports-charts?tab=overview&hosting=cloud) allows you to share dashboards with external users that don't have access to you Jira instance.

You can enable "**Public Links**" in your dashboards to share them with your stakeholders. They can be protected with a password.

[Here's an example of an externally shared dashboard](https://ronindashboards-staging.herokuapp.com/jira/shared/dashboard?boardToken=VTJGc2RHVmtYMS9jZUN6VmZXeVNHWWZHQll0U05WMkhGOWNvQitOVFZFbEpuOGszWDFCT2ZEWWdGdmR5Rm1EK05XTEo1K1VBSXNMa1VuKzltYnRFNzdaMUlwam1ZRG1CYStZZlZmR3I4VnhCVU8yTzJnb2h1cksrM0cwaFM1MThhVXg2dGVCNktHOS9UVWloV3EwU2VhSkc4ZElpMUtvSmlkNFVQVTdoeVlZcERBSVprR1hxM0FJM1lxSjN1dXpOaWZxVXJTcTNXM3l5K3NDTXUxTVo4NlpYSGVEeHovaUFXRkxINlE0dVZmQlZwTHAvY1hpTUkvK1hMT0pydHZ0NU1OVG9SMzIrZUtMSm0wb3AvdnFYRmc9PQ%3D%3D)

Here's also a [success case](https://appfire.com/resources/resource-library/customer-stories/success-solutions-saves-150-hours-jsm) of how one of our customers shares reports with their clients, resulting in 150+ hours saved.

I hope it helps, please let us know if you need additional help or guidance.


Tags: cloud

jira-service-management

jira-service-management-cloud
Auto assign ticket and move it after 15 minutes if status does not change
Asked by Jonathan Mandel:

I am having trouble getting Jira Automation to move issues if the issue remains in the status "Open". I want to assign the ticket to user A upon ticket creation. After 15 minutes of the issue not changing status or not being updated I would like it to move to user B. Again after 15 minutes of the user not changing the status or making an update then move it to user C.

Please help! ive tried JQL too and that fails for some reason ive been using the following which appears to not work even though the conditions are true

Status = "Open" AND Last update \<=-15


Answers:
author: Tim Kopperud
body: Hi [@Jonathan Mandel](/t5/user/viewprofilepage/user-id/5518049), and welcome to Atlassian Community. If I understand you correctly you might try something like this:

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

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

The Delay component is new and under rolout, so you might not have it available yet. Of not avalable you should have the option to apply a delay on the Re-fetch component instead. Notise also that Delay is currently only available only on Premium and Enterprise plans.

TimK

comments: author: Tim Kopperud
body: Hi [@Jonathan Mandel](/t5/user/viewprofilepage/user-id/5518049), did you try implementing this, and did it solve your question?

TimK


author: Tim Kopperud
body: Hi [@Jonathan Mandel](/t5/user/viewprofilepage/user-id/5518049), if my answer was valuable for you, please mark it as accepted for helping other users reading this.

Thanks.

TimK


author: Jonathan Mandel
body: Thank you Tim, I was able to resolve my issue using your method.


Tags: automation

jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
AQL for asset field to show all inR object where user is in the group added to the group attribute
Asked by Danilo Simic:

Hello,

I need to create an AQL that will filter all objects with inbound references where the user is part of the group selected in the group attribute which I called "Test Group" for now.

![Asset.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/329151i16C49F12F730FD77/image-size/large?v=v2&px=999 "Asset.jpg")

As you can see from the image, I want for reporters who are in the "JSM_BPI_AD" group to be able to selected the Business Service that has been linked here.

At the moment we are looking at the "Jira user" attribute and this is working fine, the AQL for this case is as follows:

object having inR("Jira User" = ${reporter})

This AQL allows the reporter to selected the appropriate Business Service object.


Answers:
author: Danilo Simic
body: I found out the solution for this.

The AQL should be like this:

(object having inR("Jira User" = ${reporter}) or object having inR("Test Group" having user(${reporter})))

This works as intended. Only users in the selected group are able to pick the Business Services selected. Please note that the above AQL is for the "Filter issue scope (AQL)" part of the asset type fields.


Tags: aql

assets

cloud

cmdb

jira-service-management

jira-service-management-cloud

object
I have 2 bitbucket accounts but I forgot password for account with bitbucket.org
Asked by rPandya:

I have 2 bitbucket accounts but I forgot password for account with [@Bitbucket](/t5/user/viewprofilepage/user-id/1253146).org and while pulling code it is always asking to login to account with [@Bitbucket](/t5/user/viewprofilepage/user-id/1253146).org.

I tried to reset password but it says 'User does not have the attributes required to login. Please contact your administrator'


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

Welcome to the community!

Have you tried to generate an [App Password](https://bitbucket.org/account/settings/app-passwords/) as your git authentication credentials? Bitbucket Cloud no longer accepts Atlassian account passwords so this could be the issue.

[Bitbucket cloud App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/)

Please let me know how it goes.

Regards,  
Syahrul

comments: author: rPandya
body: Thanks for attending my issue.

Is it possible to provide steps to create git authentication credentials

Thanks

Rujuta


author: Theodora Boudale
body: Hi Rujuta,

If you are using an HTTPS url in your clone's remote that looks like this:

```
https://username@bitbucket.org/workspace-id/repo.git
```

and you pull or push to a repo and get asked for a password, you can generate an app password for the account following these steps, and then provide the app password:

* <https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/>

You need to be able to log in to the account from browser to generate the app password.

Are you able to log in to this second account from your browser?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Checking Admin Permissions for Triggering Custom Pipelines via API
Asked by Vish:

Hello,

I'm setting up a custom pipeline in Bitbucket and need to verify whether the user who triggers the pipeline has admin permissions. I attempted to check permissions with an API call to:

    GET https://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/permissions-config/users/$BITBUCKET_STEP_TRIGGERER_UUID

However, this returns no data since users have been added to the repository as part of a group, not individually. How can I check if the pipeline triggerer is an admin, especially when permissions are assigned via groups?

I need to resolve this promptly to proceed with pipeline configuration. Any assistance would be greatly appreciated.

Thanks!


Answers:
author: Theodora Boudale
body: Hi [@Vish](/t5/user/viewprofilepage/user-id/5330180)!

If permissions are assigned only via groups, you can first use the following API endpoint to list group permissions for this repo:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-get>

The field you need to look at in the output for each group is the **permission** (and not the **default_permission**, as the latter may be different than the actual permission). This way you can filter which groups have admin permissions to this repo.

Afterwards, you can use the following API endpoint from version 1 of our API to get group members for each group that has admin permission to the repo:

* <https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/#GET-the-group-members>

You will then have a list of users with admin permission to the repo. You can then check if the UUID of the user that triggered the pipeline belongs in that list.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
default admin password
Asked by eric seigne:

hello i have juste created an bitbucket depository.

What is the default admin password please ?  
it doesn't propose me to create one (or create it for me apparently).

thanks.


Answers:
author: Patrik S
body: Hello [@eric seigne](/t5/user/viewprofilepage/user-id/5358092) and welcome to the Bitbucket Community!

There's no concept of an admin password in Bitbucket Cloud.

Each user account/user group can be configured to have different levels of permissions in the workspace/project/repository. You are an administrator of the workspace you have created and any repositories within it. To manage the users and groups and their respective levels of access you can access the workspace settings :

1. Navigate to <https://bitbucket.org>
2. Click on the cog icon in the top right corner
3. Select **Workspace Settings**
4. In the left side panel click on **User Groups**

and change the access of user/user groups according to your needs.

You can learn more about Bitbucket Cloud's user management in the following articles :

* [Grant repository access to user and groups](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/)
* [Configure Project permissions for user and groups](https://support.atlassian.com/bitbucket-cloud/docs/configure-project-permissions-for-users-and-groups/)

Thank you, [@eric seigne](/t5/user/viewprofilepage/user-id/5358092) !

Patrik S


Tags: bitbucket-cloud

cloud
Authentication failed when pushing/cloning/pulling from remote server
Asked by timongo:

Hi everyone,

For some reason, bitbucket does not let me push/clone/pull when I try to do it from one of the remote servers I have access to. So, when I do it from my personal machine, bitbucket does not ask for any password and I can do all the things I want. When I am on the server, it asks for a password, when I input the password of my atlassian account, it answers "fatal: Authentication failed". So, I went to the security settings of my account and added the ssh public key in use on the server. But I am still required to input a password, which fails.

What am I doing wrong?


Answers:
author: Patrik S
body: Hello [@timongo](/t5/user/viewprofilepage/user-id/5357967) and welcome to the Community!

Could you please confirm if you are using HTTPS or SSH to clone the repository?

The HTTP URL will look as follows :

```
git clone git@bitbucket.org:WORKSPACE/REPOSITORY.git.git
```

while the SSH one will be as below :

```
git clone https://USERNAME@bitbucket.org/WORKSPACE/REPOSITORY.git
```

In case you are using HTTPS, the password you are being prompted to provide is **not** the password used to log in to the UI, but a [Bitbucket App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/). If you haven't already, you can [create a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) for your account and provide it when git asks you for the password.

However, if you are using SSH and git is asking for a password, you likely have protected your private SSH key with a password once you created it, and this password is required for git to be able to use that key. If you don't remember the ssh key password, you can create a new key (with or without a password), [add it to your bitbucket profile](https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/), and try cloning the repository using this new key.

Hope that helps!

Let us know in case you have any questions.

Thank you, [@timongo](/t5/user/viewprofilepage/user-id/5357967) !

Patrik S

comments: author: timongo
body: Thanks, that helps. Actually, I thought I had tried to do a git clone via ssh and that it did not work, but I must be wrong, because guided by your answer, I retried this morning and it worked. So I deleted my former copy and started over with a fresh clone, via git, and it dit not ask me for any password, certainly because I am using a passphrase-less rsa key.

tldr: it works, thanks for your help


Tags: bitbucket-cloud

cloud
Can a commit with the same hash be created/restored using the Bitbucket API?
Asked by Nagaraja:

Our objective is to find a backup solution for Bitbucket. Is it possible to create or restore the exact same commit hash?


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

As per what is described in [How git sha1 is created](https://gist.github.com/masak/2415865) the following information is used by git to generate a commit hash :
> * The source tree of the commit (which unravels to all the subtrees and blobs)
> * The parent commit sha1
> * The author info (with timestamp)
> * The committer info (right, those are different!, also with timestamp)
> * The commit message

So won't be able to exactly recreate the same commit hash as several variables, such as the commit parents, the date of the commit, and the author will influence the generated hash of the new commit.

Could you elaborate more on why would you like to recreate a commit with the same SHA?

If you are looking to back up your repositories, we would suggest executing a mirror clone of it:

```
git clone --mirror <repository URL>
```

as it will include all the objects/references that are stored in the remote end.

Let us know in case you have any questions.

Thank you, [@Nagaraja](/t5/user/viewprofilepage/user-id/5043321) !

Patrik S

comments: author: Nagaraja
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

Thank you for your reply. Based on the commit, it is known that those files should be assigned to that specific branch.  
In order to restore the files, it is necessary to provide the commit hash.


Tags: bitbucket-cloud

cloud
How can decline multiple pull request ?
Asked by Sandeep Rana:

Hi ,

I am trying to clean up the bit-bucket branches and let i know , there is no option to decline the all associate open pull request in one go.

Does bit-bucket allow the multiple pull request delete / decline ?


Answers:
author: Patrik S
body: Hello [@Sandeep Rana](/t5/user/viewprofilepage/user-id/5357677) and welcome to the Community!

I'm afraid it's not currently possible to delete pull requests, and we have the feature request [BCLOUD-22181](https://jira.atlassian.com/browse/BCLOUD-22181) to implement this functionality.

As for declining pull requests in bulk, while this is not available in the UI, you may use the Bitbucket API to decline multiple pull requests under your workspace by following the below steps :

* Use the [List pull request API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-get) to get all the open pull requests in the repository
* For each pull request you want from that list, use the [Decline Pull Request API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-decline-post) to decline the PR by providing the Pull Request ID.

You could build a script leveraging those API endpoints to be able to decline them in bulk from your repository.

Let us know in case you have any questions!

Thank you, [@Sandeep Rana](/t5/user/viewprofilepage/user-id/5357677) !

Patrik S


Tags: bitbucket-cloud

cloud
Helm Error in Pipeline
Asked by raffyroy_mrmt:

A Helm upgrade error is occurring in our current pipeline.  

Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "\<namespace\>" namespace: "" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"

However, we have already changed the apiVersion of hpa.yaml to autoscaling/v2 and the errors remains the same upon rerunning the pipeline.  

The pipeline is currently deploying to a k8 cluster version 1.26

What should we do to resolve this issue?


Answers:
author: Sainath Reddy
body: Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "\<namespace\>" namespace: "" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"

Did you solve this issue?

<https://helm.sh/docs/topics/kubernetes_apis/#updating-api-versions-of-a-release-manifest>   
Followed this documentation, but still getting the same issue.


author: Abhishek Sharma
body: Try this approach:

<https://helm.sh/docs/topics/kubernetes_apis/#updating-api-versions-of-a-release-manifest>


Tags: bitbucket-cloud

cloud
Not able to exclude files from PR
Asked by Mugdha Hardikar:

I am trying to exclude file during PR. This file actually maintains version of the application. So dev branch update the minor version and then when dev branch is merged into Qa branch, major version gets updated. due to this both dev and QA branches update the same file and during next PR conflict is happening. I would like to skip this particular file from the PR.

Please help me how to do this.


Answers:
author: Patrik S
body: Hello [@Mugdha Hardikar](/t5/user/viewprofilepage/user-id/5357526) and welcome to the Community!

I'm afraid it's not possible to exclude files from being merged in a Pull Request. If a file is modified in both the source and destination branch you will indeed need to resolve the conflict, as git will not be able to know which is the version you want to keep.

Some alternatives that might work for you are the following :
> 1. Create a branch from the dev branch
>
> 2. Replace the version file with the same version as QA branch ( so it doesn't generate a conflict)
>
> 3. Create a pull request from this new branch to QA

OR
> 1. Create a new branch from QA
>
> 2. Include the changes from the dev branch, except for the version file you want to ignore
>
> 3. Create pull request from the new branch to QA

Hope that helps! Should you have any questions feel free to ask.

Thank you, [@Mugdha Hardikar](/t5/user/viewprofilepage/user-id/5357526) !

Patrik S

comments: author: Mugdha Hardikar
body: Thanks a lot for the quick reply and suggestion.

Apologies if I am being stupid here but is there a way to automate step 2 ( in first approach?) using pipelines? Or even 2nd?

Actually, we are doing approach 1 manually currently. I am looking for some of automation there.


author: Mugdha Hardikar
body: I think I got what needs to be done. Thanks a lot for all the support.


Tags: bitbucket-cloud

cloud
A small repo has been transferring workspace during last 4 days
Asked by nando2112:

The total size of the repo is 30mb. Is this normal?

![Screenshot from 2023-11-06 08-45-24.png](https://community.atlassian.com/t5/image/serverpage/image-id/290208iD26752745767E9C8/image-size/large?v=v2&px=999 "Screenshot from 2023-11-06 08-45-24.png")


Answers:
author: Patrik S
body: Hello [@nando2112](/t5/user/viewprofilepage/user-id/1950064) and thank you for reaching out to the Community!

The way that the transfer repository feature works is that after you initiate a transfer, the admins of the destination workspace are going to receive an email to either accept or reject the transfer. The transfer will only take effect after that.

So could you please verify with an Admin of the destination workspace and ask them to check the email and accept the transfer?

If the destination workspace is a Personal workspace (see [Difference between shared and personal workspace](https://confluence.atlassian.com/bbkb/difference-between-shared-and-personal-workspaces-1141477191.html)), only the owner of the account will receive the email.

The following documentation might also be of help for further details on the transfer process :

* <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/>

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

Thank you, [@nando2112](/t5/user/viewprofilepage/user-id/1950064) !

Patrik S


Tags: bitbucket-cloud

cloud
How to decline Pull Request using Rest API
Asked by Prasad_Biddika:

How to decline Pull Request using Rest API

Please help with the same


Answers:
author: Navpreet Ahuja
body: Hi

For Bitbucket server or DC you can refer this endpoint:

<https://developer.atlassian.com/server/bitbucket/rest/v815/api-group-pull-requests/#api-api-latest-projects-projectkey-repos-repositoryslug-pull-requests-pullrequestid-decline-post>


Tags: bitbucket-server

server
File access for upload test works locally but file not found run in pipeline with docker container
Asked by Vincent Jong:

I've written an upload test that works locally but when run in a pipeline, it fails.

```
invalid argument: File not found : /app/assets/profile/avatar0.jpg
```

The source is in the assets dir and is there in bitbucket according to running ls with system commands. I've looked at docker config which shows  

```
volumes:
  - $SOURCE_TEST_DIR:/app:ro
```

That doesn't seem to look like a permissions issue as looking at the system file structure, the file is there, and dir permissions seem to be 777 and file permissions seem to be 666, going through individually through each dir in the tree. Something, maybe I'm not understanding about the assets dir? Any ideas very much appreciated.

![Screenshot 2023-11-03 at 9.20.02?PM.png](/t5/image/serverpage/image-id/290103i11F6418593CB7A0E/image-size/large?v=v2&px=999 "Screenshot 2023-11-03 at 9.20.02?PM.png")


Answers:
author: Vincent Jong
body: Figured it out. Docker config issue. Had a base container config that the driving container used and the volumes set in the base container needed to be exposed on the driving container.


Tags: bitbucket-cloud

cloud
I am not able to login my account
Asked by Chang Jeon:

Hi, I can't login to my bitbucket account. I have not accessed my account for a month, just wondering if I need to get my account reactivated. How can I login my account again in the case. Thank you.


Answers:
author: Ash Yadav
body: Hi [@Chang Jeon](/t5/user/viewprofilepage/user-id/5356688) welcome to the Atlassian Community!

Can you post a screenshot of what error you see when you try to login?

Are you part of an organization or is this your own site?

Kind Regards,

Ash

comments: author: Syahrul
body: Hey [@Chang Jeon](/t5/user/viewprofilepage/user-id/5356688)

As [@Ash Yadav](/t5/user/viewprofilepage/user-id/5167607) mentions, it'd be great if you could provide us with a screenshot of the issue as I can see from our end that your account is active.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud