youngmon/atlassian-qna huggingface dataset:
Confluence REST API ( Create Space / Update Space)
Asked by JangChulhee:

Hello,

I'm receiving an unexpected response value.

I expect the error response below :

{  
"statusCode": **400** ,  
"errors": \[  
{  
"message": {  
"translation": "**Space Name Over Max Characters** ",  
"args": \[\]  
}  
}

**Case1)**

. \[PUT\] /rest/api/space/{spaceKey}

. requestBody ( Space name length 200\~250 over)

{  
"name" : "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"  
}

. Response 500

. ResponseBody

{"statusCode": 500,"message": "javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute statement","reason": "Internal Server Error"}

**Case2)**

. \[POST\] /rest/api/space

.requestBody ( Space name length 200\~250 over)

{  
"key":"TEST",  
"name":"BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABB"  
}

. Response 500

. ResponseBody

{"statusCode": 500,"message": "org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only","reason": "Internal Server Error"}


Answers:
author: Shannon S
body: Jang Chulhee,

Welcome to Atlassian Community! It's nice to have you.

According to the error, your space name is too long. I assume that you have already tried to correct this. Can you show us what REST API call you were using? The one in your example is too long but I assume this was not the name of the space you intended.

Regards,

Shannon
Confluence migration from server to cloud
Asked by Nawaaz SOHAWON:

Hi,

Hope you are all doing well.

Quick question:

I am currently looking to move a confluence server to cloud and my current server version is v4.4.3#663-r165197. I found the post detailing the steps for the migration but however the Cloud Migration Assistant for Cloud runs on only versions 5.10.0 or later.

Does Atlassian provide any workaround for such a migration?

Thanks in anticipation.

Nawaaz


Answers:
author: Yoga Reddy {Appfire}
body: Hi [@Nawaaz SOHAWON](/t5/user/viewprofilepage/user-id/1205047)   

Cloud migration assistant for Confluence app is not compatible for confluence server version is 4.0.3.

One option is, you have to upgrade your Confluence from v4.0.3. to v5.10.0 and install the Cloud migration assistant for Confluence app. By using this app  
you can move confluence server to cloud.  

Thanks

Yoga


author: Yoga Reddy {Appfire}
body: Hi [@Nawaaz SOHAWON](/t5/user/viewprofilepage/user-id/1205047)   

I have just verified in the market place.

