youngmon/atlassian-qna huggingface dataset:
How to: Users can Review/Approve but Not Submit Request
Asked by Kurtis:

I'm looking for the proper settings for the following scenario.

* We would like to have HR employee lifecycle requests such as onboarding and offboarding that only HR can submit.
* We would like to have an approval for some of these requests that involve the manager to verify information is correct.
* We do not want other employees (including managers) to see the HR portal group or be able to make submissions.

I have the project created and permissions limited to just HR. However, the perople picker is limited to those with project access. How can we allow reviewers but limit the ability to submit?

Thank you


Answers:
author: Rilwan Ahmed
body: Hi [@Kurtis](/t5/user/viewprofilepage/user-id/5362411) ,

You can make use of approval step in a workflow.   
For example: If the ticket is having a transition "Get Manager Approval", you need to add approval step to this status. You can make use of "Approver" or any other user picker fields.

When the transition is done, the managers will get email with the particular requests and its link and they can approve/deny from the portal

Follow below steps to add approval.

1. From your HR project, select **Project settings** \> **Workflows**.

2. Select **Edit**next to the workflow you want to add an approval to.

3. Select**Diagram** mode (if you are in text view)

4. Select the status you want to add an approval step to.

5. Check the box next to **Include approval step**.

6. Select Number of approvers, Approver source (field)

7. In next screen, Select transition if approved, Select transition if declined and other details
8. Publish the workflow

Full detailed steps are mentioned in <https://support.atlassian.com/jira-service-management-cloud/docs/add-an-approval-to-a-workflow/>

comments: author: Kurtis
body: Thank you for those instructions.

I'm currently having issues getting all users to appear in the user picker for the request. Only people with access to the project currently show up. I'm looking to also select people who don't have access to the project. We would liek them to be able to review the request but not submit one via the portal.

I hope that makes sense.

Thank you


Tags: cloud

jira-service-management

jira-service-management-cloud
Tenho dois fluxos dentro do mesmo projeto, ? poss?vel conectar de maneira personalizada a um painel?
Asked by Giovana Borelli:

Eu tenho um projeto dentro do jira, no qual eu tenho dois fluxos conectados a ele, nessa projeto eu tenho 4 pain?is diferentes de visualiza??o, todos eles vieram conectados ao mesmo fluxo, porem eu queria que um desses pain?is tivesse o fluxo diferente, ou seja conectado ao outro fluxo do projeto, ? poss?vel fazer isso, como eu posso fazer ?


Answers:
author: Eugenio Onofre
body: Oi [@Giovana Borelli](/t5/user/viewprofilepage/user-id/5403492)

Seja bem vinda ? comunidade Atlassian.  
Os workflows podem ser utilizados dessa forma desde que possuam issue types diferentes. Para essa defini??o, voc? deve usar o Workflow Scheme e definir qual fluxo ? usado para cada tipo de tarefa.

Ent?o, os status aparecer?o no board e voc? poder? utiliz?-los.

Por favor, lembre-se de aceitar esta resposta caso ajude a resolver seu problema, assim, poder? ajudar outros membros da comunidade no futuro.

At? mais,  
Eugenio


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Can one member get access to multiple projects with the free account?
Asked by dev:

I have invited a team member to access multiple projects on our free account. He was able to accept the first project invitation, but none of the others work?


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

We don't have a limit on the number of workspaces/repositories that a user can be a member of.

Could you please try removing each of these pending invitations from each repo's settings, and send new ones to this user?

In case there are still issues, could you please let us know what error this user gets when they try to accept these invitations?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
App Password instructions are completely wrong now
Asked by Steve Yegge:

I need to create an App Password.

<https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/> says I need to click my avatar/profile image and choose "Settings" or "Personal Settings".

These do not exist in my Bitbucket UI. Where should I be looking? I crawled through every link in my Manage Account section.


Answers:
author: Steve Yegge
body: So! It turns out that the Profile icon shown on Bitbucket.org is different from the profile icon on support.atlassian.com.

