youngmon/atlassian-qna huggingface dataset:
jQuery version used in Confluence 5?
Asked by Jim Bethancourt:

I noticed that the jQuery version packaged with Confluence has been upgraded, but I'm not sure what version it has been upgraded to and I'm not entirely sure how to find out. I've found that jquery has been listed in the pluginServiceContext but I don't see a version there. I've also found that there's a jquery-1.6.4.js library in the confluence-qunit-test package, but I don't want to rely on that since it probably isn't shipping as part of confluence.


Answers:
author: dleng
body: This answers topic here: <https://answers.atlassian.com/questions/40807/use-of-jquery-in-confluence>

Suggests that the version can be obtained by using the following:

alert(AJS.$().jquery);

comments: author: Jim Bethancourt
body: Thanks! Works like a charm!


author: Jim Bethancourt
body: For those interested, it's version 1.7.2 that's available in Confluence 5


Tags: jql
How do I specify a line break in a macro's body content?
Asked by Jim Bethancourt:

We're migrating from Confluence 3.5 to Confluence 5 and have a custom macro that renders its body content. We're using \<br\> tags in the macro body content, and they no longer seem to work (perhaps to prevent injection attacks?). How do I represent a line break in a macro body?

Thanks,

Jim


Answers:
author: Jim Bethancourt
body: A big hack, but what worked was splitting the string on the \<BR\> tag in the Velocity template and putting a \<br\> after each token.

```
#if($person.title.contains("&lt;BR&gt;"))    #foreach($token in $person.title.split("&lt;BR&gt;"))        $token&lt;br&gt;    #end#else    $!person.title#end
```

```

```


author: Jim Bethancourt
body: One clarification that I forgot to add was that I am using a Velocity template renderer. I think the appropriate solution may be to follow the example of the com.atlassian.confluence.plugins.expand.ExpandMacro class. I'll try the approach it uses with another macro I need to migrade that uses a Velocity template and post an update here.


author: Matthew J. Horn
body: Is it possible that the XHTML parser is more strict in Confluence 5? Have you tried closing the \<br\> tag by making it \<br/\>?

