youngmon/atlassian-qna huggingface dataset:
How can we create deployment environment in Bitbucket cloud with curl command using Bitbucket API?
Asked by AbhishekRsv:

Actually we are kind of focusing on automating Bitbucket Repository creation and configuring the bitbucket completely with the Bitbucket API. If the API page contains some example code means it would be helpful. Like how to configure specific APIs and use them.


Answers:
author: Justin Thomas
body: [@AbhishekRsv](/t5/user/viewprofilepage/user-id/4357295) You can use the following REST command to create a deployment environment. The endpoint is not yet documented, I have raised a ticket to add it to the public documentation.

```
curl 'https://api.bitbucket.org/2.0/repositories/<workspace>/<reposlug>/environments/' \
-u <username>:<password> 
-H 'content-type: application/json' \
--data-raw '{"environment_type":{"name":"Test"},"name":"communities","rank":0}' \

```

comments: author: Renan Marasigan
body: Is there also a way to rename an existing deployment environment? Thanks!


author: Laura Camila Bautista Mart?nez
body: Hello [@Justin Thomas](/t5/user/viewprofilepage/user-id/777223)   

How can we create the deployment variables ?


Tags: api

automation

bitbucket-cloud

cloud

curl

deployment

rest-api
Unable to run 32-bit linux application inside Docker containers in Bitbucket pipeline
Asked by hedin_hiervard:

On my host machine the command:

\`\`\`

docker run -it --rm --entrypoint /home/steam/steamcmd/linux32/steamcmd

cm2network/steamcmd

\`\`\`

runs just fine.

On the other hand, a Pipeline step:

\`\`\`yml

- step:

image: cm2network/steamcmd

script:

- /home/steam/steamcmd/linux32/steamcmd

\`\`\`

fails with:

\`\`\`

bash: /home/steam/steamcmd/linux32/steamcmd: cannot execute binary file: Exec format error

\`\`\`

I understand this is a 64/32 bit binary compat issue, but why is it running fine in a Docker container on my host machine and failing on Bitbucket pipeline?


Answers:
author: Zeex
body: did you find a solution?


Tags: bitbucket-cloud

cloud

docker
intermittent SSH hangs at 'expecting SSH2_MSG_KEX_ECDH_REPLY'
Asked by chirvasitua:

I have a Bitbucket repo set up to accept an ssh key from a vps. This has worked just fine so far (as of 2021-04-23), but today has started failing intermittently with the message

```
Connection closed by 104.192.141.1 port 22
```

The result from

```
ssh -Tvv git@bitbucket.org
```

is sometimes successful (which means the key setup is fine), and other times hangs at

```
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
```

for a while before closing the connection.

This only happens on this specific vps; not my home IPs, not my other vps, not my office computer, etc. Additionally, as I write this, Bitbucket [reports](https://bitbucket.status.atlassian.com/) everything's fine.

**Edit:**

Mirroring the repo to github works just fine, so this is not an SSH issue on the machine. It's something specifically to do with the Atlassian servers the repo is hosted on..


Answers:
author: Kobus Myburgh
body: I am, since yesterday, getting this exact error message, and the debug shows the same message as about.

Please delete this. I am unable to do so. This was not meant to be an answer.


Tags: bitbucket-cloud

cloud

ssh
How can I have multiple pipelines per repo
Asked by Srikanth Mamidala:

I have a repo called services which has multiple small services which needs to be separately build and deployed without separating them in to different repos.

Services

x api

y api

z api

If I would like to only build y API with its own pom and only when there is a change in y api folder?


Answers:
author: Justin Thomas
body: [@Srikanth Mamidala](/t5/user/viewprofilepage/user-id/3810057) Have you explored trying [conditional steps](https://bitbucket.org/blog/conditional-steps-and-improvements-to-logs-in-bitbucket-pipelines)?

comments: author: Srikanth Mamidala
body: I have not. I think that might solve my issue.

Awesome.

Thank you


Tags: bitbucket-pipelines
Default variables in deployment steps
Asked by Jason Ausmus:

Hello,

I recently tried to set the \`$BITBUCKET_BRANCH\` default variable for the deployment key in my yaml. I got an error when the pipeline ran stating:

"The environment '$BITBUCKET_BRANCH' in your bitbucket-pipelines.yml doesn't match any environment defined in your settings. Either update your yml, or your settings, to use the same name."

Here's an example of what I'm talking about:

- step: \&terraform_update  
image: name: \<image\>  
name: Update Terraform  
deployment: $BITBUCKET_BRANCH  
script:  
- do stuff

I have deployment variables set for each environment. Do deployment variables override default variables like $BITBUCKET_BRANCH even if they're not overwritten in the deployment variables?


Answers:
author: Justin Thomas
body: [@Jason Ausmus](/t5/user/viewprofilepage/user-id/4364339) Bitbucket Pipelines doesn't support using variables as key for deployment, you will have to statically define the deployment environment.

```
- step: &terraform_update
    image: name: <image>
  name: Update Terraform
  deployment: prod-deploy
  script:
      - do stuff
