youngmon/atlassian-qna huggingface dataset:
API to script changes to pages?
Asked by Patrick Nolan:

Hi,

We would like to migrate our on-premises Confluence to Confluence Cloud however we have used a custom user NoPrint [macro](https://confluence.atlassian.com/conf53/noprint-example-of-a-user-macro-411108920.html)throughout most of our pages. Unfortunately user macros are not supported in the Cloud. We don't mind removing the macro but we have thousands of pages so manually updating the content is not a viable option.

Can I migrate the content to the Cloud and then update our pages via an API or some other kind of scripting?

Any suggestions would be greatly appreciated.  

<br />


Answers:
author: Bob Swift (personal)
body: You can use [modifyPage](https://bobswift.atlassian.net/wiki/display/CSOAP/Reference#Reference-modifyPage) from [Confluence Command Line Interface (CLI)](https://bobswift.atlassian.net/wiki/display/CSOAP). This is discussed in [How to globally search and modify content](https://bobswift.atlassian.net/wiki/display/CSOAP/How+to+globally+search+and+modify+content?src=sidebar).


author: m@
body: Patrick,

The Confluence REST api has what i think you need, I would approach it like this:

1) Use CQL to find all pages with your macro on it (See: <https://developer.atlassian.com/confdev/confluence-rest-api/advanced-searching-using-cql#AdvancedSearchingusingCQL-macroMacroMacro>). I just had a thought, this may not work with a macro that is no longer installed. If it doesn't, you can just parse all pages.

2) For each file, you can parse the structured storage format using the content api (See: <https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples>)

3) The storage format is well structured XHTML so you can use jquery or some other library to parse and manipulate it.

Good luck!

Cheers

Matt


Tags: cloud

confluence-cloud
Can a table of contents be generated from a numbered list?
Asked by Max Wiegant:

I have a QA wiki page with a bunch of information on it. The page was originally laid out with a numbered list, which makes navigation very hard now since there is so much info on the page.

I was wondering if there was a way to easily generate a table of contents or some other ease-of-navigation feature to make moving around the page more graceful?


Answers:
author: Rodney Hughes
body: In edit mode of the page, click Insert\>Table of Contents

That is automatically generated based on heading styles.

A neat trick I have just done is to create a TOC, but then have a table on the page.  
One column of the table is the sequential topic number - normal paragraph style.  
One column is the topic's title text with the Header style applied  
The third column has an Expand macro in each row with the detail about that topic.

(You may find that when you apply the Heading style to the topic title text, you may then have to go back down the topic number column to change that back to paragraph style)

So you end up with a TOC at the top which relates to the topic number sequence

and a table which can be sorted by clicking the topic title text column but the detail is hidden until they click Expand, thereby keeping the page looking "neat" and uncluttered

