youngmon/atlassian-qna huggingface dataset:
When using Confluence Cloud REST API, how do you generate and parse JSON using java?
Asked by Bruce Wilcox:

I am new Confluence Cloud user. I have created some Confluence pages manually and now want to use the REST API to create pages programmatically using Java.  

I created a java client using the JAXRS framework. So far, I am able to interface with the REST API and receive JSON responses.  

I am looking for documentation on how to (1) deserialize the JSON responses and (2) serialize JSON POST requests -- using java.  

I have only been able to find examples that use the JSONObject class (<https://stackoverflow.com/questions/24504631/how-to-update-a-page-in-confluence-5-5-1-via-rest-call>).  

I would expect that the API request and response objects would have related Java classes (models) that can be serialized and deserialized using the Jackson or similar JSON library.  

Where is the Maven repo that contains these models? And where is the related Javadoc? Is there other documentation?  

Thanks in advance for your assistance.


Answers:
author: Thorsten Thorben
body: Hi [@Bruce Wilcox](/t5/user/viewprofilepage/user-id/1643739), I am now facing the same problem as there is no official Confluence client library available(?). May I ask how you solved your problem?

Thank you very much!

comments: author: Bruce Wilcox
body: I have not been able to find a solution.

And I am disappointed that a paid product only provides community support. I am not aware of a way to escalate this request to Atlassian themselves.

If you are able to get an answer, please let me know.


Tags: cloud

confluence-cloud

rest-api
How to make full backup of Confluence Cloud from command-line?
Asked by Javier Rivera:

I'm making full backups of my projects from Confluence Cloud via the "On Demand Backup Manager" from the GUI.

Is there a cmd-line that I can call/execute via curl or some other script that I can do this with? I want to automate this process and make backups to the cloud.


Answers:
author: Nic Brough -Adaptavist-
body: A lot of people automate regular backups with scripts. Often variations on the one Atlassian documents at <https://confluence.atlassian.com/jirakb/how-to-automate-backups-for-jira-cloud-applications-779160659.html>

comments: author: Hieu Le Mau
body: Hi Nic, I have the same demand of creating automatic backups for our Confluence and Jira Cloud. You mentioned that many people created their own scripts. Do you have some examples?

Thank you.


author: Dario B
body: [@Hieu Le Mau](/t5/user/viewprofilepage/user-id/2067652)

You can find some examples at below url:

* <https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/>

I hope this helps.

Cheers,  
Dario


author: Igor M.
body: Hello,

There is no native way to take backup over CLI in Confluence, but you can look into [Confluence Command Line Interface (CLI)](https://marketplace.atlassian.com/apps/284/confluence-command-line-interface-cli?hosting=cloud&tab=overview&_ga=2.10118197.1281762329.1531893814-543923426.1525846399) add-on if you want to interact with Confluence over CLI

Regards,

Igor


Tags: backup

cloud

confluence-cloud
Confluence fails to load after import
Asked by Stephen Dance:

Hi, I'm trying to export Confluence to a new server. I've installed 5.9.7 (same version as the old server) onto the new server, managed a successful xml export and seemed to have managed a successful import into the db on the new server.

I've only got a small db so i'm hosting locally (both old and new servers).

When I access confluence on the new server I get this error:

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm\[line 6, column 28\]  
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)  

caused by: java.lang.NullPointerException: Application cannot be null  
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)

Any ideas?

Thanks

Robb


Answers:
author: Zak Laughton
body: Hi Robb,

