youngmon/atlassian-qna huggingface dataset:
How to fix the issue on user management
Asked by Rommel Tinoco:

Hi

I just installed a new confluence server. On premise it is. When I want to delete a user or change his profile, I get the error:

The following error(s) occurred:

* User "xyz" could not be disabled. The directory may be read-only.

Same thing happens when I want to delete it or edit the groups.

How can I resolve this issue?

Confluence install is on Windows.


Answers:
author: Nic Brough -Adaptavist-
body: It sounds like you are using an external user directory (Crowd, Active Directory etc) and you have set it up read-only, so Confluence cannot change user details. That's the first thing to check. Look in Admin -\> User directories.
postgres upgrade
Asked by Willis Ralph:

How do you upgrade postgres from 8.4.20 to 9.3 on a confluence v5.5 installation ?


Answers:
author: Benjamin Dombrowsky [catWorkX]
body: Hi,

thats only a PostgreSQL task: <https://www.postgresql.org/docs/9.0/static/migration.html>

on the strength of past experience thats really simple.

Regards

Benjamin


author: Vickey Lepcha
body: I would suggest you to upgrade Confluence actually :smile: .

Hold on for somedays and monitor Confluence stability.

Then take a backup and upgrade your Database .


Tags: confluence-administration
PocketQuery: PQ documentation link masking Create Button partially
Asked by Pranjal Shukla:

