youngmon/atlassian-qna huggingface dataset:
Import/Export confluence space: Why do some @mentions fail gracefully and others break?
Asked by Michael Podvinec:

We're in the process of exporting a confluence space from one instance to another.

In this context, we've discovered that mentions break upon import into another instance, as they reference the user by some unique user identifier from the database. For some mentions, however, the link breaks but the name of the referenced user is displayed (i.e. it fails gracefully). In this case, the storage format in the SOURCE wiki looks like this:

```
<ac:link>
```

```
  <ri:user ri:userkey="<32hexdigits>" />
```

```
  <ac:plain-text-link-body>
```

```
    <![CDATA[Lastname Firstname]]>
```

```
  </ac:plain-text-link-body>
```

```
</ac:link>
```

For other mentions, the link breaks and a "broken image" icon is shown instead, with no easy way of discerning the user that was mentioned originally. In this way, the storage format in the SOURCE wiki looks like this:

```
<ac:link><ri:user ri:userkey="<32hexdigits>" /></ac:link>
```

I realize this is a long shot, but does anyone know what makes a mention use the former (more gracefully failing) format, rather than the latter?

Also, if anyone has experience with fixing up mentions after an export/import to another system, I'd be interested in your solution.

Thanks,

Michael


Answers:
author: Boris Georgiev [Appfire]
body: Hi Michael,

The "32hexdigits" is the **user key**of the user in Confluence. The user key is mapped to a username and a user with this username is looked up in the user directories registered in Confluence. If a user is not found the macro breaks.

When doing imports from another instance you need to make sure that all the users from the source instance are available inside the target instance - and the **usernames should match.**The importer looks the users by name and fixes the references inside pages (fixes the userkey), but if the user is not found then the importer leaves the old user key (the one from the source instance).

To fix this you have a few options:

* Ensure the users from source are available on target and then do the import again
* Run a SQL script to fix the user keys inside the **ri:userkey="** attribute - **THIS IS DANGEROUS AND YOU NEED TO BE SURE YOU KNOW WHAT YOU'RE DOING** before taking this approach
* Write a groovy script with **script runner** to fix all the pages with broken user mentions macro - might be slow if you have large set of pages to scan but much safer than the SQL approach  

<br />


Tags: confluence-administration
Confluence: Include content by group
Asked by Stefan Ernst:

Hi,

I am looking for a way to parametrize the include macro in a way as to display different include content to different groups. Does anyone know a user macro or existing plugin to do that?

Cheers


Answers:
author: Milo Test
body: You could try the free [Visibility](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility/server/overview) macro. Just put the Include macro in the body of the Visibility macro, and stack as many as you need.


Tags: confluence-administration
Different users working on the same attachment at the same time
Asked by nuriaf:

Hi,

What about if different users are working on the same attachment at the same time?

Kind regards,

Nuria


Answers:
author: Nic Brough -Adaptavist-
body: Then they will effectively branch the attachment and save two versions that you'll want to think about merging.

You can impose some basic locking if you want, but it needs add-ons. I've only really used Arsenale's Lockpoint myself, and will happily recommend it, but there may be others.

comments: author: Davin Studer
body: We use Lockpoint as well and it works great!


author: Rodney Hughes
body: two (or more) users can be working on the same attachment by downloading it to their PC.

If they upload them back again with EXACTLY the same file name, then they will be saved as different versions in that time order and will be seen in the attachment version history but you will have to download both versions to do a document comparison

This is one of the main benefits of converting attachments into normal pages in Confluence - yes, two people can still have the page open in edit mode, but when one saves after the other it will flag that another save has happened since you opened it
How to fix confluence page loading error "rendering this content exceeded the timeout of 120 seconds
Asked by Li Huang:

Hi,

Is there a way to fix confluence page loading error "rendering this content exceeded the timeout of 120 seconds?" Currently I cannot load this page with many PlantUML diagrams.


Answers:
author: Tim
body: You can configure the timeout in admin settings `admin/viewsecurityconfig.action` and increase the timeout. However, this might not be practical, better split up the content the different pages to lower the reponse times.
Anonymous Access to Calender
Asked by Robert Rubil:

Dear Team,

