Hi,
we are currently evaluating Confluence Cloud and tried to import a rather large Word document (2000+ pages) into a confluence space. After running for some minutes, the import process stopped and displayed, that there was an error while connecting to the server (the original message in german says : "Beim Herstellen der Verbindung mit dem Server ist ein Problem aufgetreten".). Some most chapters of the Word document made it in to the confluence space, others were missing.
We had similar problems while trying the same import on a local instance of Confluence and were able to fix it by increasing the maximum allowed memory usage in the Java Environment. Of course I don't have access to these values in the Cloud version of Confluence.
As the import has to be performed only once, a possible solution would be to split the word document in smaller portions. Not the biggest problem. However, we get the same message, when trying to move a page and its subpages to a new location within the space. The error message is the same as above.
Are there any limits for page count, size, etc. for a Confluence Cloud space? Or is there a way to tweak the configuration to prevent issues like the ones above?
Best regards
Christian
In Confluence 4 when you can specify a variable say @JQL@ outside of your macro as well as inside your macro, and you'll be given the chance to set it when you create the page, and the same JQL will be used in both spots. However that functionality is no longer in Confluence 5. For that discussion see: How do you add template variables as macro parameters or in plain text macro bodies?
I figured since we solved this recently, i would add our official solution to this request which allows to inject any number of variables into any JQL filter in a Confluence Template. Below is the how-to as well as some usage notes i wrote for our company:
First we start out with determining the current syntax of the JQL Issues/Filter macro in confluence:
Copy the JIRA Issue/Filter macro syntax to a text editor, e.g.
<p>
<ac:structured-macro ac:macro-id="5a45704b-a904-4440-bdc0-da68a22d5802" ac:name="jira" ac:schema-version="1">
<ac:parameter ac:name="server">JIRA</ac:parameter>
<ac:parameter ac:name="columns">key,summary,type,created</ac:parameter>
<ac:parameter ac:name="maximumIssues">20</ac:parameter>
<ac:parameter ac:name="jqlQuery">assignee = abarylak and resolution is EMPTY </ac:parameter>
<ac:parameter ac:name="serverId">c8001771-0b52-30e0-9703-562a2820710f</ac:parameter>
</ac:structured-macro>
</p>Then we need to use the above syntax (a little modified) and use that for our macro.
Results are as follows:
## Macro title: JQL Filter Allowing Variables
## Macro has a body: Y
## Body processing: Rendered
## Output: JIRA Issues/Filter Macro w/ injected variables
##
## Developed by: Adam Barylak
## Date created: 2016-05-27
## Installed by: Adam Barylak
## This macro will prompt for max number of rows and the column option, then the body will require the JQL with injected variables
## @param maxRows:title=Max Rows|type=int|required=true|default=20|desc=Enter the max rows, anything above 1000 will only display 1000 rows.
## @param columns:title=Columns|type=string|required=true|default=key,summary,type,status,assignee|desc=Enter the columns you want returned. Must be separated by commas, all lowercase, and no quotes. e.g. key,summary,assignee,test author,reporter
#set ($body = $body.replaceAll("\Q<p>\E",""))
#set ($body = $body.replaceAll("\Q</p>\E",""))
#set ($body = $body.trim())
<p>
<ac:structured-macro ac:name="jira" ac:schema-version="1">
<ac:parameter ac:name="server">JIRA</ac:parameter>
<ac:parameter ac:name="columns">$paramcolumns</ac:parameter>
<ac:parameter ac:name="maximumIssues">$parammaxRows</ac:parameter>
<ac:parameter ac:name="jqlQuery">$body</ac:parameter>
<ac:parameter ac:name="serverId">c8001771-0b52-30e0-9703-562a2820710f</ac:parameter>
</ac:structured-macro>
</p>Create the macro in confluence with the following options or similar (change as needed):
Hopefully this helps others accomplish this same task. This ends up being really useful if you need to repeat a bunch of JQL filters for different things on different pages in Confluence and you don't have to store these filters as saved filters in JIRA either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for decision!!!
We used this to set param for PocketQuery in template
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can see the doco for inserting macros using wiki markup by looking at the older Confluence 3.5 documentation (Confluence 4 is the first version of Confluence that is not wiki markup-based).
That table of contents macro, for example, is here: http://confluence.atlassian.com/display/CONF35/Table+of+Contents+Macro#TableofContentsMacro-UsagewiththeWikiMarkupEditor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately this does not seem to work when attempting to design space level template. A preview with the {toc} style markup results in
Error formatting macro: toc: java.lang.NullPointerException
And yes, I am using 4.0 :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, that's a different bug (https://jira.atlassian.com/browse/CONF-23346)
The toc macro doens't work in template preview mode, but it should work when you actually create a page using the template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Execuse me, did you solve the problem that using template variable in macro?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Execuse me. did you sovle the problem that using template variable in maro? i want to use variable of template into marcor to do some logic things, but have not found way. If you have some nice methods, please share to me, thanks very much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.