youngmon/atlassian-qna huggingface dataset:
How to bulk copy all pages containing a specific label
Asked by Corti Corti:

Hi,

we need to create a space containing pages coming from other spaces.

Basically I would like to simply share pages by marking pages with a specific label.

A scheduled task will just perform a copy of all pages containing that label.

Is there any way to achieve such a behaviour?

A solution based on this macro [Content by Label Macro](https://confluence.atlassian.com/doc/content-by-label-macro-145566.html) is not enough for us. Our Confluence is configured to authenticate against 2 domains and we have an additional security layer based on F5 device. Authenticated users using one of the domains can only access to an specific URL path, to a single space and not to the whole confluence.

That is why we need to really copy pages to the specific space isolated at the network level using the FW Application (F5).

thanks!

Jose


Answers:
author: Corti Corti
body: after some more research I found an add-on that can do some of the job, still a filter by label and overwrite options are not possble.

<https://marketplace.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy/server/overview>

still looking for a solution... :/
Is there a way to seach for spaces created by Unknown User?
Asked by Martin James:

Is there a way to seach for spaces created by Unknown User? By this I mean users who no longer have their account.


Answers:
author: AnnWorley
body: I couldn't do it in the UI but I was able to using this SQL query (on PostgreSQL):

```
select spacename from spaces where creator in (select user_key from user_mapping where lower_username not in (select lower_user_name from cwd_user));
```

The *creator* column in the **spaces** table is a *user_key* that still exists in the **user_mapping** table when the user is deleted from LDAP (then becomes Unknown User in Confluence). The user is deleted from the **cwd_user** table so any space with a key that appears as a *creator* in the **spaces** table but the user is not in **cwd_user**, was created by Unknown User.


Tags: confluence-administration
Adding a Confluence Macro Removes other content
Asked by Jeet G:

Hello,

I have a few users having an issue editing confluence pages which they've created. They want to use the JIRA macros available. However, when they select the macro, enter a filter, and select insert- the confluence page's sections are all removed in place of the new macro.

This issue was initially noticed on a Windows 7 machine running IE 11. I attempted to replicate the issue on an macOS Sierra both in Chrome (latest) and Firefox (latest) to no avail. Also, I had tried another Windows machine in Chrome (latest)- with a failure to reproduce the error.

I have had the affected users to close all IE windows and try again, log out/in , and a combination of the two. Yet the issue persists with these Windows 7 IE 11 Users.

See attached images for more info.![image001.jpg](/t5/image/serverpage/image-id/1547i1A225DE563DE2B6A/image-size/large?v=v2&px=999 "image001.jpg")![image002.jpg](/t5/image/serverpage/image-id/1549i378BC99892AC5D9E/image-size/large?v=v2&px=999 "image002.jpg")![image003.jpg](/t5/image/serverpage/image-id/1548i00CC5D7C9059386F/image-size/large?v=v2&px=999 "image003.jpg")As you can see in image 2, the user has some existing content in the background and multiple sections with different types of content (text, table, oher macros).

Image 3 is the result of entering in the macro with the desired JQL.


Answers:
author: Saurabh Gupta
body: Check the console of IE when performing the same steps again. If it generates error doing the same, then it is a bug.


Tags: macro
Escape URL in user macro
Asked by Ross Bender:

I have a user macro in which I am generating a URL from a parameter and thus need to encode the value. I have tried the following, trying to use [EscapeTool](https://velocity.apache.org/tools/2.0/apidocs/org/apache/velocity/tools/generic/EscapeTool.html):

```
$esc.url($paramText)
```

However, when the macro is rendered it is still showing as "$esc.url($paramText)".

I have tried all of the options for "macro body processing" and no luck. Any suggestions would be appreciated. Thank you!


Answers:
author: Stephen Deutsch
body: $generalUtil.urlEncode($paramText) should work :)

comments: author: Ross Bender
body: Works great! Thank you


Tags: macro

user-macro

velocity
"I am admin for my company ..Can you help me out with this issue for all my users ?
Asked by girish Pinumalla:

![image.png](/t5/image/serverpage/image-id/1543iC67A8FEC6015E277/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Nic Brough -Adaptavist-
body: It looks like you are not running the service (Confluence I guess, from the 8090 port), on the machine you are running the browser on.

Localhost means "this machine". If you want other people to use your service on a server, you have to give them the address of that server, not a "localhost" one.


Tags: administration

login
Can I restore a full XML backup from a running 5.8.10 system to 6.1.3?
Asked by Mike:

I'm trying to avoid an in place upgrade to our production Confluence system by essentially migrating the database to another server. Is this possible?


Answers:
author: Nic Brough -Adaptavist-
body: Ann is right - upgrade it properly.

Although, there is another option - install an empty Confluence, export the spaces you want to transfer over one at a time and then import them one at a time - the xml space exports are mostly version-agnostic.


author: AnnWorley
body: Please follow [Upgrading Confluence](https://confluence.atlassian.com/display/DOC/Upgrading+Confluence) to upgrade. The document mentions:

"XML backups should not be used to upgrade Confluence."

This is because of db schema changes between versions.

comments: author: Mike
body: I was afraid of that.

Thanks,

Mike


author: Mike
body: Not to belabor this but on the Restore Menu panel it says:

**Upload and restore a site/space backup.**

This site accepts full site imports from Confluence 4.0 and later, and space imports from Confluence 5.3 and later.

What does this mean?

Also, can I go directly from 5.8 to 6.1 or to I have to install intermediate releases?

Thanks,

Mike
Export and Merge Confluence Databases
Asked by Adam Rohrbach:

I need to export one Confluence DB into an existing database. We ran a trial to see if we liked it before adding onto another department's server. We have put some data into the trial server and I was wondering if that was exportable or not to the existing DB?


Answers:
author: AnnWorley
body: It isn't feasible to do at the database level as the trial server contents will not be confined to discrete tables. However, if the trial server data is in spaces which do not exist on the other department's server, then you can import the spaces to the other instance: [Restoring a Space](https://confluence.atlassian.com/doc/restoring-a-space-152036.html)


Tags: export
How to create sub/excerpt tables from a larger Confluence table
Asked by Clarissa Helps:

I have an enourmous table in Confluence, native to Confluence at the moment.

The table consists of information similar to this. (I hope this table displays moderately well)

Item / Responsible Team / Status

Headlights / Plastics, Electronics, Design / Ready for testing

Car seats / Design, Interior, Fabrics / \[JIRA X-01\] bug found, testing blocked

I want to be able to filter this table based on the teams. Since multiple teams are in 1 column, I am wondering if it is possible to create a table that pulls from this one and just lists everything related to Design, or everything related to Plastics. I'm willing to change the team names from plain text to some kind of pointer, if it helps.

Is this possible?


Answers:
author: Nelia Miller
body: Is there a way to do this for free, or only with the paid plugins?


author: Andrey Khaneev _StiltSoft_
body: Hello Clarissa,

You can insert this table using Page Include macro or Excerpt and Excerpt Include macros into another page, wrap Include macro with [Table Filter](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/server/overview) macro, set filters and hide filtration pane if needed.

comments: author: Steven Jacon
body: Hello Andrey,

I would like to try this method too, but i get an error:

"Error while generating placeholder. Is the server available?"

I use Excerpt Include for the table, but it don't want to work.


author: Andrey Khaneev _StiltSoft_
body: Hello Steven,

Did you use Excerpt macro on the source page? Excerpt Include macro works in pair with Excerpt macro.


author: Steven Jacon
body: Yes, i found the solution.

I have to set first the Table Filter and set the Excerpt Include macro inside it.


author: Simon Kirby
body: Thanks for the combination of plugins to achieve table filtering :)


Tags: sort

table
Redirect to original URL in custom authenticator
Asked by tranhuyanh267:

Hi everyone, currently I have the same issues in this post  

<https://community.atlassian.com/t5/Answers-Developer-Questions/Redirect-question-in-confluence-using-custom-authenticator/qaq-p/564554>  

Does anyone have any ideas?  

Any help would be greatly appreciated.  
Thanks


Answers:
author: Nic Brough -Adaptavist-
body: I think you need to work through the answers given in the question you refer to. They've fixed it for me more than once.


Tags: authentication

redirect
PDF Export to Landscape
Asked by Henry Pfeiffer:

Folks, I am having an issue exporting from a Confluence Page into a PDF. It defaults to Portrait. I went into Space Tools....Look and Feel...PDF Stylesheet and added

@page landscape  
{   
size: 8.5in 11in;   
}

and when I try to export the pdf it is still Portrait. The only thing I see, when I save the Stylesheet it looks like this

PDF Export Stylesheet  
view plain print  
@page landscape   
{   
size: 8.5in 11in;   
}   

Any ideas would be helpful


Answers:
author: Steffen Heller
body: See <https://community.atlassian.com/t5/Confluence-questions/confluence-page-export-to-pdf-in-landscape-format/qaq-p/205799?posted=592536#U592536> for answers
Confluence 5.10.4 LDAP syncing: Deactivation Users?
Asked by Greg Della-Croce:

We are run version 5.10.4. I am looking for the documentation that will tell me that if a User is deleted/removed from the LDAP that is used to sync the Users will the Confluence deactivate the User if they have content and/or delete them if the User does not have content in Confluence.

I looked through the documentation on 5.10 and could not find this situation referred too.


Answers:
author: AnnWorley
body: If you delete the user in LDAP it will be deleted in Confluence as well. Any content will be attributed to "unknown user" like:

"Created by Unknown User (ernie) a minute ago"

I just tested in Confluence 5.10.4 with AD.

comments: author: Greg Della-Croce
body: Ah, that answered two questions at once, thanks, Ann. It tells me that Confluence does not check if a user has content before zapping it.

And it tells me where those "Created by Unknown User" come from! A mystery I have been meaning to look into for awhile.

Thank you very much

Greg


Tags: ldap

sync

user-management
Shows a documents labels
Asked by christoph:

I have a table with different documents. In the column next to the documents I would like to show the labels of the respective documents. Is this possible and how?

thanks


Answers:
author: Thomas Schlegel
body: Hi Christoph,

where are the documents stored? As attachment on the page?

If then, you can create such a table with the [Reporting Plugin](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.reporting/server/overview) from ServiceRocket. We do quite a lot reporting with this plugin. It is not simple to understand how the reports have to be programmed, but it is very powerful. But also, not for free.

A table with all the attachments from a page with their labels would look like this:

```
{report-table}  {local-reporter:content:attachments}    {text-sort:attachment:title}  {local-reporter}   {report-column:title=File Name}{report-info:attachment:title|link=true}{report-column}  {report-column:title=Label}{report-info:attachment:label}{report-column}  {report-empty}_No files have been attached to this page._{report-empty}{report-table}
```

(Example from <https://docs.servicerocket.com/display/REP/Listing+Attachments+from+Current+Page>)


Tags: label

macro
Team Calendars JQL problem
Asked by Alexander Dadaev:

Hello everyone!

I've faced strange problem with TeamCalendars. I've got a filter that works in Jira, but do not in TeamCalendars in Confluence. The filter is public and the conflu page where i added TeamCalendar plugin too.

My filter contains "text" field with russian text in it, and when i cgange it to english everything works. Do you know is it a bug, or i'm doing something wrong?

BR.


Answers:
author: Thomas Schlegel
body: Hi Alexander,

we had a similar problem with German special characters.

The problem were two wrong system properties on the Confluence side:

```
<sun.jnu.encoding>ANSI_X3.4-1968</sun.jnu.encoding><file.encoding>ANSI_X3.4-1968</file.encoding>
```

We had to change both properties to:

```
-Dfile.encoding=UTF-8-Dsun.jnu.encoding=UTF-8
```

to get rid of the problem.

Maybe you have a similar problem.

comments: author: Alexander Dadaev
body: Thank you, we'll try this solution


author: Alexander Dadaev
body: This problem also can be solved by adding ID of the filter rather than it's name


Tags: jira

jql

team-calendars-for-confluence
Use variables in template urls
Asked by Richard Bate:

I've set up a Project Summary page based on a tutorial (<http://lightmanyfires.com/create-a-kick-ass-confluence-navigation-user-interface-your-team-want-to-use/>)

I've saved this as a template and it's working well, but every time I use it I need to change the URLs for the navigation items which takes a long time and puts people off using it.

Is there a way to use a variable name in the URL on the template that can be replaced with the project short name once the new project is created?

e.g.

template URL - <https://company.atlassian.net/wiki/display/SOMEPROJ/Meeting+notes>

Thanks in advance!


Answers:
author: Craig Nodwell
body: Have a look at this [page](https://confluence.atlassian.com/doc/user-macro-template-syntax-223906130.html).


Tags: developer
Set Confluence mail preferences in database
Asked by Jan-Peter Rusch:

Hi,

I want to make sure/control, if certain users have enabled specific settings in their email configuration on Confluence server. What would be the best approach without logging in as the user. I've got access to the database \& even could change settings there.

Confluence has ScriptRunner addon available, if this helps solving the problem without manipulating the database...


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Jan-Peter Rusch](/t5/user/viewprofilepage/user-id/502319) ,

here a useful article about that <https://confluence.atlassian.com/jirakb/retrieve-user-email-type-preferences-from-the-database-1014274906.html>

Fabio

comments: author: Jan-Peter Rusch
body: 6 years, first answer.

Anyway, the answer you suggest is for Jira and not for Confluence...


author: Fabio Racobaldo _Herzum_
body: Hey [@Jan-Peter Rusch](/t5/user/viewprofilepage/user-id/502319) ,

this is the query for Confluence :

```
SELECT *
FROM os_propertyentry
WHERE entity_key = 'confluence.prefs.email.mimetype'
```

Btw, a community is a place where people can search for existing questions. I'm sorry that you received an answer after long time and I hope that my answer can be usefulf for other guys.

Fabio


Tags: email
More Macros Button Not Working
Asked by Jenni Barlow:

Could anyone let me know how to get the 'More Macros' button to work in Confluence.

We had to remove all plugins a couple of weeks ago as one of them was making our server based Confluence keep crashing. Since we've restarted it and added the 'normal' add ons the 'More Macros' button still isn't working.

Any ideas? Thanks


Answers:
author: Jenni Barlow
body: ![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/1590iC978FDB52D57E805/image-size/large?v=v2&px=999 "1.png")


author: Saurabh Gupta
body: Can you provide a screenshot?

comments: author: Jenni Barlow
body: Attached below


Tags: macro
Page not found after renaming
Asked by Michael Renner:

I can see different behaviour when accessing Confluence through a reverse proxy after renaming a page.

1) When I access Confluence directly with the old page title/URL, it says that the page can not be found but here are some search results that might fit.

2) When accessing the same URL using a reverse proxy, the reverse proxy simply presents a "Not found - the requested URL \<URL\> was not found on the server".

How do I receive the first behaviour while using a reverse proxy?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Michael Renner](/t5/user/viewprofilepage/user-id/715844) ,

please could you provide us more information about your reverse proxy configuration?

Fabio


Tags: proxy
How can I add linebreaks to the menu in the sidebar
Asked by Marc Keil:

Hi all,

we are in the process of upgrading our Confluence installation to 6.1. We have still some spaces that used the deprecated documentation theme (which is gone in 6.1). A user wants to replicate the displayed menu in the Global Look and Feel but we experienced, that the displayed links (either Child pages, Page Tree or Page Tree Macro) have no line breaks (in contrast to the old layout). Is there some kind of setting where I can configure the dynamic line break of the menu in the sidebar?

Best regards,

Marc


Answers:
author: Marc Keil
body: Found my answer here: [https://community.atlassian.com/t5/forums/searchpage/tab/message?advanced=false\&allow_punctuation=false\&q=How+can+I+add+linebreaks+to+the+menu+in+the+sidebar%3F](https://community.atlassian.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=How+can+I+add+linebreaks+to+the+menu+in+the+sidebar%3F)


Tags: menu

side-bar
Confluence RPC removeGroup doesn't work
Asked by galimshyn:

Hi All,

I can't remove group via RPC using Perl script. Working with local latest trial version of Confluence server.

Here is my code:  
my $res = $conflRPC-\>call("confluence1.removeGroup", $token, "my-group", "confluence-users");

it always returns 1, even if I set wrong group name.

In the same time similar call removing users works fine:

$conflRPC-\>call("confluence1.removeUser", $token, $user)

I suspect Confluence server is waiting for some confirmation but I am not sure.


Answers:
author: Saurabh Gupta
body: Not able to delete this. Sorry for getting your hopes high.
Spectrum Formatting Macros compatibility with Confluence 6.2
Asked by Heshan Manamperi:

Still Spectrum Formatting Macros plugin is not compatible with Confluence 6.2. When you are planning ti release compatible version.


Answers:
author: Mirek
body: Hi,

According to the release documentation version 1.0.13 (free) and 2.0 (paid) should be the first version that is officially compatible with Confluence 6.2.

<https://marketplace.atlassian.com/apps/1212124/content-formatting-toolkit-for-confluence/version-history?versionHistoryHosting=server>
Want to redirect non-fqdn URLs to the proper fqdn URL
Asked by Jon:

I want to be able to just type http://confluence, or https://confluence and have it redirect to <https://confluence.company.com> (so that the browser doesn't throw a warning about the cert and URL not matching). Internal DNS is set up properly so that the name resolves, I just need it to be redirected to the full proper URL so that the certificate matches and the browser doesn't give the warning.

I've tried going through all the apache proxy documentation, and cannot find something that accurately describes what I'm trying to do.

Can anyone help? This should not be this difficult, but I don't know why I can't get this working


Answers:
author: LarryBrock
body: Here's the stanza from my apache config:

# Keep everything on the right track by redirecting all traffic to the fqdn  
\<VirtualHost \*:80\>  
ServerName jira  
ServerAlias my-jira  
Redirect permanent / <http://jira.company.com>  
\</VirtualHost\>
Problem when importing a word document.
Asked by Donna King:

I selected a file via browse and can't get any further. An empty red box appears on the Import File screen indicating an error but no further information. We are using Confluence Cloud.


Answers:
author: Jack Brickey
body: Hi [@Donna King](/t5/user/viewprofilepage/user-id/1133099) , I realize this is an old post. Are you able to reproduce the still? I just attempted and was able to successfully import in my cloud instance. What is this in server or cloud?
Kafka JDBC Sink Connector - Netezza
Asked by J bhatt:

I am trying to connect to Netezza using the kafa-jdbc-connect connector .

I get a no suitable driver error - Wondering if Netezza connection is supported by this connector ?

2017-05-19 17:17:03,711\] INFO Initializing writer using SQL dialect: GenericDialect (io.confluent.connect.jdbc.sink.JdbcSinkTask:52  
org.apache.kafka.connect.errors.ConnectException: java.sql.SQLException: No suitable driver found for jdbc:netezza08://xxx:5480/DBName?user=xxx\&password=xxx  
at io.confluent.connect.jdbc.util.CachedConnectionProvider.getValidConnection(CachedConnectionProvider.java:59)  
at


Answers:
author: AnnWorley
body: Please let me know what you are connecting to the Netezza database for. If it is to run Confluence, I am afraid that Netezza is not a supported platform: [Supported Platforms](https://confluence.atlassian.com/doc/supported-platforms-207488198.html)

comments: author: J bhatt
body: Sorry - I posted in the wrong forum . Should have been to the confluent forum which supports kafka .
How to configure an apache proxy with file downloads working?
Asked by Spiros Papageorgiou:

I have configured an apache https proxy in front of confluence. It works but some features like 'file download', don't work. To be more precise, when I upload to a confluence page, a file (like a pdf or xlsx), then when I use the apache proxy, the file can't be downloaded.

My browser reports this error when loading the page:

batch.js?confluence.view.edit.transition=true\&nps-not-opted-out=true\&highlightactions=true\&nps-ackn...:3938 POST <https://xx.xxx.xxx.com/rest/webResources/1.0/resources> 403 (Forbidden)

I have turned off SELinux and confluence works behind the proxy (I can see/edit the pages)

I am on confulence 5.9.10

Spiros


Answers:
author: Mirek
body: Hi

This configuration might be worth checking

<https://confluence.atlassian.com/doc/configuring-web-proxy-support-for-confluence-117068.html>

or reviewing all firewall rules / logs in order to determine when packages are dropped.
server reached MaxRequestWorkers setting
Asked by Nico n:

Hello,

on my server I host Jira and Confluence, both behind Apache Web server v.2.4.6.

At one time, I can't reach both applications, so i found out in Apache error.log:

```
server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
```

I didn't tune Apache, because before I would like to understand what means this error relating Jira and/or confluence. Somebody could help me ?

thanks in advance

Nico


Answers:
author: Nico n
body: Hello everybody,

today I got the same error. And temporariry solved by restarting Apache Httpd.

Do you have any advice about this ?

Thanks.


Tags: apache

jira
How to bulk-mass update username
Asked by Packialakshmi Subramanian:

Hi All,

Is there any way to bulk mass update usernames on confluence application. JIRA CLI works for me. I dont find right command to replace username for confluence using confluence CLI.

please advise me on this.

Thanks,


Answers:
author: Shawn Doyle - ReleaseTEAM
body: Without an addon this is still not possible in 2024.