we have a Problem with Anonymous access to Calender. Every Time when we go as Anonymous (not logged in) user and try to view the Calender he redict us to log in page.

In the Settings we have Global Permissions for Anonymmous is on.

image2016-6-13 10:11:47.png

The link for the Calender is from Calender Properties.

image2016-6-13 10:14:50.png

On the restrictions Tab we have no restrictions.

image2016-6-13 10:15:32.png

and every time when we go as Anonymous user to the Calender link he redict us to the login page.

image2016-6-13 10:18:30.png

What we need to get a Anonymous user to see us calender?

[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-Access-to-Calender/qaq-p/165353?attachment-id=10685){#link_1186c3a388a817}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/27708/1/image2016-6-13%2010%3A18%3A30.png){#display_1186c3a388a817_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-Access-to-Calender/qaq-p/165353?attachment-id=10686){#link_1186c3a388a817_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/27708/2/image2016-6-13%2010%3A11%3A47.png){#display_1186c3a388a817_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-Access-to-Calender/qaq-p/165353?attachment-id=10687){#link_1186c3a388a817_1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/27708/3/image2016-6-13%2010%3A14%3A50.png){#display_1186c3a388a817_4}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-Access-to-Calender/qaq-p/165353?attachment-id=10688){#link_1186c3a388a817_2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/27708/4/image2016-6-13%2010%3A18%3A11.png){#display_1186c3a388a817_6}  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-Access-to-Calender/qaq-p/165353?attachment-id=10689){#link_1186c3a388a817_3}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/27708/5/image2016-6-13%2010%3A15%3A32.png){#display_1186c3a388a817_8}


Answers:
author: Robert Rubil
body: And for the entire startpage we have given Anonymous the View Permission

image2016-6-13 14:44:41.png

And the Probmem is the same, he redict us to the Login page....

Can you help us?  
[](https://community.atlassian.com/t5/Confluence-questions/Anonymous-Access-to-Calender/qaq-p/165353?attachment-id=4559){#link_1186c3a900c279}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/27709/1/image2016-6-13%2014%3A44%3A41.png){#display_1186c3a900c279_0}


Tags: confluence-administration
Is there a way to change my Confluence site name, example to wiki@companyx.com?
Asked by CS:

by default, the site ends with [atlassian.net](http://atlassian.net)

I'll like to change it to my company domain, is that possible?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: It is not possible yet. Watch <https://jira.atlassian.com/browse/CLOUD-6999>.

comments: author: CS
body: Thanks


Tags: cloud

confluence-cloud
Confluence review workflow with copy page to space
Asked by Peter Kahn:

How can I implement confluence review workflow?

Any modification of a page in trunk space sets doc into needsReview sending mail to reviewers. Reviewer reviews and clicks button to mark as reviewed which copies page to customer space.

What are my options for implementing this?

Thanks


Answers:
author: Peter T
body: Hi Peter,

are you using cloud or server confluence?

If its server take at this: [https://marketplace.atlassian.com/plugins/com.comalatech.workflow/server/overview#](https://marketplace.atlassian.com/plugins/com.comalatech.workflow/server/overview)

Write back if this is something that fits your use case.

Cheers,  
Peter T

comments: author: Peter Kahn
body: Thanks but given my License type that's a 12k purchase which seems steep for something used by less than 10 people. So I think I need to find an alternative.


author: Peter T
body: On the confluence side the only free that might work is this:

<https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.pageapproval/server/overview>

Regarding the workflow why don't you implement it in JIRA? The post function automation should be able to publish the page where ever you need.

So maybe combination or both?


author: Peter Kahn
body: That works for me. Thanks. I'll experiment with that and some custom code


author: Gennera Educa??o Corporativa
body: Bom dia,   

Atualmente tenho apenas o Confluence, ent?o ? alternativa que tenho pra trabalha!  

Imaginei usar a **Macro Expandir** que atende bem!  

Mas queria saber se existe algum recurso no Confluence que insira uma caixa de pesquisa que busque APENAS na p?gina da FAQ.

<br />

Se existir, gostaria de saber qual ?, como usar e como configurar.  

Agrade?o desde j?!
Using page properties report data for chart macro
Asked by Robert Strauch:

Dear community,

I have created a Confluence page which aggregates several information from other pages by using the Page Properties Report macro. The resulting table looks somewhat like this:

```
Title | Time1 | Time2 | Time3
```

```
=============================
Page 1 | 30 | 20 | 23
Page 2 | 45 | 20 | 12
Page 3 | 2 | 29 | 86
```

Is there any way I could automatically use these data for usage in a chart macro?


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello Robert,

You can use Chart from Table macro ([Table Filter and Charts](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/cloud/overview) add-on) to visualize Page Properties Report macro data.
How do i download documents as pages to view instantly instead of as files?
Asked by Victoria Rentzhog:

Id like to download documents into confluence without having them as files.

do not want to rewrite them all to be able to view them in main frame without opening downloaded documents.

How do i convert my wordfiles to text in confluence?  
[](https://community.atlassian.com/t5/Confluence-questions/How-do-i-download-documents-as-pages-to-view-instantly-instead/qaq-p/365115?attachment-id=7524){#link_1186c4aaba59c5}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/61712/1/image2016-6-11%2018%3A26%3A28.png){#display_1186c4aaba59c5_0}


Answers:
author: Nic Brough -Adaptavist-
body: Best thing to do is import them as pages - <https://confluence.atlassian.com/doc/import-a-word-document-into-confluence-170493136.html>

comments: author: Victoria Rentzhog
body: I cant find the import button? I only hav create from template


author: Steven F Behnke
body: You can see the option from the page More Actions menu --

image2016-6-11 18:26:28.png


Tags: cloud

confluence-cloud
Formatting TOC in Confluence
Asked by Connie Nguyen:

Hi, I wonder if there is a way to format the TOC nicely. Due to the need of my client in having the numbers in every section, I have to override the Auto numbering TOC of Confluence (it duplicates the numbers) and just export the doc to .pdf (pls view the attached file). So now the TOC is not formatted nicely at all.

Any help would be greatly appreciated!  
[](https://community.atlassian.com/t5/Confluence-questions/Formatting-TOC-in-Confluence/qaq-p/60276?attachment-id=2963){#link_1186c4c3b50f12}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/10225/1/Screen%20Shot%202016-06-11%20at%209.26.21%20AM.png){#display_1186c4c3b50f12_0}


Answers:
author: Peter T
body: HI Connie,

I as well am not absolutely sure about you need. I think you should use the outline style for the TOC macro - this will get you one step closer to what you need.

This is how it will look:

image2016-6-12 15:30:11.png

This page have a lot of examples about the TOC: <https://wiki.umms.med.umich.edu/display/demo/TOC+Examples>

Last but not least you can override the TOC css by providing custom style using this option

image2016-6-12 15:31:25.png

The following article will provide overview how to customize the Confluence css:

<https://confluence.atlassian.com/doc/basic-styling-tutorial-170000548.html>  
If you are more specific of what you need changed we can help here as well.

Cheers,  
Peter T  
[](https://community.atlassian.com/t5/Confluence-questions/Formatting-TOC-in-Confluence/qaq-p/60276?attachment-id=6232){#link_1186c4c8eda313}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/10228/1/image2016-6-12%2015%3A31%3A25.png){#display_1186c4c8eda313_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Formatting-TOC-in-Confluence/qaq-p/60276?attachment-id=6233){#link_1186c4c8eda313_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/10228/2/image2016-6-12%2015%3A30%3A11.png){#display_1186c4c8eda313_2}


author: Peter
body: Steven, If each section have numbering then the TOC will have the numbering twice - once from the TOC and second from the title of the sections.


author: Steven F Behnke
body: I'm sorry but I don't understand the issue. What's wrong with the TOC as it is?


Tags: confluence-administration
What's the proper way to integrate an existing Confluence space (with anonymous viewing turned on) into a Wordpress site?
Asked by Adam Diamond:

I did ask this before, but did a crappy job of asking the question. Hopefully this is easier to understand. (<https://answers.atlassian.com/questions/38861850>)

I'm an IT guy who just used Confluence to build a KB in Confluence for external use. I enabled anonymous viewing and commenting so those who aren't in our account can view \& search the KB. We just paid a team to reconstruct our website from scratch using wordpress. We want to replace our static support page with one built on the confluence space I created.

We want it to look like it's a natural part of our page and not have confluence branding or the sidebar viewable to our customers. Now, I'm not going to be the one that does that, the people we pay to build the website will do it, I just want to point them to the right resources so they can get it correct quickly. I think, but I'm not sure, that Steven's comment will help them get where we want to go, but is that all I need to tell them? Can we use other stuff confluence makes easy (like the label views)?

Hope that's clearer. My brain always works better at the beginning of the day than at the end...


Answers:
author: Steven F Behnke
body: I'll try and comment back when I have some time. I think I can lay out my thoughts from [my earlier comment](https://answers.atlassian.com/questions/38861850/comments/38861959) a little better.


Tags: cloud

confluence-cloud
After confluence migration to different server, I cannot get into confluence
Asked by David Chung:

Please help me!  
We need your support desperately. Please help us.  
I want explain in details.  
1. I restored confluence home directory.  
/var/atlassian/application-data/confluenceI restored mysql database like this:  
2. I restored mysql dump:  
mysqldump -u root -pF2k-b6N-Kn6-BeQ confluence \< confluence.mysql.data  
3. I restarted confluece  
4. I tried to login confluece.  
I typed in user name and password.  
then  
The following error(s) occurred:

* Please re-enter your login details and type in the word below.
* The following error(s) occurred:

  * Please re-enter your login details and type in the word below.
  * user name:
  * pssword
  * CAPTCHA image on the screen.
  * I typed CAPTCHA

<br />

After I typed enter key,  
Screen asked me same input data such as user name, password and CAPTCHA all over again.  
I provided again, same thing is happening.  

please help us. we need your vender support desperately.  
Thanks


Answers:
author: Nic Brough -Adaptavist-
body: If you can't wait for support, read the log file (they're going to ask you for it anyway). That will almost certainly tell you what is wrong with it all.


author: Kay Brown
body: Hi David,

You can contact support here: <https://support.atlassian.com/customer/servicedesk-portal?utm_source=landingpage>

Regards,

Kay
Atlassian Files To Backup Up
Asked by Bruce Ringler:

Hello, Please move if this is in the wrong forum.

I am backing up atlassian confluence on a Centos 7 server using Bacula, I was looking for a list of directories and files that need to be backed up. I have the default locations from the installation but seeking all critical location of VM, Spaces, SQL db to verify I am getting everything.

Thanks


Answers:
author: Nic Brough -Adaptavist-
body: It depends on exactly what you want to restore if something goes bang, but there's three simple things to get a backup of:

* The database - you need to be able to recreate an identical copy of the database for it.
* The installation directory - possibly optional, as below
* The "home" directory - possibly not all of it, as below (and you can skip logs and working diretories in there too if you want)

You can find out where all of these are by a quick look at the system information page.

<br />

That all assumes you want to be able to go "my server died, recreate confluence in minimal time on another machine". It's basically a simple "copy and paste" of everything.

But, you don't actually **need** all of it. Given a backup of your database and the attachments folder (which is in the "home" directory), you can recreate your server without any data loss. You have to fiddle around installing a new Confluence and then restoring the database and attachments into it, and then re-indexing etc, but it's eminently possible.


Tags: backup
Re. Upgrading from 6.0.0-OD-x to 5.10
Asked by Rosalind BANWELL:

*This question is in reference to Atlassian Documentation: [Confluence 5.10 Upgrade Notes](https://confluence.atlassian.com/pages/viewpage.action?pageId=826894764)*

**Upgrading from 6.0.0-OD-x to 5.10**

Hi, we've been running a test Confluence Server on 6.0.0 as we migrated from a Cloud version. Now we have purchased a license and are ready to go live, but we can't migrate our site. Is there a workaround for this issue?

Thanks,

Rosalind Banwell (Enablon)


Answers:
author: Rachel Robins
body: Hi Rosalind,

It's not possible to upgrade from 6.0.0-OD-x to 5.10 using the installer just now. We hope to have this problem fixed very soon (hopefully as soon as version 5.10.1).

If you're not able to wait, you can upgrade to 5.10 manually using the zip file - info on how to do this is here <https://confluence.atlassian.com/display/DOC/Upgrading+Confluence+Manually>.

If you have any further problems upgrading, don't hesitate to contact [Support](http://support.atlassian.com) who will help you through the process.


Tags: confluence-administration

documentation
missing IN and OUT
Asked by Dave Marsico:

[](https://community.atlassian.com/t5/Confluence-questions/missing-IN-and-OUT/qaq-p/154688?attachment-id=12467){#link_1186c544c47bbd}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/25853/1/confluence_query.png){#display_1186c544c47bbd_0}


Answers:
author: Dave Marsico
body: Well... I'm here to answer my own question. So the trick was how I was defining the data sources.

on the Configuration page of the plugin, appears thats not the way to do it if Oracle is involved... Instead added entries within the server.xml and "all good". Thanks for jumping in to help.


author: Dave Marsico
body: sorry didn't notice that it decided to "not" show my query "code"...

anyway, here is the Plugin configuration

**Conflgure SQL for Confluence**

Limit rows processed - No limit

Limit query time - No limit

Disable anti-XSS mode - "unchecked"

**Data Source Profile**

Name - jira-dev1

Value - dbDriver=oracle.jdbc.OracleDriver \| dbUrl=jdbc:oracle:thin:@//[rtp-dbdl-scm1.cisco.com](http://rtp-dbdl-scm1.cisco.com):1521/RTPSCMD1.CISCO.COM \| dbUser=jira1a \| dbPassword=XXXX \| dbJar=/data/atlassian/confluence/current/confluence/WEB-INF/lib/ojdbc7.jar

*** ** * ** ***

as for my query, here is screenshot

confluence_query.png


author: Steven F Behnke
body: We can't see your macro here, can you post a screenshot of the configuration? We should tag your post with the SQL query add-on too.


author: Dave Marsico
body: Perhaps I should have said more...

hitting this...

Error rendering macro 'sql-query' : java.sql.SQLException: Missing IN or OUT parameter at index:: 1

when I have this configured...

truesumfalseUTF-8truejira-dev1INLINE{sql-query:dataSource=jira-dev1\|output=wiki}select NUMBERVALUE from CUSTOMFIELDVALUE where CUSTOMFIELD='10704';{sql-query}not sure what I am doing wrong


author: Nic Brough -Adaptavist-
body: And "shake it all about"?

comments: author: Dave Marsico
body: Nicely done


Tags: addon-org.swift.confluence.sql
Problem with pocket query on update statement on a table
Asked by Georg:

I have the following statement

```
update ?DBMANAGER.PROJECT set stellvertreter = :neuer where stellvertreter =:alter and nametechnisch = :project
```

when I press the "Change" button, the statement will probably run and change the values but with the error message

Georg

[](https://community.atlassian.com/t5/Confluence-questions/Problem-with-pocket-query-on-update-statement-on-a-table/qaq-p/404755?attachment-id=11454){#link_1186c5580efeec}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/68526/1/ScreenShot%20338%20Noch%20ne%20Testseite%20-%20KM%20-%20rola%20Confluence%20Testsystem%20-%20Google%20Chrome.png){#display_1186c5580efeec_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Problem-with-pocket-query-on-update-statement-on-a-table/qaq-p/404755?attachment-id=11455){#link_1186c5580efeec_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/68526/2/image2016-6-10%2014%3A35%3A22.png){#display_1186c5580efeec_2}  
[](https://community.atlassian.com/t5/Confluence-questions/Problem-with-pocket-query-on-update-statement-on-a-table/qaq-p/404755?attachment-id=11456){#link_1186c5580efeec_1}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/68526/3/Bild.png){#display_1186c5580efeec_4}  
[](https://community.atlassian.com/t5/Confluence-questions/Problem-with-pocket-query-on-update-statement-on-a-table/qaq-p/404755?attachment-id=11457){#link_1186c5580efeec_2}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/68526/4/Bild1.png){#display_1186c5580efeec_6}


Answers:
author: Felix Grund (Scandio)
body: Hi Georg!

Thanks for your interest in PocketQuery. I have to tell you: you're running a manipulating statement with PocketQuery. This is not supported. PocketQuery was designed as a read-only tool and only select statements will really work. Sorry to disappoint you.

Regards, Felix

comments: author: Georg
body: Is ok,I have something already thought.  
But still nice plugin

Georg


Tags: confluence-administration