```


Tags: bitbucket-cloud

bitbucket-pipelines
How to export unit test results from pipeline as an artifact
Asked by ili:

I am running the following command to write the results of the unit test to a file for external reporting.

```
dotnet test projectname?-l:console;Verbosity=Detailed >> test-result.txt
```

The test-result.txt file is generated but it's empty.

It doesn't seem like the -l:console;Verbosity=Detailed is being honored.


Answers:
author: Halyna Berezovska
body: [@ili](/t5/user/viewprofilepage/user-id/3665350) have you tested this locally?

If the file is empty it depends on .NET cli .

I see the separate option for test results folder in dotnet test command

* **`-r|--results-directory <RESULTS_DIR>`**

  The directory where the test results are going to be placed. If the specified directory doesn't exist, it's created. The default is `TestResults` in the directory that contains the project file.

<https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test>

I suspect in test result txt file, you can have either nothing or stdout depending where dotnet writes logs.

But what you want, I guess, is dotnet test ... **`--results-directory`** results

Regards, Galyna

comments: author: ili
body: Yes I tried option but this writes out an abridged html format which is not what I'm looking for. The text results is more in line with what I need but it doesn't behave the same in the pipeline as it does locally. It might be the windows / linux difference.


Tags: bitbucket-pipelines
if i use the "Insert JIRA Issue/Filter" will it update as more issues is created within criteria ?
Asked by Joakim W?ntner:

if i use the "Insert JIRA Issue/Filter" will it update as more issues is created within criteria ?  
cause I want to create a certain list that I send to my publisher that does not get updated if we add more issues..


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Joakim W?ntner](/t5/user/viewprofilepage/user-id/4378432) ,

your filter will retrieve issues based on your criteria in realtime, so yes result will be updated in the future if you will add tickets that match your filter criteria.

if you want a static result please consider the option to use a filter based on issuekey. Something like the following :

```
issuekey in ("ABC-1","ABC-2")
```

Hope this helps,

Fabio

comments: author: Joakim W?ntner
body: Thanks, I did some tests and realized that this was the way.   
what I did was that I did the filter then I copied the result, deleted the macro. and then copied back the copy paste from before which created a table with a list "frozen in time"


Tags: cloud

confluence-cloud
Confluence as a solution for quality management
Asked by Ifat Keren:

Hello community

I would be happy to hear about your experience with using Confluence for quality assurance teams, who need to maintain procedures, distribute documents, track signatures/approvers, nail and track versions, set a unique ID to page and more.

Thanks ahead


Answers:
author: Teodora V
body: Hi [@Ifat Keren](/t5/user/viewprofilepage/user-id/4947239)

You can adopt and polish Confluence to match your needs in many ways. I'm not speaking from the perspective of a QA user, but in the past seven years, I used Confluence for many types of product, project, and team management processes. The common characteristic of all projects was the almost endless planning of the process. Which is unfortunate but always needed.

As with all significant initiatives, the most complex task would be figuring out the workflows, integrations between other Atlassian products, 3rd party apps (if needed), but still, you have the flexibility to engineer and customize your process.

I am curious to hear more feedback on your specific use case from other users (watching this topic!), but I would also highly recommend talking with a solution provider or consultant who can craft the perfect project flow for your company.

comments: author: Ifat Keren
body: Will keep you posted :) thanks!


Tags: cloud

confluence-cloud
Unable to download confluence page as pdf via API call
Asked by Ayush Sharma:

I am unable to download confluence page as pdf via API call. I am using the API token that I generated, I can not use username and password as in my org we have SAML auth to login.  

I have looked on stackoverflow and previous community discussions such as [this](https://community.atlassian.com/t5/Confluence-questions/Export-page-to-pdf-using-rest-call/qaq-p/1085529).  

But none of these seem to work for me. How shall I go about it?


Answers:
author: Brant Schroeder
body: [@Ayush Sharma](/t5/user/viewprofilepage/user-id/3808844) Are you using the cloud settings and they python library as explained in the page you referenced? Are you authenticating properly <https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#authentication>


Tags: cloud

confluence-cloud
Requesting Legacy Editor
Asked by Dush:

Hello Atlassian Team,

Could you please enable the legacy editor for my confluence cloud instance ?

Thank you.


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

This is not the Atlassian's support. but its community. This means that most of the people here do not work for Atlassian. With that said, please take a look at this article <https://community.atlassian.com/t5/Confluence-questions/Switch-back-to-Legacy-Editor/qaq-p/1616280>

comments: author: Alex Koxaras _Relational_
body: But also read this one as well <https://community.atlassian.com/t5/Confluence-questions/I-have-the-new-editor-is-it-possible-to-have-the-legacy-editor/qaq-p/1372761>


author: Dush
body: Hi [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) , Thanks for the information.

Currently I'm using confluence free cloud instance. As per my understanding of the above articles, free plan admins need to ask support from the community.

Hoping Community Support team will help on this.


author: Alex Koxaras _Relational_
body: Community (we) can't activate anything on your instance unfortunately.


author: Shannon S
body: Hi [@Dush](/t5/user/viewprofilepage/user-id/5185522),

Thanks to Alex for flagging this. I raised a support ticket in your name to add the legacy editor template to your site.

Someone from cloud support will contact you shortly!

Take care,

Shannon \| Atlassian Community support


author: Dush
body: Hi [@Shannon S](/t5/user/viewprofilepage/user-id/510046), Thanks for the support.


Tags: cloud

confluence-cloud

editor
SSL Cert was applied to JIRA but how do I apply to Confluence?
Asked by Fred Tabangcura:

Confluence is reporting the following error after a SSL Cert renewal: {#toc-hId--470539421}
-------------------------------------------------------------------------------------------

The remote certificate can\&#39;t be trusted {#toc-hId-2016973412}
------------------------------------------------------------------

[Confluence](https://stanbhrs.org/confluence/admin/listapplicationlinks.action) may be using a self-signed SSL certificate or a certificate that was issued by a certificate authority that isn't known locally.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Fred Tabangcura](/t5/user/viewprofilepage/user-id/5185382) ,

this is probably due to the fact that you did not import certificate into JVM. Please take a look to the following article <https://confluence.atlassian.com/kb/how-to-import-a-public-ssl-certificate-into-a-jvm-867025849.html>

Hope this helps,

Fabio

comments: author: Fred Tabangcura
body: Hi Fabio,

Yes, thank you that was the issue. I needed to pull the crt file into the keystore. Once I did that, I rebooted the machine and all is well.

Thank you


author: Fabio Racobaldo _Herzum_
body: you're welcome [@Fred Tabangcura](/t5/user/viewprofilepage/user-id/5185382)


Tags: confluence-server

server
Create page with all confluence articles Outdated
Asked by Luana Premoli:

Hey guys..

We currently have a lot of outdated materials in our confluence, and I need to create a Dashboard with all these outdated articles.

Taking into account the following requirements:

- an automated control panel;  
- List all articles in a space from oldest to newest  
- Show the name of the article, link, date of creation and date of last update.  
As impediments:

- We cannot buy a ready-made tool on marktplace

<br />

Confluence license information  
Confluence 7.13.9  
Does anyone have an idea to help me?

Thanks.

======================================================  

Ola Pessoal..

Atualmente temos muitos materiais desatualizados em nosso confluence, e preciso criar um Dashboard onde conste todos esses artigos desatualizados.  

Levando em considera??o os seguintes requisitos:

- um painel de controle automatizado;  
- Liste todos os artigos de um space do mais antigo para o mais novo  
- Seja mostrado o nome do artigo, link, data de cria??o e data de ultima atualiza??o.

Sendo os impeditivos:

- N?o podemos comprar uma ferramenta pronta no marktplace

<br />

Informa??o sobre a licen?a do Confluence  
Confluence 7.13.9

Alguem tem uma ideia para me ajudar?  

Obrigada.


Answers:
author: Aron Gombas _Midori_
body: I don't know about any app that will satisfy all your requirements, unfortunately.

**Manual approach**

If the "automated control panel" (whatever it means) isn't a strong requirement, then you could:

1. Collect these page lists running CQL queries against Confluence
2. Exporting the resulted rows to CSV
3. Import the CSV to Excel
4. Create reports in Excel

**Convenient approach**

If you want a real automated mechanism for this, then our [Better Content Archiving app](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=datacenter&tab=overview) was developed for use cases like yours.

It provides an online report like this, for example:

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

*(Discl. it is a paid and supported app developed by our team.)*


Tags: confluence-server

server
Power BI Desktop vs Power Bi Service
Asked by Jira Brayco:

Hi.

I create a model in Power BI Desktop and connect Data Origen with the user an API Token.

However when I publish the model in the Power BI Service the model does not update from there.

I have this message

Error de procesamiento: Information is needed in order to combine data  
URI de cl?ster: WABI-PAAS-1-SCUS-redirect.analysis.windows.net  
Identificador de actividad: e6dbd0dc-f06b-44f3-9961-95cd6f36f15e  
Identificador de la solicitud: 531c0b6a-4c17-3fca-0ea0-eae57e461a86  
Hora: 2023-03-31 20:38:49Z


Answers:
author: Brant Schroeder
body: [@Jira Brayco](/t5/user/viewprofilepage/user-id/5131746) Were you able to find a solution to this? Was it because your desktop was able to access a data source that the service was not able to due to firewall rules?


Tags: cloud

confluence-cloud

jira-software

power-bi
Can I push a Slack thread or question to Confluence Question?
Asked by Bohdan Hutkovskyy:

This is an old request so I am trying to find out if any updates have been made.

Often interesting conversations arise on Slack which my team would like to capture in Confluence, either as a question w/ answer or as a FAQ page which can be reviewed and edited later.

I know it is possible to have Confluence information show up in Slack; is there any way to move information in the other direction?


Answers:
author: Vikrant Yadav
body: Hi [@Bohdan Hutkovskyy](/t5/user/viewprofilepage/user-id/1365276) Kindly check official document for integrating Slack with Confluence.

<https://support.atlassian.com/confluence-cloud/docs/use-slack-and-confluence-together/>

Thanks,

Vikrant Yadav

comments: author: Bohdan Hutkovskyy
body: I do not see there anything in regards to being able to post questions to confluence from slack.

I was referencing this earlier post here: [https://community.atlassian.com/t5/Confluence-questions/Can-I-push-a-Slack-thread-to-Confluence-Question/qaq-p/1099291#:\~:text=There%20is%20currently%20no%20available,Slack%20Notification%20for%20Confluence%20Question](https://community.atlassian.com/t5/Confluence-questions/Can-I-push-a-Slack-thread-to-Confluence-Question/qaq-p/1099291#:~:text=There%20is%20currently%20no%20available,Slack%20Notification%20for%20Confluence%20Question)  

and I see there was a feature request opened here: <https://jira.atlassian.com/browse/CONFCLOUD-62535>

do you know if it was ever implemented?

Thanks!


author: Vikrant Yadav
body: [@Bohdan Hutkovskyy](/t5/user/viewprofilepage/user-id/1365276) I never tried it before.

You can try to send data in Confluence using REST API. Create App in Slack which send API request to confluence.

Or you can try to get Slack Conversation in MS Power Automation using Slack API and send API request to Confluence.


author: Bohdan Hutkovskyy
body: Gotcha. I was looking for a more complete confluence integration that we could do this via /confluence commands directly from the integration, similarly like we can create and comment on Jira tickets. Is it on a roadmap to implement at some point?


Tags: cloud

questions-for-confluence
How can we sync Jira Roadmap into GitHub as A GitHub Roadmap?
Asked by Richard Barrett:

I want to sync my Jira Roadmap into GitHub Roadmap. How can I accomplish this from an automated aspect?


Answers:
author: Riley Venable
body: Unfortunately, it is not currently possible to sync a Jira Roadmap into GitHub as a GitHub Roadmap. The Jira Roadmap macro is designed to work specifically with Confluence Cloud pages. However, Jira Cloud does offer integrations with GitHub, including the ability to create branches, commits, and pull requests directly from Jira issues.


Tags: cloud

confluence-cloud
Sitting and spinning when hitting the edit button, connecting
Asked by Gregory Muir:

Seeing completely inconsistent behavior here.

1. One page, user can't edit, sits and spins. Was working yesterday. I try to edit, sits and spins.

2. User has second page, can edit. I go in to edit, sits and spins.

3. All of us can edit spaces in other locations. Looks like this may be tied to comments. These are pages used to track orders and generate a ton of comments. Performance lags at that point but had never prevented editing before.

I've seen some posts about how to resolve this on server but we don't have that access level. Submitted a ticket but haven't heard anything yet.


Answers:
author: Riley Venable
body: Based on the provided context, as an Atlassian Expert, here are some steps and suggestions that might help resolve the issue you're experiencing:   

1. Check if you have the necessary permissions to edit the pages in question. As mentioned above, space administrators can edit comments, but it's not clear if you have the necessary permissions to edit the pages themselves.   

2. If the issue is related to comments, you can try temporarily disabling comments on the affected pages and see if that resolves the issue. Space administrators can remove the 'Add Comments' permission from the 'confluence-users' or 'users' groups, as well as anonymous users and all other users and groups.   

3. It's also possible that the performance lag caused by the high volume of comments is preventing editing. In this case, you can try archiving some of the older comments to see if that improves the page's performance.   

4. If none of the above steps help, and you've already submitted a support ticket, you might have to wait for a response from Atlassian support. In the meantime, you can try reaching out to the Atlassian community for help or posting on the Atlassian community forums.


Tags: cloud

confluence-cloud
Can you restrict the Labels to a subset of approved labels?
Asked by Alan Thomas Begley:

My boss is concerned that the use of labels would get out of control. He wants to know if you can set a list of approved labels to keep things clean?


Answers:
author: Alan Thomas Begley
body: I found the answer in related Community Content !

comments: author: Mark Rutz
body: Can you provide a link to the answer you found?


Tags: cloud

confluence-cloud

label
Help to transfer server licence to data center licence
Asked by Flore IGNACE:

could you give me the process to transfer server licence to data center licence in confluence ?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Flore IGNACE](/t5/user/viewprofilepage/user-id/5185007) ,

you need to update license in your current server instance and, in the same time, setup your infrastructure to data center using link provided by [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) .

Fabio


author: Dave Mathijs
body: Hi [@Flore IGNACE](/t5/user/viewprofilepage/user-id/5185007) welcome to the Atlassian Community!

I noticed that you posted this question with deployment type 'Cloud'.

Are you asking this question because you are still on Server and need Data Center as intermediate step to make the migration to Cloud?

You cannot "transfer" a license from Server to Data Center.

I suggest to read the documentation article [Upgrade from Confluence Server to to Data Center](https://confluence.atlassian.com/doc/upgrade-from-confluence-server-to-data-center-203651.html) for more information.

comments: author: Nic Brough -Adaptavist-
body: Server and DC are highly compatible though - you can buy a new DC licence, and apply it to your server, and have a single-node DC, without even restarting it.

I always recommend that you build dedicated nodes properly, but applying a DC licence does work fine, and I've had no problems flipping one of my dev box between Server and DC when I need it. Note that you will need to do the same for installed apps.

If you do so, Atlassian may offset some of the cost with what remains of your current server licence.


Tags: cloud

confluence-cloud
How to export a page containing embedded Atlas links?
Asked by Maximiliano Suarez:

I have created a Confluence page with multiple Atlas links which have been added as URLs and converted to "smart" links, which is great.

In Confluence I get to see the details of the Atlas information as expected.

However, when I export the Confluence page as either PDF or Word, all links to Atlas are exported as URLs and this is not what I need.

The export is expected to show the same information as the page, and not just a link.

Is there any way to get the page export to include the embedded content in the Atlas links?


Answers:
author: Dave Mathijs
body: Hi [@Maximiliano Suarez](/t5/user/viewprofilepage/user-id/5184872) welcome to the Atlassian Community!

Please watch and vote for [CONFCLOUD-74502](https://jira.atlassian.com/browse/CONFCLOUD-74052)

comments: author: Maximiliano Suarez
body: Hi Dave, thank you for your prompt answer and reference. I'll take an eye on this report.


Tags: atlas

cloud

confluence-cloud