comments: author: Jim Bethancourt
body: I'm guessing that's the case (possibly to prevent injection attacks). Unfortunately I had no luck with a \<br/\> tag either. :-(

Should I file a bug?


author: Matthew J. Horn
body: Well, they work fine for me in 4.2. Could you post the entire macro so I can see how it's used? Maybe there's some funkyness that I'm not foreseeing...


Tags: macro
Can you use the regular confluence 5 "create" button with Zen?
Asked by Eric Lebetsamer:

With the new version of Zen having come out and offering support for Confluence 5, I was hoping to use the default "Create" button that is new to Confluence 5.

Can I somehow use the new create button while I am using Zen?


Answers:
author: Darryl Duke
body: Hi Eric,

Not just yet. We are adding that to Zen 5.2.8, along with support for some really cool stuff coming in Confluence along those lines. Aiming for end of this month, so stay tuned...

Thanks!

comments: author: Eric Lebetsamer
body: Is there any way to get nightly builds or pre-release Zen? I'm working on a site that is supposed to be launching near the end of the month and so waiting until the last minute for Zen 5.2.8 might hurt me a bit. So I'd like to get up and running as soon as possible with new Zen versions. Is this possible?


Tags: zen
List Pages - Tree View not showing all pages in space
Asked by Jeanmarie McFadden:

When I go to Browse - Pages - List Pages - Tree View in one of our spaces, not all of the pages in the space are shown. Specifically, the home page and all its children are missing. I can find the pages when I go to List Pages - Alphabetical View. We have restarted our Confluence instance, but no luck. This problem is only happening in the one space.


Answers:
author: DavidH
body: Pages can be hidden from the tree view if they are "above" the home page in the hierarchy. Try going to the Home page of the space, then choose **View in Hierarchy** from the Tools menu. If it looks like the Home page is indented the same as the other pages (i.e., they are not children of the home page), those other pages won't be shown in the Contents tree.

We use this feature to have internal pages that don't show up in our documentation Table of Contents.

In the image below, all the pages above "Home" do not show up in tree view on the site. The screen shot is from the View in Hierarchy screen.

![](../../upfiles/tree_hierarchy.png)

comments: author: Jeanmarie McFadden
body: Thank you for your response. In this case, the problem is the opposite of what you described. I can see the home page and children the navigation on our sidebar that uses the pagetree2 macro. The problem is that the home page and child pages are not showing up when I "View Hierarchy". Then all the pages show up in tree view except the Home Page and child pages.

![](../../upfiles/Tree_View_Issue.PNG)
List Pages - Tree View not showing all pages in space
Asked by Jeanmarie McFadden:

When I go to Browse - Pages - List Pages - Tree View in one of our spaces, not all of the pages in the space are shown. Specifically, the home page and all its children are missing. I can find the pages when I go to List Pages - Alphabetical View. We have restarted our Confluence instance, but no luck. This problem is only happening in the one space.


Answers:
author: NK
body: Hi,

Have you checked the Parent page and child pages that are being set to the pages missing from the tree?

Guess its not being set properly.

-Nikhil

comments: author: Jeanmarie McFadden
body: I ran a report using reporting and scaffolding for the parent pages of one of the children pages in this space and in a space that was behaving normally. In the problem area, the home page was not the top parent, there was a mystery page called "Top Page" showing up above the home page. This was not the case for the space that was behaving correctly.

Top Page was a page that had been used as the top parent during construction so that we could apply restrictions easily. I had moved the home page out from under this page and deleted "Top Page" a month ago and it isn't clear why it suddenly decided to mess up the page view. But I restored it from the trash, then moved the home page out from under it again and all is fixed.

Thanks for your help!


Tags: list

navigation

page
atlassian@bluestatedigital.com
Asked by bsd:

I see this page: <https://confluence.atlassian.com/display/AOD/Importing+wiki+data>. Is there an easier method for doing this? Our site has over 100 wiki spaces. Am i to export and import each one manually? That seems like it would be very time consuming. Is there a way to simply back/export everything from my current Confluence 5.0.1 site and then import all of the data at once, into our OnDemand site?


Answers:
author: LuizA
body: Hello There,

I have performed some researches about this topic that you mentioned and being honest with you, in this case to export and import data to an OnDemmand instance this would be the only way (<https://confluence.atlassian.com/display/AOD/Importing+wiki+data>). Unfortunately there's no other option, you'll have to export and import each one manually.

Kind Regards,

LJ.


Tags: confluence-cloud
Can't go beyond setup (first screen) that asks for license
Asked by Kumaril Bhattacharya:

I have a valid production license. I even created 3 evaluation licenses during installation (as license I just bought didn't work). However, none of the licenses work. I get the error The license you entered was not valid.


Answers:
author: Kumaril Bhattacharya
body: The issue was resolved.

I followed the instructions given by customer support

1) Please check if don't have two lines associated to the Home directory in **\<confluence-install\>/confluence/WEB-INF/classes/confluence-init.properties** . It supposed to be just one.  
2) Also this can be permission problem on your \<CONFLUENCE-HOME\> directory or on the \<CONFLUENCE-HOME\>/confluence.cfg.xml file. So check if the user that is running Confluence has proper rights to read and write in the file and the directory.

Than I restarted the process

2. First time, I got an evaluation license (even tho I had a startup license)  
3. Once that worked, I updated the license to the starter license.  
4. Then I tested creating pages and such ... and it worked


author: Chung Park Chan
body: Is there any screenshot of the error?


author: J. Caldwell
body: Did you associate the correct Server ID number when generating the license? Are you using the correct license for the correct product?

comments: author: Kumaril Bhattacharya
body: The issue was resolved.

I followed the instructions given by customer support

1) Please check if don't have two lines associated to the Home directory in **\<confluence-install\>/confluence/WEB-INF/classes/confluence-init.properties** . It supposed to be just one.  
2) Also this can be permission problem on your \<CONFLUENCE-HOME\> directory or on the \<CONFLUENCE-HOME\>/confluence.cfg.xml file. So check if the user that is running Confluence has proper rights to read and write in the file and the directory.

