youngmon/atlassian-qna huggingface dataset:
Confluence REST API endpoints to work with Scroll PDF export
Asked by Nikhita Mehta:

We are using the Confluence REST API and Scroll PDF to set up a feature in our Confluence instance whereby users can  
export PDF copies of sections of the documentation.  
We would require some assistance concerning the Confluence REST API endpoints and the params we need to pass to achieve the goals described in the questions below.  
- How to export multiple pages in a single PDF when there are for example 2nd-level child pages inside a 2st-level child page?  
Example:  
root page (user initiates PDF export action here)  
\|  
\|__child page  
\|__child page  
\|__child page  
\|__child page  
\| \|______child page lev. 2  
\| \|______child page lev. 2  
\| \|______child page lev. 2  
\|__child page  
\|__child page  
\|__child page  
\|__child page  
\|__child page  
- How can we display the user-configured timezone value in the page template to use for a PDF export?  
We cannot manage to fetch user timezone setting via API calls.  
This article did not solve the issue: <https://help.k15t.com/scroll-viewport/latest/user-125708812.html>


Answers:
author: Thomas Rough _K15t_
body: Hi Nikhita,

Thanks for your post.

Which version of Scroll PDF Exporter were you using?

In version 4.x, if you are wanting to export pages using the REST API, this can be setup by following the steps outlined in our documentation [here](https://help.k15t.com/scroll-pdf-exporter/latest/export-content-via-rest-api-125699615.html). Within the export parameters, you can then define the export scope, which will allow you to export parent and child pages.

Had you seen this information already?

In relation to your second point, were you wanting to include a time-stamp for when the export was performed? You mentioned you wanted to include the user time zone, was this in relation to the time zone that can be set via a Confluence user profile?

Thanks, Thomas (K15t Software)

comments: author: Nikhita Mehta
body: Thanks for the reply Thomas.
Confluence Blueprint - Unit Test BlueprintContext
Asked by Mousset Michael:

Hello, I'm trying to create a COnfluence Blueprint, which is not such an easy task when looking at the atlassian documentation :(

Anyway, I succeeded in doin what I want so far, and Im now trying to test the differents Java classes I wrote.

I want to test the ContextProvider I wrote which extend

```
AbstractBlueprintContextProvider
```

I can instantiate my class and all of its dependencies in my test so far, but How could trigger the updateBlueprintContext method to be fired?

Hope someone can help me understand,

Regards

michael


Answers:
author: Mousset Michael
body: Ok will answer myself,

After initializaing your context object :

```
contextProvider = new ContextProvider();

contextProvider.getContextMap(contextMap)
```

Calling getContextMap will then call the updateBlueprintContext function of your ContextProvider.

In case anyone needs it.


Tags: blueprint

context

test
Why do Atlassian Docker images run as root?
Asked by Andrew Pitt:

It's generally bad practice for Docker images to run as root. However, the official Bitbucket and Confluence Server images run as root.

Unfortunately, if you're using an enterprise container management platform (we're using OpenShift), containers that run as root aren't even allowed to start. This is for securtiy purposes. Most people aren't willing to turn off security features in a production environment in order to run a docker image.

Is there any plans to fix this in the near future?

The image is set to run on a high port, so there shouldn't be much issue in running this as a non-root (or daemon) user, right?

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/24702i9225EE8BC374FA9D/image-size/large?v=v2&px=999 "image.png")


Answers:
author: mforrer
body: Are there any news regarding that issue? I'm in the process of deploying confluence and bitbucket on Openshift as well. Would be very helpful to have a docker image which doesn't run as root (nor as daemon), but as an arbitrary user.

comments: author: Michael Rose
body: Hi Michael,

this required some changes to the Dockerfile. I managed to run it as an arbitrary user, however with a few issues regarding timeouts. I will clean up and probably add a pull request tomorrow :)


author: mforrer
body: Great, thanks :) any idea in which confluence image release this changes will be?


author: baacreations
body: Any update on this? I'm also interested in running this container as a non-root user.

Thanks


author: Rh?tische Bahn AG
body: recent changes made the situation even worse. This part in the entrypoint.py file:

```
def gen_cfg(tmpl, target, env, user='root', group='root', mode=0o644, overwrite=True):
```

makes it definitely impossible to run the image as a non-root user.

[@Michael Rose](/t5/user/viewprofilepage/user-id/2245738) any chances that this is getting reworked in the near future?

Thanks


author: Idan atCox
body: [@Rh?tische Bahn AG](/t5/user/viewprofilepage/user-id/2729902) please vote on <https://jira.atlassian.com/browse/BSERV-12531> to promote nonroot Docker image


Tags: confluence-server

server
How can i create a space from a blueprint in Java
Asked by Maximilian:

Hey,

this question is very close to this one: [create page from blueprint in java](https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-create-a-page-from-a-blueprint-in-Java/qaq-p/538747)

the difference is that my goal is to create a **space**.

I created a space-blueprint in my plugin and want to create a space based on this blueprint.

I found the following classes but can't figure out how i can achieve my goal:

SpaceBlueprintManager (Is not an OSGI Component - @ComponentImport doesn't work)

SpaceBlueprintService (Seems like it needs the SpaceBlueprintManager, but can't figure out how to get the manager)

The ContentBlueprintManager is apparently only for creating pages ..

any help is appreciated :)


Answers:
author: Maximilian
body: Ok found a REST-Method, no need to use java api:

{host:port}/rest/create-dialog/latest/space-blueprint/create-space

**Method**: POST

**Headers**:

Content-Type: application/json

User-Agent: xyz *-\> Just use some dummy here e.g. 'xyz' :)*

**Body**:

{

"name": "NAME",  
"description": "DESCRIPTION",  
"context": { },  
"permissions": "PERMISSIONS",  
"spaceBlueprintId": "ID",  
"spaceKey": "SPACE-KEY"

}

You can get the space Blueprint id by using this method:

**Method**: GET

{host:port}/rest/create-dialog/latest/space-blueprint/list

this will give you a list with all space blueprints and their ids :)

comments: author: SunRiser
body: Thank you [@Maximilian](/t5/user/viewprofilepage/user-id/1194441)

I tried your suggestion and it works!

The below request creates a space with Knowledge base template

```
curl -u admin:password -X POST -H 'Content-Type: application/json' -d'{"spaceKey":"KM","name":"KB API Test","spaceBlueprintId":"279af294-8caa-4b6d-88f8-67161c18a060","context":{"name":"KB API Test","spaceKey":"KM","spaceDesc":"REST API Space creation using Knowledge base template ","noPageTitlePrefix":"true","ContentPageTitle":"KB API Test"}}' http://localhost:8090/rest/create-dialog/1.0/space-blueprint/create-space
```

The key is, we need to specify the spaceBlueprintId as part of JSON payload otherwise it will just create the default blank space. We can also get the spaceBlueprintId for each space template from AO_54C900_SPACE_BLUEPRINT_AO


Tags: atl-dev

confluence-app

confluence-development
Template in confluence
Asked by kondaparthy sumanth:

Hi,

**In Cloud Version,**

In confluence ,how to make a template(created by user) as **global template.**


Answers:
author: Suren Raj
body: Hi, Kondaparthy.  

Go to the global template page and click **Add global page template** .

You may read the following documentation to understand better how to create a template as a global template:

* <https://confluence.atlassian.com/confcloud/blueprints-and-user-created-templates-724764985.html>

Cheers

Suren Raj

comments: author: kondaparthy sumanth
body: Thank you Raj,

How should i restrict a global template to some user/groups
Is there no way to restore a deleted space?
Asked by Markus Mosimann:

No further information needed. I only want to know if there is any way to restore a deleted space.......


Answers:
author: Nic Brough -Adaptavist-
body: Restoration from backup is the only way. Did you take a backup before deletion?

Cloud does not do backups for you here (they do it for disasters, but not individual sites).


Tags: cloud

confluence-cloud
I am not able to start confluence. It is showing the some error.
Asked by Rijubrata Chatterjee:

I am not able to start Confluence. It is showing some error when I am running the startup script. Below mentioned is the exact error