This type of NullPointerException error can occur when there is inconsistent index numbering for the User Directories. Try implementing the solution in this knowledge base article to fix any issues with the directory indexes: [Confluence returns system error due to 'Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException at /login.vm'](https://confluence.atlassian.com/confkb/confluence-returns-system-error-due-to-invocation-of-method-isshowsignup-in-class-com-atlassian-confluence-user-actions-loginaction-threw-exception-java-lang-nullpointerexception-at-login-vm-693899125.html?_ga=2.91463193.2033851322.1532354945-87664873.1526309663).

-Zak
ContentService vs ContentEntityManager
Asked by Daniel S?k:

Hi,

What are the pros and cons using [ContentService](https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/api/service/content/ContentService.html) vs [ContentEntityManager](https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/core/ContentEntityManager.html) (including subclasses of ContentService or ContentEntityManager)? It seems like both can do the same, but they do it differently. One example:

**Getting pages**

* ContentService using builder pattern to create filter and then using a kind of pagination for getting the result
* ContentEntityManager using getter methods

Similar approach can be seen in creating pages.

I try to find some info on topic ContentService vs ContentEntityManager. I only find that the service classes are used in [REST api](https://docs.atlassian.com/atlassian-confluence/REST/6.6.0/?_ga=2.185228074.285379323.1532007834-1908099136.1527084700#content), or that the managers are used for [interaction with confluence](https://developer.atlassian.com/server/confluence/accessing-confluence-components-from-plugin-modules/#manager-classes), but nothing that could be taken as comparison of these classes.

Can someone shed some light on this topic?

NOTE: Some time ago I posted question with an [answer](https://community.atlassian.com/t5/Confluence-questions/Can-getting-all-pages-of-space-create-memory-or-transaction/qaq-p/776368) suggesting to use [ContentService](https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/api/service/content/ContentService.html) instead of [ContentEntityManager](https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/core/ContentEntityManager.html) when managing content of Confluence. I replied to that answer why is that, but unfortunately no one responded. So I am creating new question hoping someone would answer this.

Thanks for answers/help!


Answers:
author: Aron Gombas _Midori_
body: Hey Sancho,

With dev question, you will get better results at <https://community.developer.atlassian.com>

comments: author: Daniel S?k
body: Hi Aron,

Thanks for the tip!


Tags: confluence-app

confluence-development
Why the attachment in a List sorted by Labels ist not shown?
Asked by Dominik Seitz:

I installed the macro "List sorted by Labels" and wanted to show sides ++and++ attachments. The attachments have the correct label and the setting of the macro says sides ++and++ attachments ++but the attachments are not shown.++


Answers:
author: Zak Laughton
body: Hi Dominik,

I'm not familiar with the "List sorted by Labels" macro, and I couldn't find any information about it. So I can get a better understanding, I have a few questions:

* Where did you obtain the "List sorted by Labels" macro from?
* How did you install it?
* When you say you want to show "sides and attachments", what do you mean by "sides"?

Thank you,  
Zak


Tags: cloud

confluence-cloud
Text showing bold in a pdf
Asked by Tina Horn:

I have a document in Confluence that has some text bold and other texy not bold. When I export as a pdf, all of the text shows bold. What is a fix for this?

Thanks!


Answers:
author: Tansu Akdeniz
body: Hi [@Tina Horn](/t5/user/viewprofilepage/user-id/1667478),

Does it happen for all pages?

When you navigate to Confluence Admin -\> General Configuration -\> PDF Export Language Support, is there any font that you uploaded? If yes, it is probably **BOLD** .ttf font.
Invite a guest to edit confluence webpage, via link
Asked by main contact:

I would like to give Links out to edit confluence page, not only to view. So there woule be two options: Link: editable, Link only view!

How can I do it?


Answers:
author: Thomas Schlegel
body: A link to a Confluence page is built like that:

\<your-server-url\>/display/\<space-key\>/\<page-name\>

If the page name contains special characters, the link looks like that:

\<your-server-url\>/pages/viewpage.action?pageID=\<page-id\>

A link for editing is always built with the page-id like that:

\<your-server-url\>/pages/editpage.action?pageID=\<page-id\>
How to add blog post via rest api?
Asked by Pornima Bhoyar:

Is there any way to add a blog post to confluence via rest api?


Answers:
author: Tansu Akdeniz
body: Hi [@Pornima Bhoyar](/t5/user/viewprofilepage/user-id/1179870),

There is a Confluence REST api [documantation](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/). You should set the type as blogpost.

comments: author: Pornima Bhoyar
body: Great. It works. Thank you so much for your suggestion.


author: Tansu Akdeniz
body: You are welcome [@Pornima Bhoyar](/t5/user/viewprofilepage/user-id/1179870). Would you please mark my answer as "Answered" (grey tick mark to the left of the answer). So that, other people who are experiencing the same issue would find the answer quickly.


author: Shaurya Chawla
body: Can we add ancestors to blogpost via POST api? I tried the same way as mentioned in above link for pages but couldn't.
how to allocate remaining top order quantity in pro rata with displayed quantity ?
Asked by Kanishq Tibrewala:

NA


Answers:
author: Nic Brough -Adaptavist-
body: I think you've misunderstood that this is a community for Atlassian users.

You're asking about something outside that field. You're in the wrong place.


author: Thomas Schlegel
body: Could you please tell us a little bit more? I do not understand your question and I have no idea, what this might have to do with Confluence.

comments: author: Kanishq Tibrewala
body: It has nothing to do with Confluence. However i am attaching a screenshot. Could you please tell me the next step. For example if another offer having quantity 40 comes in.![pro rata.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/27315i388B2F66CEF547E6/image-size/large?v=v2&px=999 "pro rata.PNG")


author: Thomas Schlegel
body: Sorry, but I don't have the time to solve your mathematical problems.


author: Kanishq Tibrewala
body: I doubt you could have solved my mathematical problems given that you do not have the brains to understand if it was even a mathematical problem. Cheers!


author: Thomas Schlegel
body: This is a Community about Atlassian's software. This is, what you did not understand. And please be careful with your words. Have a look at our Community Guidelines and play nice:

<https://community.atlassian.com/t5/custom/page/page-id/rules-of-engagement>

Thank you


Tags: mistaken-post
Under matching algorithms i am not being able to see any videos
Asked by Kanishq Tibrewala:

na


Answers:
author: Nic Brough -Adaptavist-
body: I think you've misunderstood - this is a community for Atlassian users. You're asking about something outside that field. You're in the wrong place.


author: Thomas Schlegel
body: Could you please tell us a little bit more? I do not understand your question and I have no idea, what this might have to do with Confluence.


Tags: mistaken-post
Offical Confluence docker image used OpenJDK but doesn't support it offically.
Asked by groge:

Offical Confluence docker image used OpenJDK but Confluence doesn't support Open JDK.

Offical Conflunce Dockerfile {#toc-hId-1820266614}
--------------------------------------------------

[https://hub.docker.com/r/atlassian/confluence-server/\~/dockerfile/](https://hub.docker.com/r/atlassian/confluence-server/~/dockerfile/)

Offical Supported Platforms {#toc-hId--731890347}
-------------------------------------------------

<https://confluence.atlassian.com/doc/supported-platforms-207488198.html>

Does it make sense?


Answers:
author: Igor M.
body: Hello,

Due to terms in the Oracle license agreement, we're not able to provide you with an image that uses Oracle JDK, so you would have to build an image yourself following [Update the Confluence Docker image to use Oracle JDK](https://confluence.atlassian.com/confkb/update-the-confluence-docker-image-to-use-oracle-jdk-829062521.html) guide

Regards,

Igor


Tags: confluence-server

docker

server
Cannot remove users from a group
Asked by Yousaf:

Hello together,

I would like to remove a few users from a group that was created a few weeks ago.

In the Bulk edit menu I deleted 3 members. Before, there were 50, now there are 47. But when I go to the Groups overview (the menu where all groups are listed), it says there are 50 members.

So when I click on the Group (not the edit menu, just the normal members overview of the group), it shows the 3 deleted members are still in that group.

I tried to delete them again but it has no use, they just stay in the group. What could be the problem here?

Thanks and best regards


Answers:
author: Mirek
body: Hmm.. I would start with checking this KB article - <https://confluence.atlassian.com/jirakb/cannot-remove-user-s-from-certain-membership-s-281480970.html> and see if that is the case.

comments: author: Yousaf
body: Hello Mirek,

thanks for the link. But that is more relevent when some users were deleted.

Could it have something to do with nested groups? I think some groups were combined together, and this one seems to be the same case.

Is there a way to see which groups are nested? And with which groups they are connected with each other?

Thanks!


Tags: confluence-server

server
Installing an addon to Confluence
Asked by Elena Bolpachova:

Hi everyone,

I've been looking into changing the standard theme for our company Confluence spaces, however I've had no luck.

I am an admin in the Atlassian account, yet in the site admin panel there is no manage addons or addons section at all, and if I try to locate a theme addon from the Confluence admin page, it doesn't find any.

I've followed the working with themes how to article - <https://confluence.atlassian.com/confcloud/working-with-themes-724765503.html>

What am I doing wrong?

Many thanks in advance for your help!


Answers:
author: Tansu Akdeniz
body: Hi [@Elena Bolpachova](/t5/user/viewprofilepage/user-id/1564741),

Go to;

* **Settings** -\> Find new add-ons

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

comments: author: Elena Bolpachova
body: Hi [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390), thanks for the quick reply, I already tried that, however I do not find any of the themes \& styles plugins under Find new add-ons:

![ConfluenceFindNewAddons.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/27321i3B068E468CA4867C/image-size/large?v=v2&px=999 "ConfluenceFindNewAddons.PNG")

And in manage add-ons I don't have an option to upload the plugin I downloaded from the Marketplace. It just gives me an option to link another marketplace![ConfluenceFindNewAddons.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/27318iAF4A3FBD9DB58C9C/image-size/large?v=v2&px=999 "ConfluenceFindNewAddons.PNG")  

That's what confused me. I must be missing something, but I just don't know what.

Thanks again for your help!


author: Tansu Akdeniz
body: Hi [@Elena Bolpachova](/t5/user/viewprofilepage/user-id/1564741),

After clicking**Find new add-ons** than selecting **Theme\&Styles** category, could you please type something to the box? Ex: **Theme** :)

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/27323i322F826E0C1D9067/image-dimensions/772x347?v=v2 "image.png")

Here the list of add-ons in [marketplace](https://marketplace.atlassian.com/search?category=Themes%20%26%20styles&hosting=cloud&product=confluence).


author: Elena Bolpachova
body: Thanks, [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390). Refined Spaces wasn't the one I was looking for, but I guess it will have to do.


author: Tansu Akdeniz
body: You are welcome [@Elena Bolpachova](/t5/user/viewprofilepage/user-id/1564741). Actually, it was the first add-on result returned from UI.

If my answer helped to solve your question, would you please mark as "Answered". So that, other people will be able to find this answer easily for similar questions.


Tags: cloud

confluence-cloud
Structure of the Confluence content
Asked by Ond?ej ?ebest?k:

Hi,

May I see the structure (hierarchy) of Confluence content?

For example: I found some page, but I need to now, where this page in the Structure is (which space..).

Is it possible to view this?

Thanks for your answers.

O.?.


Answers:
author: Steffi Frank
body: another option would be to check the left side bar:

![side bar.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/27416iD762EC647637AA85/image-dimensions/258x553?v=v2 "side bar.jpg")


author: Ond?ej ?ebest?k
body: Thank you,

it is useful. Pages are displayed in the page tree, but spaces have not this hierarchy. Have not they? Or Spaces can not have any hierarchy?

Thank you and have a nice day.

Ondra

comments: author: Nic Brough -Adaptavist-
body: No, there's no space hierarchy, only pages within spaces.


author: Aron Gombas _Midori_
body: For the sake of completeness, there is a theme app (maybe more) that I cannot recall which allows organizing spaces into trees!


author: Steffi Frank
body: does "Page Information" does not give you enough information?

![page information.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/27415i98AEDF1077ACBA0E/image-dimensions/850x336?v=v2 "page information.jpg")


Tags: confluence-server

server
Trying to figure out why I have 2 sets of Confluence editors...?
Asked by Aileen De Lara:

![editor1.png](/t5/image/serverpage/image-id/27285i62B9C19151EA4668/image-size/large?v=v2&px=999 "editor1.png")![editor2.png](/t5/image/serverpage/image-id/27287i6EFE9144B4647F22/image-size/large?v=v2&px=999 "editor2.png")


Answers:
author: Fabienne Gerhard
body: Hi [@Aileen De Lara](/t5/user/viewprofilepage/user-id/1664570)

on the first look it seems like you're having a page and a blog here.

![2018-07-19_08-04-45.png](https://community.atlassian.com/t5/image/serverpage/image-id/27291i41707E5A25AD708A/image-dimensions/544x446?v=v2 "2018-07-19_08-04-45.png")

comments: author: Aileen De Lara
body: Yeah, you're right! I didn't realize the editors would be different..?


author: Fabienne Gerhard
body: had a similar problem \*gg\*


author: Aileen De Lara
body: Thanks for the help! ?
Formatting Content by Label results
Asked by Shireen Gonzaga:

Currently, the "Content by Label" macro displays results as a list of pages. Is there a way to display pages as a page tree? (That would include parent pages of a page with the queried label.) Thanks!


Answers:
author: Patrick Cartier [Candylio]
body: Hi [@Shireen Gonzaga](/t5/user/viewprofilepage/user-id/658968)

Unfortunately, the content by label macro will not be able to do this for you, since it treats all pages the same and will only search for pages with that label, is adding the label to the parent pages possible?

If it's a lot of work you could try the Bulk Action Tools plugin:

[https://marketplace.atlassian.com/apps/1212559/bulk-action-tools?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1212559/bulk-action-tools?hosting=cloud&tab=overview)

comments: author: Fabienne Gerhard
body: [@Patrick Cartier \[Candylio\]](/t5/user/viewprofilepage/user-id/335730)plugin sounds great but is unfortunately only available for cloud - [@Shireen Gonzaga](/t5/user/viewprofilepage/user-id/658968) mentioned server version


author: Patrick Cartier [Candylio]
body: good catch! I assumed if they had cloud they would have server... but there's that phrase about assuming...


author: Shireen Gonzaga
body: Thank you for taking the time to respond, Patrick and Fabienne.

cheers,

Shireen


Tags: confluence-server

server
File options: File lists vs page attachments
Asked by Ned Brush:

Can anybody comment on the pros and cons of different Confluence file management options? There are space File lists and attachments to pages. I'm not sure when it's best to use one vs the other?


Answers:
author: Ned Brush
body: That's a great explanation and helps tremendously. Thanks!


author: Zak Laughton
body: Hi Ned!

Attaching files to pages is preferred when you have a few attachments that are related to the content of a page. Users might not typically search for these files on their own, but they are useful in the context of the page. Some examples might be screenshots on a page or a few files linked on the page.

The [File list blueprint](https://confluence.atlassian.com/doc/file-list-blueprint-329975388.html) is useful when the files *are* the main content. It's meant to be used when you have a list of files to share with people. As an example, you might have a set of Microsoft Office templates, or a central location to store all your team presentations.

It may help to consider that the attachments in a file list are *still just attachments on a page*. For example, if you have a "Presentations" file list, all files on that list are attachments to that same "Presentations" page, displayed in an Attachments macro. The benefit of the file list blueprint is that these lists are easily generated and accessible from the sidebar.

So to sum it up: Regular ol' attachments on a page are good to supplement content on a page, and file lists are good for sharing lists of files easily accessible from the sidebar. If you have any use cases in-between, you can also include the Attachments macro on any page to feature a list of attachments.


Tags: confluence-server

server
Space Permissions / View is off, log in as user, user can still see page
Asked by Brian Catanzaro:

Just starting my own Cloud Confluence. I'd like to give *clients* access to their space and *nobody else*'s. So I created a test:

* Spaces
  * Space A
  * Space B
* Groups
  * Admin
  * Confluence-users
  * Client A
* Users
  * me (admin)
  * test user

I put "test user" into Group "Client A". "Client A" has (almost) full permissions for "Space A" and is not listed in the permissions for "Space B".

When I log in as user "test user", using the *log in as user feature*, the "test user" can see activity for Space B! They can't see the space, but the name of the space and activity shows up under Recently Updated. I'll bet that "test user" can also figure out the names of the clients by using the autocomplete for various features for referencing Spaces, Pages, and other Users.

Is there a configuration that completely firewalls Space A and Space B such that users cannot see the:

1. Names of the spaces
2. Activity on the spaces
3. The other users


Answers:
author: Steffi Frank
body: How do you configured "anonymous access"?

If "view" is enabled test user is allowed to see all content in space B

![screenshot_505.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/27290i22CF3F12B4D10C6C/image-dimensions/942x131?v=v2 "screenshot_505.jpg")

comments: author: Brian Catanzaro
body: Anonymous access is turned off.


author: Brian Catanzaro
body: Any other suggestions?


Tags: permission

restriction

user