Than I restarted the process

2. First time, I got an evaluation license (even tho I had a startup license)  
3. Once that worked, I updated the license to the starter license.  
4. Then I tested creating pages and such ... and it worked


Tags: licence
Tabbed navigation in Confluence Space
Asked by abolotnov:

When I switch my space theme to "Easy Reader", right there in Space Admin it turns up to have these nice navigation tabs on top: pages, blog, labels, attachments and so on. Can I twick my space up the way that is has the same navigation?


Answers:
author: Gary
body: Hi Alexander,

I think your best bet is to try the documentation theme as a workaround for your instance. This theme is well suited for structured content, such as documentation. It features a table of contents (page tree) on the left, making it easier to see the structure of a space and move from page to page. You can customise the left-hand panel, page header and page footer.

Cheers,

Gary


Tags: cloud

easy-reader-theme

navigation

theme
Is Sharepoint Connector 1.6 compatiable with Confluence 5.0.1?
Asked by paintera:

Is Sharepoint Connector 1.6.4 compatiable with Confluence 5.0.1? I'm working on setting up our 5.0.1 Confluence installation to work with the Sharepoint connector and running into issues with the Insert SharePoint Document Link marco. I get an "An error prevented the search from completing." error when searching for a Document to link. I'm trying to determine if the issue is with my connection to SharePoint or a issue with the software itself.


Answers:
author: Danielle Zhu
body: From the look of it on marketplace, the answer is no. <https://marketplace.atlassian.com/plugins/com.atlassian.confluence.extra.sharepoint> Atlassian folks might be able to share the roadmap.


author: Manas
body: Did anyone find out the solution?

Thanks!

/Manas


author: Amalia
body: It is not compatible with Confluence 5.0.1. Our developer is still in the process of having this plugin compatible with Confluence 5.0.x. Stay tuned!


Tags: sharepoint
resets line numbers if i include non-numbered line - help
Asked by Ileen Dranchak:

I want continous numbering however if i include a "non-numbered" line, confluence (Jira) will reset the next line back to numbering starting from "1"

note: i already tried "shift_enter" before and after the non-numbered line

doesn't work.

example:

# this is the first numbered line - "1"

# this is the next numbered line - "2"

this is not a numbered line

#this line resets to number "1"


Answers:
author: dleng
body: Did you add a space in between each line? I just tested on a test instance and if you don't add any spaces, the numbering continues correctly.

![](../../upfiles/Answers_1.jpg)

comments: author: Ileen Dranchak
body: Hi Daniel - no line spaces before and after the non-numbered line  
the previous line however is a table

\| \|Pass ___ / ___ Fail\| \<--this line is part of a table

non-numbered line

# numbered line


Tags: numbered-list
Issue with Plugin installation.
Asked by Sozhavendhan M:

The option to upload new plugin (user plugin) is missing.

Instead when I click on Plugin license manager, an error throws up on the Footnote plugin These plugins have been licensed by another product.

Also please tell me where the Uploaded plugin resides in the Confluence Directory.

Everything was working fine earlier. We are facing these strange issues now.

Regards,

Soz

<br />


Answers:
author: RianA
body: Hi,

To install plugins should not be inside the Pllugins Licensing Manager, as it is additional manager that is created by Adaptavist. I am not sure what version of Confluence that you are currently running. If you run on Confluence 3.4 or above, make sure **Universal Plugin Manager** is enabled, and you can check it from the following address

http://\<confluence-adress\>/admin/viewplugins.action

If the manager is disabled, make sure you enabled them, and you should be able to see the plugin again.

As for the plugin file, it will be uploaded to PLUGINDATA table instead of Confluenc directory.

Hope this information helps.

comments: author: RianA
body: Most welcome! :) Glad to hear that