```
bash-4.4$ ./start-confluence.sh -fg
executing as current user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
---------------------------------------------------------------------------
Using Java: /opt/jdk1.8.0_171/bin/java
Error relocating /opt/jdk1.8.0_171/bin/../lib/amd64/jli/libjli.so: __rawmemchr: symbol not found
Error relocating /opt/jdk1.8.0_171/bin/../lib/amd64/jli/libjli.so: __rawmemchr: symbol not found
---------------------------------------------------------------------------
Error relocating /opt/jdk1.8.0_171/bin/../lib/amd64/jli/libjli.so: __rawmemchr: symbol not found
```

I guess this is some problem with java version. When I give java -version it shows me the below output, but I am using jdk1.8.0_171.

```
bash-4.4$ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (IcedTea 3.6.0) (Alpine 8.151.12-r0)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)?
```


Answers:
author: Moses Thomas
body: [@Rijubrata Chatterjee](/t5/user/viewprofilepage/user-id/1517812)It looks like confluence doesn't fine the Java version installed.

you need to find the path of Open SDK installed, if you are running confluence on Linux/ Unix like OS, then do this

*

  ```
  export JRE_HOME=/etc/alternatives/jre_1.8.0_openjdk/?  for instance
  ```

*

  ```
  Re-start confluence 
  ```

Best

comments: author: Rijubrata Chatterjee
body: This also is not working. I am facing the same issue


author: Nic Brough -Adaptavist-
body: You need to read the logs to see what it is doing.


Tags: cloud

confluence-cloud
The management of the knowledge base is relatively easy to use, recommend it, thank you!
Asked by zhaoyawei:

The management of the knowledge base is relatively easy to use, recommend it, thank you!


Answers:
author: Nic Brough -Adaptavist-
body: Yes, it is easy, but did you have a question?

comments: author: zhaoyawei
body: Is there any better plugin to manage the knowkedge base ? Hope to recommend several plugins,Thanks!


author: Nic Brough -Adaptavist-
body: What do you mean by "manage the knowledge base"? How would you "improve" it?


author: zhaoyawei
body: Manage knowkedge plugin.


author: Nic Brough -Adaptavist-
body: Repeating a similar phrase does not help us understand what you mean.

Please, what does "manage the knowledge base" mean to you?


author: zhaoyawei
body: Recommend document management plugin, thank you!
Confluence with Centos 6 not working
Asked by Aldrich Quai Hoi:

Hello

I have a VPS with Centos 6 OS i want to install Confluence on it.

but here not able to install Confluence on this OS, it's asking for upgrade

so if any steps for Centos 6 OS so can u please share ?

thanks


Answers:
author: Igor M.
body: Hello,

All major Linux distros are supported and you should be able to install without problems. Installation process is nearly the same for all of them.

Are you following [Installing Confluence on Linux](https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html) guide and installing using installer?

