youngmon/atlassian-qna huggingface dataset:
Running Confluence over HHTPS; question about certificate generation
Asked by tim wilkinson:

Hi,

I think this should be an easy question but I'd like a bit of clarification over the step for certificate generation.

I"m following the instructions frpom <https://confluence.atlassian.com/conf54/confluence-administrator-s-guide/configuring-confluence/configuring-confluence-security/running-confluence-over-ssl-or-https> but am a little confused over Step 1 \> Certificate Option 2 (I know - it's probably quite simple).

The bit I'm unsure about is '1. Use Java's keytool utility to generate a local certificate, as described in the previous section.' Is the 'previous section' referred to here Certifcate Option 1? The Atlassian instructions use 'keytool -genkeypair' whereas I've seen instructions (including from Apache Tomcat docs) that say to use keytool -genkey. Is there a massive difference?

Cheers,

Tim


Answers:
author: tim wilkinson
body: It is the prevsious section (i.e. creating self-signed cetificate).

There is a difference between -genkey and -genkeytool but both will work fine.


Tags: ssl
Knowledge space Vs documentation space and can i have 2 spaces for a team?
Asked by sn:

newbie to confluence - im trying to set up a wiki for our company and we would like to use confluence for all dcoumentation- support and also technical docs.

my question is whats the difference between knowledge base space and documentation space. why would i choose one over the other ?

can i have 2 spaces for each team - Ex - QA team - 1 team psace to have pages to talk about the team's tasks and 1 space to have all our support documents?

TIA


Answers:
author: Eswara K
body: The only difference is the way the two space templates are structured.Knoweldgebases provide a search box and other ways to structure content (FAQ, Need more help, Other resources etc as on home page) whereas documentation space is more focused on creating/customizing doc templates. But technically, all templates that are available for one space type are available for the other - the only difference is the way they are spewed out, out of the box, when you first create the site.

We usually use knowledge bases for self-help support to our external customers and they are tied to our client facing service desks.

Internally, we use "software project spaces" for each project specific artifacts etc.

Hope this helps.
Content-Encoding-Error on start after upgrading to Confluence 6.1.2
Asked by Guenter SolyMar:

Hi,

after upgrading our Confluence instance to Version 6.1.2 we get a Content-Encoding-Error in Firefox on first start.

Probably there is a Add-On responsible for this error but as login is not possible we are not able to switch to safe-mode.

Any ideas will be very helpful.

Thx.


Answers:
author: Statseeker
body: We have the same issue. We logged a support call. Unfortunately no help from atlasian team.


Tags: upgrade
Deleted page not showing up in Trash
Asked by Divya Dias:

Hi,

I accidentally ended up deleting a very important page in one of the space while trying to create another page with the same name. The page that was deleted had child pages too.

I contacted my space admin to restore the page, but she confirmed she did not find it in the Trash tab. She found a page by the same name but that just a empty page (probably the one that was newly created).

Is there any way to recover the deleted page?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Sorry,

looks like better way is check in the backups.

Cheers,

Gonchik Tsymzhitov


Tags: restore
How can I create a page break function/macro for PDF?
Asked by ando:

I would like to hage a page break for PDF/printing purpose. Could you tell me how to add it?

I don't have the user macro on my general configuration page.