TOC with sortable table.png  
[](https://community.atlassian.com/t5/Confluence-questions/Can-a-table-of-contents-be-generated-from-a-numbered-list/qaq-p/48945?attachment-id=1198){#link_1186fefbb61798}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/8289/1/TOC%20with%20sortable%20table.png){#display_1186fefbb61798_0}
How many spaces have i created this year?
Asked by Victor Prasad:

Hello,

I was asked 'how many spaces were created this year'.

Can I search by sites created by date? Or is there a db query I can run?

Help, please?

Thanks,

Mr. V


Answers:
author: Chander Inguva
body: Hey Victor,

To separate personal space count and global space count

SQL Queries

```
select COUNT(*) from SPACES WHERE CREATIONDATE &gt;= '2016-01-01' AND SPACETYPE = 'personal';---------------------------------------------------------------------------------------select COUNT(*) from SPACES WHERE CREATIONDATE &gt;= '2016-01-01' AND SPACETYPE = 'global';
```


author: Chander Inguva
body: Hi Victor,

Here is the **DB query** executed against **SQL Server**

```
select COUNT(*) from SPACES WHERE CREATIONDATE &gt;= '2016-01-01';
```

Regards

Chander Inguva

comments: author: Victor Prasad
body: Thank you for your *fast* help!

Any way to separate out personal spaces from other spaces (team, project, etc)?


Tags: confluence-administration
Where is httpd.conf on Windows?
Asked by Andrew Pane:

I am trying to follow these instructions for running Confluence behind Apache on Windows:

<https://confluence.atlassian.com/conf54/confluence-administrator-s-guide/configuring-a-confluence-environment/web-server-configuration/running-confluence-behind-apache/using-apache-with-mod_proxy>

It says I need to edit `httpd.conf` but that file does not exist on my server. Do I need to create it?


Answers:
author: Nic Brough -Adaptavist-
body: There's always an httpd.conf file in an Apache installation, but it's location is up to you - where did you install Apache?

comments: author: Andrew Pane
body: I didn't... the Confluence installer installed it for me.

I've searched the entire computer for httpd.conf and no file is found...


author: Nic Brough -Adaptavist-
body: Ah. No, it did not install Apache.

It installed "Apache **Tomcat**" as the "container" for Confluence - you run Tomcat, it runs Confluence for you. Apache is a different application - it's a web-server, not an application container.

You'll need to download and install Apache if you want to use it for fronting Confluence. As you're installing on Windows, you might already have IIS which can do the same job, especially if you have any IIS experts on hand in your organisation.


author: Andrew Pane
body: Ah, that makes sense. But sadly no IIS experts around here. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: Nic Brough -Adaptavist-
body: I find Apache easier (but I used to work with a couple of the people who helped write it, so I kind of got a lot of exposure). There are other options - lightppd and nginx for example, but Atlassian's docs were aimed at Apache, so, unless you really want to learn another one, it's probably the best for you in this case.


author: Andrew Pane
body: Surprisingly, I think I've managed to get it all working on Apache. Thanks.


author: Kim_Berntson
body: How?


author: Andrew Pane
body: Roughly by following these instructions:

<https://confluence.atlassian.com/conf59/using-apache-with-mod_proxy-792499652.html>


Tags: confluence-administration
can not configure server base url
Asked by nie an:

*This question is in reference to Atlassian Documentation: [Configuring the Server Base URL](https://confluence.atlassian.com/pages/viewpage.action?pageId=148592)*

I just get an Atlassian Cloud Open Source subscription for our Open Source project([Open-Falcon](https://github.com/open-falcon)).

The Server Base Url is not editable. Why? What should i do then?


Answers:
author: Nic Brough -Adaptavist-
body: The base url of a Confluence system **must** match the url upon which it is running.

On Cloud, you can not change that url, so there's no need to change the base url either. (If Atlassian do implement a system where you can change the url, I can't imagine that they would not automatically lock the base url to it, so you still wouldn't be able to change it)


Tags: cloud

confluence-cloud

documentation
Where do I find the "Advanced" link under the "Browse menu"?
Asked by kristin antin:

I'm trying to follow these instructions to export my space, and stuck on step 1: [https://wikis.nyu.edu/display/DOC/Exporting+Confluence+Pages+and+Spaces+to+XML.](https://wikis.nyu.edu/display/DOC/Exporting+Confluence+Pages+and+Spaces+to+XML) What is the "Browse" menu? I checked all menus available, and don't see an "Advanced" link anywhere.


Answers:
author: Admin2
body: That guidance is out of date: it's over 5 years old so will refer to a much older version of Confluence than the Cloud version.

Try looking [here](https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html#ImportaConfluenceSpace-Step2.ExportthespacecontentfromthesourceConfluencesite) instead:

<https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html#ImportaConfluenceSpace-Step2.ExportthespacecontentfromthesourceConfluencesite>


Tags: cloud

confluence-cloud
Is there a more recent version of the page in view mode image?
Asked by TonyH:

*This question is in reference to Atlassian Documentation: [Page in View Mode](https://confluence.atlassian.com/pages/viewpage.action?pageId=428803321)*

The tools menu has changed for instance.


Answers:
author: Rachel Robins
body: Hi Tony,

We decided to retire this page a few versions ago, so it no longer appears in the later versions of our docs.

comments: author: TonyH
body: Thanks Rachel. Is there anything to replace it?


Tags: page
is Confluence HTML Macros also available for "ondemand"?
Asked by Nina:

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

Ask your question here...


Answers:
author: Robert Massaioli _Atlassian_
body: There are similar Add-ons for Atlassian Cloud though. You might be interested in the [HTML Macro for Confluence Cloud](https://marketplace.atlassian.com/plugins/biz.artemissoftware.confluence.html.HtmlMacro/cloud/overview).


author: Nic Brough -Adaptavist-
body: No, because you could render pages or spaces unusable with them. Atlassian, sensibly, don't want to support anything that could do that sort of damage, so they have put them on the "restricted functions" list (see <https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html> )

comments: author: Nina
body: thanks a lot for the info!


Tags: cloud

confluence-cloud

documentation

html-include
Can I customize default CSS on my site(Cloud)?
Asked by Megumi Kato:

*This question is in reference to Atlassian Documentation: [Getting Help and Support](https://confluence.atlassian.com/pages/viewpage.action?pageId=740098452)*

I read <https://confluence.atlassian.com/conf58/styling-confluence-with-css-771892719.html> but I cannot find

"\> **General Configuration** \> **Security Configuration** and select **Custom Stylesheets for Spaces**. "


Answers:
author: Nic Brough -Adaptavist-
body: No. You're reading the documentation for Confluence Server, customising CSS is a restricted function on Cloud - see <https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html> for the list of things you can't do.

comments: author: Megumi Kato
body: I see. Thank you for your quick response :-)


Tags: cloud

confluence-cloud

documentation
How to remove page restrictions when the group which it is permitted to is empty?
Asked by hemanth acharya:

*This question is in reference to Atlassian Documentation: [Page Restrictions](https://confluence.atlassian.com/pages/viewpage.action?pageId=701434765)*

Hi Experts,

I have couple of pages whose 'Permitted User/Group' is set to a group. That group does not have any members in it. As a system admin, I am not able to remove the restrictions of those pages. and on click of those pages I see the standard message:

The page you were trying to reach could not be found. This could be because:

* The page does not exist.
* The page exists, but you do not have permission to view it.

Also, I navigated to "Space Tools" -\> "Permissions" -\> "Restricted Pages" and I am able to see the pages there, but if I try to click the padlock on the right for that page, I see the same message as above.

How can I fix this?

Thanks,

Hemanth


Answers:
author: Rachel Robins
body: Hi Hemanth, if you're a Confluence administrator, I'd suggest that the easiest way to rectify this is to add yourself to the group in question, remove the permissions on the restricted pages.

The process you describe to remove restrictions should work - I'm guessing it may be failing because of a bug.

If you continue to have problems, I'd recommend contacting our support team for assistance support.atlassian.com.

comments: author: hemanth acharya
body: Adding myself to the group and changing the permission worked! thanks for that. But, I have one more question, what in the case if the page restriction is only on an particular user and he/she has left the company?

Thanks


Tags: documentation

group
Draw.io 'add a drawing' doesn't display the intermediate template selection dialog
Asked by Jeffery Reid:

[Draw.io](http://Draw.io) 'add a drawing' doesn't display the intermediate template selection dialog in my instance of Confluence. It just goes directly to a blank canvas.

How can I get the template dialog back?


Answers:
author: David Benson _draw_io_
body: draw.io for Confluence Cloud uses Atlassian's Connect API. The API is still fairly new and isn't complete, as a result we're not able to show the templates dialog. Integrating draw.io in Confluence Cloud is something of a hack to get it working at all. We do intend to provide the integration experience once the API allows us to.


author: David Benson _draw_io_
body: Apologies for seeing your question late. We only watch questions tagged with "draw.io", I'll add that tag in now, but if you add it in the future you'll get a much faster answer.


Tags: cloud

confluence-cloud

draw.io
Can users create groups?
Asked by Ty Tran:

Have a user that wants to be able to create groups so that they are able to share out their space. Is this possible?


Answers:
author: Michael Partyka
body: Yes only admins can create groups. Maybe instead of groups think about using roles in your project. Thanks to this it will be possible that project administrator will be able to modify roles in project (project administrator can be a simple user)


author: Nic Brough -Adaptavist-
body: No, only admins can maintain groups.


Tags: cloud

confluence-cloud
decision register is not showing my items
Asked by keith mcdowell:

*This question is in reference to Atlassian Documentation: [Decisions Blueprint](https://confluence.atlassian.com/pages/viewpage.action?pageId=339739406)*

My decision register was move to another page. After that "ALL" my items are not showing in the Decision Register. They ONLY show as Child Pages,

why?

and How can I fix this?


Answers:
author: Nic Brough -Adaptavist-
body: When you say it was "move to another page", do you mean you moved the content to another page, or the whole page? Could you check the settings on the macros in the decision register to see fi they need updating?


Tags: cloud

confluence-cloud

documentation
Is there an easy way to show JIRA Metadata on a Theme Press Themed Page?
Asked by Steven F Behnke:

I don't seem to be able to find any easy or simple methods to expose this from the traditional Confluence metadata banner.

image2016-4-22 11:36:6.png  
[](https://community.atlassian.com/t5/Confluence-questions/Is-there-an-easy-way-to-show-JIRA-Metadata-on-a-Theme-Press/qaq-p/24832?attachment-id=12164){#link_1190bcdaecb943}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/4135/1/image2016-4-22%2011%3A36%3A6.png){#display_1190bcdaecb943_0}


Answers:
author: Ricardo Martins
body: **Update for Theme Press 2.x:** In order to display the JIRA tickets linked to a Confluence page, you will have to enable the "Metadata banner". You can achieve this by going to the page's layout and in "Page Elements" select the "Metadata Banner" to be visible either with the title or breadcrumbs. Note that the title or breadcrumbs will need to be visible as well. You can find more information on the following page:

* [Layout Page](http://help.brikit.com/display/PRESS/Layout+Page)


author: Ricardo Martins
body: To show the JIRA Metadata you will have to activate the "page-metadata-banner" dark feature. To do this:

1. Go to \<Your Confluence URL\>/admin/darkfeatures.action page.
2. At the bottom add "page-metadata-banner.enable" and submit.
3. On the page with the linked JIRA issue pick a layout where the page title and page info are visible.

You can then choose which elements from the "page-metadata-banner" you want to hide with CSS and/or use the HTML Copy Element macro to position the "#content-metadata-jira" somewhere else on the page.


Tags: addon-com.brikit.themepress

brikit

theme-press
Global and space activity - Month view
Asked by Jennifer Weber:

Hello - The activity view in space settings and the Global activity view are helpful for us. However, if we try to use the Month view, you can't already read what is on the bottom axis, it just looks like a bunch of dots -

activity.PNG

Clicking on them does not zoom into them and make them any clearer. Does anyone else have this issue? Has anybody figured out how to resolve?

It's the same in the Day view, but that's not one we are likely to use very often.

We're in Confluence 5.5.6.

Thanks for any insight!!  
[](https://community.atlassian.com/t5/Confluence-questions/Global-and-space-activity-Month-view/qaq-p/192082?attachment-id=835){#link_118700f0be2db5}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/32359/1/activity.PNG){#display_118700f0be2db5_0}


Answers:
author: Marsha Darin
body: Have the very same question, would much appreciate any help.

Thanks!


Tags: confluence-administration
The day portion of the date in which a page was updated is incorrect
Asked by David Burke:

I just noticed that all of the dates shown for page updates are incorrect. The day portion of the date is three digits. As an example, changes made yesterday (4/21/2016) are being displayed as "04/111/2016". What is causing this and how do I fix it?


Answers:
author: Kay Brown
body: Under General Configuration in the Admin area, check the date format.

Regards,

Kay

comments: author: David Burke
body: Date Time Format is currently set at "MMM dd, yyyy HH:mm"

Date Format is currently set at "MM/DD/YYYY"

<br />

Based on this I would say that the day should always be two digits.   


Tags: confluence-administration
Is it possible to search and replace user macros?
Asked by Arne Laske:

If yes, how?  
If no, why not?  

Or is there any possibility to use regular expressions in a search query?

Since confluence adds a random macro IDs for every macro used, it's not possible to mass replace macros using the "search and replace plain text" function (this would be my workaround).


Answers:
author: Lukas Knoch -Rumpelcoders-
body: Just in case someone stumbles across this post: Since version 1.5, both regex and user macro are supported.


author: Lukas Knoch -Rumpelcoders-
body: Hi, due to the internal structure of confluence, we do not support replacing user macros.

Also, we apply only regular string replace, no regex as that is usually the more common application.

If you need these features, feel free to send us an e-mail with a feature request at office\[at\]rumpelcoders.at

Best, Lukas


Tags: confluence-administration
How i can remove "Created" for public page in Cloud Confluence?
Asked by Michael Rogov:

How i can remove tag "Created" for public page in Cloud Confluence?


Answers:
author: Aleks Yenin (Polontech)
body: Have you tried:

```
#com-atlassian-confluence .page-metadata  {    display:none;  }
```

comments: author: Stephen Deutsch
body: Make sure you enter that in the CSS Macro somewhere in the Confluence page for which you want to hide that section :smile:


Tags: cloud

confluence-cloud
Can I import html and rtf documents into confluence?
Asked by Paula Cristina Vaz:

*This question is in reference to Atlassian Documentation: [Import a Word Document into Confluence](https://confluence.atlassian.com/pages/viewpage.action?pageId=170493136)*

Ask your question here...


Answers:
author: Stephen Deutsch
body: This is actually even better supported on Confluence Cloud through this addon:

<https://marketplace.atlassian.com/plugins/com.atlassian.confluence.pandocconnect/cloud/overview>


author: Alex Bernardin
body: I've been struggling with this as well. The 'import Word doc' will actually also process an HTML doc. The main problem I've run into with this approach is that nested tables lose their opening TABLE tag, which breaks the table layout.

I just tried the Pandoc solution posted by Stephen and found that also will load an HTML file. On my test file, nested tables work, but tables with a header column lose their 'class=wrapped' attribute, as well as some of the other styling constraints. Better than losing the nested table structure altogether, but still not ideal.


author: Aleks Yenin (Polontech)
body: Hi,  
Here is the way you can import content into confluence : <https://confluence.atlassian.com/conf51/importing-content-into-confluence-336169436.html>


Tags: documentation
Open all external links in a new window/tab
Asked by Michel Hoogervorst:

We want our external links to open in a new window or tab.

[This article](https://confluence.atlassian.com/confkb/how-to-force-links-to-open-in-a-new-window-213518072.html) explains how to do this, but it's only working for links in a page. It's not working for external links in our space shortcuts.

I've found that external links in a page have the class 'external-link' like the article suggests, but the links in the space shortcuts have the class 'external_link' with an underscore instead of a dash. Even if I replace the dash with an underscore the link in the space shortcuts is opened in the same window anyway.

Is there a way to make external links in the space shortcuts open in target _blank as well?


Answers:
author: Sharon Hinde
body: Hi,

there is a free Confluence add-on that could help you do this <https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.externallinks/server/overview>

Sharon

comments: author: Michel Hoogervorst
body: The article points to that plugin as well but we would like to solve it without adding just another plugin. Is it not possible to do this with a simple piece of javascript?
after moving forum in the pagetree hierarchy, forums shows no entries
Asked by Wiki Support:

after moving forum in the pagetree hierarchy, forums shows no entries but the child pages are

available, we made a rebuild index from scratch but with no success

pls any help what to do

we are using 2.7.1 version of

#### Community Forums Plugin and confluence 5.74 {#toc-hId-1224985567}

i also tried to post a support ticket as we have a commercial license but your [productsupport.adaptavist.com/](http://productsupport.adaptavist.com/)

sais i have no permission to do anything pls help thx

bye

milo


Answers:
author: Divya Margani [Adaptavist]
body: Hi Milo (@Wiki Support),

Hope this finds you well. When you move the Forum page the child pages(Topics) are also moved.

[productsupport.adaptavist.com/](http://productsupport.adaptavist.com/) is our Service Desk that we currently do not use it for Support for Adaptavist Confluence Add-ons yet. Please use the [contact form](http://www.adaptavist.com/w/about/contact-us/ "Contact the Atlassian Experts") on our website to create tickets. We will contact you via email and you can provide us more information in order to resolve the issue. While creating the ticket please do provide details about Forums showing "no entries".

Regards

Divya Margani

QA \& Support Analyst \| Adaptavist


Tags: addon-com.adaptavist.confluence.forums

confluence-administration