image2016-5-26 11:17:48.png  
[](https://community.atlassian.com/t5/Confluence-questions/PocketQuery-PQ-documentation-link-masking-Create-Button/qaq-p/126604?attachment-id=3376){#link_119096239aee61}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/21085/1/image2016-5-26%2011%3A17%3A48.png){#display_119096239aee61_0}


Answers:
author: Pranjal Shukla
body: Yes, we are on RefinedWiKi's latest release.


author: Felix Grund (Scandio)
body: Interesting. Do you have a custom theme installed?


Tags: confluence-administration

pocketquery
How do I get the QuickNav Gadget?
Asked by Paul Jones:

*This question is in reference to Atlassian Documentation: [Confluence Quicknav Gadget](https://confluence.atlassian.com/pages/viewpage.action?pageId=724765465)*

How do I get this and can it be integrated with a standalone software app as part of the help system?


Answers:
author: Andrea Carl
body: Possibility - Use an iframe in your software app to point to a confluence page where the quicknav macro has been added.


Tags: cloud

confluence-cloud

documentation
The table of contents link appears to be broken.
Asked by Chris Tolo:

*This question is in reference to Atlassian Documentation: [Confluence User's Guide](https://confluence.atlassian.com/pages/viewpage.action?pageId=428803317)*

Here is the link <https://confluence.atlassian.com/conf54/table-of-contents-for-confluence-user-s-guide>


Answers:
author: Peter T
body: Yes it is broken. Thanks for reporting it.

Someone from Atlassian should fix it :smile:.
How do I remove link in code block?
Asked by Claire:

*This question is in reference to Atlassian Documentation: [Code Block Macro](https://confluence.atlassian.com/pages/viewpage.action?pageId=139390)*

I have some XML that I want to show in a code block. An element in this XML happens to have an attribute that is a URL. For example:

\<add key="SomeUrl" value="https://example.com" /\>

I don't want the URL to be clickable. Any way to do this?


Answers:
author: Peter Milakovich
body: Does it need to be a code block? When I want pure vanilla, I use the no format macro. The URL will not be clickable.

Code Block

```
&lt;add key="CNN" value="https://www.cnn.com" /&gt;
```

No Format

```
&lt;add key="CNN" value="https://www.cnn.com" /&gt;
```

comments: author: Claire
body: But then you lose syntax highlighting. Although in my particular case, that would be quite acceptable since my XML snippet has only four lines. I'd rather do without syntax highlighting than have reader accidentally open link when attempting to select text for copy/pasting.


author: James AwokeKnowing
body: @Peter Milakovich automatic links in code is also extremely undesirable at my company too, especially when documenting our api. There are a number of links that trigger actions such as tracking counts etc and it is a problem.

This should be controllable at least by adding a css style to each page or code block.


author: Jim Doyle
body: This code block behavior creates a catch-22 for code snippets with URLs. You can only get Confluence's "double-click to select code" behavior with a code block macro, not with No Format. But you can only prevent these automatic links with No Format, not Code Block. If you have a Code Block with a code snippet including a long URL, there will be a large part of the area where the user sees a "double-click to select code" tooltip, but the user's click will navigate the browser away from the confluence page, because of the automatic link.


author: James AwokeKnowing
body: agreed, this can be very annoying especially when the links have "effects"


author: Peter T
body: I don't think it is possible without changing the code block marco code.

There are other ways to achieve similar formatting visualization, but if you want the code block I am afraid this is how it works.

comments: author: Claire
body: I feared so. Although I can't see why having active links in a code block should be desirable. But that's ok, I'll live with it. Thanks.


Tags: code-block

documentation
best practices confluence and hip chat
Asked by Michael Weintraub:

Hi. I'm looking for best practice suggestions for using confluence and hip chat (or slack). I know how to integrate the two via web hooks. What I'm looking for is a set of suggestions or experiences on how the two are best integrated. For example, should a transcript of a hip chat conversation be put into a note? If so, how do the mechanics work (best)? E.g. #RECORD_ON / #RECORD_OFF kind of thing; just dump the channel into a note and have someone edit it in confluence later... This kind of thing.

Thanks, Mike


Answers:
author: Peter T
body: OK. Let me share you my experience.

1. We use HipChat for everything that is worth talking, asking and is typically short lived and does not require a long living discussion - for those we use Wiki and email. After we adopted this approach my email load was reduced with over 60% which is great accomplishment. The importance of longevity is because in a chart room several topics can be mixed up and it could become confusing.
2. We use it to keep track on different activities on Confluence and JIRA and we can see each and every change (the granularity is configurable)
3. We create issues in JIRA based on some discussion in HipChat
4. We don't create confluence pages yet... haven't found a really good use case.

Overall it is quicker and more powerful alternative to email.


author: Michael Weintraub
body: Thank you, Peter. This helps.


author: Michael Weintraub
body: Fair point. I've observed people use hip chat (or Slack) to talk about an issue and to assign tasks. For the latter, I've seen reference to setting a key word and then the issue - and then triggers assignment in Jira. But for the former, I'm open to suggestion.

I'm also looking for suggestion on use cases that people find helpful.

Quick background on my ill-formed request: I have student teams that are doing projects and I'm trying to lay out a flexible SDE that encourages good practices. My experience set really hasn't used chat-style tools in projects. So, I guess I'm asking for some best practice suggestions for integrating hip chat into the SDE where I'm using confluence to manage requirements, blogs, and documentation and JIRA to manage the dev. Those two are linked.

Thanks,

Mike


author: Peter T
body: Hi Michael,

What is the business requirement a.k.a. use case that you are trying to accomplish?

Reading your questions it was not clear to me and there are various options for the integration.

Cheers,

Peter T
How to set a space as a 'space template'?
Asked by Nicolas Casel:

On an Confluence platform, there are several existing spaces.

I've just figured out that **3 of them are set as "space template"**, because when I click on:

```
'Create Space' / 'Company Manual' (which is a "Space blueprint") / 'Next'
```

As a result, I get this drop-down list with 3 items:

3-space-templates.png

=\> I can find and edit these 3 spaces. However, **how have they been set as "template"?** In other words, how can I populate this drop-down list myself?  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-set-a-space-as-a-space-template/qaq-p/369726?attachment-id=12182){#link_1186dab0693006}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/62432/1/3-space-templates.png){#display_1186dab0693006_0}


Answers:
author: Nicolas Casel
body: Here is the solution, very specific to my issue: I was not member of the '[company-template-managers](http://docengine.sinu.com/admin/users/domembersofgroupsearch.action?membersOfGroupTerm=company-template-managers)' group, which gets access rights to access to the 'Template Management' page / menu.


author: Meck
body: Hello @Nicolas Casel,

Lemme try help you.

1. Go to the space and choose **Space tools** \> **Content Tools** from the bottom of the sidebar
2. Choose **Templates** \> **Create new template**.

If your space uses the Documentation theme:

1. Choose **Browse** \> **Space Admin** from the header

   **Note:** The **Space Admin** option appears only if you have [space admin permissions](https://confluence.atlassian.com/doc/space-permissions-overview-139521.html), or if you're part of the 'confluence-administrators' group.
2. Choose **Templates** from the space administration options.
3. Choose **Create new template**.

Step by step from documentation <https://confluence.atlassian.com/doc/_adding-a-space-template-228065449.html>

Regards,

Lameck.

comments: author: Nicolas Casel
body: Thanks Lameck for your feedback because it makes me figure out that my question is not properly written.

To be correct, I would like to create a template of a "full wiki space", and not a (page) template inside an existing wiki space. In other words, my goal is to proceed like this:

* I create a "full wiki space" template. Based on the default Confluence wiki space, I add some CSS and display tweaks, and some 'mandatory' pages that I want to have in every new space
* Then, whenever I need to create a new wiki space, I choose this template. As a result, I avoid adding these CSS tweaks and 'mandatory' pages for every new one

<br />

<br />


author: Meck
body: @Nicolas Casel, I think who @Nic Brough \[Adaptavist\] is the best expert to help you.


Tags: confluence-administration

space-blueprint
recently viewed pages for all users
Asked by Richard Parsons:

*This question is in reference to Atlassian Documentation: [Recently Viewed Pages and Blog Posts](https://confluence.atlassian.com/pages/viewpage.action?pageId=724765428)*

can i see recently viewed pages for other users?


Answers:
author: Ignacio Pulgar
body: As the built-in behaviour, you cannot see other users recently viewed pages.

Nevertheless, if you are a site administrator (typically by being member of the group 'site-admins') you can login as other users as if you were using their accounts.

That's done through the 'Login as user' button displayed at the top-right corner of the user's account from admin view:

https://\<YOURS\>.atlassian.net/admin/users/view?username=\<USERNAME\>

Once you login as the user this way, you can see their recently viewed pages.

However, login as the user through that method will generate an email notification to the user, indicating the fact that you have logged in with their account, and that you may perform actions on their behalf.


Tags: cloud

recently-viewed
different permissions on pages in a space
Asked by Mike Flannery:

The way our business uses confluence, we have a since shared confluence instance throughout the company. Each team, group and person can create a Space as needed.

Our team wants to create a Wiki with both internal and external page permissions (in team vs not in team). Sounds like this is possible but requires a larger Space permission first. Is that something I,creator of the Space, can set? Or do I need our Confluence instance Admin to do this for me? As well as all the additions to the Space as needed?

Is there Documentation someone can point me in the direction of?


Answers:
author: Rodney Hughes
body: create a Space with Permissions controlled access "open but login access" i.e. access is open to "confluence users" .. that means any person who has their own User account in your system can access the Space.

Now the Home page create two pages

"Team Only"

"Everyone"

On "Team Only" page, set Page Restrictions for the View type to your team members - either by individual name or if you have also created a Permissions Group with your team members.  
Any page you create as a Child to "Team only" will automatically inherit the same View Restriction.

Leave "Everyone" page without any View Restrictions

Your team will now see both pages (and their children) at the home page,   
whilst non-team members will only see one page ("Everyone" and its children)


author: Nic Brough -Adaptavist-
body: Yes. First, you need to grant everyone access to see the space, as a space creator.

Then, assuming they have the "restrict" permission, your users can create pages which are read-only or even hidden, and their child pages will take on the same visibility. It's quite common to see spaces which have the simple approach - open to all, but with a top-level page named something like "internal only" with the view restricted to an internal users group.


Tags: cloud

confluence-cloud
mysqldump
Asked by Razeen Brown:

Good day

I have a mysqldump file created from a Confluence 5.1.73 database which I want to import into a running confluence 5.1.5.

Is this possible? If so how would I go about doing that?

Regards

Rijk obo Razeen Brown


Answers:
author: Nic Brough -Adaptavist-
body: There's a lot wrong with that...

* A mysqldump is a block of text you can use for **recreating** a database. It's in no fit state to be merged with any other database, it's for creating copies of a database. It'll trash the database it's restored into
* You should never never never write to a running Confluence with SQL
* Generally, you should never write to Confluence with SQL at all
* The data for 5.1.7 may not even be backward compatible to 5.1.5 (it probably is, as they're both 5.1, but don't bet on it)

What you should do is restore the database, point a clean 5.1.7 at it, export the space(s) you need to xml and then import them in your 5.1.5 separately.

comments: author: Razeen Brown
body: Thanks for the answer.. I was afraid that was the case ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

A database restore is out of the question though, so I am a little stuck. Any pointers and/or hacks just to get the data to a point where I can copy-and-paste or export would be appreciated though.

Could I create a clean DB from that SQL and then just reconfigure a Confluence 5.1.x to use it? In theory I could then XML export the content I want and import it into my new Confluence.


author: Nic Brough -Adaptavist-
body: That's what a mysqldump file is for - recreating a database.

I'd install a clean Confluence 5.1 hooked up to an empty database to start with, just so that you know it works without data, and you don't have to manually deal with any config. Then stop it, and edit the dbconfig.xml file in the confluence-home directory so that it points to the restored database, and restart it. It would be a good idea to re-index it straight away.  

IF it looks healthy at this point, that's a good time to get the xml out of it!


author: Razeen Brown
body: Ok, update on my adventures in Confluence land.

Twiddled the mysql dump to use latin1 in stead of utf-8.

Imported that into a fresh MySQL database instance.

Pointed a new Confluence 5.9.7 at that (yes, I was wrong on the version number initially)

Started Confluence.

Did a backup with Confluence's own backup tools.

Restored that in a fresh Confluence 5.9.7.

So far so good :smile:
Confluence REST API 500 server error using Python requests Lib
Asked by jchittum:

I am attempting to automate the update of Confluence pages using a Python 3.4 script. I first tested using the following cURL:  

curl -E jchittum -X PUT -H 'Content-Type: application/json' -d '{"id": "48179230","type": "page","title": "Confluence Api Test","body": {"storage": {"value": "\<p\> New Content \</p\>","representation": "storage"}},"ancestors":\[{"id": "4595907","type": "page","title": "Luna Release"}\],"version": {"number": 5}}' [https://ouratlassianserver.com/wiki/rest/api/content/48179230](https://gsd.akamai.com:8443/wiki/rest/api/content/48179230) \| python -mjson.tool   

This requests updated just fine, and returned the proper JSON.  

When I tried to replicate it Python, I get:  

{'message': '[javax.ws](http://javax.ws).rs.WebApplicationException: null', 'statusCode': 500}  

When doing a GET operation, everything works fine. Only seeing this on a PUT. We use SSL for authentication  

The Python 3.4 code is:  

import requests

import json

confPutAddress = "https://ouratlassianserver.com/wiki/rest/api/content/48179230"

cert = "/path/to/cert.pem"  
certKey = "path/to/cert.key"  

postDict =

{  
"id": "48179230",  
"type": "page",  
"title": "Confluence Api Test",  
"version": {  
"number": 6  
},  
"ancestors": \[  
{  
"id": "4595907"

}  
\],  
"type": "page",  
"body": {  
"storage": {  
"value": "\<p\>New page data.\</p\>",  
"representation": "storage"  
}  
},  
"space": {  
'id': 1179650,  
'name': 'Luna',  
'type': 'global',  
}  
}  

confPUT = requests.put(postAddress, data = postDict, verify=True, cert = (cert, certKey))  

print(confPUT.text)

<br />

I added space after seeing the following page: <https://answers.atlassian.com/questions/38379050>  


Answers:
author: jchittum
body: figured out my errors with the help of my team:   

1) convert dict to json: convDict = json.dumps(postDict)  

postJSON = json.loads(convDict)

2) add headers:

headers = { "content-type" : "application/json" }

3) set requests.put to use JSON

confPUT = requests.put(postAddress, headers = headers, json = postJSON , verify=True, cert = (cert, certKey))
easymind plugin unable to import
Asked by Geoffrey Van Nuffelen:

Hi,  
I use the plugin EasyMind for the mindmap.   
I would like to import a work done with Xmind. If I have the rights access "administrator", there is any problem, I can import it by the attachments link. (printsceen 1 )

But if I am not admin, I can't. I don't see the Attachments link ? (printsceen 2 )  

I thinks it's a trouble with the access rights parameters. Could you help me.   

Thanks in advance,  
Geoffrey

PrintScreen 1

image2016-5-25 16:42:5.png

PrintScreen 2

image2016-5-25 16:40:50.png

[](https://community.atlassian.com/t5/Confluence-questions/easymind-plugin-unable-to-import/qaq-p/219146?attachment-id=9573){#link_1190971720d1ce}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37044/1/image2016-5-25%2016%3A40%3A50.png){#display_1190971720d1ce_0}  
[](https://community.atlassian.com/t5/Confluence-questions/easymind-plugin-unable-to-import/qaq-p/219146?attachment-id=9574){#link_1190971720d1ce_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/37044/2/image2016-5-25%2016%3A42%3A5.png){#display_1190971720d1ce_2}


Answers:
author: Daniela Hauserov?
body: Hello Goeffrey,

I am very pleased to inform you that we have recently released the new version of EasyMind add-on. This version is solving the bug, which you reported.

Thank you very much again for your feedback, which helped us to imporve our product.

Best regards,  
Daniela


author: Daniela Hauserov?
body: Hello Geoffrey,

thank you very much for your feedback. We are aware of the issue and are working hard on providing a hotfix. We appretiate that you have sent us more details, so we can react on it. Please let us know if you wish to share more details or receive a notification directly when the issue is solved.  
We apologize for any inconvenience.  
Best regards,  
Daniela


Tags: addon-cz.morosystems.atlassian.plugin.easymind
Automatic way to keep your enterprise wiki clean
Asked by Suttorp:

Does somebody know if you can send emails to people who have updated/modified a page, but it was a long time ago.

**IF \<user\>**

**has modified "Something" for 5 months**

**then send mail with instructions**

**If user click button that its up-to-date**

**Then update last modified to current_date**

**Else delete page or put in archive.**

Something like this. Somebody already done something like this?


Answers:
author: joanna ransome-wallis
body: Is there a completely free alternative?


author: Stefan Ernst
body: Hello Jeroen,

the Archiving Plugin for Confluence lets you do those things:

<https://marketplace.atlassian.com/plugins/com.midori.confluence.plugin.archiving/server/overview>
Can not get HTML macro to work
Asked by Brent Green:

++We have Confluence 5.6.5++

The HTML macro is enabled and I can insert the macro at the beginning of the page

But, It appears not work. see below for a simple test.

image2016-5-25 8:5:16.png

The people link remains on the page.  
[](https://community.atlassian.com/t5/Confluence-questions/Can-not-get-HTML-macro-to-work/qaq-p/59437?attachment-id=8529){#link_1186dc0135bebc}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/10023/1/image2016-5-25%208%3A5%3A16.png){#display_1186dc0135bebc_0}


Answers:
author: Nic Brough -Adaptavist-
body: The body of a page is too late to insert css that affects the header.

comments: author: Brent Green
body: Thanks. I had a suspicion.
Displaying user picture next to blog
Asked by Linda Inpijn:

hi, how can i display user pictures of person who posted a blog in overviews and invidivual blogs ?

<https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.lively-blog/server/support>


Answers:
author: Maggie Modersohn
body: The user profile picture displays automatically when you create a list of blog posts using the Lively Blog Posts macro. If you don't see the user profile picture, you may have CSS in place which hides the user profile picture from that list.

On the actual Confluence blog post, the user profile picture does not display (only in the sidebar and in the comments section, which I understand is not what you want). You could write a user macro that displays the author of the page and modify the blog layout to include the macro on all blog posts. [This thread](https://answers.atlassian.com/questions/233728/show-currentlogged-in-user-profile-info-in-confluence-page) should point you in the right direction - it's a user macro for the currently logged-in user but it should be fairly easy to change that to display the user profile picture of the author.