Answers:
author: Jack Brickey
body: Hi [@ando](/t5/user/viewprofilepage/user-id/1128094) , I realize this is an old post. I am working to cleanup unanswered posts. Have you solved your need? If not maybe this post would help - [Page-Break-on-PDF-Export-at-the-Heading-Level](https://community.atlassian.com/t5/Confluence-questions/Page-Break-on-PDF-Export-at-the-Heading-Level/qaq-p/277280)


Tags: export

pdf
Import Word document as draft pages
Asked by Larry Bear:

If I import a Word document, it is immediately published. Can I import the document sections as draft pages. If not, how do I change a published page into a draft page; from what I can see I can only create drafts for page edits or new pages, but not convert a published page to a draft.

Thanks


Answers:
author: M Amine
body: when you edit a published page and do not publish the modification it is automatically in draft state


Tags: import

publish
How to POST data to Confluence page using REST API and nodeJs,ExpressJs
Asked by Basma:

Hi Atlassian Devellopers ,

i am develloping a Macro in add-on on confluence cloud , i am using nodeJS and ExpreeJs and i want to add PROPERTY called "spgviewspage"

to the meta-data of a confluence page with ID equal to pageId ( i get it via GET methode using rest api call )

i didn't find a clearly documentation that describe : how the POST methode for sending Data it can be , contrariwise i found a tutorial which explain the GET methode here is the lik \<\<<https://developer.atlassian.com/confcloud/lesson-2-rise-of-the-macros-39987235.html>\>\> , so i tried to impliments a post methode bellow using the same concept.

//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

getHTTPClient(clientKey,userKey).post('/rest/api/content/pageId/property/',function (req, res) {  
var con=JSON.stringify(res)//valeur JavaScript en cha?ne JSON  
var newViwspage = {"key":"spgviewpages","value":0};  
req.send(JSON.stringify(newViwspage));  
//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

but it display me an error message "req.send is not a function "

i am stack in this for more than a week i realy need #HELP

Reagrds Basma


Answers:
author: AnnWorley
body: I wish I could be of more help, but I am not a developer. Please try [community.developer.atlassian.com](https://community.developer.atlassian.com). That's where our developer community can be found.

comments: author: Basma
body: Understood thanks for mention this


Tags: confluence-cloud

connect

post-function

rest

rest-api
What is "WebException: The request failed with HTTP status 502: Proxy Error."
Asked by Gopal Dahal:

Confluence SoapAPI Throws "WebException: The request failed with HTTP status 502: Proxy Error." exception while calling GetAttachmentData() method.

I was trying to get attachments of a wikipage. It was working fine for some attachments but after some moment it gave particualr exception.

**WebException: The request failed with HTTP status 502: Proxy Error.**   
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)  
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object\[\] parameters)  
at ConfluenceAPIWebsServiceVersion2.ConfluenceSoapServiceService.getAttachmentData(String in0, Int64 in1, String in2, Int32 in3)  
at APIService.ConfluenceService.GetAttachmentData(Int64 id, String attachmentName, Int32 doc

It was the first exception in the loop.  
After then for every remaining attachment call it throws

**WebException: The request failed with HTTP status 503: Service Temporarily Unavailable.**   
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)  
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object\[\] parameters)  
at Tzunami.Common.EcmConfluenceExporter.ConfluenceAPIWebsServiceVersion2.ConfluenceSoapServiceService.getAttachmentData(String in0, Int64 in1, String in2, Int32 in3)  

Please help me on what is the cause and resolution for this issue


Answers:
author: Daniel Eads {unmonitored account}
body: Hi Gopal,

I don't have experience personally with the SOAP API as Atlassian depreciated SOAP some time ago and has been trying to get everyone to switch over to REST. While SOAP still works (but is depreciated), it soon will be removed from Confluence. I'd suggest switching over to the REST API. This will hopefully get you past the error, but will make it easier for the community to troubleshoot even if you still see errors.

More information about the REST API: <https://developer.atlassian.com/confdev/confluence-server-rest-api>

Getting attachments: <https://docs.atlassian.com/confluence/REST/latest-server/#content/{id}/child/attachment-getAttachments>

Sample API call using curl: <https://developer.atlassian.com/confdev/confluence-server-rest-api/confluence-rest-api-examples>


Tags: proxy

rpc

soap
How to add Google AdSense at the bottom of the sidebar?
Asked by Brayden:

I want to add Google AdSence at the bottom of the sidebar.

Currenlty, I added Google AdSence at the bottom of page by using the Custom HTML menu in the Confluence administartion (LOOK AND FEEL-\>Custom HTML).

In the LOOK AND FEEL, there is "Sidebar, header and footer" menu. At the Sidebar, I can add some text to display the text above the page tree in the sidebar. I want to add Google Adsence at the bottom of the page tree.

How can I do this?

When I used the RefinedWiki Theme for another side, I can easily to this. But I am using the Documentation Theme for this site.


Answers:
author: AnnWorley
body: My suggestion is to use a custom page tree in the sidebar and put Adsense beneath it - something like:

```
{pagetree:root=Page Name|startDepth=3|expandCollapseAll=true}[<AdSense here>]
```

Please see the section "Add your own page tree to replace the default page tree..." on [Configure the Sidebar.](https://confluence.atlassian.com/doc/configure-the-sidebar-317194694.html)


Tags: side-bar
remove /display/ part from confluence URL
Asked by Robbin Bonthond:

how can I remove the /display/ part in the URL that confluence seems to prefix for all pages?


Answers:
author: Nic Brough -Adaptavist-
body: By rewriting a chunk of Confluence's core code. The /display/ part shows us it's a content page, rather than a functional url. Something is needed there to make that subdivision (or a user could create a page that has the same url as a functional url), and Atlassian have used "display". It would be nice to be able to change it, but it's coded as far as I can tell.


author: Kirstin Seidel-Gebert
body: Our infrastructure departement achieved this by using Apache URL rewrites.  
I could ask them for more details if you're interested.
Can I show ALL Questions when a user first navigates to the Questions module?
Asked by Amanda Branch:

By default the Questions module shows only questions it deems as "Popular" when a user first navigates to the module. This is well and good, but to be useful as a knowledge base, shouldn't the users be able to see *all* the questions in some way or another? A user isn't necessarily going to search for the exact terms or topics used to find a question, which increases the risk of duplicated effort in having the same question(s) handled many times.

A partial solution would be to have a way to set the "Recent" category as the default, but even then any internal recordkeeping Confluence does could hide a question beause it thinks it isn't recent enough.

How can I give my users a way to see *all* questions, ideally when they first navigate to the module? Failing that, can I change the default somehow (even if it means editing code or config files, or updating database records) to show the "Recent" category as the default?


Answers:
author: Jack Brickey
body: Doing a bit of cleanup on all posts here...

there's no way to do this to the best of my understanding. If anyone has found such a method please do share it here.


Tags: questions-for-confluence
How to fix a broken blogstream
Asked by Nadean:

Hello,

Somehow our blogstream has quit linking all of our blog posts in one centralized location and now no longer updates the stream to show when a new post has been added. Instead when a new blog is created it makes a seperate subpage on the bottom of the menu. Is there any way to relink and fix this?


Answers:
author: M Amine
body: check the new confluence version


Tags: blog
How do you add a link to the home page in the left tree navigation?
Asked by Debra Hicks:

We are using the Documentation theme (not sure if that is a built-in theme), is there a way to add a link to the Home page in the left nav? Most users don't understand bread crumbs and the top left logo navigates to the parent site.

Also with this theme I can't just click edit. When you create a page it automatically displays in the left nav.

For now I have created a 2nd page called "Home". It's probably the only solution for this theme.


Answers:
author: Monique vdB
body: Debra, can you tell me what product this is referring to? Then I can help categorize it appropriately!

comments: author: Debra Hicks
body: Confluence Wiki


Tags: home-page

navigation
Is there a way to export a list of all space keys?
Asked by Cindy:

Is there a way to export a list of space keys (including personal spaces) in Confluence? Or a way to run a JQL query for this data?

Thanks!


Answers:
author: AnnWorley
body: I didn't find a way in the Confluence interface but if you have access to the database you can run a SQL query:

```
select spacename, spacekey from spaces;
```

comments: author: Cindy
body: Thank you!!


author: Davin Studer
body: You could use the REST API.

http(s)://{your server}/rest/api/space?limit=500
add document owner user
Asked by Pietro Palumbo:

Hello,

How can I add the document owner (person who created the page) by default.

I have created a new global template and tried to use a variable $documentOwner but it does not do the job.

My try is based on what I saw in the Product requirement global template.

Thanks in advance.

![productRequirement.jpg](/t5/image/serverpage/image-id/796i6CE314627E2D0025/image-size/large?v=v2&px=999 "productRequirement.jpg")


Answers:
author: Brant Schroeder
body: Pietro,

That is currently not possible but there is a [feature request to allow for access to common variables for use in templates through the template editor.](https://jira.atlassian.com/browse/CONFSERVER-30567)

I would recommend that you watch and vote for the feature. You will then recieve updates about this request and know when it has been compelted.

Thanks  
Brant


author: Pietro Palumbo
body: Hello,

Thanks. Such a feature would be a great help. I hope to see it soon...

Pietro


Tags: document-management

owner

variable
Is it possible to create labels for attachments?
Asked by David Ives:

I tried to follow the instructions here:

<https://confluence.atlassian.com/doc/add-remove-and-search-for-labels-136419.html>

but I cannot attached a label. Is there a bug?

many thanks

Tim


Answers:
author: Brant Schroeder
body: David,

You should be able to add attachements by doing the following:

1. Go to the page that has the attachments.
2. Click on the page navigation in the upper right hand corner (Three Dots) and select "Attachments"
3. On the attachements page you should see a list of attachements and a column labeled "Labels"
4. Click on the edit labels button see image below. (Circled in the image)![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/803i1E3494E9C4D27967/image-size/large?v=v2&px=999 "Capture.PNG")
5. Add your lables

Good Luck  
Brant

comments: author: David Ives
body: Brant,

Thanks very much for your reply, it has fixed the problem.

David


author: Brant Schroeder
body: David,

Glad to hear that. Can you mark it as the answer.

Thanks  
Brant


Tags: attachment

label
I need SQL Query which can take user last login detail from confluence site. Could anyone assist us.
Asked by Inayadhullah Khan Hasathullah Khan:

I need SQL Query which can take user last login detail about confluence site from confluence database. Could anyone assist us.


Answers:
author: Nic Brough -Adaptavist-
body: Reading the database is generally a bad idea, and the query you need probably depends on what user directory you are using.

For most setups though, look in the "cwd_user_attributes where attribute_name = lastAuthenticated" is the starting point. Join it to cwd_user to get the user's human details like name and login.

comments: author: Inayadhullah Khan Hasathullah Khan
body: This attribute seems to be in jira database. I did'nt see this in confluence database after verified whole database even not find the login details itself. Please let me know the Sql query which can fetch the data of user last login for the confluence site.
Does Cofluence use JMS, RMI or EJB
Asked by Karthi:

Does Confluence internally use JMS, RMI or EJB to build any of the features?

Please explain for which features they have used.


Answers:
author: Nic Brough -Adaptavist-
body: Some, yes, but you'll need to ask Atlassian where they've been used, or have a look at the source code for details (if you have a commercial licence, you can download it for yourself)
No labels are displaying in my Knowledge Base space (server)
Asked by Kathryn Reddie:

No labels are displaying in our Confluence Knowledge Base space, but they are displaying everywhere else.

Is there a setting I am missing somewhere? I've looked but am not finding anything, and Dr.Google didn't help either ...

Thanks.

Kathryn.


Answers:
author: Mirek
body: It seems that this is similar to

<https://community.atlassian.com/t5/Confluence-questions/Labels-functionality-not-working-in-one-space/qaq-p/1043415>


Tags: label
How do I export a subset of pages from one Confluence instance and import them into another?
Asked by Cronus Example:

I have two completely separate Confluence instances. In Confluence Instance 1 I am trying to create a template structure only 5 pages (not the whole space). I would like to transfer these 5 pages into Confluence Instance 2, but keep all formatting.

I have tried this with word, but it import everything into a single Wiki Markup macro. I need my sections and instructional text as well.


Answers:
author: Brant Schroeder
body: Cronus,

There are two ways you can do this if I understand your question correctly.

Option 1  
Open both confluence instances in different browser windows. Create the pages that you want in instance 2 and copy the content from instance one in edit mode to instance 2.

Option 2  
Exporting from one instance to another can be done by following the [Confluence Documentation.](https://confluence.atlassian.com/conf56/exporting-confluence-pages-and-spaces-to-xml-658736972.html) If you do a custom export you can select pages and just export that. Y[ou can then use this documentation to restore the pages.](https://confluence.atlassian.com/conf56/restoring-a-space-658737205.html)

Somethings to consider. If the instances differ in releases sometimes the restore will not work as expected. If there is major release differences then there will be issues.

Brant


Tags: export

import
Where can I share user macros?
Asked by {pseudocode}:

I tried to share a user macro as a "discussion" but it immediately got deleted as spam...

Is there a proper location for sharing user macros?


Answers:
author: Nic Brough -Adaptavist-
body: Here is a good place to share, but the spam algorithms are still learning (it's only been a few weeks)

One thing that might help is using a proper name in your profile though.

comments: author: Sam Hall
body: The post has made it through the Spam filter now and here it is:

<https://community.atlassian.com/t5/Confluence-discussions/User-Cloud-Macro/td-p/581897>

Looks like a neat and useful macro.


author: Sam Hall
body: p.s. I tagged this question to show in the Community [feedback forum](/t5/Feedback-Forum/ct-p/feedback-forum?sort=recent), in case others have good suggestions on how the Community can better share stuff like this.


author: Nic Brough -Adaptavist-
body: I'd say this is the stuff of "articles"


Tags: community

feedback

user-macro
User Cloud Macro for Confluence
Asked by {pseudocode}:

This user macro will display users in a specific group in a cloud-like format, like this:

![user-cloud-example](/t5/image/serverpage/image-id/781i20E1043491DA02CC/image-size/large?v=v2&px=999 "user-cloud-example")

```
## Macro Name: user-cloud## Macro title: User Cloud## Description: Displays a list of users in a cloud-like format## Category: Confluence content## Body processing: Unrendered## @param Group:title=Group|type=string|required=true|desc=Group name## @param MinWidth:title=Minimum Width|type=string|required=true|desc=Minimum width in CSS units (e.g. px)|default=120px## @param PicSize:title=Picture Size|type=string|required=true|desc=Picture height in CSS units (e.g. px)|default=60px## @param Border:title=Border Colour|type=string|required=false|desc=Border Colour## @param Fill:title=Fill Colour|type=string|required=false|desc=Fill Colour#foreach($user in $userAccessor.getMembers($userAccessor.getGroup($paramGroup)))  <span style="background: $paramFill; min-width: $paramMinWidth; text-align: center; display: inline-block; border: 1px solid $paramBorder; padding: 6px; margin: 8px; border-radius: 4px">    <img style="height: $paramPicSize; border-radius: 3px" src="$userAccessor.getUserProfilePicture($user).getUriReference()"><br/>    <a href="/display/~$user.getName()">$user.getFullName()</a>  </span>#end
```


Answers:
author: Natalie Toohey
body: Love this! Images don't work in version 5.8 of confluence, but we should be updated to the latest version by the end of the month, so I'll just keep this one waiting in the wings :)


Tags: user-macro
Is there a way to add style to page content via API?
Asked by Agustin Recalde:

Hi!

I'm trying to automatically update a page's content via the REST API but it seems I cannot send style along the HTML. For example, It will accept this:

```
<span>Something</span>
```

But not this:

```
<span style="color: red;">Something</span>
```

If I send the style information, I get:

```
{"statusCode":400,"data":{"authorized":false,"valid":true,"errors":[]},"message":"Error parsing xhtml"}
```

The only way I can send the content is raw, with no color. Is there a way to do this afterwards (using the API)? Or if there a way to allow the style to be sent to Confluence?


Answers:
author: Tyler T
body: This answer might be helpful: <https://community.atlassian.com/t5/Answers-Developer-Questions/Confluence-REST-API-gives-Error-parsing-xhtml/qaq-p/499519>

Try escaping the double quotes with: \\"

comments: author: Agustin Recalde
body: Hi! Thanks for the answer!

That seemed to be the problem. I had tried to escape the quote marks but It seems I skipped something and it keept failing.


author: Richard Houde
body: I am still getting error 500 using below. Any suggesttions?  

```
<span style=\"color: red;\">Something</span>
```


Tags: developer

rest-api