author: Sozhavendhan M
body: Thanks Rian the issue is resolved.


author: Nic Brough -Adaptavist-
body: Plugins live in the confluence home directory.

It sounds like someone has used the same licence you have to install plugins on another machine, or you've got more than one plugin manager running - you might want to check the account and plugins pages to see if that has happened.

comments: author: Sozhavendhan M
body: Yes Nic, you are right about this.

We have two environment, one for Prod and another for Development.

Everything was working fine. But after we uploaded a plugin to Dev we got this issue on both prod and dev.

Please find the below screen shot: let me know if the issue is only with Footnote plugin?

How do I uninstall my plugin, as I cant the Plugin Adminstration Page in Administration console.  
![](../../upfiles/Plugin.JPG)


author: Sozhavendhan M
body: Please suggest the method to Check the Plugin which cause the problem


Tags: confluence-app
How can I add HTML banner to the top of all pages?
Asked by x-cart:

Hi,

I am using Confluence on Demand and would like to know how can I add any HTML code to the header of footer on all pages. I found the **Documentation theme confguration** section with the header/footer messages, but they do not allow me to put HTML text.

What can I do now?

Any help is appreciated!

Thank you.


Answers:
author: RianA
body: In addition to what Jamie said, it is not possible due to [restricted function](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand) in OnDemand.


author: JamieA
body: I doubt you can put HTML anywhere, the reason being that they're trying to prevent again you using javascript for a XSRF attack or similar. Not quite sure why that applies to administrators, but I believe that's the reason.


Tags: cloud

confluence-cloud
Confluence Excerpt render or non-render?
Asked by KPAH:

Hi. I wonder how Excerpt works in Confluence.

I.e., if I create an excerpt on a page that holds Blog Post Macro. Then I include this excerpt on another page.

Will excerpt fetch the html rendered by the macro or the macro itself, which then will be rendered on

the page where excerpt is included?


Answers:
author: SarahA
body: Hallo KPAH

In summary: The Excerpt Include macro will fetch the Blog Posts macro, and then render it independently on the page.The Excerpt Include macro does not fetch the static HTML from the source page.

In more detail: Let's say page A has the Excerpt macro, which includes the Blog Posts macro. And page B has the Excerpt Include macro.

Page A will display the results of the Blog Posts macro, at the time when page A is rendered, and every time afresh when page A is rendered.

Page B will also the most up-to-date results of the Blog Posts macro, at the time when page B is rendered, and every time afresh when page B is rendered. The display of the results on page B is not dependent on the display of the results on page A.

I hope this answers the question. :)

Cheers, Sarah


author: William Zanchet [Atlassian]
body: Hi,  