That makes the docs a bit misleading, as you're reading them while you're logged in with your Atlassian account, and they say to click Profile... and of course they mean, "Go over to Bitbucket.org and click Profile *there*."

Solved.


Tags: bitbucket-cloud

cloud
bitbucket API sending text file to bitbucket
Asked by cnshum_2019:

Hi all,

I have a django application which has the function of pulling files from s3 bucket using boto3 and pushing it to bitbucket. I understand that theres a post api which allows me to send files into bitbucket. this is an example of the post api

$ curl <https://api.bitbucket.org/2.0/repositories/username/slug/src> \\ -F /repo/path/to/word.txt=@word.txt

for the part after the @, what do i include after it since the file retrieved from s3 is in a json format


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

In the -F argument, the part after @ should be the path to the file and the name of the file on your machine (the one where you have downloaded this file and where you are executing the curl command).

If the file on your machine is named myFile.json and it exists in the current working directory (where the curl command is running), you can simply put myFile.json

<br />

The part /repo/path/to/word.txt is the path of the directory in the repo where you want to upload the file, and also the name you want this file to have once uploaded to the repo.

If you want to commit the file to the root of the repo, and you want to name it myFile3.json, then you simply put myFile3.json instead of /repo/path/to/word.txt. You could also keep the same name as locally.

The following call will commit your local file named myFile.json in the repo, and the file will have the name myFile3.json once uploaded to the repo.

