youngmon/atlassian-qna huggingface dataset:
How to migrate from 4.1 on shared tomcat to standard 6.5 installation
Asked by Reinhold Rechberger:

I have my own server running confluence v4.1 in in shared tomcat6 environment.

Now I want to upgrade to the latest confluence (v6.5) - the Problem is: the old server runs in an shared tomcat6 container and I don't want this for the new version.

So I want a fresh installation of the new version (with its own app-server) and migration of the old data, database, attachements and configuration.

How should I do this?


Answers:
author: AnnWorley
body: Welcome to the forum, and thank you for asking about this upgrade during the planning stages. Hopefully we can strategize a smooth upgrade experience.

The recommended path is to

* migrate to a standalone app server (bundled Tomcat)
* then run a manual upgrade.

There are a lot of details in these guides:

[How to migrate Confluence from an EAR or WAR Distribution to a Standalone version](https://confluence.atlassian.com/confkb/how-to-migrate-confluence-from-an-ear-or-war-distribution-to-a-standalone-version-707626290.html)

[Upgrading Confluence Manually](https://confluence.atlassian.com/doc/upgrading-confluence-manually-255363437.html)

Naturally, it's best to run through the steps in a testing environment first. Please see the tips in this article: [Restoring a Test Instance from Production](https://confluence.atlassian.com/doc/restoring-a-test-instance-from-production-127369720.html)

If anything in the docs brings up more questions, please post back to this thread, I will be happy to help.

comments: author: Reinhold Rechberger
body: Migration from WAR- to Standalone-Version was the key for my successfull migration. From that Point Migration to v5.10.8 with standard installer (as suggested in: [Confluence 6.5 :: Upgrading Confluence](https://confluence.atlassian.com/doc/upgrading-confluence-4578.html)) and to v6.5 at the end.

Thank you verry much Ann.


author: AnnWorley
body: Happy I was of help. Thank you so much for following up to let the Community know how it went!
How do I remove links download file on File Lists page
Asked by duongpb:

Hello, I want remove links direct download ++on File Lists page++ to deny direct download file and force everyone click view button to view file online, how do it?

![04112017.jpg](/t5/image/serverpage/image-id/8845iCBDC5B5024EE7F70/image-size/large?v=v2&px=999 "04112017.jpg")


Answers:
author: Gregor Kasmann_Actonic
body: You can use Custom HTML to hide links on this page.

Of course it is not a complete solution, it is just a workaround:

```
<script>
AJS.toInit(function ($) {
??? if (window.location.href.indexOf("viewpageattachments.action")>-1)? AJS.$("#view-attachments a.filename").attr("href","#");
});
</script>
```


author: Alexey Matveev
body: Hello,

At the moment, permissions for downloading attachments can't be set. To disable attachment downloading you need to [edit your velocity files](http://confluence.atlassian.com/display/DOC/Customising+Layouts). But it is not eligible for support by Atlassian.

You can find more information in the following article

<https://confluence.atlassian.com/confkb/how-to-disable-attachment-downloads-215484007.html>

comments: author: duongpb
body: yes, i disabled link download attachments(tools\>attachments), but on File Lists page links still show and i can direct download. I need edit what is file?


author: Alexey Matveev
body: Velocity files are located on the application server where your confluence is installed. Go to the installation directory of you confluence and search for the file **listattachmentsforspace.vm**. You will find it.
How to call the Confluence REST API from a Scriptrunner script?
Asked by Thomas Berger:

I'm trying to call a Confluence REST API endpoint from a Scriptrunner script in Confluence.

I saw this example: <https://scriptrunner.adaptavist.com/latest/jira/behaviours-conversions.html#_walkthrough_external_rest_service>

But I always get a 'Bad Request' error with the Confluence API.

Anybody got a working example?


Answers:
author: Alexey Matveev
body: Hello,

Kindly produce your code

comments: author: Nic Brough -Adaptavist-
body: My "working example" is the one given on the page you linked to. So we need to see what you're doing differently!


author: Thomas Berger
body: Hi Nic,

Can you please comment on placing the same REST call in the 'Script Console' resulting in a 'Bad Request' vs. a 'Custom Endpoint' and everything is working fine.

    def httpBuilder = new HTTPBuilder(clientURL)    
    def response = httpBuilder.request(Method.GET, ContentType.JSON) { 
      uri.path = "/rest/api/content/search"
      uri.query = [cql:"$query", os_authType:"basic", os_username:"$username", os_password:"$password"]


author: Alexey Matveev
body: *[@Thomas Berger](/t5/user/viewprofilepage/user-id/732823)*

You receive bad request error because your uri.query part is wrong. You use parameters which do not exist in/rest/api/content/search . You need to delete all parameters except cql from your uri.query part.

You have to pass authentication parameters in the header of your request. For example:

httpRequest.addHeader('Authorization', 'Basic ' + 'admin:admin'.bytes.encodeBase64().toString()


author: Thomas Berger
body: Thanks Alexey, the authentication doesn't seem to be the issues here. See also <https://developer.atlassian.com/docs/atlassian-platform-common-components/rest-api-development/rest-and-os_authtype> as a reference for the method I've used.

The issue is more with the Scriptrunner interface 'Script Console' or my lack of understanding of it.


Tags: com.onresolve.confluence.groovy.groovyrunner

scriptrunner
How SDK pom.xml setup for Confluence 6.5.0
Asked by George Lewe (Lewe):

Now, that Confluence 6.5.0 is out, I want to setup my plugin development environment for it. (confluence server)

I dowloaded the latest SDK 6.3.4.

I changed my pom.xml properties to

```
<properties>
   <confluence.version>6.5.0</confluence.version>
   <confluence.data.version>6.5.0</confluence.data.version>
   <amps.version>6.2.11</amps.version>
   <plugin.testrunner.version>1.2.3</plugin.testrunner.version>
   <atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
   <!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. -->
   <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
</properties>
```

However, when I run atlas-run and Confluence is running, it is version 6.3.4.

How can I setup my development environment to run Confluence 6.5.0?

Best regards,  
George


Answers:
author: Daniel Wester
body: You'll need to do an atlas-clean first to delete the old version.


author: Gonchik Tsymzhitov
body: Dear George,

Kindly try this command:

atlas-run --product confluence --version 6.5.0

Reference here:

<https://developer.atlassian.com/docs/developer-tools/working-with-the-sdk/command-reference/atlas-run>

Best regards,

Tsymzhitov Gonchik


Tags: development

pom
How can i add a user with a different email domain?
Asked by Debra Garces:

Trying to add a user with a different domain for a client we work with. We do not want to enable all agent with this domain, just specific people. How can i do that?


Answers:
author: Alexey Matveev
body: Hello,

You mean that you want to filter users who come from ldap or active directory user directory? Then you need to write a filter in user object filter field in the settings of your ldap or active directory user directory.

How to write such a filter you can read here

<https://confluence.atlassian.com/kb/how-to-write-ldap-search-filters-792496933.html>
How can I change the spacing between lines in a table cell?
Asked by Kevin Raeder:

I want to make my table more compact by reducing the

space between lines in cells which have more than 1 line

of text in them. I see how to change the justification, font, etc.,

but not the spacing.


Answers:
author: Robert Sumsion
body: I have found the exact same thing, and the answer is that when you hit return in table cell within confluence, it adds a CR and a CRLF. If you paste into notepadd++ or similar editor you will see. If you copy into notepadd++, press the show special characters icon, remove the extra CR and then paste back it will be single line spacing. It does seem like a confluence bug.

comments: author: Lenard Fudala
body: Save the trip between editors: Shift + Enter


author: Gonchik Tsymzhitov
body: Dear Kevin,

Confluence does have function out-of-the-box function change spacing. You can override by using Javascript for change css parameters on space level or on Global level.

<https://confluence.atlassian.com/confkb/how-to-use-javascript-in-confluence-313458839.html>

Or can change only for one page by using source editor in edit mode. (you need click button \<\>)

Cheers,

Gonchik Tsymzhitov

comments: author: Kevin Raeder
body: Dear Gonchik,

thanks for your answer. I'm most interested in changingthe spacing for just one page. I'm working on a pageunder wiki.ucar.edu, which apparently is built using Confluence. When I first view the page, I see an edit button, which takes me to a version of the page that I can edit. I'm not able to change the spacing on that page.I don't see any other button \<\> to edit in any other way, such as source editing. Where should I find that button?

Kevin


author: DanielJ210
body: I simply want to change line spacing just for my space on a page.


author: Gonchik Tsymzhitov
body: [@DanielJ210](/t5/user/viewprofilepage/user-id/1140224) As I understand you want to change for all page in the one space.

If it is, just set css parapeter

<https://community.atlassian.com/t5/Confluence-questions/What-is-the-CSS-selector-to-control-line-spacing-between-list/qaq-p/264218>

in the space Look and feel place See below <https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html>

Hope it helps.

Cheers,

Gonchik Tsymzhitov


author: Gonchik Tsymzhitov
body: [@Kevin Raeder](/t5/user/viewprofilepage/user-id/1161343) Button you can find it in the edit mode. It is symbol \<\> .


author: DanielJ210
body: Here's a screenshot. My name is Daniel Jackson and see how all of my lines have what seems to be double spacing? While the person below me who is not a programmer at all whatsoever and has no idea what CSS even means, seems to have single spacing like most others. How/why is there a difference with mine and everyone else?

![LineSpacing.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/9896i73E5D411F1979A9E/image-size/large?v=v2&px=999 "LineSpacing.PNG")
How to publish externally generated html to confluence
Asked by Ashish Chadda:

Hi, need help on how to publish HTML report in confluence? When I generate a report, I get a folder with bunch of supportive files. Where should I load then to be able to access the report properly?

One of the report is created for GC analysis. We're using GCMV to generate GC report, which generates below folders -

- index.html

- png files ( for graphs)

- .css file consisting of report data

Basically index file make a reference to these file.

In sharepoint, we zip the folder and upload it. What needs to be done in case of confluence?

Thanks in advance

Ashish


Answers:
author: Hamed Gara
body: **Hello, can somone tell us how to publish HTML cucumber reports in confluence page ? using confluence publisher plugin in Jenkins**   
**Thanks,,**


author: Aron Gombas _Midori_
body: If you are happy with the Sharepoint based workflow, you can do the same exact thing in Confluence, too:

1. Create a zip
2. Attach that to any Confluence page: <https://confluence.atlassian.com/conf56/working-with-attachments-658737031.html>

comments: author: Alex Fanshawe
body: dead link


author: AnnWorley
body: For Confluence, the HTML files have to be added to the file system, there is no way to upload in the UI. I am not sure it is the best procedure for routine reports. Here are the details: [How to Use Confluence to Serve Static Content](https://confluence.atlassian.com/confkb/how-to-use-confluence-to-serve-static-content-677282407.html)

This add-on, [HTML for Confluence](https://marketplace.atlassian.com/plugins/org.swift.confluence.html/server/overview), provides this functionality:
> Bring HTML content into Confluence from other systems with minimal effort. Access content from body text, attachment, file system, or URL

comments: author: Ashish Chadda
body: Thanks for the quick response Ann
Login Problems
Asked by Bret Quinn:

after getting confluence set up. I am unable to login using my admin account. It takes me to a captcha and continually ask me to re-enter my information. Can I just re-install and start from scratch?


Answers:
author: Lars Olav Velle
body: You can either reset admin password: <https://confluence.atlassian.com/conf57/restoring-passwords-to-recover-admin-user-rights-701435450.html>

Or clean out the confluence home and database to start over.

-Lars
ANyone know a good way to find pages with certain web links?
Asked by Gary Griffith:

After migrating spaces to Confluence Cloud, we noticed that links that point to other spaces' attachments are not working.

Easy enough to fix - I can use the essential "Source Code Editor for Confluence" macro to mass replace:

<https://wiki.domain.com/download/attachments/12345-bad_not_here_anymore>

with:

<https://domain.atlassian.net/wiki/download/attachments/98765-good_attachment_trove_number>

However, If I simply try to find pages that have those old, broken links using the search button, I get 0 results.

Anyone know how to search a little deeper in pages (preferrably entire spaces) for patterns in the links?


Answers:
author: Brant Schroeder
body: [@Gary Griffith](/t5/user/viewprofilepage/user-id/1156847) welcome to the Atlassian community

There is a free app on the Atlassian Marketplace called [Link Management for Confluence](https://marketplace.atlassian.com/apps/1224660/link-management-for-confluence?hosting=cloud&tab=overview) which lets you find all hyperlinks in a given Confluence space. And if you find a link that's broken, it also lets you replace the broken link on all pages the link appears on. You should try that.
What macro can I use to see thumbnails of all of the images in my space, by label?
Asked by Anjeanette Agro:

What macro can I use to see thumbnails of all of the images in my space, by label?

If I use the Gallery Macro, it requires me to list ++each page in my space, individually++ , and this is not ideal---it's not feasible because our team is creating new pages every day. Does anyone know of a work-around where I can choose the **space** , and not the **page**? Thanks. \~Aa


Answers:
author: Stephen Deutsch
body: Are you using Confluence Server? If so, maybe a user macro could help you out here. Also, is the label attached directly to the image or to the page?

comments: author: Anjeanette Agro
body: The label is attached directly to the image. I'll have to check on the Confluence Server question. Thx.


author: Stephen Deutsch
body: Confluence Cloud = site name is XXXX.atlassian.net

Confluence Server = site name does not end in atlassian.net


author: Anjeanette Agro
body: We must be using Confluence Server.


Tags: macro
Creating table with checkboxes
Asked by Nir Tal:

Hey all,

I would like to create a table where all the rows got checkboxes and every time I'm adding a new line the checkboxes are automatically added.

Something like:

\| Employee \| col A \| Col B \| Col C \|

\| Jhon \| \[ \] \| \[ \] \| \[x\] \|

\| Bob \| \[ \] \| \[x\] \| \[x\] \|

- adding new line will result in

\| \| \[ \] \| \[ \] \| \[ \] \|  

Is there a way getting it without buying add-ons?


Answers:
author: Dave
body: I have a similar requirement: I'd like to be able to add a column to a large existing table containing a tick-box for each row in the table so I can use it as a checklist.


author: Tim
body: I used the work-around above: Inserting the "task list" maco into a cell. Assuming you only want the checkbox, without a label, simply use a period as the only character, and use the text tool to change the font color to white (or whatever background color your cell has).

You can now copy / paste that checkbox cell as much as you like.


author: Radu Muntean
body: works the same with a space character


author: Atlassian _i super fan
body: To follow up on this, it seems to work if you have text after the check box, but if you're just using the checkbox in a cell without any text (a pretty normal thing when representing tasks as a matrix, just like OP intended), it will not copy the checkbox.

See my screenshot for a demo. The upper row in each pair is the pasted row.

![Screen Shot 2020-08-24 at 4.31.49 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/107801i2629CFB57295FFF0/image-dimensions/416x255?v=v2 "Screen Shot 2020-08-24 at 4.31.49 PM.png")

Update: I found this ticket for the issue, which they have reopened at my request

<https://jira.atlassian.com/browse/CONFSERVER-37838>


author: Claire Lee
body: You can just type \[\] and then hit the Delete key. The checkbox will be created, and the auto-generated label will be deleted. Or, you can update the verbiage as your own label.


author: Atlassian _i super fan
body: I've worked around this problem by using emojis ?

![Screen Shot 2020-08-25 at 8.48.28 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/107968i3B4B18185B9D3FF9/image-dimensions/279x119?v=v2 "Screen Shot 2020-08-25 at 8.48.28 PM.png")


author: Atlassian _i super fan
body: No, this doesn't help, because when you copy a table row or column containing a checkbox (task macro), it doesn't copy the checkbox. The cells on the resulting row/column are empty

update: this is true if you don't add text after the box


author: Nicolas Seronvalle
body: Hi,   

You can create a table and add the "task list" macro in each cell.

Then when you want to add a new line, just copy one of the line and paste it. With the action buttons in the action bar above it's quickly done.

You will then only need to uncheck the checked boxes (or if you prefer, keep the first line with unchecked boxes for later copy paste but it is not that good visually).

I don't have idea for more automation without add-on.

Does it help?
Unable to release a confluence knowledge base article
Asked by Gunar Funke:

Unable to release a confluence knowledge base article. Getting attached error message:![Error.JPG](/t5/image/serverpage/image-id/8798i26C9650272DCECFC/image-size/large?v=v2&px=999 "Error.JPG")


Answers:
author: AnnWorley
body: The error message you are seeing when trying to save a page usually indicates an issue with Collaborative Editing. A good place to start is with the steps on this page: [Troubleshooting Collaborative Editing](https://confluence.atlassian.com/doc/troubleshooting-collaborative-editing-858772087.html) I look forward to helping out if possible after the article helps you narrow down the issue.

As a workaround, to publish the page immediately, you may set the Collaborative editing mode to Off, as described in [Administering Collaborative Editing](https://confluence.atlassian.com/doc/administering-collaborative-editing-858772086.html)  


Tags: synchrony
Document generator based on a form
Asked by Miles:

Hi!

In my scenario, the user fills in a web form in Confluence. Based on the values that the user selected, a page is created (based on a template), with said values inserted at specific places in the page.

Ex: User pick which ingredients his receipe contains in a web form, and when he clicks on submit, another page is created containing the name of selected ingredients, along with the way to prepare each one of them.

Do you an app(s) that could achieve this?


Answers:
author: Elena Simon
body: I want this as well.

comments: author: Miles
body: Try a mix of Confiforms and Space tree creator ;)


author: Alex Medved _ConfiForms_
body: [@Elena Simon](/t5/user/viewprofilepage/user-id/3324269) Feel free to try [ConfiForms](https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=cloud&tab=overview) for this job!

[And we are always here to help](https://wiki.vertuna.com/x/S4GW)

(Sadly I have not seen an original question by [@Miles](/t5/user/viewprofilepage/user-id/1125641) earlier, sorry about that)


Tags: confiforms
How can I secure the contents of my Confluence database (Cloud version)?
Asked by Jeffrey Becker:

Has anyone locked down the contents of their Confluence (Cloud version) instance so that users can't Export the contents (PDF or Word)?

On the Cloud version you can't disable the PDF Export option and I don't see any options to disable the Word Export as well?

We spent thousands of hours creating the contents of our knowledgebase and it seems Confluence has a major security shortcoming by forcing us to leave these two export options open.

Anyone have thoughts?


Answers:
author: Shannon S
body: Hi Jeffrey,

It is not possible in Confluence Cloud to disable exports. We have two feature requests related to this, and I would recommend that you watch both, vote on them to show your interest, and comment on them with your usage case.

* [CONFCLOUD-57587 - disable exports for pages in Confluence](https://jira.atlassian.com/browse/CONFCLOUD-57587)
* [CONFCLOUD-41540 - globally disable space exports](https://jira.atlassian.com/browse/CONFCLOUD-41540)

In Server, it's possible because you have the ability to disable the individual add-ons that perform the task of exporting, but this is not available in Cloud, thus the reason you have not been able to disable them.

Let us know if you have any questions about any of this.

Kind Regards,  
Shannon


Tags: export

ms-word

pdf
How best to lock down the pages/contents on Confluence Cloud
Asked by Jeffrey Becker:

Has anyone locked down the contents of their Confluence (Cloud version) instance so that users can't Export the contents (PDF or Word)?

On the Cloud version you can't disable the PDF Export option and I don't see any options to disable the Word Export as well?

We spent thousands of hours creating the contents of our knowledgebase and it seems Confluence has a major security shortcoming by forcing us to leave these two export options open.

Anyone have thoughts?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Jeffrey Becker](/t5/user/viewprofilepage/user-id/1161217) ,

there is a specific unresolved request for that <https://jira.atlassian.com/browse/CONFCLOUD-57587>

Fabio


Tags: export

ms-word

pdf
Possibility to export pages including page hierarchy macro
Asked by Adrien Landecker:

Hey together,

I am struggling with some PDF Export in Confluence (Standard without any exporting plugins).

We are using the 'page hierarchy' macro and we want to export it with everything else on this page, but that does not work. Any suggestions?

Confleunce 6.1.4

IE 11

See screenshots below:![2017-11-03_13h41_25.png](/t5/image/serverpage/image-id/8790i0008453BBECA0612/image-size/large?v=v2&px=999 "2017-11-03_13h41_25.png")![2017-11-03_13h41_56.png](/t5/image/serverpage/image-id/8791i12CDBED98474A2BD/image-size/large?v=v2&px=999 "2017-11-03_13h41_56.png")![2017-11-03_13h42_36.png](/t5/image/serverpage/image-id/8792iC182A0AA1D028E68/image-size/large?v=v2&px=999 "2017-11-03_13h42_36.png")


Answers:
author: Christo Mastoroudes _Adaptavist_
body: This is actually a long standing bug.

<https://jira.atlassian.com/browse/CONFSERVER-21186>


Tags: export

pdf