Alternatively, you can install using archive by following [Installing Confluence on Linux from Archive File](https://confluence.atlassian.com/doc/installing-confluence-on-linux-from-archive-file-255362363.html) guide.

Let us know what error you are receiving and what version of Confluence you are trying to install.

Regards,

Igor


author: Moses Thomas
body: [@Aldrich Quai Hoi](/t5/user/viewprofilepage/user-id/1517379)Do you get any errors ?


Tags: confluence-server

server
autonumbering and substeps Confluence Cloud
Asked by Pat D'Ambrosio:

Hi,

I have several substeps under each of my numbered steps.

Sometimes I get this:

1.   
a.  
b.

2.

and sometimes:

1.   
1.  
2.

2.

Worse still:

1.  
a.  
2.

2.

I am using the indent button. (Tab does not work.)  
What can I do to fix this?

Thanks!


Answers:
author: thais
body: Hi, Pat,

As we'll need further information in order to troubleshoot, such as the page URL where the issue is happening, we opened a ticket with us at Support that should reach you soon.

Best regards,  
Thais


Tags: cloud

confluence-cloud
JavaScript using the HTML macro returns nothing
Asked by aubrey.smith:

Good morning,

I am very new to JavaScript, but am trying to get a Statuspage.io private page to display as a widget on a Confluence page. Confluence is a core tool for our department, and so there is great benefit to having the Statuspage feed displaying on pages for various team spaces.

I have created a new page new page on my personal space, interted the HTML macro, and then inserted the following code;

```
<script type="text/javascript" src="https://cdn.statuspage.io/se-v2.js"></script><script>	var sp = new StatusPage.page({ page : 'XXXXXXXXXXpx', apiKey : 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' });	sp.incidents({ 		success : function(data) {		console.log(data.incidents[0].name);    		}	  });</script>
```

The publishes fine, but the macro returns no data from Statuspage.io

I know I must be missing something obvious, but need a bit of guidance please. I have read the support document for using the HTML macro, but didn't get further with it, so any advice is greatly appreciated.

Regards,

Aubrey


Answers:
author: aubrey.smith
body: It's too late for javascript to execute in the body of a macro - the \<head\> section of the code is effectively ignored because the \<head\> of the page has already been completed before the body of the page starts.

<https://community.atlassian.com/t5/Confluence-questions/HTML-macro/qaq-p/310168>


author: Nick Coates
body: Best practice is to store Javascript towards the end (before the end body tag).

However, if the Statuspage is in trial mode, the widget won't work - this happened to me several times (I manage multiple pages for Symantec). Admittedly haven't tried to embed it into a Confluence page though.

Thanks,  
Nick


Tags: statuspage
Need to set up a Marketing space for cross functional teams
Asked by Lisa Marquardt:

My goal is to set up a calendar so Nelnet and Great Lakes' marketing folks can see what days we have emails planned to be sent out.

What is the best way to do that in GreatNet Atlassian? I thought of this product because it's been used by both Nelnet and former Great Lakes' staff. Is there another product that would be better for both groups to access? (Another option that came up was GoogleDocs.)

Can you either set up the space or give me permission to set up a Marketing space for team members at Nelnet and former Great Lakes' staff?

Thanks,

Lisa Marquardt

608.246.1660


Answers:
author: Kesha Thill
body: Hi [@Lisa Marquardt](/t5/user/viewprofilepage/user-id/1515629)!

I agree with Victor. Getting Team Calendars for Confluence, and embedding that calendar in a Marketing space in your Confluence instance would be the best way to share information across the team!

You should be able to create a marketing space in your instance, however if not, do you know how your admin is? They have may have restricted space creation to certain people - maybe contact your IT department and see who can give you access to create the marketing space!


author: Victor Mutambuki
body: Lisa,

Have you looked into Team calendars for confluence?  
[Learn more \>\>](https://www.atlassian.com/software/confluence/team-calendars?_ga=2.23900026.1102829911.1528721711-2036332451.1475171229)

Victor
Can I lock down articles created by agents to only be viewable to other agents?
Asked by Eleanor Hart:

We want to let our agents use the "create article" functionality, but there is some understandable nervousness about letting those articles be immediately viewable by customers on the help center. We'd like to start by allowing agents to create articles that are only viewable by other agents, while still having other, more vetted and polished, articles in the same kb viewable on the help center.

Does anyone know if there is a way to set a default restriction on all articles created using the "Create article" link in Jira Service Desk? Right now it seems that these articles inherit the space permission and the agents will need to click a number of times to restrict access to a specific group. I just want to reverse that so the new articles inherit the restriction and we have to click a bunch to make it visible to customers.

Thanks in advance to anyone with suggestions!


Answers:
author: Victor Mutambuki
body: Eleanor,

Yes you can. Go to Knowledge base --\> Authoring --\> Add individual agents as individual users in your space.

You can then give certain Agents permission to ADD pages and other Agent just the VIEW space permission.

Victor

comments: author: Eleanor Hart
body: Hi Victor! Thanks for responding. Unfortunately, that doesn't seem to help. I'm trying to make it so that any article an agent creates is viewable only by other agents until it is "published" to be publicly viewable.

To do this I need to alter default permissions on the pages being created to no anonymous view access without locking down the whole KB, because we still want some pages to be viewable by anonymous users.


author: Victor Mutambuki
body: Eleanor,

Quoting atlassian documentation "The 'unpublished changes' lozenge is **only visible to people who have contributed to the draft or unpublished changes**, so you don't have to worry about it distracting your viewers."

Please see more from the link below  
<https://confluence.atlassian.com/doc/drafts-149040.html>

Victor


author: Eleanor Hart
body: The use case I'm describing really has more to do with Service Desk than with Confluence. Or rather how the two interact and the default permissions inherited from new pages in the KB connected to an SD project. If the agent who creates the article doesn't publish it, then other agents can't see the article in the Jira Service Desk project so that solution won't work for us.


author: Victor Mutambuki
body: Eleanor,

I still think the initial approach was the best since the topic of Authoring and Viewing is Specific and limited.

Victor


Tags: cloud

confluence-cloud

jira-service-desk

jira-service-desk-cloud
Display only actual value in the bottom x-axis on chart from table
Asked by Paul Chang:

We use chart from table macro to display table data.

The data is based on each svn revision number, which is in the 1st column of the table.

The svn revision number is ascending but can have different interval among them.

i.e. 4000, 4001, 4100, 4101, 4120, 4140, etc.

We use this number as x axis value in line chart and we want to only see actual value

shown in x axis, not the fixed number interval like 4000, 4200, etc in bottom x axis.

Is there a way that can achieve this purpose? or using another macro?

Thank you !


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hi Paul,

You can set only fixed x-axis step.

comments: author: Andrey Khaneev _StiltSoft_
body: Or you can use Column / Bar chart type instead of Line chart type.


author: Paul Chang
body: Thanks for the info.

x-axis value shown in Column chart is what I expect.

But seems the latest value is displayed in left side - from right to left direction.

is this feature for Column chart?

Looks like x-axis value in line chart cannot look like those in Column chart. True?

Thanks!


Tags: confluence-server

server
Broken image icons in Confluence
Asked by Mathew Benson:

in the Project drop down when I create a new space, I see my projects, but the icons next to them are all broken link images. I migrated from Confluence Cloud to Server 6.8.1. I'm running behind a proxy and with a suffix on the path. Everything else seems to be working fine, for now. Any idea why these are broken?


Answers:
author: Shankar Asam {Appfire}
body: It look like the logos are missing. when you have migrated from cloud to server, didn't you restored the logos? Atlassian team can provide the necessary missing images if you can request them. Alternately, you can right click on missing logo section and choose view image, that should provide the path. They generally invoked from \<confluence-install\>/confluence/images/logo folder. Check if you have the images in there, if not, you can restore to them here.

thanks

comments: author: Mathew Benson
body: I found the problem, though I'm not sure how to fix it. The problem is the html generated by confluence is using the actual host name and port, not the configured baseurl and proxy port. The "Server Base URL" is set properly. I'm not getting any configuration errors. Everything else looks fine. That one dialog is just using the wrong URL.


author: Kenneth Juul Wannebo
body: Hi Mathew.  
Did you find a resolution to this?  
I'm experiencing the same issue.


Tags: confluence-server

server
How do I change authors for when someone has left the company?
Asked by jo astley:

When people leave the company we need to change the authors on confluence documents to those who take their place. How can I do this please?


Answers:
author: Victor Mutambuki
body: Jo,

Why would you want to change authors?

Victor

comments: author: jo astley
body: Because that person is no longer with us. So I want to pass to the next project manager so that they get all the notifications for interactions with that page. Also if anyone has any questions, they know who to direct them to as they will become the owner of that piece of work. All tickets etc point to that conf doc, so there needs to be a relevant owner and that needs to be someone who is still employed with us. Thanks


author: Victor Mutambuki
body: Jo,

I see there's a ticket out there but i don't think they're considering on working on it.

Please see link below.

<https://jira.atlassian.com/browse/CONFSERVER-7247>

victor


author: jo astley
body: Thanks, left a comment there. Seems a simple thing to not be implemented when its so obvious it would be needed.


author: Ollie Guan
body: Hi [@jo astley](/t5/user/viewprofilepage/user-id/399477),

Can you try to change the email address of the resigned employee to the next project manager so that the changes will be emailed to the next project manager

Hope it helps.


Tags: notification