[Cloud Migration Assistant for Confluence](https://marketplace.atlassian.com/apps/1219672/cloud-migration-assistant-for-confluence) will support from 5.10.0 to 6.15.7 {#toc-hId--1412559764}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please verify and let us know if you need any help.

thanks

Yoga

comments: author: Nawaaz SOHAWON
body: Hi Yoganand,

Thanks for your reply.

However please note that thee current version of server is v4.4.3#663-r165197. As such I believe the Cloud Migration Assistant for Confluence is not applicable.

Regards,

Nawaaz


author: Nawaaz SOHAWON
body: Apologies. The confluence version is 4.0.3


author: Nawaaz SOHAWON
body: any update on the below please?


author: Nawaaz SOHAWON
body: Hello [@Yoga Reddy {Appfire}](/t5/user/viewprofilepage/user-id/676173)

My confluence server version is 4.0.3.

What tool can used to move it to the confluence cloud?

Regards,

Nawaaz


author: Nawaaz SOHAWON
body: Hello,

Anyone can help out on this please?

Regards,

Nawaaz
Enable SSL on Atlassian Stack
Asked by WolfyChris:

We're trying to enable SSL's on our server that has Confluence, JIRA, and bitbucket installed. Each software is on a separate port. When we try to enable the SSL's the AD authentication as well as all of the JIRA gagets break.

Could you please provide documentation on how to apply a SSL to the software.


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

please think about setting up a reverse proxy (Apache HTTPD or nginx) in front of the application servers (Jira, Confluence, Bitbucket) \& terminate the SSL there.

<https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html>

Advantage:

\* SSL setup only once \& much easier than handling with certificate key files

\* More flexible if you need to move a server to another machine or you need a cold standby

Best

JP

comments: author: Mike Rathwell
body: Good call [@JP _AC Bielefeld Leader_](/t5/user/viewprofilepage/user-id/1135065)

I have mine behind an NGINX server (my preference as about 1,936 times easier to get configured right) and it does what you say. Cert changes are simple and quick (only takes seconds to reload the NGINX container when there are new certs rather than bouncing Jira and Confluence).

I configured mine with wildcards so that the same config works for \<app\>.company.com also works for test.\<app\>.company.com so I don't have to make new ones for diffferent operating environments/etc. I also went the route of a parent "snake oil" cert which does tend to hide the applications/services a bit from casual scanning.


author: Mike Rathwell
body: Hi [@WolfyChris](/t5/user/viewprofilepage/user-id/772480)

There isn't a lot to go on in your post but there are rather a lot of things that you need to do to get this going....

* [Jira Config for SSL](https://confluence.atlassian.com/adminjiraserver073/running-jira-applications-over-ssl-or-https-861253906.html)
* [Confluence Config for SSL](https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html)

From these, I *suspect* you're going to need to add the public key for the AD server to your cacerts file to let Jira/Confluence talk to it via SSL and get responses back...

SSL is always a ton of fun. [This article](https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-error-779355358.html) to diagnose SSL connection problems has always been helpful to me as well


Tags: confluence-server

server
Why are the Info, Tip, Note, and Warning boxes not showing up in PDF exports?
Asked by Shirly Tsang:

When exporting a workspace in Confluence, all the Info, Tip, Note, and Warning macros we put in did not render properly. Therefore, the boxes and the icons did not show up correctly in the PDF.


Answers:
author: Daniel Wong
body: Hi Shirly,

What version of Confluence are you running? There is a closed ticket with this exact problem which Atlassian have fixed from Confluence version 6.13.0 and 6.14.2 and up.

Here is the link to the closed ticket for reference - <https://jira.atlassian.com/browse/CONFSERVER-31307>

comments: author: Shirly Tsang
body: Hi Daniel,

Thanks for your response. We are running Confluence 6.15.4 on a server. None of the Note, Warning, or Information macro shows up properly in the PDF output.

Thanks!  
Shirly


author: Daniel Wong
body: That's odd. I just tested a fresh install of Confluence 6.15.4 and my export came out properly rendered.

Do you have any custom css applied to your instance / space?


author: Shirly Tsang
body: We do, but nothing pertain to note, tip, or warning. But, we do use Berkit Theme Press for our style.. Could that be the culprit?

Thanks!  
Shirly


author: Daniel Wong
body: It's possible. If you have a test instance, you could try disabling Brikit to see if it helps with the export. Otherwise, you can always try turning on Safe Mode to see if any other Add Ons are messing with the PDF export output.


Tags: confluence-server

server
How to format previews of attachments
Asked by Jill Fordiani:

I am not sure why this started happening, but when I click on a file that I have uploaded to a Confluence page, the left hand side of the view finder is cut off. For example, I cannot see the full title on the top left side (drop down menu) and I cannot see the the Files tab that is normally in the bottom left hand corner. How can I re-adjust the view so that I can properly preview attachments?


Answers:
author: Ang?lica Luz
body: Hi Jill,

Welcome to Atlassian Community!  
Just for us to better understand and help you with this issue, can you please share a screenshot of what is happening when you click to open an attachment? Just make sure to hide any private information.  
Also, are you the only user facing this issue?  
Have you tested using another browser or incognito window?

Regards,  
Ang?lica


Tags: confluence-cloud
Help with upgrade from 6.5 to 6.15.7
Asked by robert_w1_smith:

I created a staging environment to test this Confluence upgrade.

* OS: Windows 2012 R2
* Windows Installer
* Current Version: 6.5.1
* Upgrade Version: 6.15.7
* This is a staging environment to validate the upgrade

To create the staging environment I installed 6.5.1 on the Windows VM, but did not let it start. I then copied over the Home and Install directories from the production installation (overwriting the install). The PostGRES DB got a copy of the database taken at the same time as the directory backups (while Confluence was shutdown). Starting confluence 6.5.1 after these changes works normally. Files were changed as per: <https://confluence.atlassian.com/doc/create-a-staging-environment-for-upgrading-confluence-866094180.html>

After validating Confluence is working on the staging server I start the 6.15.7 install process. It appears to install successfully, but cannot start the service after the upgrade has completed. Using start-confluence.bat It tells me that neither JAVA_HOME nor JRE_HOME are set. The windows service also did not update to refer to Tomcat 9. I'm not sure where to go here as normally JAVA_HOME or JRE_HOME are set by the installer.

Any help would be appreciated.


Answers:
author: Ismael Jimoh
body: Hi [@robert_w1_smith](/t5/user/viewprofilepage/user-id/1050311)

The error you reported of Java Home not being set most likely means you were originally using the bundled JRE that came confluence.

As this is the error you now have, I'll suggest installing Java on the machine and setting up a Java home in your environment properties.

See here: <https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html>

As for your service that is no longer working, it'll be best to fix the above first and then checking it again. If the issue persists, you may need to reconfigure the service.

comments: author: robert_w1_smith
body: Thank you for the link. That successfully got it to start.


Tags: confluence-server

server

upgrade
How to stop automatic downloads
Asked by Jill Fordiani:

When I go to preview documents that have been uploaded to a Confluence page, they automatically download. I do not want to turn off the ability to download the attached file completely. I want to be able to view the document without it auto-downloading first.


Answers:
author: Ang?lica Luz
body: Hello Jill,

Depending on the filetype and also due to how the browser handles some files, it will be downloaded automatically because it can't preview.  
Just for further clarification, can you please let us know what type of files are being downloaded automatically?  
Is there any macro to list the attachments being used on the page?  
Also, for example, to preview PDFs and MSOffice Word, we can use macro so it will not be necessary to download the file.  
For more details about the attachments you can check the documentation below:  
- [Display files and images](https://confluence.atlassian.com/confcloud/display-files-and-images-724765104.html)

Regards,  
Ang?lica


Tags: confluence-cloud
Using Confluence to create test-script templates
Asked by Scott Brown:

I've read numerous articles and have scoured the forums and have found nothing that specifically deals with my question.

I have been tasked with moving our test cases/scripts from excel into confluence so not only can our customers view see them, but more importantly, so they can be created rather easily and executed for specific customers.

The goal is to have a template(s) for which every scenario would be accounted for and the project manager can pick and choose the functionality they want to see tested and then generate the test script.

For example, Customer A uses 'user roles' for login while customer B uses username/password. Ultimately, after all of the scenarios are entered into a template or child page, the PM can go through and pick and choose the customer-relevant test cases and create a master test for that customer.

Am I asking too much of Confluence?


Answers:
author: Glennis Bohn
body: Test Scenarios can be created in Confluence by feature. As new user stories contain enhancements to the feature, the page should be updated.

A test scenarios page can be used to track QA testing results simply by updating the 6 columns starting with "Input Data."

IMO, this template has the potential of replacing current state use of Excel for documentation. (I have proposed this at my company).

Create a 12-column table with the following column names:

1. ID
2. Test Scenario
3. Test Step
4. User Story Reference
5. Comments
6. Author
7. Input Data as needed
8. Expected Results
9. Pass/Fail
10. Pass Evidence and Comments
11. Test Date
12. Tester

comments: author: Glennis Bohn
body: Column 5 Comments: Collaborative comments by team during internal review of Test Scenarios page


author: Shannon S
body: Hello Scott,

Thank you for contacting us. Happy to help you with this.

The templates in Confluence aren't scripted but are created with our template editor. See [Blueprints and User Created Templates](https://confluence.atlassian.com/confcloud/blueprints-and-user-created-templates-724764985.html#BlueprintsandUserCreatedTemplates-Createyourowntemplatetemplate_types) for more information. You wouldn't really be able to use these to cover every scenario that you might need in Confluence.

It sounds like what you want to do is script something. For your example, I can't really relate it to how Confluence deals with templates.

Can you tell me, how exactly are you planning to create these scripts?

Regards,

Shannon


Tags: confluence-cloud

atl-adm

cloud
Can I have a subset of Jira users use Confluence? Will I be billed only on those subset of users?
Asked by Jon Ferg:

Looking to use Confluence but trying to figure out billing. We would have far more jira users then confluence users and I'm just making sure we'd be billed specific to the users given Confluence permission.


Answers:
author: Darryl St_ Pierre
body: Confluence is licensed separately from Jira, so you would be billed only for users you specifically assign to Confluence.

comments: author: Jon Ferg
body: Thank you!


Tags: confluence-administration

confluence-cloud
Can the sidebar in Confluence be locked?
Asked by Shawn Hollister:

I would like to lock the expandable sidebar so that the navigation tree is always visible to users.  

Is there a way to remove the ability to expand and collapse the sidebar?

<br />

Thank you.


Answers:
author: Kent Pitman
body: We've had a fixed sidebar for a long time and I think I just accidentally upgraded into the new version and there seems to be no way back. It is *incredibly* irritating to have that navigation sidebar pop in and out of its own volition (the UI is for managing it is too trigger-happy) and moreover not to be able to control its size. The fact that the margins are not the same on all the pages is likewise irritating, compounding the situation. I'm very unhappy.
How do you embed the content by label macro in a template?
Asked by Andrew Clifford Hayes:

Trying to create a "Q\&A" template that will use the content by label macro in the bottom to link to related articles. But I can't figure out how to get the macro to auto-populate based on what links are added to the article in the setup wizard when a user selects the template.

I feel like it has to be a combination of using the macro and the variable feature in the template editor, but I haven't been able to figure it out. The troubleshooting and how-to article blueprints use a variable $contentbylabelmacro and I tried adding that in, but it didn't work either. I know I can just put the macro in with the generic Q\&A label to populate other articles of that type, but I also want it to have links to articles labeled with specific product names based on shared label identifiers.

Any ideas?


Answers:
author: Shannon S
body: Hello Andrew,

Welcome to Atlassian Community. It's nice to meet you.

It's not possible to use macros in templates by applying variables. There is a feature request for this currently:

* [CONFSERVER-3324](https://jira.atlassian.com/browse/CONFSERVER-3324) *Support replacement of page template variables in wiki links and macro parameters* (Server)
* [CONFCLOUD-3324](https://jira.atlassian.com/browse/CONFCLOUD-3324) Cloud version of the same request above

Please vote on the request and you will automatically be added to the list of watchers and receive updates on it.

Let us know if you have any questions about this.

Regards,

Shannon

comments: author: Steve Tschacher _US - IFS_
body: This post is over a year old, is it still a current request? I am trying to add a label to my Template so every new space created from it has the label. Am I understanding the feature correctly?


author: Mykenna Cepek
body: Please also consider casting a vote for related request: [CONFCLOUD-38181](https://jira.atlassian.com/browse/CONFCLOUD-38181)


Tags: atlassian-marketplace

confluence-cloud
Renaming 'versions' in a file list
Asked by I.T. NHBB PB:

I've created a file list and am using it store various documents. All of the documents have revision letters associated with them.

Instead of the file list displaying different 'versions' (version 1, version 2, version 3, etc.) is there a way to rename the 'version' to a revision letter (i.e. Revision A, Revision B, Revision C, etc.) so when we look at the history of the document in the file list we can see don't have to paw through each 'version' when trying to locate a specific revision?

Thanks


Answers:
author: Michael Kuhl _Appfire_
body: Hi [@I.T. NHBB PB](/t5/user/viewprofilepage/user-id/3516701) - Confluence doesn't offer custom versions on attachments. I've searched in the Atlassian Marketplace and no app offers that either.

One possible work-around would be to put the alternate revision name in the comment of the attachment. If you want to see the attachment comment in the page via a macro then you can use the Advanced Tables for Confluence app's Attachment Table macro in order to customize the attachment list display to include the comment.

Hope this helps.


Tags: confluence-server

file-list

server
Enforce a path for page template
Asked by Mykhailo Glubokyi:

hello,

We have a set of templates and for some reason people do not save them into correct "folders". Is there a way to enforce a path for newly created page?


Answers:
author: Shannon S
body: Hello Mykhailo,

Happy to help you with your issue.

Confluence has two types of templates. Space templates, which are only available for a specific space, and global templates, which can be used in any space. See [Blueprints and User Created Templates](https://confluence.atlassian.com/confcloud/blueprints-and-user-created-templates-724764985.html#BlueprintsandUserCreatedTemplates-Createyourowntemplatetemplate_types) for more information.

For your issue, as I understand it, you are either having one of these issues:

1. Your users are creating templates for the wrong space, or global instead.
2. Your users are creating pages using these templates and saving them in the wrong space.

Can you clarify which one you mean?

If your users are creating templates from the wrong space, then you will want to correct your users and let them know where exactly they should be saving their templates.

If your users are creating pages from templates in the wrong space, then you will want to make sure the template is not a global template, but a space template. This would ensure the space created from the template goes into the correct space.

Another option would be to use the [Create from Template Macro](https://confluence.atlassian.com/confcloud/create-from-template-macro-724765187.html). This allows you to embed a button on a page that allows a user to create a page from a specific template and will create a directory of pages for you to easily reference later.

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

Regards,

Shannon

comments: author: Mykhailo Glubokyi
body: Dear Shannon,

Thank you so much for your answer. We indeed struggle with users creating pages using templates and saving them in a wrong place. I will try macros, maybe this will help ".


author: Shannon S
body: You're welcome, Mykhailo. Just let me know if you have any other issues or questions and I can help. :)

Regards,

Shannon


Tags: confluence-cloud

atlassian-marketplace

cloud
Notifying watcher when Jira Issue/Filter macro changes its content
Asked by Mike Levin:

Hello.

I have a confluence page with embedded Jira filter. When filter changes (new Jira issues is created) page obliviously does not get updated and watchers are not notified. Any workarounds here? I know we can set subscription for the Jira filter but that has its own limitations, eg, can't send only changes and every time sends the entire list of issues


Answers:
author: Shannon S
body: Hello Mike,

Welcome to Atlassian Community. It's nice to have you.

In order to receive any notifications about changes within Jira, the user needs to be a licensed Jira user. You will need to configure the notifications to be sent on the Jira end.

Have a look at [Creating a Notification Scheme](https://confluence.atlassian.com/adminjiracloud/creating-a-notification-scheme-776636401.html) for more details.

Another way would be for the user to subscribe to the specific search results in Jira. See [Working with Search Results](https://confluence.atlassian.com/jiracorecloud/working-with-search-results-765593781.html).

I hope that clarifies things for you, but do let me know if you have any questions about that.

Regards,

Shannon

comments: author: Mike Levin
body: Thank you, Shannon. We will review


Tags: watcher
HOW TO ALIGN MULTIPLE IMAGES
Asked by Nicholas Wade:

I want a set of images across the page in two rows of 4

The only way I can see to do this is inserting them in a table.

The side effects are:

1. The images go to a default size dictated by the number of cells in the table
2. The table borders cannot be hidden
3. The size of the images in the table seems arbitrary - i.e. first cell small pic rest of the cells larger unless you add additional cells to 'squash' the cells and thus the images.
4. The images cannot be aligned in the cell - they are by default in the center.
5. The table cannot be centered on the page

Anyway found a way around this? The table tool is truly awful.


Answers:
author: Alex Sramek
body: This can apparently now be done (in Confluence Cloud) using Word Wrap.

For each image, click Wrap Left.


Tags: cloud

confluence-cloud