youngmon/atlassian-qna huggingface dataset:
How do I change the title of a space someone else created?
Asked by Pam Salaway:

The previous Confluence admin (no longer available) created many of the SPACES currently in use on our site. I'd like to re-title the spaces, but I don't know how to do it so that the new title "takes" in both the space index and the original space home, while keeping the current content intact. Can you help?


Answers:
author: BillA
body: Hi Pam, if you're looking to change the space key, this is an outstaning feature request we're tracking at <https://jira.atlassian.com/browse/CONF-2085>

There are some proposed workarounds on this page <https://confluence.atlassian.com/pages/viewpage.action?pageId=14286901>


author: Paul Greig
body: Hi Pam,

To update the name of a space you need to be the space administrator, as discussed here:

<https://confluence.atlassian.com/display/DOC/Editing+Space+Details>

You can find the current Space Administrators by selecting the space \> space tools \> overview and checking the 'Space Details' tab. The administrators of the instance will be shown at the bottom of the tab.

If you are not in this group you will need to be added by an existing administrator :)

Cheers,

Paul


author: Jeison
body: Pam, you can achieve that by going to **Space Tools \> Overview.** Then, click **Edit Space Details,**rename the space and save the changes.

Hope it helps.

comments: author: Matthew J. Horn
body: Ooops, I was thinking of the space key rather than the space name. The space key cannot be changed once it's set.


author: Matthew J. Horn
body: I don't think you can rename spaces after they have been created. The best way to do it would be to get the Copy Space plugin and rename the new copied space when you create it. Then delete the old space.


Tags: cloud

confluence-cloud
How can I add a user macro to the documentation theme's layout
Asked by ashan:

Hi all,

How can I add macro \[1\] to the documentation theme's page layout please? Confluence only allows to customize the default theme and I tried editing the doctheme.jar files but they dob't work well with the macro.

\[1\] <https://confluence.atlassian.com/display/DISC/Next+and+Previous+Links>


Answers:
author: Guilherme Nedel [Atlassian]
body: Hello Ashan,