```
curl https://api.bitbucket.org/2.0/repositories/username/slug/src -F myFile3.json=@myFile.json
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket Pipeline Error
Asked by Rameshwar Katkar:

Hi,  
I have a scenario regarding the bitbucket pipeline. Explored bitbucket blog and document regarding this scenario. But not found proper solution. Scenario is mentioned below.  
**If we have master bitbucket-pipelines.yml and inside the repository we have folders like tomcat01, tomcat02 etc. file and each tomcat folder has files tomcat01.yml, tomcat02.yml in the respective folder. If we pass variable 'tomcat01', will this only trigger tomcat01.yml in the pipeline?**  
**Can anyone help me with the proper solution?**


Answers:
author: Theodora Boudale
body: Hi [@Rameshwar Katkar](/t5/user/viewprofilepage/user-id/5012110),

What is the purpose of the files tomcat01.yml, tomcat02.yml etc? Do you store in these files configuration for Bitbucket pipelines, similarly to bitbucket-pipelines.yml file?

If yes, then what you are doing is not going to work. Configuration for Bitbucket Pipelines needs to be stored in the bitbucket-pipelines.yml only.

You may want to look into custom pipelines, that can also make use of variables.

Custom pipelines do not get triggered automatically on every push, they can be triggered either manually or on schedule.  
It is also possible to define variables for custom pipelines and give a value to these variables once you trigger a build.

You can check an example of a custom pipeline with variables here:

* <https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#variables>

If you need further help, please provide some more details about your requirements and we can look into it.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to do i give project level access to a user
Asked by Yuvaraj Venkatesan:

I would like to give set of users access to project level. Which means when I add new repo then the access should be inherited from the project level automatically.


Answers:
author: Theodora Boudale
body: Hi Yuvaraj,

Project level permissions are not available in Bitbucket Cloud yet. Our team has been working on this and it is scheduled for release in Q2-Q3 2022:

* [https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket\&search=project](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket&search=project)

You can add yourself as a watcher to the following feature request (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates:

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pulling entire project
Asked by Mike Kerwin:

is there a way to clone an entire project into a local folder using terminal on mac or do I have to clone each individual repo in the project one by one?

Thx!


Answers:
author: Charlie Misonne
body: Hi Mike,

Projects are a concept defined by Bitucket. GIT does not have the notion of projects meaning you can only clone single repositories.

If cloning the entire project is requirement for all developers and not something you want to do just once [Git submodules](https://www.atlassian.com/git/tutorials/git-submodule) could be something for you.

Or you could create a custom script using B[itbucket Cloud's REST API](https://developer.atlassian.com/cloud/bitbucket/rest/) to fetch all repository URL's and clone them 1 by 1 via the script.


Tags: bitbucket-cloud

cloud
Is it possible to set branch permissions at the Project or Workspace level?
Asked by Gavin:

Is it possible to set branch permissions at the Project or workspace level rather than having to set for each individual repository. The only documentation I could find that showed this was possible was for Bitbucket Server, not Bitbucket Cloud.


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

This is not possible yet in Bitbucket Cloud. Our development team has been actively working on project branch permissions, and this feature is expected to be released in Q3 2022:

* [https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket\&search=project](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket&search=project)

We have the following feature request about this in our issue tracker:

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

You can add yourself as a watcher to that feature request (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates. Once this feature is implemented, we will update that feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

branch

cloud

permission
Problem with invitation mail
Asked by Angelo Orssatto:

Hi,  

I'm not receiving any bitbucket invitation mail in my mail professional, my mail has been changed because my name was wrong.

Other Atlassian e-mails works correctly, only the invitation email from bitbucket doesn't arrive at my inbox

How can I active my account?

If you can help me, please

<br />

Thanks,


Answers:
author: Andy Heinzer
body: Hi Angelo,

I saw that there were some bounced messages to your address recently. I have removed these suppressions from our side. Please try to resend the invitation once more. It should work now.

If your email address has changed recently, please let us know the exact email address you are using here and we can investigate further if need be.

Regards,

Andy


Tags: bitbucket-cloud

cloud
Access Images in Bitbucket pull request description via API?
Asked by Tyler Mann:

Is there a way to access images that are uploaded to the body of a pull request via Bitbucket API? For example the images get converted to have a format like this: "<https://bitbucket.org/repo/>\<repo\>/images/\<imageid\>-image.png"

Accessing this kind of url seems to require session authentication. I am wondering if there is an API or way to access these images programmatically using an oauth token or access token?


Answers:
author: Mateus T
body: Hi [@Tyler Mann](/t5/user/viewprofilepage/user-id/5011564),

Welcome to the Atlassian Community!

Currently, I'm afraid that it is not possible to fetch images contained within a Pull Request comment through the Rest API. In this case, I've taken the liberty to raise a Feature Request with our development team in order to address this opportunity. You can check it through the following link:

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

Our development team will give a first-hand update through that ticket if there's any progress made so I would suggest keeping a watch for it. Please note that all enhancements are implemented with this [policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Cheers,

Mateus T

comments: author: Tyler Mann
body: Thanks for the update [@Mateus T](/t5/user/viewprofilepage/user-id/4017437) , I'll keep an eye on that ticket!


author: Dan Mateer
body: Following.


Tags: bitbucket-cloud

cloud
Self-hosted runner: Container has state (exitCode: Some(0), OOMKilled Some(false))
Asked by Raul Laasner:

I'm using the following configuration for my runner which I tried to keep as minimal as possible:

```
definitions:
  services:
    docker:
      image: ubuntu:20.04
pipelines:
  default:
    - step:
        name: serial release
        runs-on:
          - self.hosted
          - linux
        services:
          - docker
        script:
          - mkdir build && cd build
