youngmon/atlassian-qna huggingface dataset:
renderConfluenceMacro - xhtml-macro - Confluence 4.*
Asked by Felix Grund (Scandio):

Hi,

I already had a look at these questions, without a clear answer for my issue:

[https://answers.atlassian.com/questions/54365/confluence-4-x-why-can-built-in-macros-still-be-inserted-using-wiki-markup-but-apparently-not-my-custom-macro](/questions/54365/confluence-4-x-why-can-built-in-macros-still-be-inserted-using-wiki-markup-but-apparently-not-my-custom-macro)

[https://answers.atlassian.com/questions/24391/replacement-for-renderconfluencemacro](/questions/24391/replacement-for-renderconfluencemacro)

I am developing a Confluence plugin for the latest version 4.3-RC1 (the question should apply to all 4.\* Confluence versions). Rendering the Macro inside the Wysiwyg-Editor works fine. However, I can't find a way to embedd the macro inside of my .vm template. In previous Confluence versions, this was achieved by the #renderConfluenceMacro function. I can't get this function working with my xhtml-macro, I only get the error "unknown macro".

However, rendering a built-in Confluence macro like "loremipsum" with #renderConfluenceMacro("{loremipsum}") works fine.

So, how can I render a macro within a .vm template in Confluence 4.\*? In atlassian-plugin.xml, my macro is defined as follows:

\<xhtml-macro name="scevents" class="de.scandio.confluence.plugins.sc.events.macros.Event.TeaserListMacro" key="scevents"\>

```
<parameters>       		<parameter name="limit" type="string" />     	</parameters></xhtml-macro>
```

I also tried the approach using the XhtmlContent Interface as specified in one of the above questions:

```
$xhtmlContent.convertWikiToView("{scevents}", null, null)
```

The $xhtmlContent is a DefaultXhtmlContent instance. This call just gives me a NullPointerException using the two null-parameters.

I appreciate any help, since this is a fairly important plugin for us.

Regards,  
Felix Grund \[Scandio GmbH\]


Answers:
author: Felix Grund (Scandio)
body: Hi Felix,

XHTML Macro s can not be rendered with *$action.getHelper().renderConfluenceMacro("...")*.

To render your macro, you must inject the XhtmlContent-Interface in your action.

After that, you can render the macro with following call:

*$xhtmlContent.convertStorageToView("\<ac:macro ac:name=\\"Example Macro\\" /\>", null)*

When you use that in velocity template the return is a escaped string.

In my case i add a new function to my action called *getMacroAsHtml()* and put an *@HtmlSafe* above.

So i get an unescaped html string.

I hope that this comment proves helpful.

Regards,  
Markus Weigelt \[Communardo Software GmbH\]

comments: author: Felix Grund (Scandio)
body: Hi Markus,

thank you very much for your reply. When I was searching for a solution to my problem, I ended up migrating my macro according to [this](https://developer.atlassian.com/display/CONFDEV/Upgrading+and+Migrating+an+Existing+Confluence+Macro+to+4.0) guide. At first sight, however, your solution seems to be more elegant. I'm going to look at it again when the issue occurs next time.

Regards,  
Felix \[Scandio GmbH\]


Tags: macro

template

velocity
Investigation- what does Remove permission exactly mean in Confluence?
Asked by Rumceisz:

Hi All,

maybe it is a stupid question but we are discussing about what exactly mean the remove permission in Confluence? I mean that it lets you only removing those pages, comments, attachments which were created by you?

Or can you remove all the pages which were created by others?

Can you please advise?

Thanks,

Rumi


Answers:
author: Nic Brough -Adaptavist-
body: It lets you remove pages, comments and attachments.

It doesn't care about ownership. It does pay attention to restrictions - you need to have edit rights to use it.

comments: author: Rumceisz
body: Thank you Nic!


author: Anton
body: When you want to move a page from a space to another you also need the remove permission


Tags: remove
Change the content of the attachments (word, excel) with the confluence
Asked by Pangianto Pang:

Hi All,

If there anyway or plugins that can enable of change the content of words or excels file (attachments of the page) with confluence without download it, change it and overwrite it.

Thanks in advanced.


Answers:
author: Pangianto Pang
body: The answer can be found here. :D

<https://confluence.atlassian.com/display/DOC/Editing+an+Office+Document+from+Confluence>

Cheers.


Tags: edit

ms-excel

ms-word
why UPM update running for a long time; not ending?
Asked by Pankaj Jangid:

UPM showed few updates and when I clicked update all it has downloaded all and then started installing. But the process is not ending. I have restarted confluence 3 times but still same problem.


Answers:
author: William Zanchet [Atlassian]
body: Hi Jangid,  

Joachim's approach is pretty solid, if that doesn't work, you can try this approach  

UPM is bundled plugin of Confluence, so that could be corrupted, you can try to rebuild the bundled plugins, and for that, I suggest that you try this steps:  

<br />

<br />

# Shutdown Confluence  
Delete the content from the following folders:  
# The _\<confluence-home\>/bundled-plugins_ folder  
# The _\<confluence-home\>/plugin-cache_ folder  
# The _\<confluence-home\>/plugins-osgi-cache_ folder  
# Start Confluence  

<br />

. I highly suggest that you schedule a downtime to do this approach.  

I hope this do the work.  

Cheers,  

WZ  


author: Joachim Ooi
body: Hi Jangid,

A couple of things you can check:

1. The correctness of your Server Base URL (that's one of the most common problem in UPM)
2. Do you have any SSL or proxy servers running in front of Confluence? Try to disable it and see if UPM works?
3. Which version of Confluence that you are running? Try to check the plugin version of UPM for its compatibilityness.

Let me know if it helps.

Cheers,

Joachim


Tags: universal-plugin-manager
Integrating Download Versions of Confluence and Jira together
Asked by Shreena Patel:

We have purchased Confluence and Jira as Downloadable products, which we were using together on our OnDemand instance. How do we do integrate Confluence and Jira into one system using Download Versions? They have been seperated into two different links on our new URL setup.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: They are 2 application and will remain separate. But they compliment each other and there are several integration points.

Start here: <https://confluence.atlassian.com/display/DOC/Integrating+JIRA+and+Confluence>

comments: author: Shreena Patel
body: Thanks I have read through this documentation page, I would like to know if there is a way to link Wiki spaces to projects (as in OnDemand instance), because I would like to do this with my downloaded versions but there is no 'Tab Administration' functionality available to create those two tabs i.e. "Issues" and "Wiki" for each Project.
How do we verify the size of a Confluence wiki space?
Asked by JohnK:

What can be the options to tell how big is a confluence wiki space, including all the attachments and pages? Thanks.


Answers:
author: jose_castro
body: @John Kung

I know this is an older post but I wrote a SQL query that will pull all your spaces and display the total attachment size for each space:

<https://confluence.atlassian.com/display/CONFKB/How+to+Find+the+Total+Amount+of+Space+Used+for+Multiple+Space%27s+Attachments>


author: assemhakmeh
body: If you have access to the DB you could run the following query to get an estimate:

SELECT S.\`SPACENAME\`, C.SPACEID, CONCAT(ROUND((SUM(A.\`FILESIZE\`) / (1024 \* 1024))), ' MB') AS 'SIZE'  
FROM ATTACHMENTS A LEFT JOIN CONTENT C ON C.\`CONTENTID\` = A.\`PAGEID\` LEFT JOIN SPACES S ON C.SPACEID = S.SPACEID   
GROUP BY C.\`SPACEID\`  

comments: author: Harry Chan
body: For OnDemand customers, this won't be possible[.](https://www.cloudshards.com/confluencehosting.php)


author: wdonovan
body: There is no 'Attachments' table


author: YvonneY
body: The only way to see the size of a space at the moment is to make a full export of the space (ensure you ticked the box "Include hidden pages") and check the size of the export.

comments: author: Bertrand Drouhard
body: You're right Yvonne, if you don't have database access, then it's a acceptable way to get it.


author: NikE
body: Currently, in OnDemand, you cannot access that information. It the future you will be able to access that yourself, but in the meantime, if you enter a [support request](https://support.atlassian.com "Support Request"), we can send the info to you.

comments: author: alanger
body: That was 9 years ago. We don't need emoji's we need stuff like this working. What is wrong with this company?


Tags: cloud

confluence-cloud
Use Active Directory group membership to grant access to Confluence 3.1 instead of OU structure.
Asked by Chris Thompson:

I'm new to your product and just need a KB article or a config guide on this.

We are running Conf. 3.1 and are re-structuring our OU tree in Active Directory. The problem is that when we move our users around, they lose access to Confluence.

I wanted to set it up so that group membership determins access and not the user object's location in LDAP.

Is this possible?

Can you send me an article on how to do it? (I searched around some on this site and didn't find a simple step-by-step guide, sorry...)

<br />


Answers:
author: Rodrigo Girardi Adami
body: Hi bitginsu,

I'm not sure about where you are moving the users inside the LDAP tree, but I believe that if you don't move them outside the LDAP search base dn it should be ok.

If you are moving them outside the LDAP base dn to another part, Confluence won't know where to look for them and therefore will not allow login.

I can recommend you to try 2 possible approaches in this case.

1) Create 2 LDAP structures inside the Atlassian User file: <https://confluence.atlassian.com/display/CONF31/Configuring+multiple+LDAP+repositories>

2) Move all the users and groups and update inside the Atlassian user the new location of the users and groups and the base DN if it had changed. <https://confluence.atlassian.com/display/CONF31/Customising+atlassian-user.xml>

I hope this helps. If you are willing to try this, make sure to use a test server to not harm production. Also, I'll keep this open so other people can participate and give their opinions about this. :)
Heading sizes within section macro
Asked by Lance Tost:

I noiced that my headings that are supposed to be the same size (ie., Heading 1) appear differently inside a section macro... possibly in combination with tip/warn/note macros within the same section.

I created a new page basically like this:

Heading 1

tip

Heading 1

note

Heading 1

warn

Heading 1

All looked ok.. then I created a section at the top and copied and pasted the headings and other macros above into the section... after pasting, The 2-4th headings were smaller than the first. Then, when I put a new heading1 into the page, it was bigger than even the 1st one. Tried replicating on another page, but doesn't seem to follow a pattern.


Answers:
author: AlysonA
body: I believe you might be running into a variation of this bug: <https://jira.atlassian.com/browse/CONF-25496>

looks like Confluence gets lost when trying to wrap up a heading inside a section macro. I have voted on this bug to increase its popularity, feel free to add yourself as a watcher for future references.

Let's see if someone has found a workaround for that.

Cheers


author: Matthew J. Horn
body: Does the CSS specify different values for, say, "wiki-content h1" versus "wiki-content section-type h1"?

Note that the spaces between h1 and the other words in quotes are important. They indicate that h1 is a child of the previous element.

What this might mean is that in one situation, an h1 looks one way. But when embedded within a particular container (or any div that uses the container's id), it might appear another way.
Copy Space configuration
Asked by Tim Milner:

Hi. My question is about the Copy Space plugin. I want to allow space administrators to select the option to Copy Space in the Space Admin section of each Confluence space, but currently only global Confluence administrators seems to be able to see this option to 'Copy space'. Do you have any idea where or how I can configure this plugin to allow space administrators to see it? The description here suggests it is open to space administrators, but it doesn't seem to be in our case: <https://studio.plugins.atlassian.com/wiki/display/CPSP/Confluence+Copy+Space+Plugin>

I'm wondering if it's just not possible, or whether there is some configuration area I'm missing.  

Thanks,

Tim


Answers:
author: Mark Hrynczak
body: ```
To use the Copy Space plugin, a user must have both:
```

* 'Space Admin' permission in the space being copied
* Global 'Create Space' permission

```

Hope that helps,
Mark
```

comments: author: Tim Milner
body: Thanks Mark. Exactly what I wanted to know. I suspected something of this kind would be the case, but wasn't sure where to look...


Tags: app

copy

space
Switching from Microsoft Active Directory to Internal with LDAP Authentication
Asked by Kristyn Souder:

We are currently running Confluence 3.5, although about to upgrade to 4.2. Right now, we are using Microsoft Active Directory for our authentication, and adding people to a specific AD group to grant access to Confluence. However, our company's Active Directory is very large, and using this method has cluttered Confluence with hundreds of AD Groups that are never used in Confluence. We are also considering whether to use the CSUM plugin to let Space Admins add users to Confluence, but we can't do that with our current setup.

For these reasons, we'd like to switch from Microsoft Active Directory authentication to Internal with LDAP Authentication. The problem I've run into, is when I switch the authentication method, all the current users are lost. We currently have over a thousand users, so re-adding them manually one by one doesn't seem practical. The user names for these users will still be the same, the only difference is that they need to be in the Internal directory instead of AD.

Is there any way to be able to migrate these users to the Internal Directory?


Answers:
author: GuilhermeA
body: Hello Kristyn,

I've took the liberty of creating a KB for that:

<https://confluence.atlassian.com/display/CONFKB/Migrating+from+External+Management+to+Internal+Directory>

Let me know if this helps you.

Cheers,

Guilherme

comments: author: Kristyn Souder
body: Thanks Guilherme! It might be a little while before I get a chance to test this in detail (since we just completed our upgrade to 4.2 in the meantime and are working on other kinks there). However, I'm going to mark yours as the accepted answer and will update this post once I get a chance to try this process.

Thanks again :)


author: Jo-Anne MacLeod
body: You should take a look at this, [https://answers.atlassian.com/questions/78076/migrate-from-internal-authentication-to-internal-with-ldap-authentication](/questions/78076/migrate-from-internal-authentication-to-internal-with-ldap-authentication) which describes my issues with going from Internal to LDAP. The reverse of what you want to do, but similar issues.

During this process, the cli plugin will become your friend. :)


Tags: active-directory

authentication

ldap
Upgrade to Confluence 4.3 is preventing us from importing space exports from our local instance
Asked by Bastiaan Jansen:

Since the upgrade we cannot import any data from stand-alone instances. Confluence 4.3 is not released for stand-alone yet.

How can we import our space exports into the OnDemand instance now?


Answers:
author: Bastiaan Jansen
body: In order to import the data you will need to use the early access install of Confluence 4.3  
Please see this [KB article](https://confluence.atlassian.com/display/ONDEMANDKB/Upgrade+to+Confluence+4.3+is+preventing+us+from+importing+our+spaces+from+our+local+instance)


Tags: cloud

confluence-cloud
Menus gets overlapped on Chrome
Asked by Mohd Ilyas:

Menus are getting overlapped when try to run application on chrome


Answers:
author: JohnA
body: Hi Mohd,

I have seen this kind of issue happen when your instance is running low on allocated memory, the JVM version is between v1.6.0_18 - v1.6.0_22 and/or if there is some problem with a proxy between the instance and the browser, but if you are not running on one of the problematic JVMs mentioned, your instance has enough memory and you have bypassed any proxies and the issue persists then you should open a ticket with Support so that we can investigate the cause of this issue.

All the best,  
John

comments: author: Mohd Ilyas
body: Thanks John for your response

My confluence instance has allowcated enough memory and there in no proxy in between

Will follow up with support guys to resolve this issue


Tags: menu
Importing Word documents loses paragraphs
Asked by qlcorp:

When trying to import a Microsoft Word document into Confluence, the author's intended formatting for paragraphs is lost.

I have searched for a solution, but the only workaround found at <https://answers.atlassian.com/questions/50371/importing-word-documents-does-not-bring-in-the-line-breaks> is not acceptable for our application for the following reasons: 1) I have to import too many documents to reformat all of them. 2) the documents are maintained in MS Word by the respective authors 3) the MS Word work product is the source for other media including but not limited to print.

I tried to use this CSS, but it does not work on all browsers that are in use in the organization:

br

{ content: A !important;

display: block !important;

margin-bottom: 1.5em !important;

}

<br />


Answers:
author: Ellen Feaheny [AppFusions]
body: Maybe don't?

AppFusions has connectors to Box, Google Docs, Alfresco, Dropbox - so you can access, link, embed, edit your Word docs from Confluence, but leave them in their repo.

Use Confluence for new doc creation and collaboration around the legacy docs in the repo (or the PDFs, spreadhsheets, presentations, and Word docs.. )

These solutions are available at the [Atlassian Marketplace](http://marketplace.atlassian.com) - see videos, screenshots, or download an eval yourself.

Best,

Ellen


Tags: import

paragraph
What technologies does Atlassian use to publish its developer documentation?
Asked by Taryn Sauer:

I really like this: <https://developer.atlassian.com/display/DOCS/Atlassian+Plugin+SDK+Commands>

I've been struggling to figure out how to export (via standcastle) Visual Studio-generated coding content and publish it to our Confluence wiki. Given that the content must be indexed, it looks like we can't use Confluence modules for posting this type of developer information.


Answers:
author: SarahA
body: Hallo Taryn

I'm glad you like that page. :) It's manually-created documentation. The site is a Confluence site, using the Zen Foundation theme.

Confluence content is indexed, so it is searchable. It's also accessible to Google and other external search engines, if your site is configured to be open to anonymous access.

The reference documentation generated from the (Java) code is not stored on the wiki. It's HTML, themed to have the same look and feel as the wiki-based documentation: <https://developer.atlassian.com/static/javadoc/confluence/4.2.4/reference/packages.html>

Cheers, Sarah
Scrolling or highlighted banner announcements
Asked by K Kelly:

Does anyone know of a good solution that we could use to make announcements that would appear on any page - for example, our support team wants to post critical issues that others on the team to be aware of and they would be seen regardless of the page they were on - preferably whether in Confluence or Jira.

An include limits to only Confluence users and the include would have to be on all the pages.

The announcement banner requires a system administrator and I don't want to provide those credentials to everyone.

Any ideas - whether they are plugins or not, are appreciated.


Answers:
author: Renjith Pillai
body: Not a complete solution, but from a support team perspective, while viewing an issue in the project this kind of information makes sense. So in that case, isn't sufficient that you stuff in some javascript in a custom field of type "Message Custom Field for View" which can show a floating footer in the bottom of the issue (or on top) ?

comments: author: Harry Chan
body: After the description of issues stopped allowing HTML, I wonder if OnDemand will still allow these customfields in the near future though. It'd be good to know ahead of time. The description caused us quite a few headaches as we had to remove all our javascript there.


author: Karie Kelly
body: I'm not sure I undesrtand and would appreciate clarification. How would I update this field? I don't think I can, as an OnDemand user, add any javascript into a custom field...but, I could certainly be wrong. Appreciate clarification.


author: JamieA
body: This solution won't work in ondemand either. For security reasons they have prevented more or less what you are trying to achieve.


author: Harry Chan
body: Hi Kalynn, to reiterate Jamie's point. You'd need a self install or 3rd party hosted instance to do these things. It's not available for OnDemand and won't be.


author: Gary
body: Hi,

See if this page has the information you need:

<https://confluence.atlassian.com/display/JIRA/Configuring+an+Announcement+Banner>

Thanks,

Gary

comments: author: Karie Kelly
body: Hi Gary,

We use that for general announcements. However, this solution requires administrative access and is associated with the instance - not the project. And, as stated, I don't want to have to provide administrative access to anyone to post such announcements.

The specific need is to post information that appears in that project, for anyone working in that project, that could scroll. We have over 35 JIRA projects and only one relates to client support.


Tags: cloud

confluence-cloud
Cursor won't move between lines in source editor on Chrome
Asked by DavidH:

Chrome 20.0.1132.57 m

Confluence 4.2 Build 3273

Windows Server 2008 6.0

When using the source editor, the insertion point (cursor) gets stuck and won't move down to the next line when pressing the Down-Arrow key. This happens at various places in the source; in one instance, pressing Down-Arrow from the first position in the source file moved the insertion point to near the end of the first line; from there, it wouldn't move any farther.

(The first line in this case being part part of a multi-line DIV -- source copied here):

<br />

<br />

The problem is reproducible but not consistent. Interested in knowing if this is a Chrome-specific problem.


Answers:
author: RianA
body: Hi,

It seems that this might be related to [this bug](https://jira.atlassian.com/browse/SOURCE-17). Hopefully this bug will be fixed soon by our development team, and please bear in mind on how our development team approach [bug fixing](https://confluence.atlassian.com/display/Support/Atlassian+Bug+Fixing+Policy).

Cheers
Upgrade from 3.5.13 to 4.2.x..
Asked by Norbert:

Hello

Is it possible to upgrade from a 32 bit installation to a x64 installation?

Jira is already at version 5.x but still with 32 bit. does this lead to problems mixing x64/x32 version of the tools?

For testing the upgrade I installed on a virtual system {{confluence-3.5.13-evaluation.exe}}

Now the {{atlassian-confluence-4.2.11-x32.exe}} updater cannot find the already installed version

is there a workaround?


Answers:
author: Alejandro Conde Carrillo
body: Upgrading to a 64bits from a 32 bit version is not possible. I suggest you to install the 64bit version and then import your data using an XML backup (if your instance has a small/mmedium size).