youngmon/atlassian-qna huggingface dataset:
App Passwords
Asked by nmoore:

We're looking to use App Passwords for our CI/CD pipelines to pull code from bitbucket cloud but we're unsure about a particular use case. I am a CloudOps engineer who generates an App Password for teamcity to clone repos from Bitbucket cloud. What happens to my app passwords should I leave the company and my account is removed? Are the app passwords removed too?

Alternatively, we would setup a service account with an email address for the service, teamcity in our case. Then we would create a bitbucket account for this email address and setup App Passwords under that account. Is this permitted by bitbucket cloud?


Answers:
author: Theodora Boudale
body: Hi [@nmoore](/t5/user/viewprofilepage/user-id/4167404) and welcome to the community!

An app-password is associated with a certain Bitbucket Cloud account. So, if the account gets deleted, deactivated or its access from the company's repos is removed, then HTTPS authentication with this account won't work.

It is perfectly fine to create another Bitbucket Cloud account as a service account, with an email address that is not tied to a specific individual. Please keep in mind though that you'll need to add this account to the company's workspace, and it will count towards the workspace's users. If you have a paid plan, this means that you'll pay for one extra user.

Some additional options, instead of that, are the following:

**1.** ++Use access keys++, if you CI/CD tool supports that.

You generate an SSH key pair, the private SSH key should exist on your CI/CD server, and the public key can be added to each repository's **Access keys** (from the **Repository settings**page).

You can add the public SSH key to as many repos as you want, and this will give your server read-only access to these repos.

You can find more details here:

* <https://support.atlassian.com/bitbucket-cloud/docs/add-access-keys/>

**2.** Another option is to ++use OAuth++, if you CI/CD tool supports that.

You can generate an OAuth consumer from the workspace's Settings, so this is not tied to a specific Bitbucket Cloud account.

You can find more info on OAuth here:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/>

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Using the Bitbucket Cloud APIs it is possible to retrieve the list of watched PR?
Asked by Alessandro Pagiaro:

I want to retrieve a list of watched PR, basically the information shown here - <https://bitbucket.org/dashboard/pullrequests?section=watching> - without iterating over all the repositories and fetching the PR for each of them.

There is this possibility?


Answers:
author: Hana Ku?erov?
body: Hi [@Alessandro Pagiaro](/t5/user/viewprofilepage/user-id/4167407) ,

welcome to the Atlassian Community!

Unfortunately I don't think there is such a possibility.

