youngmon/atlassian-qna huggingface dataset:
Is it possible to change the language of spaces in Confluence?
Asked by Christian Zech:

Hi @all,

We are using Confluence in English but we want have a knowledge base space which we want to use in German.

Is it possible to adjust and use the spaces in different languages?

Thank you very much for your help.

Christian


Answers:
author: Nils Bier _K15t_
body: Hi,

Scroll Translations would be the perfect solution for this, allowing you to manage multiple languages of the same content in one space.

As Bill already said, it is unfortunately not yet available in OnDemand.  
We are working on that and hope to have an OnDemand version in the near future.

Cheers,  
Nils


author: BillA
body: The [Scroll Translations](https://marketplace.atlassian.com/plugins/com.k15t.scroll.scroll-translations) add-on will do this but it's not yet available in OnDemand.


author: Christian Zech
body: Thanks Bill for the immediate answer. Is it going to be implemented some time in the future?


Tags: cloud

confluence-cloud
Expand Macro - adding HTML tags?
Asked by Limor Hader:

Hi there,

Is there a way to add HTML tags Macros. Specifically, I'm looking to make the title in the Expand Macro bold. Right now the only parameter I can change is the wording of the title.

Thanks!


Answers:
author: Nils Bier _K15t_
body: Hi Limon,

maybe you could try our free [Expando Macro for Confluence](http://blog.k15t.com/2013/07/expando-macro-for-confluence%3A-collapse-and-expand-headings).

The Expando Macro makes headings clickable and expands or collapses the content that belongs to that heading, and it expands content based on a macro parameter or on the linked HTML anchor.

You can download it for free in the Atlassian Marketplace: [Expando Macro](https://marketplace.atlassian.com/plugins/com.k15t.confluence.k15t-expando)

Cheers,  
Nils


author: RambanamP
body: have gone through following doc

<https://confluence.atlassian.com/display/DOC/HTML+Macro>


Tags: confluence-administration

macro
It is possible to delete blog post automatically after a certain time?
Asked by Tobias Gro?:

Hey,

it is possilbe to delete a blog post in Confluence after a certain time?

Kind regards,

Tobi


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) can be used without taking Confluence offline or worrying about corrupting your database. Use the query in [runFromSql](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-runFromSql). An alternative for OnDemand or if you don't want to do SQL is to use [getBlogList](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-getBlogList) to a csv file and a small script to select rows by date. In either case, use something like:

```
--action removeContent --id nnnnnnnn
```


author: Rodrigo Girardi Adami
body: Matthew's answer can be used indeed. A script can be created to delete blogposts, however, note that the blogposts are inside the "content" table and this table consists of multiple FKs in the database. So, if you are willing to create a script, be sure to not violate any constraint in the process and keep the database clean.


author: Matthew J. Horn
body: While it's certainly not a built in feature, you could write a SQL statement against the Confluence database that runs at some interval (as a cron job, perhaps) and cleans up/removes entries that are older than a certain date.


author: AmrtaA
body: Hi Tobi,

The answer is no, Confluence doesn't have that functionality.

Regards,

Amrta


Tags: confluence-administration
Confluence mailto link with a hashtag # in the email address
Asked by Yuval Greenfield:

Right now I get an invalid markup error or the link just isn't clickable when I add "mailto:#myteam@company.com" as a link to the wiki. Is there a way to work around this?


Answers:
author: Daniel Berman
body: I encountered this same problem, there is a JIRA for it. [](https://jira.atlassian.com/browse/CONF-24880)<https://jira.atlassian.com/browse/CONF-24880>

I however was able to workaround by creating a custom User Macro:

## @paramName:title=email\|type=string\|required=true\|desc=Email Address

## @paramLink:title=text\|type=string\|desc=Link Text

#set ($url = $paramName)

#set ($linktext = $paramLink)

#if (!$linktext)

#set ($linktext = $url)

#end

\<a href =mailto:$url\>$linktext\</a\>


author: Yuval Greenfield
body: I'm not at work but when I am I'll try the suggested workaround from [](https://jira.atlassian.com/browse/CONF-24880?jql=text%20~%20%22mailto%22)[https://jira.atlassian.com/browse/CONF-24880?jql=text%20\~%20%22mailto%22](https://jira.atlassian.com/browse/CONF-24880?jql=text%2520%7E%2520%2522mailto%2522)"you can replace # with %23 encoding through some Javascript". Though I don't know if just putting %23 will be doubly escaped.

EDIT - sadly escaping didn't work.


author: Adrien Ragot 2
body: Exact. I've even tried html-escaping and url-escaping but it doesn't change anything. You should check whether there's already a bug for that in [Atlassian's bugtracker for Confluence](https://jira.atlassian.com/browse/CONF).
disable user from confluence Internal Directory and use the same username which is on AD with AD password.
Asked by Udaya Suryadevara:

i want to disable user from confluence Internal Directory and use the same username which is on AD with AD password.

or delete user from Internal directory with out deleting any user pages from confluence.


Answers:
author: David Iannucci
body: I had to do something similar with Jira. I had to change the username of the Internal user database to match the username of the AD username. After that old posts and things came up under the new credentials. This was when we migrated from an OnDemand instance to an in house instance using AD for authentication. Im only guessing it should work the same way for Confluence.


author: Udaya Suryadevara
body: i tried diabling the user but the AD user doesn't show up.
Display a Key
Asked by minesh patel:

I have a key {000-000-000} that I want to display on my confluence page. I am getting a Unknown macro when put the key on my page.

Does anybody know how I can properly display the key??? Thanks.


Answers:
author: Davin Studer
body: The "{" is a shorcut for inserting a macro in Confluence. To put in a literal "{" type "{" and then hit the escape key to get out of the macro browser. Then continue typing the rest as normal.


Tags: confluence-administration
Can we use Percona database for Jira and Confluence ?
Asked by Sanjay Naikwadi:

I would like to know if we can use Percona DB for setting up Jira and Confluence ?

If there are any limitations, what are they ?  
If its supported then which version is recommended of percona ?

What is supported version of Mysql (community/Enterprise) ?

Sanjay


Answers:
author: Nic Brough -Adaptavist-
body: You can use any database that has a Java driver and supports standard SQL. You might struggle for docs though.

But you'll only get support on PostGreSQL, MySQL, Oracle and MS Sequel Server from Atlassian - if you run into database issues, they don't promise anything (although, when I was running on an unsupported database, one of their support chaps went out of his way to help, despite it not being officially supported)


author: Sanjay Naikwadi
body: Till now in my stagging looks good, all is working fine.  


author: Sanjay Naikwadi
body: Thanks Nic Brough

Can some also tell me tables are in MYSIAM or INNODB ?

Percona only supports INNODB and has limited support for MYSIAM tables.

comments: author: Nic Brough -Adaptavist-
body: It depends on how you set them up. When using MySQL, you have to use INNODB, so I assume that's the same for Percona though.


author: Sanjay Naikwadi
body: Thanks Normann,

I have gone through the documentation and i am also much interested in Percona support, i already have a 3 server Percona galera replication set, before moving ahead i was looking if i can find the answer or take the risk atleast in staging to deploy.


author: B_ Normann P_ Nielsen
body: Answers is her: <https://confluence.atlassian.com/display/DOC/Supported+Platforms>

I've been using the Mysql Community Ed for 4-5 years, - works great and it's free. I would stick to what's on the list, I You expect support from Atlassian


Tags: database
System requirements recommendation please...
Asked by Juan Luna:

Hello,

Would any of you provide me a recommended set of confirmations (processors, memmory, HD) for hosting Jira and Confluence together?

We would like to have all in the same box (web and database) and we have estimated to have 20 users, 15 different projects and each one with about 2000 tickets in average. We are considreing to use Windows Server as OS and MSSQL as the database.

This is just to have an initial idea for the VM server we need. I have been reading the documentation and loosk like 2 cores, 4GB, 40GB HD will make the trick, but I feel it might be a little bit limited in resources.

Your suggestions will be greatly appreciated.

Regards,

Juan Luna


Answers:
author: Jason Hensler
body: Take a look at these guides if you haven't already:  
Confluence -https://confluence.atlassian.com/display/DOC/Server+Hardware+Requirements+Guide"\> [https://confluence.atlassian.com/display/DOC/Server+Hardware+Requirements+Guide](https://confluence.atlassian.com/display/DOC/Server+Hardware+Requirements+Guide%3C/a%3E%3Cbr%3E%3C/span%3E%3Cspan%3EJira)  
Jira - <https://confluence.atlassian.com/display/ATLAS/Scaling+JIRA>

We run Jira and Confluence on separate vm's with around a 2k user base (non-concurrent). We run each box with 2 cores and 4GB of ram. Attachments will determine the Hdd size required for your needs. You can most likley run both Jira and Confluence on the specs you listed above. From what I've noticed the total number of issues/projects/pages doesn't seem to affect performance (except for a re-indexing) as much as the number of concurrent sessions. Your biggest concern would be on the ram, try 6GB if you can, this way you can dedicate 1GB Heap and up the permgen size without worring about starving the os of memory.

comments: author: Juan Luna
body: Thank you very much Jason for your response, I agree, I think 6GB will be better.


Tags: system-requirements
console.log
Asked by Bimmel:

I've been tooling around with an user macro that takes some content and manipulate via JavaScript. I have run into a problem with my script and decided to use the console.log method to debug my script issue. However, nothing returns via the console log. I test the variables by typing them directly into Chrome Dev command line and I see the variables getting changed or not as I expected with my script.

My Question is this: Is there something in Confluence blocking the output of the console.log method?


Answers:
author: Aseem Parikh
body: It works fine for me. Did you wrap your JS in a \<script\> tag? Here's what my full macro looks like:

```
## Macro title: My Macro## Macro has a body: Y or N## Body processing: Selected body processing option## Output: Selected output option#### Developed by: My Name## Date created: dd/mm/yyyy## Installed by: My Name&lt;script type="text/javascript"&gt;    var foo = "foo";    console.log(foo);&lt;/script&gt;
```


author: Bimmel
body: There's no errors in either the velocity markup or JS. Try it for yourself. Create a macro, set a variable to something and have the console.log method run that variable. Even simple tests like this come back empty but if I use the command line in Chrome Dev, I see that in fact that foo = "foo";

```
var foo = "foo";console.log(foo);
```


author: Aseem Parikh
body: You might have a syntax error with your velocity markup. Keep an eye on the logs when your macro is executed.

\[edit\] I'm assuming that since you have the console open, you're keeping an eye out for JS errors
Workbox not appearing in Confluence OnDemand version
Asked by Asif Makda:

Although we are on Confluence OnDemand and the "Confluence Mobile Plugin" is included in the System Add-ons, the current configuration screen states "0 of 44 modules enabled". I have tried to enable safe mode and exit the mode in order to enbale the module but with no luck.


Answers:
author: Mauro Badii
body: Hi Asif,

For support questions, please create an issue at [support.atlassian.com](http://support.atlassian.com) where a Support Engineer will be able to help you much faster. Atlassian Answers is best for general questions using and customizing the products.

Cheers!

comments: author: Asif Makda
body: Done. Thanks


Tags: app

cloud

enable

workbox
html pages in confluence
Asked by Andrey Zhupanenko:

i have a folder with html pages and there is a way to zip them, and upload to confluence as one file

how can i upload html files to confluence to view them as html on pages?


Answers:
author: RambanamP
body: As @Mick said it is not possible to include html folder

check this doc to know more about HTML macros

<https://confluence.atlassian.com/display/DOC/Enabling+HTML+macros>


author: Mick Davidson
body: Andrey,

I don't think your first question is possible, I think you can only attach single files, not folders.

You can use HTML on a page by pasting it inside the HTML macro. See Insert/Other Macros.

Cheers.


Tags: confluence-administration
Audio file not playing in Firefox and Chrome
Asked by Simran Sangha:

I am not able to play an mp3 file in confluence wiki on Chrome and Firefox, however the same file is bein embeded and plays fine in IE. Please help!!!


Answers:
author: Simran Sangha
body: Please somebody, help me on this!!


author: Simran Sangha
body: Hello!!! Anybody listining??


author: Simran Sangha
body: Hellooooo!!!! Anybody listening???
Issues with moving base pages
Asked by Vrushali Nadig:

I have just moved my base pages from my personal space to some other space. These base pages were included in other display pages using the Include-macro. When the space was changed I got an error - Unable to render {include} The included page could not be found.

I had to manually edit all the display pages where this base page was included. Why doesn't Confluence change the links by itself? Becasue I move the page within Confluence, I think it should autocorrect all the links instead of manually changing it.

Can you please help me understand this?


Answers:
author: Mauro Badii
body: Vrushali,

That might be related to the bug [CONF-9293](https://jira.atlassian.com/browse/CONF-9293) but maybe it is only for rename and not for moving to other spaces.

If you are on OnDemand and still have that problem, please create a support issue at [support.atlassian.com](http://support.atlassian.com) and we'll check your instance and if it should have been fixed by it.

Cheers


Tags: confluence-cloud

include
Which type of Lucene directory does Confluence use?
Asked by Sergey Svishchev:

Lucene supports several types ([MMapDirectory](http://lucene.apache.org/core/2_9_4/api/core/org/apache/lucene/store/MMapDirectory.html "class in org.apache.lucene.store"), [NIOFSDirectory](http://lucene.apache.org/core/2_9_4/api/core/org/apache/lucene/store/NIOFSDirectory.html "class in org.apache.lucene.store"), [SimpleFSDirectory](http://lucene.apache.org/core/2_9_4/api/core/org/apache/lucene/store/SimpleFSDirectory.html "class in org.apache.lucene.store")) -- which one is used by Confluence 5?

I suspect that it's SimpleFSDirectory before 5.2 and whatever is autodetected by Lucene in 5.2 and newer, but a confirmation from dev team would be nice.


Answers:
author: Adrien Ragot 2
body: Hi Sergey,

Short answer: You're right, it uses whatever is detected by Lucene in Confluence 5.3.

You can download the source of Confluence, as soon as you've purchased at least a $10 license. I searched in the code and I found the following snippet in DirectoryUtil (Confluence 5.3):

```
/**     * get a Directory from a path and don't throw a whingy bloody IOException.     * Upgrade the index version if incompatible with the current version.     */    public static Directory getDirectory(File path)    {        try        {            if (!path.exists() &amp;&amp; !path.mkdir())            {                throw new IOException("Unable to create index directory '" + path.getAbsolutePath() + "'");            }            FSDirectory directory = FSDirectory.open(path);            return directory;        }        catch (IOException e)        {            throw new LuceneException(e);        }    }
```

According the the JavaDoc of FSDirectory, as you wrote properly: open() will "allow Lucene to choose the best FSDirectory implementation given your environment". This snippet is then used in classes such as "DefaultEdgeQueries" and so on. I think the best solution for you is to look at the code directly. For sure, none of the 3 names you mention appear in the source of Confluence 5.3.


Tags: confluence-administration
Google Apps with Confluent?
Asked by Coloumbo:

Hi.

You say we have to buy JIRA even though we don't need to make the intergation with Google Apps work.

When will this be fixed? Since we want Confluent and the integration with Google Apps but we do not want JIRA.

Thank you.


Answers:
author: Nic Brough -Adaptavist-
body: This seems like a very confused question.

We are a community of end-users of Atlassian software, not Atlassian itself. We don't know what you've spoken to them about. We don't know why you think you need Jira to integrate Confluence with Google Apps and we don't know what integration you are asking about.

Could you explain what you mean by "integrate with google apps" and why you think you need Jira?

comments: author: Dave
body: In OnDemand, JIRA handles user management, so if you want to integrate an OD instance with a gapps domain for sso, JIRA is required to do so.


author: Nic Brough -Adaptavist-
body: Ah, I see. I've not used OnDemand with integrations like that, so I was looking for clarification. That makes perfect sense now. Thanks.


author: Coloumbo
body: Thank you, David, but this fact is clear in the documentation. This question is: will this be fixed? Will we be able to use Confluent with Google apps on a near future or is this fix not planned?


author: Dave
body: The feature request exists, but there is no time frame for implementation - feel free to watch the request as well as vote/comment on it at <https://jira.atlassian.com/browse/AOD-5745>


Tags: cloud

confluence-cloud
PDF Preview does not load in Concluence.
Asked by Gilbert Janeselli:

Whenever i put an PDF into a page the preview does not - i think it stuck...   

On the attached pics you see what i mean...  

![](../../upfiles/confluence-pdf3.jpg)


Answers:
author: Tim Schmidt
body: Oh thanks.

I hope they fix it in the next version.


author: Gilbert Janeselli
body: They are working on that problem here:  

<https://jira.atlassian.com/browse/CONF-16922>


author: Tim Schmidt
body: Is there a solution by now?

Posting a PDF works just fine within the original blogpost, but the preview-function doesn't work for pdf-files posted in comments.

![](../../upfiles/pdfpreview.jpg)


author: Davin Studer
body: If you just put it in it could take a few minutes as the system has to go through the PDF and convert it. If it has been in there a while and that is still happening then I don't know what to tell you. Tech support could probably help you with that.


Tags: confluence-administration
Changing logo on confluence page template
Asked by Olivier Crozier:

I'm trying to change the logo of a confluence page template that I created.

When clicking on the button "Create" the page template would be shown with its own logo instead with the default logo.

The confluence page template is either defined at space level or at server level.

How can I do that?

Thanks you.


Answers:
author: Olivier Crozier
body: Hi all,

Would you mind voting on this new feature request?

<https://jira.atlassian.com/browse/CONF-31923>: Display custom logo of a template inside of the dialog box (pop up box)

Atlassian answered that there's no option to add and display custom logo for templates in the dialog box. However, this can be a good feature request to be added for future release. The thing is only the most voted requests are implemented.

Thanks you for your participation.

Best regards,

Olivier Crozier


Tags: logo

template
How to delete all drafts from Confluence using SQL or any Script.
Asked by Siddheshwar mhetre:

I want to delete the the pages in the spaces which is save in draft. So is any SQL query or any other script for removing draft pages in confluence?


Answers:
author: Peter Van de Voorde
body: Hi Siddheshwar,

You can easily deduct the SQL you need from the SQL on that page.

You'll need to do the following :

1. `select` `* ``into` `temp_conf ``from` `CONTENT ``where` `CONTENTTYPE=``'DRAFT' (maybe change this to how it works in you DB)`
2. `DELETE` `FROM` `BODYCONTENT ``where` `CONTENTID ``IN` `(``select` `CONTENTID ``from` `temp_conf);`
3. `DELETE` `from` `ATTACHMENTS ``where` `PAGEID ``in` `(``select` `CONTENTID ``from` `temp_conf);`
4. `DELETE` `from` `CONTENT ``where` `CONTENTID ``in` `(``select` `CONTENTID ``from` `temp_conf);`

Keep in mind that doing stuff in your database is not something you should consider doing lightly and is completely at your own risk.

Best regards,

Peter

comments: author: Davin Studer
body: I would say if you are going to delete the data then backup your instance and create a test environment out of it. Then do it in the test environment and validate that you didn't mess anything up. Once you are confident in the process then apply to production.


author: Siddheshwar mhetre
body: Hello,

Yes I have taken the backup first and test it in dummy database. With the help of above SQL query I can delete the Draft from my confluence.

Thanks for the help...:)

Best Regards,

Siddheshwar.


author: Peter Binney
body: Not sure which version of Confluence this is for. With 5.4.4 the above fails if any draft has an attachment.So I extended the initial query with _and CONTENTID not in (select PAGEID from ATTACHMENTS)_


author: Peter Van de Voorde
body: Hi Siddheshwar

The information in this knowledge base article should help you out : <https://confluence.atlassian.com/display/CONFKB/Removing+Orphaned+Draft>

Best regards,

Peter

comments: author: Siddheshwar mhetre
body: Hi peter,

I have already tried these steps, but this is only for the Orphaned Pages. But I want all the pages or spaces to be remove from the Draft.

Thanks,

Siddheshwar