[The macro](https://confluence.atlassian.com/display/DISC/Next+and+Previous+Links) probably needs adaptation to work with latest Confluence versions. Since Confluence 5 had considerable UI changes, you may like to add it to a page and tinker with the markup before attempting to customize the *jar files.* You may like to refer also to the [theme customization page](https://confluence.atlassian.com/display/DOC/Configuring+the+Documentation+Theme#ConfiguringtheDocumentationTheme-Customisingthethemeatsitelevel).


Tags: documentation-theme

navigation

user-macro
How can I add a user macro to the documentation theme's layout
Asked by ashan:

Hi all,

How can I add macro \[1\] to the documentation theme's page layout please? Confluence only allows to customize the default theme and I tried editing the doctheme.jar files but they dob't work well with the macro.

\[1\] <https://confluence.atlassian.com/display/DISC/Next+and+Previous+Links>


Answers:
author: Kim Watson
body: I am interested in adding the noprint macro to the Documentation theme.

I have found the following in the Atlassian documentation, but when I add this it doesn't seem to work. I can only find the template code for the noprint macro so maybe I need the wrapper for it as well, but can't figure out what this would be.

Taken from page [](https://confluence.atlassian.com/display/DOC/NoPrint+Example+of+a+User+Macro,)<https://confluence.atlassian.com/display/DOC/NoPrint+Example+of+a+User+Macro>, the content for the macro is  
`## ``@noparams`  
`<div ``class``=``"noprint"``>$body</div>`  
Also, this has to go into the PDF CSS:.noprint  
{  
display: none ;  
}  
I tried putting this into the footer of the Documentation theme as an alternative way to define the macro, but this didn't work either:  
## @noparams:title=noprint\|type=formatting\|desc=excludes content from PDF print version\|multiple=true

Can you help me here? Thanks...


author: Steve Goldberg
body: You can add them to the footer and then use jQuery to move them where you want. E.g.:

```
&lt;script type="text/javascript"&gt;	jQuery('#prevnext').insertBefore('#main-header');&lt;/script&gt;
```

(Assuming you've wrapped your buttons in a div with the 'prevnext' id.)


author: ashan
body: I mean I want the next/previous links in the body of the page. Not the footer. Any idea how to do this please? If went to the **Administrator -\> Look \& Feel -\> Layouts** but not sure where to edit and how.


author: ashan
body: Thanks Bob. I want to add the macro into the page area rather than the footer.


author: Bob Swift (personal)
body: Go to Space Admin -\> Themes and select to Configure the documentation theme. Just add the macro to the header or footer section.


Tags: documentation-theme

navigation

user-macro
"draft saved" message not appearing
Asked by Steve Thornhill:

Confluence version 5.1.4, new install on a localhost.

When editing a page (or any other document) the message about saving a draft does not appear in the lower corner.

I've checked the timeout settings (and used 30/45 seconds) and also attempted this in Firefox/Chrome and IE. The drafts are being saved, if I leave the page and return I am notified that a draft exists.

Does anyone have any pointers where to check to see what may be missing in my setup?

Steve

Edit Note : I've retried the complete setup on a different laptop (with a larger screen \& resolution) and the message does show at the bottom of the screen. I'll have to check the screen setup on the initial laptop next week, it looks like it might be a user setup problem :)


Answers:
author: Rodrigo Girardi Adami
body: Hi Steve,

This might be some problem with the browsers or the screen resolution.

Can you state which resolution worked and which didn't so we can try to test here and see if this is a bug?

Thanks!

Rodrigo

comments: author: Steve Thornhill
body: Rodrigo,

I believe it is the resolution. Currently set to 1366x768, the maximum this laptop will support.

If I hide the windows taskbar I can see the messages appearing, so it isn't a problem with Confluence.

Steve


Tags: confluence-administration
[CONF] How can I run some JS when the pagetree has finished loading?
Asked by Steve Goldberg:

I am writing a user macro and part of the code is going to target the active page in the page tree (which uses the {pagetree} macro) and apply some simple styling to it.

The code is as follows:

```
#set ($activePage = "#childrenspan$content.getIdAsString()-0") &lt;script type="text/javascript"&gt;       var AP = '${activePage}';    jQuery(AP).addClass('activePage');&lt;/script&gt;
```

As you can see it's a mixture of VTL and JS - the VTL sets a variable and passes it to the JS, which is basically the ID for the current page in the page tree.

However, it is running **before** the page tree has loaded. This means that it's effectively returning nothing. If you run the code in the developer console **after**the page has finished loading then it works.

So the question is, how can I run some JS after the {pagetree} macro has finished loading?


Answers:
author: Beth Aitman
body: Here I shall add a completely horrible hacky solution, in the hope that its sheer hackiness encourages somebody from Atlassian to suggest the correct way to do this!

Add a script at the end of your page HEAD:

```
var oldInit = AJS.toInit;AJS.toInit = function(A) {oldInit(A);// Do some code of our ownvar AP = '${activePage}';    jQuery(AP).addClass('activePage');};
```

Since this code runs before the pagetree plugin is invoked (in batch.js), we hijack the onInit function to add our own code to run at the end.


author: Steve Goldberg
body: (can't seem to delete)


author: Steve Goldberg
body: As I can't edit my post, that should say "but it didn't have an effect".


Tags: javascript

jql

user-macro
Hiding left panel in default theme
Asked by Lakshmi:

Hi there, i am using confluence 5.1.3. i am getting left bar /panel whcih is coming with default theme. is there a way to hide this section?

Please suggest.

Thanks,

Lakshmi


Answers:
author: AhmadDanial
body: Hey there, Suma.

I noticed that it has been a while since you receive any response here. Have you raised a ticket in the following link:

[](https://support.atlassian.com)<https://support.atlassian.com>

You will be able seek help from the support engineers regarding the questions that you have here. If you have not, I would kindly suggest you to do so.

Hope this helps and all the best.


Tags: hide

side-bar
delete all conflunce users all at once
Asked by James Lim-It:

Hi,

Is there a way to delete all the users in confluence. we have about 500 users and its not gonna be a walk in the park to delete all these.

I do have an access in the database using TOAD.

Thank you,

James


Answers:
author: Septa Cahyadiputra
body: Hi James,

As mentioned by Peter, it is not possible for you to delete all of your users at once, even when you have database access as it tied to Confluence contents. Another possibility is to deactivate users which is possible using the following query:

```
UPDATE cwd_user SET Active = 'F';
```

Please make sure that you understand the concecuences of this action as it will set all users to inactive. If you wish to activate your admin, please refer to our documentation [here](https://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights).

Hope it helps.

Cheers,  
Septa Cahyadiputra


author: Peter Van de Voorde
body: You might not want to delete all users but rather deactivate them. Deleting a user is only possible if you also delete al his or her content.

Why exactly do you want to delete all users?

Best regards,

Peter


author: James Lim-It
body: Hi all, Thanks for your comments. I tried the following:

DELETE FROM cwd_membership WHERE child_user_id != user;

DELETE FROM cwd_user_attribute WHERE user_id != user;

DELETE FROM cwd_user WHERE id != user;

it deleted the user in the tables but when i check the user in confluence, it still is there. so i tried restarting the app server and deleting the user manually through administer user page, it just kept loading and loading. same thing happens when i create a user. it seems like i am now not able to create user and remove a user. any suggestion? thanks

comments: author: James Lim-It
body: ok i managed to fixed this by restoring the site. I think I will just manually remove users from the admin page just to be safe


author: fsim
body: Hey James.

You can do so by running these 1 by 1 (**Take a DB BACKUP FIRST!**):

```
DELETE FROM cwd_membership;DELETE FROM cwd_user_attribute;DELETE FROM cwd_user;
```

Note that this will **remove All Users and only works with Confluence 3.5 and above**. It will be great to limit the query with a WHERE clause, to prevent yourself from being locked out of Confluence. The best way would be to run this query:

```
select u.id, u.user_name, u.active from cwd_user ujoin cwd_membership m on u.id=m.child_user_id join cwd_group g on m.parent_id=g.id join cwd_directory d on d.id=g.directory_idwhere g.group_name = 'confluence-administrators' and d.directory_name='Confluence Internal Directory';
```

To identify the administrative user's id, then run the queries this way (example if the id is 2818050):

```
DELETE FROM cwd_membership WHERE child_user_id != 2818050;DELETE FROM cwd_user_attribute WHERE user_id != 2818050;DELETE FROM cwd_user WHERE id != 2818050;
```

Again, this is not recommended by Atlassian. So keep this KB in mind in case you get locked out: <https://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights>

Foogie
Hyperlink Color needs to be more distinguishable from regular text
Asked by Randy Oh:

I'm not sure exactly when this happened, but recently, the confluence color for hyperlinks texts seems to have gotten to be a darker blue. I can hardly tell what's a hyperlink and what's not.

Is that something controllable by our own IT dept that maintains confluence? See the attached for an example.![](../../upfiles/conf_hyperlink.png)


Answers:
author: Steve Kuo
body: I agree, there's no way to distinguish a hyperlink from regular text other than mousing over. Why is this marked as "\[closed\]"?


Tags: colour

link
Hyperlink Color needs to be more distinguishable from regular text
Asked by Randy Oh:

I'm not sure exactly when this happened, but recently, the confluence color for hyperlinks texts seems to have gotten to be a darker blue. I can hardly tell what's a hyperlink and what's not.

Is that something controllable by our own IT dept that maintains confluence? See the attached for an example.![](../../upfiles/conf_hyperlink.png)


Answers:
author: Christina Schantin [Communardo]
body: Iam not sure, if i understand the problem correctly. I will explain, how to change the link color. You can change the link color for a specific space or for the whole system.

For a specific space: you have to be space administrator for that:

* open one page in a space
* go to space administration
* open look and feel
* open color scheme
* select custom color scheme and edit the colors

whole system: you have to be confluence administrator for that:

* go to confluence administration
* go to color scheme
* edit color scheme

I hope, that will help you.

comments: author: Randy Oh
body: That definitely helps! I will forward this on to our internal IT team. Thank you.


author: David Garc?a
body: How does this work when wanting to change the color of a hyperlink for a single page? I'm using HTML and CSS and unable to change the color of the hyperlink without having to change the link color schema for the entire wiki space/system.


author: Ken Carlson
body: I am having a similar problem to David above, but in my case, I want to change the link color for only one specific link - not a whole Space or even a whole page. I have a Title (white text on blue background) that contains some hyperlinked text. The color default makes the text nearly invisible against the background. I want to keep the hyperlink, but override the default link color to keep the text white. Any ideas?


author: Christina Schantin [Communardo]
body: if you want, you can vote for my answer B-)

comments: author: Randy Oh
body: voted for it. :)


Tags: colour

link
oauth error when using trusted app links
Asked by Mike Welch:

Oauth is not configured, we are using trusted app links between our Jira and Wiki instances. Seeing this in the logs quite a bit:

2013-07-31 13:43:49,571 WARN \[http-wiki.xxxxx.com%2F10.208.0.110-80-60\] \[apache.commons.httpclient.HttpMethodDirector\] processWWWAuthChallenge Unable to respond to any of these challenges: {oauth=OAuth realm="http%3A%2F%2Fjira.xxxxx.com"}  
-- url: /rest/mywork/1/action \| userName: williamw \| referer: [http://wiki.xxxxxxx.com/plugins/servlet/notifications-miniview#notification/appId=12ec5297-2427-3a4d-9da8-afead6fa19da\&entity=issue\&id=480712-comment](http://wiki.xxxxxxx.com/plugins/servlet/notifications-miniview#notification/appId=12ec5297-2427-3a4d-9da8-afead6fa19da&entity=issue&id=480712-comment)

The above error is thrown when trying to comment on a jira ticket via a Wiki page notification. Any ideas?


Answers:
author: hsuhailah
body: The message in the log resembles the one in this KB: <https://confluence.atlassian.com/display/JIRAKB/Application+Link+authentication+fails+due+to+bad+URL+signature>. It can happened when application's URL does not match what it is telling other applications, then this error will be shown when connecting an application link. I'd suggest to check out the suggested resolutions and hope that helps.

comments: author: robin wang
body: That is not the solution for me. I have Bamboo 5.4.2 and Stash 2.11.2. I have a Bamboo plugin to send notfication to Stash using applink. I got the same error. I configured trusted app for authentication. The http header had trusted app stuff, but the returned error was oauth. I have the server.xml set correctly for both Bamboo and Stash.


Tags: wiki
Create from template macro is creating the new page on the space home page instead of parent page
Asked by Fabian Lopez:

I am trying to use the Create from Template macro, but the pages are created from the homepage of the space instead of the parent page where the macro is located. Is there a way to specify the macro parameter indicating the right parent page?


Answers:
author: hsuhailah
body: I'm afraid you are hitting a known bug for this macro that we have addressed here: <https://jira.atlassian.com/browse/CONF-29859>. The bug has been fixed and the fix will be delivered in coming release of Confluence 5.2.1. Also, we have released a new [plugin version with the fix\<sup\>![](https://jira.atlassian.com/images/icons/link_attachment_7.gif)\</sup\>](https://jira.atlassian.com/secure/attachment/97522/97522_confluence-create-content-plugin-1.5.25.1.obr "confluence-create-content-plugin-1.5.25.1.obr attached to CONF-29859"). You can download it and install it via the Universal Plugin Manager.


Tags: confluence-administration
can't log in to confluence
Asked by Scott Freiman:

I have tried resetting my password several times and still can't log in to confluence. [scott@qwireholdings.com](mailto:scott@qwireholdings.com)

Thanks for your help.


Answers:
author: Scott Freiman
body: Solved.


author: Scott Freiman
body: Thanks.


author: William Zanchet [Atlassian]
body: Hey Scott,

From your tagging it seems that you're using OnDemand service. If so, you can open a support ticket <support.atlassian.com> to have the team reset for you.  

I hope this helps.  

Cheers,  

WZ


author: Christina Schantin [Communardo]
body: In which confluence? Are you a normal user or the confluence administrator?


Tags: cloud

confluence-cloud
How to use GeneralUtil in atlassian-plugin.xml
Asked by Eric Koepfle:

Hello,  

I was mimicing the Confluence Space IA plugin to create a space admin button in our template.  

the line:

```
&lt;link id="spacebar-settings-link"&gt;/spaces/spacetools.action?key=$generalUtil.urlEncode($helper.spaceKey)&lt;/link&gt;
```

the final render doesn't seem to render correctly, I see the string literal instead of the actual space key.   

What am I missing? I didn't see anything obvious in the atlassian-plugin.xml, and I couldn't find a help page outlining the usage.  

Thanks!


Answers:
author: Eric Koepfle
body: So it turned out the $helper is not a accessible by default object.  

I ened up with:

```
&lt;link&gt;/spaces/spacetools.action?key=$generalUtil.urlEncode($space.key)&lt;/link&gt;
```

thanks all for the suggestions.


author: Maris Seimanovs
body: I discovered that in JIRA, JiraWebActionSupport has method urlEncode, thus I could just do the following in my Velocity template:

```
$action.urlEncode("my/unsafe/url")
```


author: Eric Koepfle
body: @David Pinn, Yep. But I found my way around it.


author: Tim
body: try

```
$action.helper.spaceKey
```

comments: author: Eric Koepfle
body: This was close, but it was the $helper object that was null. I ended up using:  

\<link\>/spaces/spacetools.action?key=$generalUtil.urlEncode($space.key)\</link\>  

I guess I saw the helper so much I thought it was there by default.


author: David Pinn
body: When you say 'I see the string literal' do you mean that you see '$helper.spaceKey' in the output?


author: Eric Koepfle
body: You've put the generalUtil in velocity context?

The best way to do that is bring the $helper.spaceKey already encoded to the velocity template.

comments: author: Eric Koepfle
body: with Confluence, GeneralUtil is always in the velocity context. it's one of the default objects.


Tags: velocity
never ending "downloading and installing..." in UPM
Asked by Andrei [errno]:

tried to upload a plugin (new version of "Share page") and see a progress bar that is stuck @ about 85%.  

Page refresh brings the progress bar back to about 50% -\> goes to 85% and is stuck again. No errors in the logs. Will plan to restart the system after EOB, but am curious - has anyone experienced anything like that?


Answers:
author: Andrei [errno]
body: it seems that I can trace the problem back to installed "groovy-2.1.3.1" runtime. <https://marketplace.atlassian.com/plugins/org.codehaus.groovy.groovy-all-atlassianplugin>I have been disabling plugins one by one until I could reproduce the "hanging" of the UPM.  
Groovy is an OSGi bundle, so it may affect UPM in some way


author: hsuhailah
body: Also, ensure that the URL you use to access Confluence via the browser match the Base URL configured in Confluence Admin \> General Configurations.

comments: author: Andrei [errno]
body: confirmed = and it is the base url. thanks


author: William Zanchet [Atlassian]
body: Hey,  

Assuming that you're using MySQL, you might be facing this problem, related exclusive with MySQL, that is max_allowed_packet that is set too low for Confluence.

You might want to check our documentation to fix it:

<https://confluence.atlassian.com/display/CONFKB/Exceeds+Max+Allowed+Packet+for+MySQL>

Cheers,  

WZ

comments: author: Andrei [errno]
body: it is indeed MySQL - thanks for the tip. I will check into that


author: Andrei [errno]
body: after setting max_allowed_packet to 34M the same problem is still observed...


author: Corentin M?hat
body: Hello,

I had the same problem today with a Confluence 5.8.15 trying to install a SAML plugin.

Moreover, this was blocking all access to the plugin management pages since the "Downloading ... Installing..." page was showing up each time I tried to access those pages.

This is what I did to resolve the issue :

1. go to \<confluence-home\> and rename the file temp/\<plugin\>.jar downloaded to temp/\<plugin\>.jar-down
2. restart confluence
3. log back in confluence (at this step I wasn't blocked anymore by the screen)
4. Update the "Atlassian Universal Plugin Manager Plugin" to the latest version
   1. refresh the page as suggested by the plugin install  
5. Find the plugin again and installing it successfully.

<br />


author: Flavio Beck
body: I have same problem installing Composition addon.

the screen "downloading and installing" never finishes.

It has some timeout, or I need to restart confluence?


author: Daniel Borcherding
body: How are you trying to install the plugin? If you are installing from the built in marketplace or are you donlaoding it and installed manually? Anything change after your restart?

comments: author: Andrei [errno]
body: both manual uploads and through UPM had issues - so I removed all plugins and restarted Confluence + installed plugins 1-by-1 =\> I see errors relating to Adaptavist PLM plugin (their licensing manager) - disabled that. Plugins update fine now.  

Weird.. never had issues with Adaptavist products before :(


Tags: confluence-app

universal-plugin-manager