# BitBucket

## Steps to Integrate with BitBucket

1. Log in to DevDynamics ([devdynamics.ai](https://devdynamics.ai/))\\

   <figure><img src="https://lh4.googleusercontent.com/sGzGu6RqOLbe5dcHxDXEgt9lOXXCGMksFsdngmYyof44ebH9xuGThfsS6I_-e-Y0AtcoqY5NprELGfMs3OlUv6N4YpO3N3AuBpSfXIlc7XtaAjUs60aCWjuB_6V3vsjihbfZAm6lGJGCbwgbn-VozaU" alt=""><figcaption></figcaption></figure>
2. Go to Settings --> Integrations\\

   <figure><img src="https://lh3.googleusercontent.com/HjZoOR7rFx-RSms1Xktem2q1NHXuJtBqpzKXh_dLl0xjufcNK4WKyA-AbfHGYajoyTlYbu0L4NivT3oX-Z_MczVZkHOqX7Fcb4aSEWuKsXfDbk6NZcmsGl9UoRZebZ-sBlWhbxQesZJB2YsY6HnJA9w" alt=""><figcaption></figcaption></figure>
3. Click on Integrate BitBucket\\

   <figure><img src="https://lh3.googleusercontent.com/-Mq8NGMqynUzHH2kw-pdjFSuQOwIr64WTklUx8wN5mNTWia0sZt2svpHjbQfBylGMNEGRUM5AnoePxhqUu9XwUyTLVhx01D4oLOzjajDFvyLQgasHkL0sWUKY76VJVi6E1RoxZ3Re6iwq7oAV06ZfYo" alt=""><figcaption></figcaption></figure>
4. Log in to Bitbucket ([bitbucket.org](https://bitbucket.org/))\\

   <figure><img src="https://lh3.googleusercontent.com/KqYYkzC8Az5HAbH-9ymYsdht3NrsPrD_KRVwksmLZVLHIrOF3AU7nwe7ib9TrNhG-RhCrtmmgL-b0Ivx1fzkHwuFnp-s8zezMap-4YyJEzJULeBfspBjdnfVI8WGae92JEE3bVEL87bcsryB-RHp-hI" alt=""><figcaption></figcaption></figure>

### To generate an App Password:

{% hint style="info" %}
Make sure that you have an admin role to perform this action.
{% endhint %}

{% hint style="info" %}
User whose app password is used need to have admin access
{% endhint %}

6. Click on the Settings icon and go to Personal Bitbucket Settings\\

   <figure><img src="https://lh3.googleusercontent.com/OfxufDUwPiEL_09LrgZAVcEInwE3UzTDmxq437pAYBoNPfnbiTQDBZSOQqWU_MQwT055mFcGXuEl6k8Nonc1VD-sVBjc2qXccHifNBYI1oa0kW13qJoxnfwF7JJ0Y6gWdfb1_Ijug_ohFT179KJRjtk" alt=""><figcaption></figcaption></figure>
7. Under Personal Settings, click on App passwords. Then, under App Passwords, click on Create app password. \\

   <figure><img src="https://lh6.googleusercontent.com/UtnpwUItX8KiLdEhcNT5Ar6ZnWj2VjZ8unMPQYFePW2gjDiuWHqLZRrXqV8KjlkRBAZES36OOpTFWpWtwa1kCgrXdiH-ts2OK-HLravRFMJv-n3A6gTFK72xLUWRIWvkyv0GYALd35FviBhgwSmfwwI" alt=""><figcaption></figcaption></figure>
8. Add a label for your new app password. Select the following scopes for permission:

   1. Account: Email, Read
   2. Projects: Read
   3. Repositories: Read
   4. Pull Requests: Read
   5. Issues: Read
   6. Wikis: Read
   7. Webhooks: Read and Write
   8. Pipeline: Read
   9. Runners: Read

   <figure><img src="https://4171758421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS4rgvJ71tpXan8RhYTT4%2Fuploads%2FpDvTX1c4pllpRnsSNbNs%2FScreenshot%202025-02-27%20at%201.15.02%20PM.png?alt=media&#x26;token=9036d194-1dc0-4b07-9b6c-b249f1dc23c0" alt=""><figcaption></figcaption></figure>
9. Save your new app password.\
   \&#xNAN;*NOTE: This password will be visible only once.*

   <figure><img src="https://lh5.googleusercontent.com/WM2299EndXTt_JKNeUpPq2l-3fsDmKoxme50aZJw6-JvpVc9au7OhriW_68WVvHF0Py0tGjwKrRSrRHdrUIMKMxOx-ZD3w-arrQ1R5EL8ZZVHdyo_kpSzSjbueWn6cVAitar0zGGQnyoROaGalpxyl0" alt=""><figcaption></figcaption></figure>

### Steps to derive a Username:

10. Go to Account Settings under Personal Settings and save your user name.

    <figure><img src="https://lh5.googleusercontent.com/LwLkrjq4AwLzur30GACJ3RnsOAusDKKP_j4KAORlZ3ITB_jqGnJcBmR_IAAdetLpG4u5hLlrNXnCxCo7DlrMXTKWj2qbpagj1rkmXHZ2h2zqC_uU-GACMou_W4eHzFENvx_H9OAewVpRYVhowcI-Cqg" alt=""><figcaption></figcaption></figure>

### Steps to derive Workspace ID:

11. Go to Workspace Settings. ![](https://4171758421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS4rgvJ71tpXan8RhYTT4%2Fuploads%2F2mbOpBEz6LY7ENMefOcM%2FScreenshot%202025-01-18%20at%2012.37.15%20PM.png?alt=media\&token=248d0200-d877-40a0-ae7a-0cfd518d95e1)

    <figure><img src="https://lh5.googleusercontent.com/YxMaoEkVK-9WAsiWYhsTX5R8nOFASwdvC6yH_HtMqZ83rNP66pdyoTShLXt_AKJxOVJcbjS7O4NSdjO9rI-utwkJO-zLt2F3wh44seAZlr5HYY5eohje3E-NA32L78i2kI8isOp3bgcaPL5CqCdWzS8" alt=""><figcaption></figcaption></figure>
12. Save Workspace ID. &#x20;

    <figure><img src="https://lh3.googleusercontent.com/KbJOyeVbedsB-yl2pve3Gbw9uNcBqnojLZkcXyY2OmAYVWU4uAqtDMqni8zn9hSwcyMYqNOyhDuGLlQrU3lEiCMuQh15G8Rz8KIREadhpWwiE3MbnxeOswaT3aW0oRhMw45ILdvASPqZr6Z9VTjiO3s" alt=""><figcaption></figcaption></figure>
13. Paste the Bitbucket Username, App Password and Workspace ID to DevDynamics.

    <figure><img src="https://lh3.googleusercontent.com/g5pmNF4ZjeHRgxYEtjz0zvc2rthsfu3WLUlrBTVlSGQ6cNAJOWlTAGlehEVFWi_3KRnpqEaVBswDv-0F5qCpTOPCW-L1tPEpdOckY41_Kkx2SPMEP8r-D5dqLPiCE4axdbw7gY9eSwt34GRjGlhNQKU" alt=""><figcaption></figcaption></figure>
14. You have now successfully integrated your BitBucket account into DevDynamics.

<figure><img src="https://lh6.googleusercontent.com/oPLW1aLX7U42FKgcpEzbyz_bGidWeoRoce17Bn7REuFP3HIQBVE8a4R6-fHx_6j2U4-pmKtI5fKnguFf3RregLAff60nrmoIXa7c4ieTc6d4F0dXkQYrbSPghpM-RFaD8GJhzNRhunQbUHt5eUd9VV8" alt=""><figcaption></figcaption></figure>
