youngmon/atlassian-qna huggingface dataset:
Site unavailable after crashing during search re-index
Asked by Rob Maher:

Hello,

This morning I tried to restore a space to our confluence installation (Server version 5.25).

The XML file imported successfully and then I started a re-index of the search index. This made it to 72% and then the site when un-responsive before finally becoming unavailable

Our server admin has now tried restarting all the confluence services however the site is still unavailable.

Has anyone encountered this kind of issue before?


Answers:
author: Nic Brough -Adaptavist-
body: Yes, more than once. What does the log file say is the problem? (See \<confluence home\>/logs - there may be more than one file to look at in there)

comments: author: Rob Maher
body: .


author: Rob Maher
body: We have resolved now. Thanks for the assistance
List all confluence pages whose names starting with 'XYZ '
Asked by Satheesh Amilineni:

How do I list all confluence pages that has names starting with 'XYZ ' in another confluence page?

I unable to achieve the above with existing Macros or I may be missing something!

Any suggestion to achieve above is helpful. TIA,


Answers:
author: AnnWorley
body: You can use the search macro but when I tested it returned pages with content XYZ not just titles.

Would it be feasible to add an xyz label to the pages? Then you could use the [Page Properties Macro](https://confluence.atlassian.com/doc/page-properties-macro-184550024.html) with the [Page Properties Report Macro](https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html) to display the pages.

comments: author: Satheesh Amilineni
body: Thanks for the recommendation. I have tried search macro before.

It would be easy to add tag to the new pages that are being created. It's not so easy to add tag to hundreds / thousands of existing pages.
Unable to integrate with Google calendar
Asked by Max Stolyarov:

Hello,

I am trying to integrate my existing google calendar using google calendar plugin in Confluence. Unfortunately, it does not show up on any of the pages. I copied private iCal url from google calendar settings, entered it in URL field prompted by google calendar plugin, but when i refresh in preview window the screen is blank. I don't get an error, as if I would enter a wrong url, I don't get anything; preview window is blank and calendar does not appear on the page when i added. Can someone please help me get this done. Thanks

Max


Answers:
author: Shannon S
body: Max,

I found your duplicate question that confirms you're using Confluence 6.5.1.

I believe that you are indeed using the calendar add-on I linked to, so I tested this with a private Google Calendar of my own on Confluence 6.5.1.

I used the "Secret Address" listed in Google as my URL.

I can confirm the calendar does indeed load, but only if I am already logged into Google under my account. If I open an Incognito Tab and make sure I am **not** logged into my account, then the page is blank.

Can you ensure you're already logged into Google and then see if you are able to view the calendar? Only users logged into your Google Calendar will be able to see the calendar since you aren't sharing it with the public.

Regards,

Shannon


author: Shannon S
body: Hi Max,

Can you confirm, is this the add-on you're using?

[Google Calendar for Confluence](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.google.calendar/server/overview)

Please also let us know the Confluence version and add-on version that you have installed.

Thank you!

Regards,

Shannon


Tags: addon-net.customware.confluence.plugin.google.calendar

atlassian-marketplace

google-calendar
Adding macro into Confluence Template
Asked by Yaacov Weingarten:

In particular would like to create a template that includes the Multimedia macro, where the instructional text would tell the user to update the filename with the uploaded video file.


Answers:
author: Shannon S
body: Hi Yaacov,

Inserting the [Multimedia Macro](https://confluence.atlassian.com/doc/multimedia-macro-228622735.html) does require you to insert a current page and attachment, and the same will go for when you insert into in a template.

My recommendation is to have some default page in Confluence with an attachment on it, and use that in your template when adding the macro.

Then, you can use the Instructional Text from the Template Toolbar (the icon looks like a page) and ask users to go in and manually edit the existing Multimedia Macro to point to the desired page and attachment.

I tried also doing it manually with typing the example from the Multimedia Macro but unfortunately it doesn't automatically generate the macro when done this way.

I hope this is clear but do let me know if you have any questions.

Regards,

Shannon


Tags: macro

template
What is the best approach to capture navigation analytics in a public confluence environment?
Asked by Fabian A. Lopez (Community Leader - Argentina, Florida, California):

I am designing and developing a public confluence configuration environment and I am interested on find out what is the best approach to manage navigation statistics. I used to embed Google analytics years ago. Is that still the best approach?


Answers:
author: Shannon S
body: Hi Fabian,

Besides Google Analytics, you also have this add-on:

* [Analytics for Confluence](https://marketplace.atlassian.com/plugins/com.addonengine.analytics/server/overview)

Google Analytics seems to be more popular still, but you can give that one a try and see if you like it.

Regards,

Shannon


Tags: developer

google-analytics

navigation
Is it any difference in developing (and then using) plugins between cloud and local CONFLUENCE (resp
Asked by IljaKraval:

Hi,   
we want to develop the plugin for CONFLUENCE (and consequently for JIRA).  

1. Is it necessary to take into account whether it is a cloud or a local solution?

2. Is it enough to develop plugin for the cloud version and this will be applicable automatically to the local version or do i have to take any difference?  

Thanks for answers   

Ilja.


Answers:
author: Nic Brough -Adaptavist-
body: Yes, they are totally different "architectures".

A Server add-on is a block of code that uses the internal application API the same way the code of the application uses it. You package your code up and install it deep inside the application.

A Connect (Cloud) add-on uses the external REST API to talk to the application, asks the application to modify some of its functions within a limited framework and does most of the work completely outside the application.There are some ways you can re-use ideas from one type with another, but it's not really code re-use, it's using the same logic to do something similar.

It's two totally different approaches to coding and packaging.

comments: author: IljaKraval
body: Thanks for a very useful answer!


Tags: app

cloud

jira
What is the best way to use forms in Confluence?
Asked by Fabian A. Lopez (Community Leader - Argentina, Florida, California):

Is there a way to capture information in a form that is posted in a page after submission and based in a template?


Answers:
author: Fabian A. Lopez (Community Leader - Argentina, Florida, California)
body: Using ConfiForm now, it looks really powerful and no too hard to use.

[https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=server&tab=overview)

comments: author: Alex Medved _ConfiForms_
body: Thanks [@Fabian A. Lopez (Community Leader - Argentina, Florida, California)](/t5/user/viewprofilepage/user-id/211883), appreciate your answer and glad to hear what you say about ConfiForms


author: Alexey Matveev
body: Hello,

There are plugins for this task. For example, Adaptivist Forms for Confluence addon.

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


Tags: confiforms

forms

template
How to manage labels permissions in confluence?
Asked by Fabian A. Lopez (Community Leader - Argentina, Florida, California):

Multiple add-ons are based their functionalities on labels. Is there a way to protect labels in Confluence so only some users can delete or add them?


Answers:
author: Nic Brough -Adaptavist-
body: Natively, no, as controlling labels to that extent defeats the purpose of what they are for. A better approach would be tools that help admins curate labels, but annoyingly, the tools for that are also not built into Confluence

There are a number of label management add-ons that can help with both approaches in the marketplace.


author: Stavros_Rougas_EasyApps
body: [@Fabian A. Lopez (Community Leader - Argentina, Florida, California)](/t5/user/viewprofilepage/user-id/211883) we wanted to have a bulk editing tool for labels and restrict some features to admins only so we built an app that has admin only restrictions.

I know this is years late but I do believe it is the first app to do with fact. If curious take a look at [Label Manager by Easy Apps](https://marketplace.atlassian.com/apps/1232224/label-manager-by-easy-apps?hosting=cloud&tab=overview).


Tags: label
How to publish confluence content into social media?
Asked by Fabian A. Lopez (Community Leader - Argentina, Florida, California):

I am working on a collaboration site and I would like to have a space dedicated to events and news and when content is added I would like to have that automatically published to social media like Facebook, twitter, etc.

Is there any best practice for this or Marketplace add on?


Answers:
author: Nic Brough -Adaptavist-
body: Confluence is intended to be read directly, not have bits of pages duplicated over to other systems.

I'm not aware of any add-ons that would directly copy bits of Confluence to Social Media, so I suspect you'll need to write your own.

My instinct would be to reach for Script Runner if you have a simple requirement like "have a button that duplicates a page to X"


Tags: social-media
Can you nest user macros in Confluence and edit $body in the nested implementation?
Asked by Jerod Venema:

I'm building up documentation that shows examples of an SDK in multiple languages. Each language gets a tab. So we end up with a template that looks like this:

\<tabs\>

\<tab\>

\<language\>

\<code\>

\</tab\>

\</tabs\>

...with a repeat on the "tab" section obviously, for each language we support. The issue is that I need to have editable content (that's extensive - a single-line textbox is not enough) in each \<code\> area. So multiple rich-content areas. I'd love to have my macro spit out (for example) a panel for each language or something.

Here's my template as it exists right now. This technically works, but you'd have to edit your code in a single-line text field - obviously not usable.

## Macro title: Code Tabs  
## @param csharp:title=C#\|type=string\|desc=C#  
## @param java:title=Java\|type=string\|desc=Java  
\<ac:structured-macro ac:name="sp-tabs"\>  
\<ac:rich-text-body\>  
\<ac:structured-macro ac:name="sp-tab"\>  
\<ac:parameter ac:name="title"\>C#\</ac:parameter\>  
\<ac:rich-text-body\>  
\<ac:structured-macro ac:name="code"\>  
\<ac:parameter ac:name="language"\>c#\</ac:parameter\>  
\<ac:plain-text-body\>\<!\[CDATA\[ $!paramcsharp \]\]\>\</ac:pain-text-body\>  
\</ac:structured-macro\>  
\</ac:rich-text-body\>  
\</ac:structured-macro\>  
\<ac:structured-macro ac:name="sp-tab"\>  
\<ac:parameter ac:name="title"\>Java\</ac:parameter\>  
\<ac:rich-text-body\>  
\<ac:structured-macro ac:name="code"\>  
\<ac:parameter ac:name="language"\>java\</ac:parameter\>  
\<ac:plain-text-body\>\<!\[CDATA\[ $!paramjava \]\]\>\</ac:pain-text-body\>  
\</ac:structured-macro\>  
\</ac:rich-text-body\>  
\</ac:structured-macro\>  

\</ac:rich-text-body\>  
\</ac:structured-macro\>

Is there a way I can just let that \<code\> macro render as a sub-editor in my macro somehow?


Answers:
author: Bill Bailey
body: I don't think so. $body (in place of, e.g., $!paramcsharp) is what you want to give you an editing block (in page edit view), but you need three blocks. I am not aware of any editing block capability inside the macro browser/IF.

BUT, if you create your own markdown, you could have an editing block on the page, and have all three code blocks in a single editing block, THEN parse them into each of your parameters. That is how I would do it. For example

!CSHARP

\<some code\>

!JAVA

\<some code\>

!VTL

\<some code\>

Of course, you would need to create a man page to explain how to properly enter the source in the body.

comments: author: Jerod Venema
body: Not a bad plan. I'd need to have a way to force the $body to be plain text though, or it'll end up giving me pre-parsed html content, will it not?
Automate creation of missing pages
Asked by Dan Goyette:

I would appreciate a feature that would search through all Page Link references in a space or on a single page, and automatically create any pages for links that don't yet exist.

For example, if I Insert Link (ctrl-k), choose Advanced, and type the name of a page that doesn't exist, Confluence will show the link in brown/maroon text, and clicking the link will take me to a Create Page form. Ideally I wouldn't need to create the page manually like that. Instead, the some process would automatically add pages for any missing Links it finds, naming them according to the name provided in the link.


Answers:
author: Nic Brough -Adaptavist-
body: Interesting idea, but I would hate it.

I regularly write pages almost as a stream of consciousness, and when my brain goes "oh, I should discuss this somewhere else", I will scribble a page link as a reminder to write that later.

Later, I can go back over it and create the pages I need, and focus on them at that time (or create tasks for other people to write them). This way, I don't need reminders or tasks to tell me to write more supporting content later.

So, a swipe at an actual answer:

* That's just my 2d worth of instinctive reaction. Part of me wants to paraphrase the idea as something that sounds quite dismissive, which is not what I want to do, as it's not meant this way, but I'm not sure how else to do it - "I want to create a set of empty pages with no way to know that they need writing". I guess I'm asking "Why?". What's the use for this (other than preventing a page having odd coloured links)?
* There's no native function for this, but I'm 99% sure ScriptRunner for Confluence could do it (add a button for "create empty pages behind non-existent page links"), and possibly some other add-ons could do it. (Disclosure - I work for Adaptavist. I still think it's a good answer that I'd have given if I were independent, but I'd prefer not to be seen as biased, and certainly not advertising instead of answering!)
* Also, you could write an external script that uses REST to scan a page (or set of pages) and poke empty pages into Confluence
Pasting colored text copied from browser into editor: newlines get lost
Asked by Andre Vergison:

Confluence 6.5.1

From another web site I copied the following colored text (here printed in b/w only)

```
SELECT name, address, city
 ? FROM supplier
 ?WHERE name = 'Smith'
 GO
```

having the following HTML when viewing the page source:

```
<pre><span style="color: #0000ff">SELECT</span> <span style="color: #0000ff">name</span>, address, city
? <span style="color: #0000ff">FROM</span> supplier
?<span style="color: #0000ff">WHERE</span> <span style="color: #0000ff">name</span> = <span style="color: #808000">&apos;Smith&apos;</span>
GO
</span></pre>
```

I'm playing with two browsers: Firefox 57.0.2 and IE 11.0.9600.18816 + 11.0.47.

When editing the Confluence page and copying the said text then SOMETIMES I get a correct paste: both colors and newlines. Most of the times though everything is pasted onto a single line (colors okay).

Whenever I have the chance to get a "correct" paste then I can close the editor and edit again, the pasted text still shows okay. However, as soon as I SAVE the text then the newlines are removed. That behavior is browser independent.

If I edit the same page in both editors, whenever I SAVE the page in one of the browsers then Synchrony immediately "adjusts" the text in the other browser by removing the newlines and flattening out the text over a single line.

A not-so-ideal workaround for now is to use OneNote as a copy/paste hub. Copying to OneNote first, then copying the OneNote text and pasting to Confluence seems to hold the newlines when saving the page. The first paste after opening the page for editing is always in b/w. I have to undo and repeat the paste, even multiple times (once or twice in IE, but often up to ten times in FF) to get a good colored paste! God only knows what's happening inside Confluence in the meantime.

Looks as if there is something not so stable in the Confluence editor newline and color processing...


Answers:
author: Alex Medved _ConfiForms_
body: May be, for your particular case, you shall consider using a built-in "code" macro?

For code snippets it is a very good option, in my option, and it does the syntax highlighting as well


Tags: collaborative-editing

editor

new-line
Collapse Sidebar by default - Default Theme
Asked by &(*&)#)_*#@@(*)(@*)(*@:

how to collapse the sidebar for all users on confluence cloud using the default theme ?

I have read both links with no luck:

<https://confluence.atlassian.com/confcloud/new-navigation-and-a-new-look-for-confluence-881536766.html>

<https://confluence.atlassian.com/confkb/how-do-i-remove-the-side-bar-in-confluence-330796984.html>


Answers:
author: Shannon S
body: Hello Marc,

It is not possible to set the sidebar to collapse by default for some users. It is something that has been requested in the past, but we have decided not to include this feature as it is something many users will want to control on their own:

* [CONFCLOUD-29883 - Option to collapse the sidebar on default](https://jira.atlassian.com/browse/CONFCLOUD-29883)
* [CONFCLOUD-29828 - Allow side-bar to be hidden](https://jira.atlassian.com/browse/CONFCLOUD-29828)

Let us know if you have any questions about this.

Regards,

Shannon


Tags: confluence-cloud
Are you able to successfully create multiple jira issues from a table?
Asked by Vincent Huang:

Trying to create Jira issues from a table in confluence.

I'm getting a lot of errors where Confluence/Jira has problems inserting the Jira issue links into the user story table.

Is anybody else having the same issues?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: What is the error? Maybe a screenshot will also help.
Confluence DB Migration to MSSQL
Asked by David Ra:

Greetings,

Our development team is running Confluence 6.0.6 on a Windows Server 2012 R2, utilizing the H2 database. The plan is to move the database to an existing MS SQL Server 2012, but keep the application on the current server and point to the external MS SQL server.

From everything I read so far, moving to the external MS SQL Server requires installing the same version of Confluence on the target server, then importing the data. Is there any possibility that the installation of Confluence on the target server can be avoided? Our IT Manager is adamant about not installing any applications on the SQL Server, as it hosts multiple databases for other applications.

A link to a knowledgebase article stating that the installation of the application on the external database server is a must would really helpful, so that we have a definitive answer and can look into other options for the database.

Thanks.

David Ra


Answers:
author: Nic Brough -Adaptavist-
body: I'm not sure what you're reading, but you've not got it right.

You don't need a new installation, although it might be easier if you did install new, and certainly not one on the SQL server.

You need to export the data to XML with the standard backup, stop Confluence, and take a full backup of it, just in case.

Then either create a new server pointed to the new database, or reconfigure the old one to point to the new database (that's a bit of a faff, because you'll want to move the home directory out, while retaining bits of it).

Once the new one is running, import the XML backup.

comments: author: David Ra
body: Nic,

Thanks for the reply. I think I may have misread the instructions about installing Confluence to a new location. I assumed the new location was the location of the new database server, but it really meant a location other than the current installation. I'll give this a go and see what happens.


Tags: database
Theme object changes when editing a page
Asked by Sami Kallio:

I'm writing a custom theme for Confluence, and in the main descriptor file, main.vmd, I refer to theme object to set some colors on inlined CSS style. The theme class is set in the atlassian-plugin.xml, and when viewing a page in a space with the theme applied, the CSS-color-setting method from theme object is called, and color is set.

However, when the same page is opened in edit mode, the theme object is no longer from the class set in atlassian-plugin.xml, but Confluence's DefaultTheme. The decorators are still from the theme, but the "$theme" object referred in the main.vmd changes to DefaultTheme.

I cannot grasp why this happens, so I don't even know where to start looking for the problem. Can someone offer some insight what is happening here?


Answers:
author: Sami Kallio
body: I finally found the reason - I had removed "page-breadcrumbs.vm" parsing from the themes page descriptor. When breadcrumps is added, the theme object does not change to default theme. Why this happens, remains a mystery for me.
Send HTTP-Post Request in EventListener
Asked by Hsu Yao Chang:

Dear partners,

When we try to follow the guidance of <https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html>, we face some problem. We can successful to create local certificate as shown as below

![keytool.jpg](/t5/image/serverpage/image-id/11768iFB12F9849C244120/image-size/large?v=v2&px=999 "keytool.jpg")

What's the keystore password? Can we customize the password by myself? Can we use https in confluence when we have not certificate ? Thanks a lot.


Answers:
author: Hsu Yao Chang
body: Would it be possible to find out the path of \<MY_KEYSTORE_FILENAME\> and \<MY_CERTIFICATE_FILENAME\> ?

We watch the video at <https://www.youtube.com/watch?v=1FJjdaeh-eY>, but we don't know where is MY_KEYSTORE_FILENAME and MY_CERTIFICATE_FILENAME in ubuntu server ? Thanks a lot.

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


author: Hsu Yao Chang
body: Additional information: When we use the command as listed as below

It can run ok , but we can not run the command :

    keytool -importcert -alias tomcat -keystore <MY_KEYSTORE_FILENAME> -file <MY_CERTIFICATE_FILENAME>

![key.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/11772i8614155C316D87A2/image-size/large?v=v2&px=999 "key.jpg")
Can I check all tasks without sending mails?
Asked by louisdj:

Hi

One of my users has a lot of tasks spread all over our Confluence, that are not marked as done.

As he wants to clean them up, he wants to mark them as done, but without sending mails to our clients about pages from 2y ago...

Is there a way to do this, without editing each page one for one...?


Answers:
author: AnnWorley
body: He should be able to check them "done" under his profile\>tasks. For the email issue, please consider temporarily turning off notifications while the user is checking off his tasks.

From the workaround on [Ability to Switch Off Email Notification When Checking/Unchecking Task](https://jira.atlassian.com/browse/CONFSERVER-37307)
> Disable the tasks-notification module in the Confluence Inline Tasks add-on in Confluence Admin \>\> Manage Add-ons. But note that this is not recommended as there may be side effects to this (possible dependency from other plugins).

The suggestion ticket linked above is public so feel free to comment or vote for it to be aded to notifications.

I look forward to hearing how this works for your user.


Tags: notification

task