```

I keep seeing the following message in Docker output:

```
Container has state (exitCode: Some(0), OOMKilled Some(false))
```

The pipeline dashboard doesn't provide anything useful:

    + umask 000

    + GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="master" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR

    Cloning into '/opt/atlassian/pipelines/agent/build'...

    + git reset --hard 929ea2648e604776bf35ea51ec6c7eb389eb933d

    HEAD is now at 929ea26 Update CI

    + git config http://user.name bitbucket-pipelines

    + git config user.email mailto:commits-noreply@bitbucket.org

    + git config push.default current

    + git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

    + git remote set-url origin http://bitbucket.org/$BITBUCKET_REPO_FULL_NAME

    + git reflog expire --expire=all --all

    + echo ".bitbucket/pipelines/generated" >> .git/info/exclude

    + chmod 777 $BUILD_DIR

    Images used:

        build: atlassian/default-image@sha256:3a09dfec7e36fe99e3910714c5646be6302ccbca204d38539a07f0c2cb5902d4

        docker: ubuntu@sha256:3bc6e9f30f51d2bbf9307fc9d0bdfc30caa38cf4e3b05a714230f9a9b3381d84

How would I even begin to debug this? I looked <https://community.atlassian.com/t5/Bitbucket-questions/Self-hosted-runner-step-set-up-fails-when-trying-to-use-docker/qaq-p/1764689> but it seems the issue is still up.


Answers:
author: Raul Laasner
body: Never mind, it turns out this is not my real issue. I just need to run some simple tests. Since I'm running docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:latest which in turns runs my own image I went for the docker-in-docker image solution but apparently that's something else.


Tags: bitbucket-cloud

cloud
Pipelines no longer notifying Slack channel of build status
Asked by matt_gomes:

As of Monday August 15, our slack channel is no longer notified when a pipeline completes for any of our repositories. If I adjust the settings (triggers, etc.) for the slack notifications, it will post the update to the channel correctly, but when a pipeline runs there is no notification pushed.

I haven't seen anything in the bitbucket status page, but has anything changed recently?


Answers:
author: matt_gomes
body: And shortly after I posted this, it appears as though it fixed itself... Not sure what the issue was previously, but thank you :)


Tags: bitbucket-cloud

cloud
I am not able to open the pull request
Asked by Farheen Javid:

I am not able to open any of the pull request


Answers:
author: Mateus T
body: Hi [@Farheen Javid](/t5/user/viewprofilepage/user-id/5011363)

Welcome to the Atlassian Community!

Checking our UI logs for your username, I can see that you have faced a few **500** issues over the last week while viewing Pull Request and, all issues are pointing out to a **RequestTimeoutError.**

In this case, I believe that the Pull Requests that you are trying to view are surpassing our [limits for viewing diffs on the UI.](https://support.atlassian.com/bitbucket-cloud/docs/limits-for-viewing-content-and-diffs/)

According to the documentation I've linked above, diffs cannot exceed the following limits:

* A file's diff cannot exceed 2000 changed lines or 102,400 bytes (100 KB) of raw diff data.

* The entire diff cannot exceed 8000 changed lines.

* The maximum number of files in a single diff is limited to *200*.

In this case, you can run the following commands locally to properly analyze your diff:

1. Check which files have changed on this branch with the following command:
   1.

      ```
      $ git diff --stat <destination_branch>...<source_branch>
      ```

2. You can filter through these files with a simple *grep* piping
   1.

      ```
      $ git diff --stat <destination_branch>...<source_branch> | grep myFile.txt
      ```

3. If you need to check for the diff of a specific file, you can use this command
   1.

      ```
      $ git diff <destination_branch>...<source_branch> -- myFile.txt
      ```

Cheers,

Mateus T


Tags: bitbucket-cloud

cloud
Create workspace button is absent
Asked by Maxim F:

Hi.

I cannot create a new workspace for my free account because there is no such a button is "All workspaces" page. There is no such an item in "Create" dropdown button as well.

I have already read community discussions related to my subject, but they did not help. As far as I know there is no special workspace limit for free accounts. Maybe I missed smth or reach some other limits that prevents me from creating a new workspace.

Could someone explain what is the reason, please.

This is my workspaces page. All workspaces are private.

![bitbucket-wspaces.png](/t5/image/serverpage/image-id/211678iD4276FA8D16A1475/image-size/large?v=v2&px=999 "bitbucket-wspaces.png")


Answers:
author: Mark C
body: Hi [@Maxim F](/t5/user/viewprofilepage/user-id/2951949),

Thanks for reaching out to the community.

Would it be possible for you to check if you can create a new workspace through this link? - <https://bitbucket.org/workspace/create/>

Let me know how it goes.

Regards,  
Mark C

comments: author: Maxim F
body: Yes, It works. Thank you very much.


author: Nguyen Van Luong
body: me too, how can i create the new workspace? help me. tks

comments: author: Ben
body: Hi [@Nguyen Van Luong](/t5/user/viewprofilepage/user-id/1161443)

<br />

Would you be able to follow the steps in [this documentation on how to create a workspace](https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/)?  

Cheers!

- Ben (Bitbucket Cloud Support)


author: Adel Assi
body: This solution is not working for me, before, I'm the admin of the whole account, cannot find this button, even no related security option is exists..

Can anyone suggest please how can I get this button back

comments: author: Mark C
body: Hi [@Adel Assi](/t5/user/viewprofilepage/user-id/5454825)  

Would you be able to follow the steps in [this documentation on how to create a workspace](https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/)?  

Regards,  
Mark C


author: Adel Assi
body: Thank you, yes it worked, but the question why that button is removed, even when you go for the link <https://bitbucket.org/workspace/create/> you will see 404 page

Thanks for the alternative solution..


Tags: bitbucket-cloud

cloud
Someone has already added that SSH key
Asked by Ilya Navitsky:

Hi. I get the error "Someone has already added that SSH key" when trying to add SSH key on the Bitbucket Personal settings page.

Please create an internal ticket and provide details to the email of my community account.

Thanks in advance.


Answers:
author: Theodora Boudale
body: Hi [@Ilya Navitsky](/t5/user/viewprofilepage/user-id/2634520),

I created a support ticket using the email of your community account, you should have received an email with a link to the ticket.

Please follow the link in that email and share in the ticket the public SSH key you are trying to add.

Just in case you haven't received an email, please feel free to let me know and I can post the ticket URL here.

Kind regards,  
Theodora

comments: author: Ilya Navitsky
body: Thank you! I have attached my public key in the ticket.


author: Theodora Boudale
body: You are very welcome, please feel free to reach out if you ever need anything else!


author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.

comments: author: Ilya Navitsky
body: Thanks for reply. I just followed instructions to create a new question for this problem posted by an Atlassian Team member, Theodora, in the following topic:  
<https://community.atlassian.com/t5/Bitbucket-questions/Problem-quot-Someone-has-already-added-that-key-as-an-access-key/qaq-p/1851681>


Tags: bitbucket-cloud

cloud
What is a BitBucket project?
Asked by Lars Bo Wassini:

When creating a new repository, I have to select a project. Why would I need to select a project as the repository name has to be unique to the workspace and not the project?

What is projects used for? The url never includes the project anyway?

E.g.  
I have a project and below this I have repositories for "Documentation", "Backend", "Frontend", "Settings", "Database".

Anther project would have the same - but it is not possible.

Or a MCU project with "Arduino", "ESP32", "STM32". Same app but different processors.

And again - now it is not possible to add repositories with these names to another project.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: We use projects as a configuration layer between workspace and repository for branching model and default reviewers. This way repos can inherit the project setting or override it.


Tags: bitbucket-cloud

cloud

project

repository
Problem mit Umlauten in Version Atlassian Bitbucket v8.3.0
Asked by Christian Huber:

Hallo,

ich habe vor kurzem unsere Version von Bitbucket geupdate auf Version 8.3.0.

Jetzt werden alle Umlaute fehlerhaft dargestellt.

Kennt jemand das Problem, beziehungsweise weis was man machen muss?

Vielen Dank


Answers:
author: Christian Glockner
body: Hi Markus,

This is a known issue which we're tracking in <https://jira.atlassian.com/browse/BSERV-13424>. There isn't much you can do other than upgrading to 8.3.1 once that's been released.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Christian Huber
body: Thanks for the answer.


Tags: bitbucket-server

server