youngmon/atlassian-qna huggingface dataset:
How can i deploy an artifact manually to whichever environment I choose.
Asked by Website Admin:

I am currently migrating from Bamboo server to Bitbucket Cloud with pipelines. It appears that I need to write the deployment process into my pipeline. What I am hoping to do is replicate the current setup I have now in Bamboo server.

When I commit my code, the build runs and produces an artifact. (A zip file containing my php website)

I can then deploy that artifact to my test, staging, and production environments using the deploy feature on Bamboo. I can deploy at whatever time I choose after the artifact is done. Can anyone explain how I can achieve this in bitbucket pipelines?


Answers:
author: Caroline R
body: Hi, [@Website Admin](/t5/user/viewprofilepage/user-id/756082)!

First, I would like to share with you that Bitbucket Pipelines uses YAML, if you're not familiar with it you can check this doc:

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

It has info on keywords used in the yml file, the structure and examples of yml files.

Answering your question about deploying an artifact manually to whichever environment you choose, you can first include in your yml file one step that does the build and generates the artifact. You'll need to define in the yml file as per this doc.:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/>

Then, you can configure 3 deployment environments in your repo:

* [Set up and monitor deployments](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-deployments/)

And add 3 respective deployments steps in the yml file, with **trigger: manual** (the example in the above doc. also has some deployment steps with trigger: manual) so you can run them manually later.

A note for manual steps from our doc:

    Manual steps:It can only be executed in the order that they are configured. You cannot skip a manual step.It can only be executed if the previous step has successfully completed.

Now, if you would like some info on how to deploy from Pipelines:

If you're deploying to your own server, you can take a look at some of the pipes we have here:

* <https://bitbucket.org/product/features/pipelines/integrations>

E.g. you could set up SSH and use either of these pipes:

* <https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/scp-deploy>
* <https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/rsync-deploy>

If you want to use FTP you could use this pipe:

* <https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/ftp-deploy>

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Website Admin
body: Thank you for the detailed comment. I will get back to you once implemented


Tags: bitbucket-cloud

cloud
Running svn checkout command in bitbucket pipeline
Asked by Sanju Ammu:

Dear All,

I'm new to bitbucket pipeline. Can we run svn checkout command in bitbucket pipeline step?

Regards

Sanju


Answers:
author: Caroline R
body: Hi, [@Sanju Ammu](/t5/user/viewprofilepage/user-id/2456640)!

You can run svn checkout command in the Bitbucket pipeline step. You just need to make sure you have installed the SVN client before running this. You can run the following commands to install SVN:

    apt-get updateapt-get install -y subversion

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Sanju Ammu
body: Thank you, this helped.


Tags: bitbucket-pipelines
My username changed how can i get my account back?
Asked by Yusuf Temiz:

When I login my account today i saw empty repository.

Then after some check i figured out that my username is changed with my password. So I cannot reach my repositories. I tried to rename my username but i couldnt achieve because it says this username already used.

I dont know is my account hacked or is this a system failure. The strange thing is i didnt get informed about my username changed. By the way i can login to the system using my email and password. But i cannot get my repositories.

What should i do now to get back my repositories?

Thanks.![ss_2021-07-08_23_42_04.png](/t5/image/serverpage/image-id/150636iA4EFE70324BBC3CE/image-size/large?v=v2&px=999 "ss_2021-07-08_23_42_04.png")


Answers:
author: Caroline R
body: Hi, [@Yusuf Temiz](/t5/user/viewprofilepage/user-id/4470464)! Welcome to the community!

I confirmed that the account associated with the email you used to create this question is linked to a Bitbucket account that is empty (has no repositories).

However, there is another Bitbucket account linked to the username you shared with us (I removed this information from your answer for security reasons) that has repositories, but this one is associated with another email.

So, I suggest you try logging in to <https://bitbucket.org/> with any of the emails you may have used for this account. If you don't remember the password linked to this account, you can use the following link to reset it:

* <https://bitbucket.org/account/password/reset/>

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How to download artifacts as ZIP?
Asked by Artem Trofimov:

Now I can download as tar.gz, but I want zip archive. How to do it?


Answers:
author: Theodora Boudale
body: Hi Artem and welcome to the community.

I believe that this is not possible at the moment. I see that you have opened a feature request about this in our issue tracker:

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

When there is an update, one of our products managers or developers will post in that public feature request.

Please keep in mind that we don't provide ETAs and implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: artefact

bitbucket-pipelines
Website fora do ar
Asked by Romualdo Viana:

o website <https://bitbucket.org/> est? fora do ar


Answers:
author: Andre Baceti
body: Estou com o mesmo problema, d? que o site n?o est? sendo encontrado. Um dos nossos colaboradores consegue acessar e outros n?o. Parece que ? um problema de DNS ou algo do tipo

comments: author: Romualdo Viana
body: Aqui nenhum dos colaboradores teve sorte, todo o trabalho est? parado por conta disso, e na p?gina de status do bitbucket diz que est? tudo operacional


author: Andre Baceti
body: Fiz uns testes parace que qq p?gina .org n?o est? dando para ser acessada!

<https://support.mozilla.org/>  
<https://www.postgresql.org/>  
<https://www.fapesp.org/>  
<http://registro.org/>


author: Romualdo Viana
body: Achei mais alguns que est?o fora do ar com o mesmo final .org, acredito que s? nos resta esperar pra ver eles solucionarem isso, enquanto isso o jeito ? buscar alternativas pra solucionar isso do jeito que pudermos


author: Andre Baceti
body: Estou quase usando o tor para tentar acessar o sites...


author: Romualdo Viana
body: o tor fica em um dom?nio .org tamb?m (s? pra ajudar)


author: Romualdo Viana
body: Ativei a VPN e coloquei como se estivesse nos EUA, o site voltou e as func?es de GIT tamb?m


author: Andre Baceti
body: Acho que era problema no DNS da Vivo, voltou a funcionar para mim
Is there a way to create postmortem action items in confluence into jira tickets?
Asked by 116_Tarushi Bhandari:

As we all know we capture several action items inside the postmortem confluence page. If we could convert those action items into jira tickets and link them under the main incident jira ticket then it would be really easy to follow up on action-item tasks. But how to automate this?


Answers:
author: G subramanyam
body: Hi [@116_Tarushi Bhandari](/t5/user/viewprofilepage/user-id/5209317) welcome to the Atlassian community.

It's like the retrospective action items. You may list the action items on the Confluence page and insert (or create) Jira tickets for each item. You can make use of "Retrospective template" on your Confluence site that gives pre-built structure and format.


Tags: cloud
How to see search history for all app users?
Asked by Rafa? ?ydek:

Case:

We as administrators want to see search history for all users, to improve search process.

Possible resolution (?):

1) DB query if confluence somewhere store search phrases for user search,

2) Some plugins?

To be honest in my option the first option will be the best. But I have now lack of knowledge about tables if they are any with that history. Maybe is it possible to turn on some extra logging level to see search query phrases from users? Or creating a groovy trigger to achieve that?   

Any help will be beneficial. Thnx in advance.


Answers:
author: Nicolai Sibler
body: We use the Viewtracker plugin, which outputs statistics about search terms in a defined period. (The earliest time is the date of installation of the plugin).

