youngmon/atlassian-qna huggingface dataset:
Get Space page hierarchy using the REST api
Asked by Mathieu Yargeau:

There was a question asked a while ago, but with no helpful answer.  
<https://community.atlassian.com/t5/Confluence-questions/Get-Space-page-hierarchy-using-the-REST-api/qaq-p/351963>

In a webpage, I want to build a tree view of the pages of a space, and maybe put them in a dropdown so the user can select one.

I am able to do a REST call to /rest/api/space/{spaceKey}/content to get the pages, but they are all in a list, with no hierarchy, and the ancestor field is always empty.

I am able to get only the root page with the same api, but setting the depth to "root". From there, I could do a REST call to get the children of that page, then do a REST call for every child to get their children and so on...  

This would mean a number of REST calls equal to the number of pages, which is not great. Is there a better way to do it?


Answers:
author: Kim Wallace
body: Helen's workarounds are very helpful - and point out a glaring omission within Confluence. The content management tool UI is severely underpowered. This question has been in the community since 2016 and STILL doesn't have an adequate response from Atlassian.


author: Helen Setchell
body: In case it helps someone else finding their way here - <https://community.developer.atlassian.com/t/get-space-page-hierarchy-using-the-rest-api/15999/11> has more answers


author: AnnWorley
body: Hi Mathieu,

You could use the [Page Tree Macro](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html) to display the tree view of the pages on a Confluence page.