The [Excerpt Macro](https://confluence.atlassian.com/display/DOC/Excerpt+Macro), will be used to mark a part of a page's content for re-use. Defining an excerpt enables other macros, such as the [Excerpt Include](https://confluence.atlassian.com/display/DOC/Excerpt+Include+Macro) and [Blog Posts](https://confluence.atlassian.com/display/DOC/Blog+Posts+Macro) macros, to display the marked content elsewhere.

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

The [Excerpt Include macro](https://confluence.atlassian.com/display/DOC/Excerpt+Include+Macro) is used to display 'excerpted' (that is, a segment of) content from one page in another.

Before you can use this macro, the excerpt must have been defined using the [Excerpt macro](https://confluence.atlassian.com/display/DOC/Excerpt+Macro). Note that you can have more than one Excerpt Include macro on a page (although you can have only one Excerpt macro on a page).

I hope this helps.  

Cheers,   

Wz

comments: author: KPAH
body: No it doesn't help, why do you even bother to post that completely irrelevant stuff?

The question is - if I excerpt **a macro** , and then excerpt-include it, WHAT the excerpt-include get from the original page? The **macro code** or the **html output** of the macro?


author: KPAH
body: no one knows


Tags: excerpt
Confluence Search - Hitlist
Asked by Bj?rn Eitmann:

Hi \*

What will be one first place in a hitlist after searching in Confluence?

- When the "searched word" is in the title?

- When the "searched word" is in the context?

- When the "searched word" is a label of these page?

or a combination of these options?

Best,

Bj?rn


Answers:
author: Matthew J. Horn
body: This page:

<https://confluence.atlassian.com/display/DOC/Ranking+of+Search+Results>

Shows the relative ranking of keywords based on their location. For example, a keyword in the title has a ranking of 9, where the same keyword in the content has a ranking of 5.


Tags: search
Can't get Confluence running
Asked by Randall Pinkston:

Hi, I'm trying to get a fresh install of Confluence running on our own box (an AWS EC2 installation). I've already got JIRA running, but I've run into an immediate roadblock with COnfluence, and I don't really know what's going on. Confluence.out makes it seem like an isues with JDBC.

Here's the Catalina.out - if there's more anyone needs, let me know.:

SEVERE: The web application registered the JDBC driver org.hsqldb.jdbc.JDBCDriver but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Mar 04, 2013 5:39:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

SEVERE: The web application registered the JDBC driver com.mysql.jdbc.Driver but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Mar 04, 2013 5:39:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

SEVERE: The web application registered the JDBC driver org.postgresql.Driver but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Mar 04, 2013 5:39:18 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap

SEVERE: The web application created a ThreadLocal with key of type java.lang.ThreadLocal (value java.lang.ThreadLocal@3bc0a42c ) and a value of type org.dom4j.DocumentFactory (value org.dom4j.DocumentFactory@645a6359 ) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.

Mar 04, 2013 5:39:18 PM org.apache.coyote.http11.Http11Protocol destroy

<br />


Answers:
author: LuizA
body: Hello There,

In a first approach I would suggest you to try to take a look at your 'atlassian-confluence.log' to see if you find some stack-trace as mentioned in the following article:

<https://confluence.atlassian.com/display/CONFKB/%27java.sql.SQLException+Connections+Could+not+be+Acquired+from+the+Underlying+Database!%27+Error+During+Startup>

I'm mentioning this to you because we already saw some cases that the same error stack-trace that you posted in your comment appeared in the logs and it was a problem with the connection with the database, so would be a good idea to check your 'atlassian-confluence.log' and the article above, and see if your situation is the same, this is a common error with the database connection that can cause this kind of behaviour that you're experiencing.

Hope this helps.

Kind Regards,

LJ.

comments: author: Randall Pinkston
body: Yeah, that's pretty much what fixed it. The AWS EC2 permissions had to be updated to the new IP:port, and once that was done I was able to connect.


author: Marcus Janietz
body: Thanks, atlassian.log pointed me to a missing binlog_format = row in my.cnf.


Tags: jdbc
Downloading of Ondemand Backup
Asked by Werner Viljoen:

My company is investigating migrating our current confluence ondemand installation to our own cloud hosted server.

We are experience issues downloading the backup file and have been unable to do so.

Which has raised the following questions:

1.What is a suitable size Confluence database to export using the XML data backup tool from Confluence? What happens if the file is larger than 4gig?

2.If we are unable to do the export what alternitives are available to us.

Thanks,

Werner


Answers:
author: Werner Viljoen
body: We unable to split the file on our ondemand instance. We logged a support ticket with Atlassian and they where able to split it for us.


author: Werner Viljoen
body: Thank for the resoponse David. I was able to access the WebDAV and mount it as a folder using davfs2. I am however unable to split the file due to permissions issues. How do we give ourselfs write access to our backupmanager folder on our ondemand instance.Is their any properties I have to set in the WebDAV Configuration?Regards,Werner


author: Dave
body: Hi Werner,

You will have trouble downloading any file larger than 1GB. However, with WebDAV, you can either map a drive to your WebDAV folder from you local machine, or use a client that allows remote commands so that you can use the 'split' command to break this file into more manageable pieces. Once you've done that, you should be able to download those individually, and use 'cat' to restore the original file from the smaller ones.

Thanks,

-dave


Tags: cloud

confluence-cloud