![grafik.png](https://community.atlassian.com/t5/image/serverpage/image-id/254994i7800C4610F9ED76A/image-size/large?v=v2&px=999 "grafik.png")  
It's possible that there are plugins that fulfill your requirement in a more targeted way - the main task of Viewtracker is to count visits, edits and interactions.

Kind regards,

Nicolai


author: Nic Brough -Adaptavist-
body: Confluence doesn't store or log searches, so there's no way to do this.


Tags: confluence-data-center

server
How to change file location of space export from Confluence Cloud
Asked by Allan Bennett:

I'm trying to export a Confluence space from a Cloud instance. The total file size is \>250GB, so I cannot download to the default file location on my C drive. How do I change the location that the file downloads to when clicking to download after export completes?


Answers:
author: Rabia S_
body: Hi,

I understand to you want to change default download folder. You should to change your browser's default.

e.g. If you use Google Chrome;

[https://support.google.com/chrome/answer/95759?hl=en\&co=GENIE.Platform%3DDesktop#zippy=%2Cchange-download-locations](https://support.google.com/chrome/answer/95759?hl=en&co=GENIE.Platform%3DDesktop#zippy=%2Cchange-download-locations)

Is it helps to you?

comments: author: Allan Bennett
body: Thanks Rabia, this worked for me!


Tags: cloud

confluence-cloud
How to restrict a specific group from being added to a space in Confluence or how to make a specific
Asked by seungjai Lee:

Is there a way to restrict certain groups from being added to a space in Confluence? If not, is there a way to allow only users belonging to the confluence-administrator (confluence admin) group to search for a specific group when searching for a group when giving permission to a group in space?


Answers:
author: Radek Dost?l
body: From what I remember it's a plain text form POST, you don't need the UI to "search", it's just there to suggest plain text values but you don't need it to add any data/objects to the POST itself so long as you enter the username/groupname.

Ergo either, you would need to tinker with the page in javascript, to sort of prevent non-technical users from entering "forbidden" content, or to allow only specific users to do so. Not so trivial unless you're good in js. And, js will not stop technical users, although it will stop vast majority of them.

To make it fireproof, you'd need to tinker with it from the server, reverse proxy may be one place where to filter out the requests and stop them (but that is really questionable and I doubt it would work any good, I can think of a few technical limitations).

Better would be to write a very small plugin which would implement a [servlet filter](https://developer.atlassian.com/server/confluence/servlet-filter-module/), to stand in front of the POST endpoint - thus it can reliably stop the request IF the form content is forbidden, since you can actually read the data, determine if it contains any forbidden groups, and you can also do server-side permission validations whether the current user is a global administrator or not.


Tags: confluence-server

server
Extract list of users who are part of "Confluence-user" group
Asked by Karthick Kumar M:

Hi,

Is it possible to extract the list of users who are part of "Confluence-user" group with a groovy script that can be ran in script runner? If anyone has any script or any other workaround for this use case it would be helpful. We are doing this activity manually every week and we are spending around 2 hrs, any help would be appreciated.

Regards,

Karthick


Answers:
author: Radek Dost?l
body: The most bare bones approach would be this

```
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.user.Group
import com.atlassian.user.GroupManager

GroupManager groupManager = ComponentLocator.getComponent(GroupManager)
Group group = groupManager.getGroup("confluence-users")

final StringBuilder stringBuilder = new StringBuilder()
final String LF = "<br>"

for (String username : groupManager.getMemberNames(group)) {
    stringBuilder.append(username).append(LF)
}

return stringBuilder.toString()
```

comments: author: Karthick Kumar M
body: Thanks! it works perfectly...


Tags: confluence-server

server
How Do I Validate a Composite Key Before the Submit is Executed?
Asked by Kathleen Janiszewski:

I've create a ConfiForm Rule fore Field Definition. I've already created a composite key called "uniqueId" which consists of CONCAT("\[entry.recordOwner\]","\[entry.userType\]").

When I try to "Validate uniqueness" on this field, it will give an error message if the recordOwner (userId) is in there. It seems to not make any distinction for the composite key.  

I need this because each user can have an entry of each of 2 types.

What am I doing incorrectly?

![Validate Uniqueness of Unique Id - Part 1.PNG](/t5/image/serverpage/image-id/254744i58CC4D3336F3DE11/image-size/large?v=v2&px=999 "Validate Uniqueness of Unique Id - Part 1.PNG")![Validate Uniqueness of Unique Id.PNG](/t5/image/serverpage/image-id/254743iE42A86785AA0A5DE/image-size/large?v=v2&px=999 "Validate Uniqueness of Unique Id.PNG")


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Kathleen Janiszewski](/t5/user/viewprofilepage/user-id/5163300)

The parameter "Field names to be used to construct unique key" expects a comma separated list of field names (you must be using some old version of ConfiForms where the description of the field was still missing - sorry about that)

So just put

```
recordOwner,userType
```

No need for any extra field or any other parameters in this macro

Alex

comments: author: Kathleen Janiszewski
body: Alex,

Thank you for your reply. It turned out not to be this complicated. I only needed a Validation Rule of \[unique\] on my field, uniqueId.

Thank you.

-Kathleen


author: Alex Medved _ConfiForms_
body: That is an alternative way of doing this, but the Validate uniqueness rule is even easier in my opinion... but that is for you to decide and pick what is best for you


Tags: confiforms

confluence-server

server
How to track time to first response comments and inline comments
Asked by Michelle Tan:

Is there a way to track time to first response for Confluence page comments and inline comments within a specific space? I want to measure feedback resolution time. Thank you!


Answers:
author: Ivan Lima
body: Hello and welcome to the Atlassian Community!

Based on my understanding, it seems like you're currently gathering feedback on Confluence pages through comments or inline comments. Although I haven't had the chance to experiment with Confluence automation yet, I did come across some documentation that suggests you can set up a trigger to capture comments. However, it's important to note that you may need to create certain conditions to ensure it's the first comment and use smart values to calculate the time difference between the comment and page creation. While I haven't tried this out myself, it's definitely worth exploring.

If you're already familiar with Automation for Jira, I recommend checking out the Automation for Confluence documentation to see how you can implement this. For your convenience, I've included a link to the documentation below.

<https://support.atlassian.com/confluence-cloud/docs/what-is-confluence-automation/>

comments: author: Michelle Tan
body: Thanks, Ivan! I'm not looking to track when the first comment to a page was made, but rather when the time from when a comment was made to when it was answered or resolved (for inline comments). Would this automation still apply or is there another way to track this feedback resolution time? Thank you!


author: Ivan Lima
body: Partially, yes. When capturing page comments and inline comments in Confluence automation, they are recorded as a single comment event. There's a smart value that allows you to retrieve the date/time of the comment, which you can use to create logic around it. However, I'm not certain if it's possible to capture when an inline comment is resolved.

Regarding feedback gathering, I think you should use a more structured approach, especially if you need to report on time. Inline comments aren't intended for that purpose, so it might be a good idea to explore other options. If you're interested in more robust automation choices, you might want to check out some of the [marketplace apps](https://marketplace.atlassian.com/search?category=Admin%20tools&hosting=cloud&product=confluence). For example, some of them, like ScriptRunner, will provide you with more autonomy since you can create scripts and code it.


Tags: cloud

confluence-cloud
Looking for most affective way to scale horizontally
Asked by Isaac Israel:

Trying to scale horizontally. The URL does resolve it ask for the registration that was already completed for the first pod then I get redirected back to the same page.. How do I resolve this issue


Answers:
author: Brant Schroeder
body: [@Isaac Israel](/t5/user/viewprofilepage/user-id/5208553) Welcome to the Atlassian community

Can you please provide a little more information about what you are trying to do? Can you share screenshots?

comments: author: Isaac Israel
body: So this is the error i'm receiving.   

java.lang.IllegalStateException: Spring Application context has not been set

Spring Application context has not been set


Tags: confluence-server

server
Creating multiple buttons on a page to switch between preset text formats.
Asked by Nicholas:

Hello, I am looking for a macro or a way to create a button that when you click it goes to those preselected text format settings. This would also include color.

Example

*Button 1*

#### ++Button 2++ {#toc-hId-233262894}

**Button 3** {#toc-hId-2019711149}
----------------------------------

If I click on a button it switches to those text settings, so it is not required to do it manually. This would be at the top of a page where there are many different formats.

Is there anyway to do this?

The closest I have found is "Format Painter for Confluence" but it still requires you to manually highlight what you want to change.


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

I'm not aware of such a macro or an app. And I think that it's going to be difficult to be placed on Confluence toolbar. The available modules in Forge at least, to place your app is on specific locations, and the toolbar is not an option <https://developer.atlassian.com/platform/forge/manifest-reference/modules/index-confluence/>

You could easily use the keyboard shortcuts to immediately give your text one of the preset headings, but not its color:

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

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

Read more about them here <https://support.atlassian.com/confluence-cloud/docs/keyboard-shortcuts-markdown-and-autocomplete/>

comments: author: Nicholas
body: Best solution I have found so far is to add a legend to all my templates and have people copy and paste what they need where.


Tags: cloud

confluence-cloud

format
Confluence Data Center Setup two nodes on single server
Asked by jaggayya_allamsetty:

We have two server (Ex. Server-1 and Server-2) and currently Confluence singe server software is running on Server-1 and it is working as expected.

Now planning to upgrade server license to Data Center version and planning to setup software on cluster environment on existing servers (i.e. Server-1 and Server-2)

Here is two option which we are looking feasibility to setup and need help/suggestion in this regards.

1) Single server confluence software is running on Server-1 and my questions is can we configure data center version by creating separate node on Server-1 without distrusting single confluence software configuration. It means, after installing data center still the single server confluence should work as expected. Mean, is possible to run both Data Center version and server license on single server.

2) Other option, can we configure two nodes on same server i.e. Server-2 to install the confluence data center software on both node and then accordingly setup load balancer.

Our intention is not to procure new server due to limitation on data center for this year.

Please suggest both option is validate if not, suggest best option in this regards.


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Yes, you can run two instances on a single server.

It's pointless doing so though, you are completely defeating every benefit of having a data-center cluster.

Also, if you are planning to migrate from Server to Data Center, and only run one node, then you don't need a new install, you can apply your DC licences to the Server installation and it'll become a DC node. You don't even need to restart it. (If you are planning to create a cluster with more nodes, then I strongly recommend that you do a proper migration - create a new DC install on a new server and migrate to that, then if you want to reuse the old server as a node, remove the Server install and create the second node on it)


Tags: confluence-server

data-center

server
How do you create a page 'full-width' with api/v2/pages POST?
Asked by SiDawg:

I've seen posts about "'metadata': { 'properties': { 'content-appearance-draft': { 'value': 'full-width' }, 'content-appearance-published': { 'value': 'full-width' } }" but I think this only relates to deprecated Content API

I also see users can set the default to "full width" on creating new pages... and this ALMOST works: when i create manually it works, but when i create with API it is still initially "small", but when i edit it it automatically goes to full width... assumedly the "draft" behind it is being set to full width but not the published version? With 6000 pages to create this isn't really an option


Answers:
author: Matteo Ferrari
body: Maybe it is too late, anyway I was able to apply full-width by POST on:

*[https://sitti.atlassian.net/wiki/api/v2/pages/\[PAGE-ID}/properties](https://sitti.atlassian.net/wiki/api/v2/pages/[PAGE-ID}/properties)*

with body:

*{*  
*"key": "content-appearance-published",*  
*"value": "full-width"*  
*}*

comments: author: SiDawg
body: Thanks Matteo ill give that a try next time


author: Stefan Draber
body: awesome, thanks a million [@Matteo Ferrari](/t5/user/viewprofilepage/user-id/5394403) - I was desperately searching for this solution for days!


author: SiDawg
body: Anyone?


author: Wortho
body: +1 I'm looking for the same answer


Tags: cloud

confluence-cloud

rest-api