Here is [another resource](https://developer.atlassian.com/community/) for REST questions if this forum doesn't answer satisfactorily.

Thanks,

Ann

comments: author: Mathieu Yargeau
body: Thank you for the suggestion. Page Tree Macro is fine, but can only be used in a Confluence Page, and after trying it, you cannot use it to select a page as part of a form.


Tags: atl-dev

rest-api
what is the best approach to guide the creation of a wiki space (product, uo or team)
Asked by Michael Regelin:

We try to guide the creation of wiki spaces, based on a single criterion.  
Currently we use 3 criteria which are: product, qestions and answers, and organizational units  

The idea is to favor the structure of the template pages when creating the pages and it is much easier to orient it when there is only one model.  

I would like to hear from the community and more specifically, if this step has already been taken.  

According to my opition, it is desirable to create "product-oriented" spaces.  

By the past we were creating intranet, documentation and project spaces.

Now we focus on documentation only.

thanks for your input.

Michael


Answers:
author: Michael Regelin
body: Thanks Nic.

We mainly have 5 criterias:

* User Guide
* FAQ
* Problem - Solution
* Technical description
* Announcement

Isnt that too many criteria ?

We never had done works with blueprint space.

I have read that it mean developement...

Otherwise does it exist some free plugin offering blueprints

Michael


author: Nic Brough -Adaptavist-
body: I would do this by the criteria. For each of your criteria, I'd have a common "type" of space (ideally, blueprinted) with all the relevant predefined templates in them automatically.

The Product spaces would obviously be product focussed, and the OU probably more team like. I'd suggest a look at "Confluence Questions" for your Q\&A spaces though, it might be more useful than the use of generalised templates that might get missed.
Best way to modify template in Confluence?
Asked by Gabriella Tato:

I'm trying to create a centralized repository for user research that's a bit more organized (ie: more folder structure and visual design). Is this possible to do?

Trying to accomplish something along the lines of what I've seen below:

<https://medium.com/enterprise-ux/design-process-project-repository-c50c4ffa0003>

<https://atlassian.design/>


Answers:
author: Nic Brough -Adaptavist-
body: I'm not quite sure what you are trying to achieve. Confluence is already a "wiki" and the posting over at medium is pretty much using it off-the-shelf.

I would recommend creating templates to help your users structure their input along standardised lines, and show them clever stuff like linking, macros and page properties, but that's quite generalised.


Tags: design

layout

wiki
Change base URL
Asked by Hannah Groseclose:

Hi all,

So I recently installed Confluence 6.7.2 on Windows Server 2012 R2. Setup went fine but I'm hitting a roadblock attempting to change the Base URL for the product. When the base URL is changed from http://localhost:8090 to a FQDN like <http://wiki.companyname.com>, I'm not able to access the site from any browser internally.

I've created an internal A record for the site such that wiki.companyname.com points to the internal IP of the associated server and I still can't reach the site. Anything I'm missing here? I thought it would be as easy as changing baseURL in the product and then creating a DNS A record.

Thanks,

Keith


Answers:
author: Nic Brough -Adaptavist-
body: Does your DNS also map the port? If not, then try <http://wiki.companyname.com:8090> . You'll probably need to check all the firewalls and network routing too - try a tracert to the FQDN to check if you can get there.

comments: author: Hannah Groseclose
body: Nic,

Thanks for the quick reply. That was the trick to fix it, can't believe I missed something so simple. lol. Need more coffee :) Now to do some research to change the listening port and I should be good to go.


author: Nic Brough -Adaptavist-
body: You can persuade the Tomcat to run on port 80 (or 443 for https), which will make it work as almost every browser will make that assumption by default, based on the protocol!

However, it's generally better to use a proxy. Apache, Nginx, Lighttpd etc can all take an incoming "port 80" and proxy it to "your confluence:8090" - it's easier to configure, keeps the proxy and Confluence server updates separate and independent, and allows you to run several services on different ports as part of the same site or as subdomains.
Confluence Android Mobile Client - Hyperlink across Spaces not working properly?
Asked by Robert Grapes:

Using the Android Mobile Client for Confluence I am able to select a hyperlink from within a Space and remain in the Mobile Client. However, if I select a hyperlink to a page in a different Space I am prompted to select my browser or the Confluence mobile client to view the page. Selecting the Confluence client displays an error "Can't open in App". Selecting the Browser does open the page...but this happens every time I select the link...I cannot set the browser as a default choice. My preference would be to stay in the app itself.

Help!

Thanks,

/Rob G.


Answers:
author: Shannon S
body: Hi Rob,

It appears this is the same behavior reported earlier in this bug:

* [CONFCLOUD-53595](https://jira.atlassian.com/browse/CONFCLOUD-53595)

I have updated the bug to include your findings. I was able to replicate this on the iOS version of the app as well, and the original workaround doesn't appear to work in this case.

Please vote on the bug in order to help show the number of users who are running into the issue. Any comments on the bug will also be seen by our development team.

Let me know if you have any questions about this.

Regards,  
Shannon
How can I exclude headers of an excerpt-include from a table of contents
Asked by Daniel Schulz:

Hi Community!

I have a problem with the table of contents (toc) in combination with the Excerpt-Include feature.

I cannot exclude headers of an excerpt-include from a toc.

The structure of my pages is as following.

**Structure of page 1:**

{  
{excerpt}  
\<h1\>P1-Header 1\</h1\>  
\<h2\>P1-Header 1.1\</h2\>  
\<h2\>P1-Header 1.2\</h2\>  
{/excerpt}  
}

**Structure of page 2:**

{  
{toc}  
\<h1\>P2-Header 1\</h1\>  
\<h2\>P2-Header 1.1\</h2\>  
{excerpt-include of page 1 /}  
\<h2\>P2-Header 1.2\</h2\>  
}

**Result toc of page 2 now looks like:**

\* P2-Header 1  
\*\* P2-Header 1.1  
\* P1-Header 1  
\*\* P1-Header 1.1  
\*\* P1-Header 1.2  
\*\* P2-Header 1.2

Now I couldn"t find a way to exclude the headers of the Excerpt-Include (page 1) within the toc of page 2.

**The result toc which I try to get is:**

\* P2-Header 1  
\*\* P2-Header 1.1  
\*\* P2-Header 1.2

Can anyone help me out to find a solution?

We are using Confluence 6.5.1.


Answers:
author: Davin Studer
body: The only way I can think to do this would be to change the headings on your include page to something higher ... like h3 and h4 and then tell you TOC macro to ignore h3 and h4.

comments: author: Daniel Schulz
body: Hi Davin,

Thank you for your fast reply.

I was afraid that something like this would be the way.

Then I will try to do it like your proposal or 'excerpt' multiple parts without the heading tags.

Thank you again!

Best regards,

Daniel


author: Daniel Schulz
body: I just tried to use multiple excerpts but it does not work.

It seems not to be a bug because the documentation also says:

"You can only define one excerpt per page. In other words, you can only add the Excerpt macro once to a page."

See [https://confluence.atlassian.com/conf65/excerpt-macro-939701208.html](https://confluence.atlassian.com/conf65/excerpt-macro-939701208.html?)

For now I do not use the Excerpt macro anymore. I just linked the parts of the other pages. Maybe they will improve the feature for the future.


author: Davin Studer
body: There are a couple add-ons in the mareket place that allow for multi excerpt includes.

[Multi Excerpt](https://marketplace.atlassian.com/plugins/biz.artemissoftware.confluence.multiexcerpt.MultiExcerptMacro/cloud/overview) (paid)

[Include Content](https://marketplace.atlassian.com/plugins/com.keysight.include-content/server/overview) (free)


author: Daniel Schulz
body: Thanks Davin the add-ons helped me out!


author: Ralf
body: I still have the same problem. To put the headings to a higher level is no solution for me, it takes to much of the flexibility.

Is it not possible to exclude the ToC numbering for excerpt include?


Tags: excerpt

table-of-contents
HTML input in static macro on confluance cloud
Asked by Samuel Bremner:

I am trying to create a simple Macro for confluence cloud which allows the user to search a table in the page using a HTML input and some javascript.

If I create a dynamic macro I can get the HTML input to appear however the macro is loaded in an iframe so it can't search a table in the page that is outside of the iframe.

If i try the same thing with a static macro (which is not in an iframe) the HTML inputs don't seem to load. You can load other html tags but not inputs.

Does anyone know how I might be able to create a macro for confluence cloud that allows it to display inputs and search the page content based on the input value?


Answers:
author: Kombi, the best car ever
body: Hello, Samuel!  

Based on the document below, you can see that custom HTML and JavaScript inside the application are restricted by default:

* [Restricted Functions in Confluence Cloud](https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html)

<br />

In my opinion, you have two alternatives here, you can either use a third-party scripting tool to create the tool, such as Tampermonkey. Or you can use the browser's search functionality by itself.  

Other option, is to create a Confluence Cloud add-on that performs such functionality. You can learn more about this on the link below:

* [https://developer.atlassian.com/cloud/confluence/](Atlassian Developers - Confluence Cloud)

Kind regards,

Marco A. Bomfim


Tags: atl-dev

cloud

confluence-cloud

macro

static
Upgrade confluence from 6.03 to 6.7
Asked by jobinjames:

Hi,

I want to upgrade my confluence from 6.03 to 6.7.

Current server is running with Ubuntu 12.04. what are the steps to follow to complete the upgrade


Answers:
author: Nic Brough -Adaptavist-
body: <https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

Although you may struggle with such an old Ubuntu.
External gadgets from Jira in Confluence doesn?t show
Asked by Daniel Miks:

I can?t seem to get JIRA Road Map gadget to show and work in Confluence. I have all application links setup and working. I have added the right gadget feeds and also added the specific gadget link. But I only find Road planner gadget, not JIRA Road Map which is what I need. In Jira I can add the gadget to any dashboard.

I am sysadmin in both instances.

Any Ideas?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: How are you adding the gadget? Are you using the macro page as described here: <https://confluence.atlassian.com/doc/gadgets-204047542.html#Gadgets-AddaJiragadgettoapage>

comments: author: Daniel Miks
body: Yes I try to add by using add macro/other macro menu choice. But it will not show up.


author: Jobin Kuruvilla [Adaptavist]
body: I gather that you already registered the gadget. Did you see any error in the logs while adding the gadget or when you tried to register it?
LDAP directory configuration
Asked by Rajratan Dahane:

Hi Team

we have added SSL certificate for secure LDAP.

![LDAP directory.png](/t5/image/serverpage/image-id/17006i4DDAE3438477356F/image-dimensions/692x357?v=v2 "LDAP directory.png")

But when we try to save and test the connection we are getting following error

![LDAP directory_SSL security error.png](/t5/image/serverpage/image-id/17005i0DA32771CBFC5FE9/image-dimensions/713x207?v=v2 "LDAP directory_SSL security error.png")

could you please help us with this


Answers:
author: Mirek
body: You probably accessing an application over HTTPS by using the IP address on the URL rather than the domain contained in the remote SSL certificate *and*the SSL certificate being fetched does not contain the Subject Alternative Name (SAN) parameter with the matching IP address as an alternative attribute.

comments: author: Rajratan Dahane
body: Hi Mirek,

Thanks for your help,

How do we configure SAN with SSL.  
where do we need to make the changes


Tags: ldap

ssl
upgrading to confluence 5.10. Do I upgrade Mysql beforehand?
Asked by Linda Petty:

I'm upgrading confluence to 5.10 using the installer

I know Mysql needs to be upgraded to 5.5 to be compatible with this.

Does the Confluence installer include the MySQL upgrade?

Or should I upgrade MySQL mysql before running the Confluence upgrade?

I don't seem to find an answer in the upgrade documentation.


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

Based on the [supported platforms](https://confluence.atlassian.com/conf510/supported-platforms-829078376.html) page for Confluence 5.10, it looks like MySQL 5.6.39 (latest available 5.6.x release) is the one you're going to want to go to. Although 5.5 is compatible, looks like there were some issues that weren't actually fixed - the resolution on a couple of those Resolved tickets is "upgrade to 6.0".  

I would recommend the following sequence of events:

1. Stop Confluence
2. Take a MySQL backup
3. Upgrade MySQL to 5.6.39
4. Upgrade Confluence to 5.10 using the installer (it will make a backup of your installation directory automatically - also consider letting the installer back up your home directory if you don't have daily backups in place)
5. Make any adjustments you need to make to your install, such as modifying **server.xml** with any proxy settings you have or **setenv.sh/.bat** to set the amount of RAM Confluence should use. The upgrade documentation should call this out, but it's an important step so it's worth repeating every time you get the chance :)
6. Start Confluence

When you start Confluence after an upgrade, it will make changes to the database so that things are compatible on Confluence's side. To directly answer your question, Confluence does not contain a MySQL upgrade - you will need to upgrade MySQL separately. Confluence will just take steps to make sure its own data is compatible with your freshly-upgraded MySQL.

Cheers,  
Daniel

comments: author: Linda Petty
body: Many thanks Daniel

I had in fact already decided to use MySQL 5.6.39

all useful advice

cheers

Linda
Auto generate index for child page title
Asked by Jim Yang:

Hi,

Is there a way to generate a section number for title of a child page?

For example:

1. Get started.

1.1 Step One

1.2 Step Two

2. Hello World

Or, is it possible to add section number to the title while exporting the space to PDF?


Answers:
author: Jan
body: Interesting question. I found this in the community, maybe it

helps: [https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-automatically-create-numbered-pages-with-confluence-e/qaq-p/563318](https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-automatically-create-numbered-pages-with-confluence-e/qaq-p/563318?)

As for pages we are using the free Addon "Numbered Headings" which is adding these automatical numberings based on heading level which works fine.

comments: author: Jim Yang
body: Thank you for your suggestion, I looked into numbered heading and it sort of achieved what I needed, I think I might write my document in a single page instead of spreading them into different pages.


author: Dmitry Mironov
body: Hi [@Jim Yang](/t5/user/viewprofilepage/user-id/173563)

Can you clarify a little bit what you want:

1. when creating child page to have child page title pre-populated with the parent page title number?

2. in Table of contents or child pages macros to add numbering like in numbered list?

comments: author: Jim Yang
body: Hi [@Dmitry Mironov](/t5/user/viewprofilepage/user-id/809840)

Thank you for quick reply,

1. Yes I want to have child page title pre-populated with the parent page title number.
2. I don't need numbered list in table of contents or child pages macros if I can achieve 1.

I did find a plugin name "[Scroll PDF Exporter Documentation](https://help.k15t.com/scroll-pdf-exporter/latest/scroll-pdf-exporter-documentation-114109112.html)" last night and try it out. It did add section number to page title when exported to PDF, but it cost $10 / 10 users.

So I'll be appreciated if there is a answer to 1.

Thank you.
How to upload word document having embeded excel in it on confluence page..
Asked by NT:

I have a word document which is having embed excel file in it.

When I import this word doc in confluence all content is getting imported except embedded excel file.

Is there is any way I can import word doc with embed excel so that when export it in word I get the doc with embed excel.


Answers:
author: Dmitry Mironov
body: I did not find any plugin in the marketplace with such functionality.

If " to get embed excel in exported word doc" is a must have then the only solution create/order custom plugin for this.


author: Dmitry Mironov
body: HI [@NT](/t5/user/viewprofilepage/user-id/1145066).

No Word Import neither Work Export can do what you want.

In both cases you need to manually insert Excel files to page/word doc after import/export.

comments: author: NT
body: Every word doc is has around 8- 10 embed excel file. After importing the content we can manually insert it but is there any workaround that allow us to get embed excel in exported word doc?


author: NT
body: we also have scroll office plugin for exporting page content in excel file but still can't find any way to achieve it


Tags: export

import

ms-excel
Add task without editing the page
Asked by Felicity Todd:

I want to do the following:

add a box where users can add tasks to a task report without editing a page.

put all tasks in the table sorted by date and assigned to.

How would I do this?

Thanks,   
Felicity


Answers:
author: Max Foerster - K15t
body: Hi Felicity,

using the built-in tasks I think what you want, can not be achieved. The task feature in Confluence is very, very basic (Of course, if you can have Jira as well) and the Task report macro needs certain filters to build the report. And that task can not live outside a page unfortunately. Did you have a closer look at available apps on the marketplace that could suit your needs? I guess there are some providing a macro to build a task list, that then can be edited without having to edit the whole page. But I'm not sure how and even if they integrate with the Task report macro after all.


author: Stiltsoft Support
body: Hi [@Felicity Todd](/t5/user/viewprofilepage/user-id/1196161)

What is your Confluence hosting type - Cloud or Server/DC? In our [Handy Macros for Confluence](http://%20https://marketplace.atlassian.com/apps/1214971/handy-macros-for-confluence-formatting-and-interactive-ui?tab=overview&hosting=datacenter&utm_source=atlassian-community&utm_medium=answer&utm_campaign=handy-macros-traffic-sources&utm_vendorID=1216111&utm_content=tasks) app for Server/DC we have Handy Tasks. Its an ugmentation for the native Confluence Tasks. With the help of Handy Tasks you can add tasks in the page view mode and quickly filter them on a page.

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


Tags: task
how to adjust the size of the image at once.
Asked by Alice Cho:

![2.JPG](/t5/image/serverpage/image-id/16975iE19DE4E8DF466550/image-size/large?v=v2&px=999 "2.JPG")

I need to re organized size them . but there is only way to fix as one by one.

so if there is another way to fix them please let me know. Thank you.


Answers:
author: Brittany Wispell
body: Hi [@Alice Cho](/t5/user/viewprofilepage/user-id/1196122)

I'm not seeing anything that would make that possible. I've googled it and tested in my own instance. I'd suggest opening a ticket for a feature request with Atlassian maybe? This would be helpful for a lot of people I am sure.

Great question btw!

Have a good one!