You would probably need to do some sort of iteration :-(. [This endpoint](https://developer.atlassian.com/bitbucket/api/2/reference/resource/pullrequests/%7Bselected_user%7D) provides pullrequests, but only those, which are authored by the specified user. The other endpoints for pullrequests require workspace \& repository identifiers.


Tags: api

bitbucket-cloud

cloud
Repository is over the size limit (2 GB) and will not accept further additions.
Asked by Gerard Cadenas Montserrat:

Hello,

I am having a problem with the size of my repo. I have upload a large file but now i cannot delete it.. when i delete from my computer and push i have same error

I have tried all i have found in this community, but still not working

My repo is [https://bitbucket.org/k20one/quotes-android/src/master/](https://bitbucket.org/lznet/lz.claims.rep2/src/master/)

Thanks,


Answers:
author: Theodora Boudale
body: Hi Gerard,

When a repo goes over 2 GB, you can follow the steps in the doc that Hana linked, specifically the "Undoing the last push" section, to remove the read-only limitation from the repo.

I went ahead and ran a git gc on this repo and its size went down to 1.5 GB, so you and your team should be able to push now. However, its size is still quite large and it would be a good idea to reduce it further, if possible.

If the increase in size was due to this last commit only with the large file, you can still follow the same steps and reset to the commit before the bad one. Another git gc will be needed after you push that, you can either post here and I can run it, or you can open a support ticket via <https://support.atlassian.com/contact/#/> with priority "Level 1" to get a faster response, if your repo goes again over 2 GB and you are blocked from working.

If you have more large files in the repo that do not need to be versioned, you may want to consider removing them from Git history:

* <https://support.atlassian.com/bitbucket-cloud/docs/maintain-a-git-repository/>

In case you need to version any large files, another option would be to move them to Git LFS:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/>

If you face any issues or have any questions, please feel free to let us know.

Kind regards,  
Theodora


author: Hana Ku?erov?
body: Hi [@Gerard Cadenas Montserrat](/t5/user/viewprofilepage/user-id/1559628) ,

please, see this [article](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/) how to get rid of the commit with the large file. Basically you need to get the remote repository to the state, in which it was before the large commit file.


Tags: bitbucket-cloud

cloud
How to enable swagger in JIRA, confulence, bitbucket etc.
Asked by sunil.dutt:

I want to enable Swagger in My JIRA, JIRA, confulence, bitbucket, bamboo.

\& want to expose API's for client.

is it available to do that, if yes, what are the steps or code to to that.


Answers:
author: seanaty
body: Here is an article about OpenAPI for Jira: <https://blog.developer.atlassian.com/update-to-jira-clouds-swagger-openapi-docs/>

Bitbucket has an OpenAPI spec here. Keep in mind that it's still at version 2 of the spec and it's also been reported to us that automatic code generation doesn't work well for some reasons yet to be fixed. <https://api.bitbucket.org/swagger.json>


author: Hana Ku?erov?
body: Hi [@sunil.dutt](/t5/user/viewprofilepage/user-id/3852160) ,

just to be sure - what you want to do is enable your clients the possibility to get data from your systems (jira, confluence, bitbucket, bamboo) using REST API? What should Swagger help you with? Thank you for the clarification.


Tags: bitbucket-cloud

cloud
build and run docker image within the pipeline
Asked by Wilber Marcel da Silva:

I would like to upload my generated war in a container to be able to test an endpoint of it. So far I can build and rotate the image, but I can't access the resource in any way, it is as follows:

```
...
 services:
- docker
script:
- ls -lia
- chmod 755 Dockerfile
- docker -v
- docker build -t imageteste .
- docker run -d -p 8040:8080 --name ordermanagement -i imageteste
- docker ps
- docker inspect ordermanagement
- docker exec -i ordermanagement sh -c "wget 172.17.0.1:8040/ordermanagement/order/all"
```

I've tried curl to no avail, so I'm using wget. The return is as follows:

    docker exec -i ordermanagement sh -c "wget 172.17.0.1:8040/ordermanagement/order/all"
    Connecting to 172.17.0.1:8040 (172.17.0.1:8040)
    wget: error getting response: Connection reset by peer

The funny thing is that I ran exactly the same commands from my machine's prompt and it returns me the expected that for this resource using GET it would be 405.


Answers:
author: Jason Harrison
body: You may need to query the container IP address. See <https://www.freecodecamp.org/news/how-to-get-a-docker-container-ip-address-explained-with-examples/>


Tags: bitbucket-pipelines

docker
bitbucket and nginx reverse proxy
Asked by jagauthier:

Greetings,

I've followed many of the instructions here, but my BB reverse proxy doesn't seem to work correctly. All of my other (similar) hosts work fine, but BB won't redirect correctly.

```
server {
   server_name bitbucket.domain.here;
   proxy_read_timeout 600s;
   location / {
      proxy_set_header X-Forwarded-Host $host;
      proxy_set_header X-Forwarded-Server $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_pass http://bitbucket:7990;
      proxy_set_header X-Real-IP $remote_addr;
      port_in_redirect off;
      proxy_redirect off;
   }
}
```

In many cases it immediately reverts to http://bitbucket:7990

In some other cases it seemingly works, but clicking in "Bitbucket" logo in the upper left points to "http://bitbucket:7990"

Any help would be appreciated.


Answers:
author: Christian Glockner
body: Hi,

Configuring a reverse proxy also requires some changes on the Bitbucket Server side, including a change of the Base URL in the server settings - did you adjust that accordingly?

What's more, you'll also need to tell Bitbucket Server about the fact that there is a reverse proxy - see <https://confluence.atlassian.com/bitbucketserver/securing-bitbucket-server-behind-nginx-using-ssl-776640112.html> (under Step 1) for the required configuration to be added.

Cheers,  
Christian

Premier Support Engineer

Atlassian

comments: author: jagauthier
body: Thank you! I was missing a few steps.


Tags: bitbucket-server

nginx

reverse-proxy

server
Drush make command suddenly not working
Asked by John Jones:

I've been using the following command for several years and today Pipelines is telling me "bash: drush: command not found".

drush make -y --force-complete --no-gitinfofile --contrib-destination="profiles/ucd_drops" ../build/build-drops-pantheon.make

Am I missing something?

**More info**. Composer is not find drush. New location? Should I change the Path?

```
composer --version ; composer global require drush/drush:8.* ; export PATH=~/composer/vendor/bin:$PATH
```

Got composer to change to Version 1, still can't find drush.


Answers:
author: John Jones
body: edited original post


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Getting 400 from proxy in a custom pipe
Asked by Amit Edelshtein:

I created a custom pipe that creates reports using /report/{reportId} Bitbucket API endpoint. When I am running the pipe container locally with authentication everything works, but when it runs in an actual pipeline with proxy '<http://host.docker.internal:29418>' I get 400 response, and the following is the body of the response:

    <html>
    <head><title>400 Bad Request</title></head>
    <body>
    <center><h1>400 Bad Request</h1></center>
    <hr><center>nginx/1.15.5</center>
    </body>
    </html>

When running with curl, it outputs this error: \`Received HTTP code 400 from proxy after CONNECT\`.

How can I find out what I am doping wrong?


Answers:
author: Amit Edelshtein
body: Found the problem - when working with the proxy, the call to BB API needs to be sent over http, not https ?????


Tags: bitbucket-pipelines

cloud

code-insight

proxy
Backup of Shared/Search
Asked by Scott:

Is the directory Shared/Search needed in a backup of bitbucket? It's very large. It seems like we could restore a backup and rebuild the search index if necessary. But I haven't found anything that made that clear.


Answers:
author: Christian Glockner
body: Hi,

You are correct - the search directory contains the index of the bundled Elasticsearch instance. If that index is lost you can always trigger a reindex and it will be rebuilt from scratch.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Terminate existing Space export
Asked by Karla Espiritu:

I initiated an export pages task in Confluence Cloud and accidentally closed the progress view window.

I tried to initiate an export task once again only to be prompted with the message that an export was running in the background.

Is there any way I can check the progress of this background task?  
How will I be notified to download the prepared zip file once the task is complete?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Karla Espiritu](/t5/user/viewprofilepage/user-id/5138174) and welcome to the community,

Can you please clarify what do you mean by "export pages tasks"? Do you mean that you export a space or certain pages from a space (within this space), or you initiated a cloud backup? For the latter it doesn't matter if you closed the window after starting it. When the backup will be over and you navigate back, you will see the download link which will remain for 14 days.

comments: author: Karla Espiritu
body: Hi Alex, I exported a space.


author: Alex Koxaras _Relational_
body: There isn't a way to check the progress of the task. I suggest to initiate a new export of the space.


author: giacomo
body: You can actually check the status by going here: https://\[your confluence URL\]/wiki/rest/api/longtask


author: giacomo
body: This is explained here: <https://confluence.atlassian.com/confkb/how-to-check-the-long-running-tasks-status-in-confluence-1188419035.html>


Tags: cloud

confluence-cloud

export

space
Sistema arroja mensaje "No podemos invitar a usuarios"
Asked by ieichhorns:

Hola!

Por favor su ayuda para invitar a usuarios, tenemos 400 licencias y a?n as? el sistema arroja el error "No podemos invitar a usuarios".

Soy administradora de la plataforma.

Gracias

![Error Jira Usuario.png](/t5/image/serverpage/image-id/238167iF5F0D040D4CE7A07/image-size/large?v=v2&px=999 "Error Jira Usuario.png")


Answers:
author: Alex Koxaras _Relational_
body: HOla [@ieichhorns](/t5/user/viewprofilepage/user-id/4356106)

Dice que al menos un usuario tiene una cuenta desactivada que debe eliminar de la instancia. ?Puede verificar cu?ntas licencias tiene en uso?

comments: author: ieichhorns
body: Hola Alex, si tenemos 248 licencias utilizadas.

C?mo puedo revisar el usuario con la cuenta desactivada? no he encontrado la opci?n

Gracias


author: Alex Koxaras _Relational_
body: ?? [@ieichhorns](/t5/user/viewprofilepage/user-id/4356106)

Go to cog wheel \> user management. Under users click on the "filters" and choose deactivated

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


author: ieichhorns
body: Hi Alex

I don?t have that option in the Filters, as you can see in the picture below

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


author: ieichhorns
body: Hi [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197)

Please, could you give me options for this issue? i still have the problem.

Many thanks in advance


Tags: cloud

confluence-cloud
Can automation compute an algebraic expression using multiple custom field values?
Asked by Jordon Martig:

Can automation compute a math expression using multiple custom field values and take into account the order of operation? I am attempting to compute the following expression via automation. Each of the terms are custom value fields within the issue.

(Units Consumed \* Actual Unit Price) - (Cost Model Anticipated Units x Actual Price)= Custom Field Value.


Answers:
author: Kian Stack Mumo Systems
body: [@Jordon Martig](/t5/user/viewprofilepage/user-id/5020747), yes, this is possible!   

I would check out [this](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/) documentation, but the general process would look like this -

`{{#=}}({{issue.Units Consumed}} * {issue.Actual Unit Price}}) - ({{issue.Cost Model Anticipated Units}} * {{issue.Actual Price}}){{/}}. `

You would want your trigger to be set to "Field Value Change" and then have the rule listen for the 4 fields in your equation.

comments: author: Jordon Martig
body: Thanks for the info Kian. When I am trying to publish the rule, it is returning the following error: "Error parsing template: Failed to close '=' tag"


author: Jordon Martig
body: ![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/238147i83F98367907368A1/image-size/large?v=v2&px=999 "Capture.JPG")


author: Kian Stack Mumo Systems
body: Ah! My apologies. While I was typing it in I missed a "{".   

It should be this:   
`{{#=}}({{issue.Units Consumed}} * {issue.Actual Unit Price}}) - ({{issue.Cost Model Anticipated Units}} * {{issue.Actual Price}}){{/}}`.   

I'll edit the original answer to include the correct string as well!


author: Jordon Martig
body: that worked. Thank you so much for the help!


Tags: cloud

confluence-cloud
Manual Sync Azure > Confluence
Asked by Felix Wich:

Hello Experts,

when we add New Users to Our Confluence Azure AD Group, it take time (i think over night) thats the User in Atlassian availible.

In the KnowledgeBase [Manage user syncing \| Atlassian Support \| Atlassian Documentation](https://confluence.atlassian.com/enterprise/manage-user-syncing-1141966062.html) I found this site, but i havent the Azure Menu Point in the admin.atlassian site.

Why? How can i sync my Azure to Atlassian?

Best Regard,

Felix Wich


Answers:
author: Charlie Misonne
body: Hi Felix,

Are you an Atlassian Access administrator?

Are you able to see any of the user directory settings in Atlassian Access?

kind regards,

Charlie

comments: author: Felix Wich
body: Hi Charlie,

i dont see any Directory Settings, but iam Logged in with an administrator Account.

The connection ist established and working with our Directory...

Any Ideas? Thanks! Have a Nice day


author: Charlie Misonne
body: A Confluence administrator is not the same as an Atlassian Access administrator.

The Atlassian Access menu structure changed over time so that screenshot might not be up to date.

When you go to <https://admin.atlassian.com/> you should be able to select you site. Then go to **Security** -\> **Identity Providers** (on the left).  
Do you see you Azure AD on that page now?

But for the sync: I think you have to specify when to sync users on the Azure side, not in Atlassian.


author: Felix Wich
body: Hi!

i have Security -\> identity Providers and there is a connection established. But there i dont have any chance to sync now or to change the sync settings :(


author: Charlie Misonne
body: Can you check your Azure AD settings in the Azure portal?

I'm quite sure that the sync interval must be configured on the Azure side.

<https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/scim/aad>


author: Felix Wich
body: I will have a look, but until this time i dont find any configuration in direction atlassian :-( but iam new to azure.

what I find strange is that on the screenshots of Atlassian's guide in the Atlassian Admin Portal, the item "Azure AD Sync" does not exist.


author: eric_gagnon_banq
body: Documentation is confusing and maybe need to be updated. One page refer to a sync setting in <https://admin.atlassian.com/>

(<https://support.atlassian.com/provisioning-users/docs/set-up-sync-settings/>)

This setting is not visible for me.

I did found configuration of sync in Azure in Microsoft documentation before finding this dicussion while looking for "sync setting not visible":

<https://learn.microsoft.com/en-us/entra/identity/saas-apps/atlassian-cloud-provisioning-tutorial>

Bad documentation or bad configuration?


Tags: cloud

confluence-cloud
not visible page which exist
Asked by Anna SUCHODOLSKA:

I\`ve created a page, saved but unfortunately it is not visible on the list of pages created.   
If I try to create new one, says that the name already exist and yes, I can search this page but the roots are....nowhere.

What can I do to find this page and put on place?  

Unfortunately I cant use another name as it is main data storage for the team.

Thanks in advance,

Ania


Answers:
author: Teresa
body: Hi,

When you log into Trello you should find Trello workspace - you'll find all created Boards there. For future you can save this website as fav.

Best regards,

Teresa


author: Jack Brickey
body: Hi [@Anna SUCHODOLSKA](/t5/user/viewprofilepage/user-id/5137934) , was the page Published? If you click on the "Recent" tab on the top menu can you find under any of the areas, e.g. worked on, drafts, etc?


Tags: cloud

confluence-cloud
Add a Header image to a Template?
Asked by aaustin:

Is it possible to add a Header image to a **Template**?

If it isn't possible, may I suggest you put that in queue for development.

Some spaces may have headers related to either the team or space, and being able to add headers to templates would be a positive addition.

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


Answers:
author: Khloe Salmon
body: Hello, I'm testing out Confluence Cloud vs our existing data server version and having templates with headers would be a huge help (trying to add visuals to categorise knowledge).

Does anyone know if a bug was raised for this?

Thanks!

Khloe


author: Summer Hogan
body: Hi [@aaustin](/t5/user/viewprofilepage/user-id/3818738) - the same options should be available on templates, but they are not explicitly shown. You have to hover your mouse over the area above the title for the options to show up. See the screenshot below:  
![2023-02-03_15-56-41.png](https://community.atlassian.com/t5/image/serverpage/image-id/238236i6CE52C0383DF1F25/image-size/large?v=v2&px=999 "2023-02-03_15-56-41.png")

comments: author: aaustin
body: [@Summer Hogan](/t5/user/viewprofilepage/user-id/4193903) ,   
Thanks for taking the time, but that hover menu *isn't* appearing when in editing a ***Template*** .  

In order to get that **Options** menu, you have to be in a **Page** , not in a **Template**.

*** ** * ** ***

1. Either there is a bug in Templates blocking the addition of a header in Templates,
2. OR you were on a *PAGE* and not a *TEMPLATE*.

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

Thank you


author: Summer Hogan
body: [@aaustin](/t5/user/viewprofilepage/user-id/3818738) - sorry for the late reply. I've been out of the office having a surgery for a couple of week. I'm not sure what else you can do except to report a Bug to Atlassian. Customers with a commercial support license can raise a support case with [Atlassian Support](https://support.atlassian.com/).


author: Gareth Williams
body: [@Summer Hogan](/t5/user/viewprofilepage/user-id/4193903)   
I have the same issue. I can add a header image to a page, but not the template that is it based on.


author: Neil Green
body: I have reported as a bug, however I dont know if anyone has heard anything in the intervening 2 months?


author: Faroek Sweet
body: There is a suggestion page open for this "feature". If you can please consider to vote so Atlassian will implement this request: <https://jira.atlassian.com/browse/CONFCLOUD-73414>


Tags: cloud

confluence-cloud
Anchor-links are treated differently than normals links for PDF export and Comala Publishing
Asked by Cystotech Admin:

We have been using both "normal" links to Confluence pages and anchor-links (links to specific headlines on a page).

Both works fine - but when exporting a Confluence space to PDF, anchor-links will take to user to actual web-pages (the actual Confluence space), while normal links, will link the user to another page inside the PDF.

And when using Comala Publishing to move certain documents to another space once approved, will fail when anchor links are used.  
These will still link to the version in the "old space", while normal links will work in the context of the new destination space.

Any insight here?

Thanks


Answers:
author: Sylvain M?nard
body: Same problem here.


Tags: cloud

confluence-cloud