youngmon/atlassian-qna huggingface dataset:
Is there a way to restrict options on the Tools menu?
Asked by Gisela Decuzzi:

Hi, I need to restrict the options displayed in the Tools menu depending the user logged. For example if the user can edit the page should see the export option.

I' ve seen that I colud play with the plugins installed to have more or less options (like send email) but didn't found anything about configuring displayed option depending on users permission. Can anybody help me on this?

The Confluence version I'm using is 3.5.

Thanks!


Answers:
author: Gisela Decuzzi
body: In the Space Admin Page (security) you can configure some options but even if you deselect every option I still having some options. Anybody knows where to manage this?
Confluence PDF Export formatting
Asked by Khanh Nguyen:

In exporting a space to PDF, is there a way to force a page break in the PDF at the end of every Confluence page?

Better yet, force a page break in the PDF on just the top level confluence pages.

Thanks!


Answers:
author: Remo Siegwart
body: To make each Confluence page appear on a separate page in the PDF file, add the following rule in the PDF Stylesheet:

```
.pagetitle {    page-break-before: always;}
```

You can find more information about customizing pdf exports [here](http://confluence.atlassian.com/x/MYJaCw).
Creating a drop down pick list
Asked by Jacob Courter:

I am looking for a way to create a drop down pick list within a page. I am not finding a way within the documentation or any supporting plug-ins. Hopefully I am just missing something.


Answers:
author: Bob Swift (personal)
body: For Confluence pages, see [Run Plugin](https://studio.plugins.atlassian.com/wiki/display/RUN)

comments: author: Jacob Courter
body: Sorry, I forgot to mention that this was for Confluence.

Thanks Bob. I looked through a few of the plugins and the Confluence doco, but didn't think about the Run plugin. I'll check it out


author: Stiltsoft Support
body: Hi [@Jacob Courter](/t5/user/viewprofilepage/user-id/703418) ,

A dropdown section with custom values that can be switched in the page view mode can be created easily with our [Handy Macros for Confluence](https://marketplace.atlassian.com/apps/1214971/handy-macros-for-confluence-formatting-and-interactive-ui?tab=overview&hosting=server&utm_source=atlassian-community&utm_medium=answer&utm_campaign=handy-macros-traffic-sources&utm_id=1216111&utm_content=dropdown).


author: Terri Manco
body: Yes, my bad. I thought I read "on a Confluence page" in his post, but I'd been looking at so many items trying to find an answer that I got confused. Apologies, and thanks for the reply!


author: Terri Manco
body: Pardon my ignorance, but why does Jacob need to specify which application he's looking at? Isn't "on a Confluence page" sufficient? Reason I ask is that I, too, would like to create a pick list on a Confluence page (with different status values---Delivered, In Progress, etc.). Thanks.

comments: author: Nic Brough -Adaptavist-
body: The original question did not mention an application at all. There are several applications produced by Atlassian, one of which already does a "pick list" and "drop down" without any clever tricks. Confluence does not, so you'll need to find or write something to do it. But we can't tell you that without knowing which application he was talking about. (Bob took a good guess, and it was right)


author: Nic Brough -Adaptavist-
body: Um, you need to tell us which application you're looking at. (In Jira for example, it's a doddle - custom field of type "select list")


Tags: select-list
Confluence System Error when saving LDAP Config
Asked by Abrham Smith:

I am getting a system error when trying to save my LDAP Settings. I am not sure where to get anymore information on this.

I am running Confluence 4, integrated with Jira 4 using Active Directory. The server is 2008 R2 and the database is Oracle 11g.

Thank you


Answers:
author: Manse Wolken
body: And what would that error be? Can you give a bit more information, some lines from the LOG file?

What information did you fill in the required fields?


Tags: error

ldap
Confluence 3.5.9 ans MS SQL 2008 transactional replication issues
Asked by Xabier Davila:

Is anyone out there using Transactional Replication with Confluence 3.5.9?

I'm finding issues with this, as 2 tables (cwd_application_address and hibernate_unique_key) don't have a primary key. this means I cannot use transactional replication (which would be the most appropriate for my backup database)

Has anyone resolved this issue?

Thanks


Answers:
author: Deividi Luvison
body: Hey Xabier,

A pk was added to table cwd_application_address on Confluence 5 series, however the same does not apply to hibernate_unique_key unique key (still don't have a pk).

What you could do (if you hadn't done already) is to upgrade confluence to 5.0.3 (3.5.9 \> 3.5.17 \> 5.0.3) and then recreate your replication without targeting the hibernate_unique_key table.

Hope it helps.  
Thanks and Regards,  
David\|Confluence Support Engineer


author: Xabier Davila
body: No replies to this question so far, No one out there is using transactional replication with Confluence?


Tags: ms-sql
Need SQL to remove 5K groups
Asked by Craig Solinski:

Hi,

After running Migration of External Memberships, found over 5 thousand groups had been copied into Confluence database that are not desired/needed/used by confluence in any way.

I've updated the group filter of our LDAP User Directory so these groups will be ignored henceforth, but I wish to delete these groups from Confluence using sql - Oracle 11.x Database.

Can you provide me with appropriate sql - I'm hesitant to create my own to and wish to fully protect data integrity.

Thank you very much,

Craig Solinski

Confluence and Jira Administrator


Answers:
author: Jeremy Largman
body: Hi Craig,

I think you're best off using @Bob Swift's Remote API client rather than SQL. It's the safe operation you're looking for.

Here's the details:

<https://studio.plugins.atlassian.com/wiki/display/CSOAP/Confluence+Command+Line+Interface>

Basically you'd use the remove group method. You'd need to figure out the names of your groups, then run a script in your language of choice to do the deletion.

comments: author: Craig Solinski
body: Nice,

Used perl comfluence.pm which uses xml-rpc to connect to confluece and get all groups. Then selected the ones I wanted with perl regex and fed them one at a time into Java Confluence CLI.

my $groups = $wiki-\>getGroups();

my $directory = '\<yourpath\>/confluence-cli-2.2.0/lib/confluence-cli-2.2.0.jar ';  
my $jargsfirst = '--server \<your url\> --user xxx --password xxx --action removeGroup --group ';  
my $jarglast = "";

foreach my $group (@$groups) {  
# for all groups that containing TK_ but it is NOT followed by 'V' or 'D'...  
if ($group =\~ /TK_\[\^VD\]/) {   
print "Found group: ", $group, "\\n";  
$jarglast = $group;  
# call java SOAP command line interpreter to perform the group deletion;  
system "java -jar $directory $jargsfirst $jarglast";  
$cnt++;  
}  
}

# I know it was not very efficient but it worked great:)

-----------------------------------

Question: I wanted to simply use perl confluence.pm to do all the work but perl is doing something to token value:

my $token = $wiki-\>login($url, $user, $password);

Then

$bool = $wiki-\>removeGroup($token, $group, ""); # fails - complains about token.

print of token looks like: 'Confluence=HASH(0x1008050b0)'

Do you know how I can get confluence token in format that is valid to pass to confluence.pm commands?


author: Jeremy Largman
body: I don't know that one, sorry. It might be good as it's own top-level question.
Confluence install on MySQL 5.1 (Debain Linux) Storage Engine Qn.
Asked by Rolando:

Hello People,

I'm just about to roll out confluence for our organisation, on the same box that our current Jira install is on. I just have a question about the storage engine that MySQL will use, its 5.1 (default on debian 6.0) and is useing MyISAM by defaul.

When I install confluence will it create the tables using InnoDB or will I need to change something manually in order for this to happen? I'm fairly sure I can just install it as per the standard instructions, but i would like to just double check. Many Thanks for help (in advance)

:)


Answers:
author: Rolando
body: Close! I just set the Default storage engine to InnoDB and then addded the Confluence DB


author: Nic Brough -Adaptavist-
body: I ran into this one in a 3.5 install - you do need to tell the database to default to using InnoDB, at least during installation of Confluence, because the setup will simply use the defaults the database is set to. (Ubuntu is based on Debian, so there's a strong chance it will be the same for your Debian box)

comments: author: Rolando
body: Thanks for the advice Nic.

Ah so it won;t do this by default? I believe MySQL can use different storage engines for different tables, if I do change this, I assume that it will not affect the existsing Jira install?


Tags: database

innodb

mysql
When will PostgreSQL 9 be officially supported?
Asked by Tino Winkler _Communardo_:

The supported platforms pages for [Jira](http://confluence.atlassian.com/display/JIRA/Supported+Platforms) and [Confluence](http://confluence.atlassian.com/display/DOC/Supported+Platforms) say that for PostgreSQL only versions 8.x are officially supported. Is Atlassian planning to support PostgreSQL 9 in the near future? And if so, can anyone tell me when (which release) this will happen?

Thanks in advance,

Tino.


Answers:
author: Mark Hrynczak
body: Watch this ticket to be informed of updates on support for PostgreSQL 9: <https://jira.atlassian.com/browse/CONF-21797>

comments: author: Tino Winkler _Communardo_
body: Hi Mark,

thanks for the hint. Do you know about an similar feature request for JIRA? Or does this ticket count for both Confluence and JIRA?


author: Mark Hrynczak
body: No, this ticket is for Confluence only. There doen't seem to be an equivalent request for JIRA yet - feel free to create one at <https://jira.atlassian.com>


author: Tino Winkler _Communardo_
body: For everyone who's interested: PostgreSQL 9 is supported for Confluence starting with version 4.2.

JIRA doesn't support it yet.


author: Harry Chan
body: I've already raised <https://jira.atlassian.com/browse/JRA-29456> for Postgres 9 a while back. Would be great if you can vote for it too.


author: Tino Winkler _Communardo_
body: I contacted Atlassian Support about this question. The bottom line of the answer I got was:

There is no clear date when PostgreSQL 9 will be supported. Though it should work with a recent PostgreSQL jdbc driver, there is no official support yet.


Tags: database

jira

postgres
Is there a possibility to allow "manage watchers" for users although there are not (space) administrators?
Asked by Heering Ligthart:

In the documentation the option "manage watchers" requires (space) adminstration for a user.

But we want to permit "manage watchers" for a larger group of users, without making them (space) administrators. Is there a possibility?


Answers:
author: Sherif Mansour
body: Hey Herring,

There is no way to do this. I don't think this is something we would consider being core to Confuence. Maybe an opporuntity for plugin developers to extend the product...

comments: author: Jesse Katz
body: [@Sherif Mansour](/t5/user/viewprofilepage/user-id/781579), Hi! I've always found it weird that the JIRA permissions are so granular but Confluence permissions are not. There are multiple permissions in Confluence I'd think I would be able to set.


author: Tim Stone
body: We had the same question.

For example, If you comment on a space, you have no idea who is receiving the comment. What ends up happening, folks re-address users in the comment section and people end up receiving multiple copies. Whats the downside of have an option that allows organizations to show the watch list? Or maybe they already can?


author: Alex Chan
body: How is this marked as "solved" when there are no answers...


author: John Harmon
body: You can do this in Jira, why not Confluence?


author: Vera Henrichs
body: How about this feature? <https://jira.atlassian.com/browse/CONF-40582> Please vote!


author: Matthew Hutton
body: Adding a group to a watch list is covered by <https://jira.atlassian.com/browse/CONF-20118>.

I agree though that adding permissions to manage watchers should be a permission to can assign to a group.


Tags: permission

watcher
How stable is your Confluence system (and what's your technology stack)?
Asked by MICHAEL O'Neill:

How stable is your Confluence system and what's your technology stack? I've always used ubuntu + mysql + apache mod_proxy and it's been rock solid on Confluence version 3.2 (weeks and weeks (and likely weeks) before an unexpected down).

Currently at a new gig with a new version and a setup that I didn't control, and it's going up and down like a slinky. Can't make it through a week (and sometimes a day) without either losing our ability to connect to it or having it crash. Still trying to locate the problem (is it confluence, our machine config, network gremlins, etc...) and work with IT to resolve it.

So, I'm just curious. Once you get through your initial install and shakedown, how would you characterize the stability of your system? What's your technology stack?


Answers:
author: Colin Goudie
body: If it's a self managed install, similar to your stack. I have found it to be very reliable. Windows I've had more issues with.

With unreliability it's important to approach it as scientifically as possible and don't get caught chasing red herrings. Step through the Confluence performance page is a good place to start.

<http://confluence.atlassian.com/display/DOC/Performance+Tuning>

Also, I have found that utilising the war installations to minimise and version control our customisations to the install package helps.

However, the other solution, which we do @ AppFusions and push our clients onto is to host at Contegix. Rock solid and great support
Backed up 3.5.9 reinstalled, using MySQL as my database, says restored properly, accessing ANY of my spaces shows page not found errors
Asked by sanjay srikonda:

I am using Confluence 3.5.9 on my internal site. Unfortunately, the person who installed it used the internal database. In order to reinstall it to use a MySQL database, I followed your support article:

<http://confluence.atlassian.com/display/CONF35/Migrate+to+Another+Database>

The steps I followed:

1. Backed up my current 3.5.9 site (all spaces) to my server

2. Took down the service.

3. Reinstalled in a new directory on my server

4. Set up to use MySQL as my database

5. Restored my backup to my new installation, restore said it worked fine

Now, when I start my new site, the home page, shows all my spaces, yet clicking on ANY of my spaces restored from my 3.5.9 backup shows the following:

Page Not Found The page you were trying to reach could not be found. This could be because:

The page does not exist.

The page exists, but you do not have permission to view it.

This is maddening. Luckily for me, I still have my previous site up and running and I only installed this to point to a different port on my server.

I cannot move forward because I cannot restore JUST my spaces as I'm told the space already exists. I cannot delete the spaces and restore because I can't access them because I see nothing but page not found messages.

What am I supposed to do?


Answers:
author: Nic Brough -Adaptavist-
body: Check your user settings - it sounds like Confluence doesn't think you have any permissions.
Inserting a link to a web page does not work, due to the number of characters?
Asked by Heering Ligthart:

External links work with the "insert link" dialog, but one link we use does not work. The link (different text or original) changes into text when the page is saved.

Can it be the number of or certain characters that are in the web link?

Used link:

http://www.logistiek.nl/blogs/artikelen/id477-Doorslaan_op_lean_plaszakken_en_andere_ongein.html?cmpid=NLC\|logistiek\|27-okt-2011\|Doorslaan%20op%20lean:%20plaszakken%20en%20andere%20ongein


Answers:
author: David at David Simpson Apps
body: It's because of invalid characters in the URL

URLEncode these

* "\|" use **%7C** instead
* ":" use **%3A** instead

comments: author: Heering Ligthart
body: Hi David,

I changed the "\|" and ":" but still the same results. And if I copy the changed link into a browser the link does not work anymore.

Do I mis something or do you have other suggestions?


author: John Masson
body: Hi Heering,

You might have missed one of them perhaps, I just tried out David's suggestion, resulting in <http://www.logistiek.nl/blogs/artikelen/id477-Doorslaan_op_lean_plaszakken_en_andere_ongein.html?cmpid=NLC%7Clogistiek%7C27-okt-2011%7CDoorslaan%20op%20lean%3A%20plaszakken%20en%20andere%20ongein> and it linked up ok in Confluence 4.

John


author: Heering Ligthart
body: Hi John, David,

Thank you both, I works now for me. Probably missed a character somewhere.


author: viruganesh
body: add the link using text edit mode. it works better. Visual edit mode adds a square brackets in some scenarios, that makes the link to fail.


author: Pavel Bryukhanov
body: I had a similar problem of inserting links from SharePoint.

Here a quick video what I have done. I hope it helps.

<https://youtu.be/1416Mw38I84>


author: Barbara Green
body: You can always make a tiny URL and insert that instead ([www.tinyurl.com](http://www.tinyurl.com))


author: David Peterson
body: Technically, there is a 256 character limit on URLs, although most browsers seem to allow higher limits. I don't think that Confluence does any checking on it though, although that may have changed in Confluence 4.


author: Heering Ligthart
body: After saving the question I see that the link does work here, if we copy-paste the link in our confluence page it does not work.


Tags: link

url
Limiting access to members of an LDAP group
Asked by Erik Anderson:

We are looking to limit access to our Confluence instance to members of a certain LDAP group. Is this possible?

We're running Confluence 4.0, authenticating against AD.

Thanks!


Answers:
author: JamieA
body: Yes entirely possible. User Directories -\> Add your LDAP directory, "user object filter" under User Schema settings.

There you could use memberOf or whatever to restrict to your group(s).

comments: author: Erik Anderson
body: That worked perfectly, thanks!


Tags: active-directory

ldap
What sort of security is Atlassian using on the OnDemand platform to protect user data?
Asked by Bryan Guffey:

I really want my company to move our instances of Confluence and Crowd to OnDemand. However, my network engineer has a serious concern about the "outside the firewall" dangers. What sort of security has Atlassian implemented internally to protect this information (we have tons of client passwords and information in our Confluence instance), and do you offer any additional security, such as a Apache secured login page before the OnDemand instance, etc?


Answers:
author: NikE
body: The doc below is our official security page for OnDemand. If you click through the different links (to our hosting partner for example) I believe all your questions will be addressed.

[https://www.atlassian.com/hosted/security](https://www.atlassian.com/hosted/security "https://www.atlassian.com/hosted/security")

Our general security page is at:

[https://www.atlassian.com/security/](https://www.atlassian.com/security/ "https://www.atlassian.com/security/")

Additionally, you an sign up for a free trial if you and your network engineer want to 'kick the tires' before making the move outside your firewall.

comments: author: Bryan Guffey
body: Nik-

If we wanted to add an extra layer of security between the end user and the OnDemand Servers, what options would we have?


author: Felipe Cuozzo
body: Hi Bryan,

It's a very late response, but we don't offer any other option to improve the security between the end user and the OnDemand servers, if HTTP over SSL is not enough than I guess your only option is hosting behind your firewall.

If you can explain what type of extra layers you had in mind?

Cheers,  
Felipe Cuozzo  
OnDemand Developer


Tags: cloud
Is there a way to report Spaces that do not have pages?
Asked by Paul Paul:

I have a problem with personal spaces exisitng that do not have pages and I want to be able to delete those personal spaces. Has anyone found a way to report spaces without a single page?


Answers:
author: David Peterson
body: If you want to use the reporting plugin, try this:

{report-table}

{space-reporter}

{number-filter:space:all pages \> collection:size\|maxValue=1}

{space-reporter}

{report-column:title=Empty Spaces}{report-info:space:name\|link=true}{report-column}

{report-empty}_No empty Spaces_{report-empty}

{report-table}

I've set 'maxValue' to 1 since most pages have at least one page (the home page). If you want absolutely no pages, set it to '0'.

Also, this will also be somewhat inefficient, since it is basically loading every page in your server into memory, so I'd avoid running it too often...

comments: author: Paul Paul
body: Perfect, the report does the trick. Many thanks. When I get my upgrade and users sorted out in the new year I am going to have some real time to work on reporter and macros and I can't wait.


author: David at David Simpson Apps
body: If @Bob Swift doesn't have a magic CLI command to do this, you could write a suitable macro.

The execute method could be along these lines:

```
public String execute(Map params, String body, RenderContext renderContext)        throws MacroException{    String returnValue = "&lt;h2&gt;Spaces without pages&lt;/h2&gt;&lt;ol&gt;";    List&lt;Space&gt; spaces = spaceManager.getAllSpaces();    for (Space space : spaces)    {        List&lt;Page&gt; pages = pageManager.getPages(space, true);                if (pages.size() == 0)        {            returnValue =  returnValue + "&lt;li&gt;"+space.getKey()+" : "+space.getName()+"&lt;/li&gt;";         }    }    return returnValue + "&lt;/ol&gt;";}
```

It's suboptimal code, but would likely do the trick.

comments: author: Paul Paul
body: Thanks for the swift response. I must admit that I although I know how to write a basic macro and use the reporter plugin I don't know what to do with that code, can you direct me to that fine manual? ;-)
'Orphaned' personal spaces after the LDAP user has been removed
Asked by Paul Paul:

I have a problem with personal spaces being left in Confluence after a user has been removed from the network. Authentication and users via LDAP. I had assumed that when a user is removed from the LDAP source I would still get to delete the user from Confluence and this would therefore remove the personal space. Recently I am finding that the user no longer exists in Confluence and yet the space is still present - when I am informed they are removed from Active Directory I find there is no user record in Confluence at all. Has anyone else seen this problem?

One oddity I find is that the pages from the Space have already been deleted - would this somehow break the link between space and user if no authored content remained?


Answers:
author: Bruna Griebeler
body: If you're having trouble with Orphaned Pages, you can remove them or "give them" to another user (as creator):

Check this KB more more info about it: <https://confluence.atlassian.com/display/DOC/Managing+Orphaned+Pages>

Cheers!


author: Steve Rhodes
body: We are 5 years down the line and I have this exact problem in Confluence 5.10. User is gone from LDAP but his personal space is still there. User not in the People Directory anymore, but personal space and all pages still available. The permissions on the space are the default from when the personal space was created.


author: JamieA
body: This sounds highly related to this jira issue/question: [https://answers.atlassian.com/questions/12956/jira-full-ldap-integration-how-do-you-deal-with-retiring-users](/questions/12956/jira-full-ldap-integration-how-do-you-deal-with-retiring-users).

I think Atlassian have somehow missed dealing with this.