youngmon/atlassian-qna huggingface dataset:
How can I get the 'export to word' to display the data in the {cloak} macro - version 3.5.6?
Asked by catherine davis:

the export to Word doesn't display the data in the {cloak} macro - version 3.5.6 - help?


Answers:
author: LuizA
body: Hello There,

Being honest with you I'm not sure if there's a way from Confluence side in the export to Word to display the data in this macro since the cloak macro is a third-party macro from the Adaptavist and this feature (export to word) is expected to work with the native macros from Confluence, so if there's a third-party macro/plugin in the middle this can be a little beyond of the "export to word"'s capabilities.

Based on this I would suggest you to make a contact with them by the following to obtain a better assistance with this macro:

<http://www.adaptavist.com/w/>

+44 (0)20 7976 4896

Hope this helps.

Kind Regards,

LJ.  

<br />
getting error while using "jiraissue" macro
Asked by Pushpkant:

Hi,

When using "jiraissues:url" I am getting following error.

**Errors were reported by the JIRA trusted connection.**

* **BAD_REMOTE_IP; Request not allowed from IP address: {0}; \["155.180.8.32"\]**

Can anyone please help me how to get rid of this error.

Thanks,

Pushpkant Garg


Answers:
author: Pushpkant
body: Thanks Jeremy for your valued response.. The reason I was getting this error was incorrect usage of jiraissue macro. I missed to provide username/password which authenticates the Jira. So after adding the credentials... The error was gone,...

comments: author: Jeremy Largman
body: Thanks for posting your solution. I'll be curious if the problem comes back. I've seen similar issues where the problem is intermittent, so please re-post if it reoccurs.


author: Jeremy Largman
body: Try this knowledge base article:

[https://confluence.atlassian.com/display/CONFKB/%27Invalid+Certificate%27+when+Using+Trusted+Communication+due+to+Apache+with+mod_proxy](https://confluence.atlassian.com/display/CONFKB/%2527Invalid+Certificate%2527+when+Using+Trusted+Communication+due+to+Apache+with+mod_proxy)

comments: author: Pushpkant
body: Thanks for the URL provided by you. One question if I flush the cache "content Object" will it effect our application. I mean if application is up and I clear the cache.. what will happen to the application?


author: Jeremy Largman
body: The Confluence cache isn't related to trusted applications, so you should be safe there.

I just noticed - you marked this as 'ondemand' but this likely isn't a solution that'd apply to OnDemand. Are you hosting your own instance of Confluence, or is it hosted by Atlassian? You'll know if the URL is .atlassian.net.


Tags: cloud

confluence-cloud
Cannot import Confluence 4.2 DOC space
Asked by Reatha Ek:

Hello!

I need to import the Confluence 4.2 DOC space XML export to our site and am failing, leaving the imported space in a broken state. I need to remove it with command line interface tools.

I even set all user plugins to safe mode - same situation.

We run Confluence 4.2.12 on Ubuntu 12.04 64 bit standalone. Before we had it under Windows, same Confluence version, and import went well.

Thank you.


Answers:
author: Abdulrazaq Mohammed Ali Omar
body: Confluence OnDemand is now version 5.0-OD-27, you'll need an export from the same version to be able to import Confleunce spaces. However, there's a workaround that might work, but it needs a bit of manual work to edit the space XML: <https://confluence.atlassian.com/display/DOC/Changing+the+version+of+a+space+backup>
Cannot import Confluence 4.2 DOC space
Asked by Reatha Ek:

Hello!

I need to import the Confluence 4.2 DOC space XML export to our site and am failing, leaving the imported space in a broken state. I need to remove it with command line interface tools.

I even set all user plugins to safe mode - same situation.

We run Confluence 4.2.12 on Ubuntu 12.04 64 bit standalone. Before we had it under Windows, same Confluence version, and import went well.

Thank you.


Answers:
author: LuizA
body: Hello Bernd,

In a first moment I would suggest you to check the steps to import a space into Confluence by the following article:

<https://confluence.atlassian.com/display/DOC/Restoring+a+Space>

If you still experience the problem, then please raise a support ticket at our [support.atlassian.com](http://support.atlassian.com) and attach your atlassian-confluence.log for a review, so we can better investigate to see what can be the problem.

I hope this helps.

Best Regards,

LJ.


Tags: import

space
What can we do to get all of our users to show up in the People Directory of the Wiki Confluence?
Asked by James Peno:

We are not sure what happened but a few months ago our Wiki Confluence People Directory stopped showing every user and only started showing new users. We are unable to find a way to search or view a user that is not displayed in the People Directory.  
Any assistance would be appreciated.  
Thank you.


Answers:
author: Ivan Maduro
body: If your Confluence instance is not showing all your users, the index cache will need to be recreated.

Try going to yourinstancedomain**/wiki/admin/search-indexes.action**

and hit the rebuild index button. This will recreate the index cache and the system should go through all users and add them to the people directory!

comments: author: James Peno
body: We have tried this it takes about 15 seconds each for the Search Index and the Did You Mean Index. Still shows just the newest members. Should this take longer? We have about 84077 users.


author: Azwandi Mohd Aris
body: You might want to look at <https://confluence.atlassian.com/display/CONFKB/People+Directory+Empty+or+not+Displaying+the+Proper+Number+of+People+due+to+Users+that+have+been+Deleted+from+LDAP> and see if it helps.


Tags: atlassian-support
How can I upload / view HTML5 animations in confluence
Asked by Roel Croonenberghs:

Hi,

Currently we are posting .swf animation (interactive) on our confluence. We just upload them as attachment to a page and use {multimedia:name=animation.swf } to display them. But we want to make it usable for apple owners and are switching to making these interactive animations in HTML5 in stead of .swf.

But generating the same animation in HTML5 in stead of .swf gives use in stead of 1 swf file a couple of directories with css, javascript, images and html files.

How can I upload these to confluence and display the animation on a page in confluence?


Answers:
author: Roel Croonenberghs
body: Atlassian gave me this answer

-------------------------------------------

Greetings,  
I am afraid that HTML5 animations are a bit more complex in this sense that a simple .swf file. You could use the combination of the HTML macro to include the HTML parts of the content and applying the required CSS on space level for example, but this is surely not a nice solution.  
I believe the easiest way to achieve this would be to upload the contents you created in HTML5 to a separate directory on a webserver of yours, then use the HTML include macro to embed the content on the page.  
Kind regards,  
Peter Koczan


Tags: html5

swf
How do I disabled editing of comments?
Asked by Jeffrey Damick:

How do I disable the editing of comments by a space admin? I can understand the add / remove permission, but globally I want to the ability to disable the editing of someone else's comments. How can I do this?


Answers:
author: MatthewC
body: Hi Jeffrey,

The global permissions in Confluence operate at a much higher level, have a look at the page:

<https://confluence.atlassian.com/display/DOC/Global+Permissions+Overview>

the permission to edit comments is controlled on a space by space basis by an admin. If you want to block a space admin, they can just over ride it and give themselves the permission again.

There are some tricks you could pull to try and block the space permission URL using apache HTTPD in front of Confluence....

Or... you could write a macro to query the confluence API to look at space permissions object and report on anyone who has it that shouldn't

But I think it should be more about education than enforcement

comments: author: Jeffrey Damick
body: Found a way to do it by js:

```
&lt;script&gt;  AJS.toInit(function() {    AJS.$('.comment-header').each(function() {      var u = $(this).children('.author').children('a.url').attr('data-username');      if (AJS.params.remoteUser != u) {        $(this).siblings('.comment-body').find('.comment-action-edit').remove();      }    });  });&lt;/script&gt;
```
How can I upload / view HTML5 animations in confluence
Asked by Roel Croonenberghs:

Hi,

Currently we are posting .swf animation (interactive) on our confluence. We just upload them as attachement to a pag and use {multimedia:name=animation.swf } to display them. But we want to make it usable for apple owners and are switching to making these interactive animations in HTML5 in stead of .swf.

But generating the same animation in HTML5 in stead of .swf gives use in stead of 1 swf file a couple of directories with css, javascript, images and html files.

How can I upload these to confluence and display the animation on a page in confluence?


Answers:
author: MatthewC
body: user reposted question - <https://answers.atlassian.com/questions/129309/how-can-i-upload-view-html5-animations-in-confluence>


Tags: html5

swf
Ad Hoc Lists not working together with the"Table Of Contents" macro (Internet Explorer)
Asked by Edvard Wikstr?m:

![](../../../upfiles/table_of_contents_error.JPG)See attached image.

"Error rendering macro 'toc' : \[com.ctc.wstx.exc.WstxLazyException\] com.ctc.wstx.exc.WstxParsingException: Duplicate attribute 'class'. at \[row,col {unknown-source}\]: \[141,116\]"

The Table Of Contents macro shows this error when a page also has an Ad Hoc List.

If i remove the ad hoc list, the Table Of contents renders fine.

This bug only occurs when using Internet Explorer. In Google Chrome it renders fine.

We are using:  
Confluence 4.2  
Table of contents plugin 2.6.1  
Ad hoc Canvas 1.4.1

anyone has any idea or experience regarding this?


Answers:
author: Ulrich Kuhnhardt [Comalatech]
body: Hi,

this is due to a bug in Ad hoc Lists. We have identified and fixed the problem and will release a new version of Ad hoc Canvas asap.


Tags: table-of-contents
Can Confluence page includes JIRA's widget
Asked by Victor Hsu:

Hi,

I create a conflence page with project status report and I want to include JIRA widget to my confluence page.

Is that possible? I don't see a confluence marco to do that.

Does anyone know how to do that?


Answers:
author: Matt
body: Try this one: <https://confluence.atlassian.com/display/DOC/Adding+JIRA+Gadgets+to+a+Confluence+Page> :}

comments: author: Victor Hsu
body: Great \~\~ it works. thank you very much.


Tags: jira
How to hide referrer
Asked by Daisuke Niwa:

Hello there,

One of our customers has following requirement.

They have number of external links within Confluence page. This means when a user clicks an external link within Confluence page, a referrer is sent to that external site.

Their security department don't like this, and they would like to know how to hide referrer. They put a proxy server between Confluence and external gateway, but this does not work when a user connects from outside of their company network via VPN.

Please let us know if anyone has a good idea regarding this issue.

Regards,

Daisuke Niwa


Answers:
author: MatthewC
body: First, I'm not sure you quite understand how the data is leaked...

The referrrer data is in the HTTP request sent by the end user's browser, so it's from the user's PC to the external site, not from Confluence to the external site. So putting a proxy between Confluence \& the outside world won't do that. The proxy MAY work as the user's HTTP request is sent via the proxy, which in turn, strips out the REFERRER field.

if it doesn't work for users on a VPN, then it's probably because their HTTP traffic isn't going via the company's proxy. Instead it's going direct via their local connection. I suspect it's a misconfiguration on the local PC that the security team have missed. My guess would be that the user's browser ISN'T routing traffic via the proxy.

Best solution, fix the user's browser to hardwire it to the company proxy

If that isn't possible, I think, IIRC, you can switch the confluence to SSL and the referrer field isn't sent when linking to another NON-Secure site.

or if you can 100% guarantee that all your users on on HTML5 browsers (iei Chrome), then you could maybe write a jquery statement to inject the "ref=noreferrer" attribute but it's not a good solution.

Get security to route the end user's HTTP traffic via the company proxy when on the company VPN, and switch to SSL
Can't create issue
Asked by Joven Quinones:

Hi,

I use to create issues easily but since yesterday I can't create anymore not 1 it always prompt sprint: sprint required I'm not sure what happened this never exist before and I tried to locate if there;s a field that I need to fill up but none.


Answers:
author: Paul Greig
body: Hi Benjoben,

This is most likely due to the 'Sprint' field being made 'Required'. To fix this up you can access 'Admin' -\> 'Field Configurations' -\> Default Field Configurations' and click 'Optional' next to 'Sprint' field. There is a great document here covering field behaviours: <https://confluence.atlassian.com/display/JIRA/Specifying+Field+Behaviour>

Cheers,

Paul

comments: author: Joven Quinones
body: Thanks Paul I'm not sure how this configuration was change.
New Linux install of Confluence throws "permission denied for relation bandana" as soon as you begin jdbc database setup in web-UI
Asked by Kimberly McKinnis:

Everytime I open a ticket on our broken war install, it is suggested we move away from the war. So we did, but the new install on Linux, using the 64-bit bin installer, breaks during the web-based setup. I created a new database in Postgresql called confluencedb, and a new database user, confluenceuser, that owns confluencedb. When I tell the setup UI to connect via jdbc and enter in database credentials, it immediately directs me to a Server Error. We tried dropping the database and user and starting over, but the problem presents itself immediately on setup again.

The specific error appears in both the tomcat and postgresql log: UTC ERROR: permission denied for relation bandana

We are a loss. I did an export and a sqldump from the old install, but I'd like to complete the migration today so that we can finally upgrade.


Answers:
author: Daniel Borcherding
body: Hello,

I found the following post that suggests that the tables inside your new DB may have been created with your old users permissions despite having a different owner.

<http://mindlev.wordpress.com/2010/05/26/297/>

You will the see the mitigation is to drop and recreate the database. After doing so run the following command to execute the dump as your new users

```
psql -d confluencedb -U confluenceuser -W &lt; backup.sql
```

This should ensure that your tables are created with permissions for "confluenceuser"


author: Daniel Borcherding
body: Starbreiz,

That was a typo on my side. I was so used to typing out permissions as "confluence_user" that I gaffed. The statement i Included below should create permisions for "confluenceuser". I have edited my comment below to reflect that change. My appologies for this typo.


author: Kimberly McKinnis
body: Daniel: you are definitely on to something. I still don't understand the initial failure, but since I thought I had successfully dropped the db and user to try again, it sounds like your scenario is what happened here. Can you clarify for me though, what is "confluence_user" ? I wanted the permissions to be for just confluenceuser, which is new. That bit confused me.


author: Kimberly McKinnis
body: Daniel: you are definitely on to something. I still don't understand the initial failure, but since I thought I had successfully dropped the db and user to try again, it sounds like your scenario is what happened here. Can you clarify for me though, what is "confluence_user" ? I wanted the permissions to be for just confluenceuser, which is new. That bit confused me.


author: RianA
body: It seems that it might be related to the permission to that user in confluencedb. Did you try to overwrite the database? Could you please try to use different database? Will it behave the same way?


Tags: bandana

postgres
stuart@edupath.com
Asked by Stuart McCalla:

Hi I am getting this error message when trying to add a calendar

This calendar is read-only. To work with calendars, please renew your Team Calendars subscription.


Answers:
author: Justin Corcoran
body: Well, it sounds like your subscription has expired. Perhaps you were using a trial version (30 days?) and the time is up. Or perhaps you had a paid version, and your subscription has elapsed. Can you provide some additional information (what does it say on the admin section for the plugin?) so that someone can help you??

comments: author: Stuart McCalla
body: |--------------------------------------------------------------------------------------------------------------------|
| Hi Justin, Looks like I had a homer moment and did not have the team calendar plugin installed. Many thanks Stuart |


author: Stuart McCalla
body: Hi Justin,

Looks like I had a homer moment and did not have the team calendar plugin installed. Many thanks

Stuart


Tags: team-calendars-for-confluence
PDF Multi page download using curl
Asked by Paul Brandariz:

To get a single page in PDF using curl I have been doing.  

curl -s -G -L [http://yourclienthosted.onconfluence.com/spaces/flyingpdf/pdfpageexport.action?pageId=11928378\&os_username=yours@domain.com\&os_password=elpassword](http://yourclienthosted.onconfluence.com/spaces/flyingpdf/pdfpageexport.action?pageId=11928378&os_username=yours%40domain.com&os_password=elpassword) \> thepdffile.pdf  

Is it possible to get a multi page document or even a space using something similar?  


Answers:
author: Gary
body: Hi,

There is not a way to pull down a whole space with curl - I dont think multiple attachments would work either. However, you should be able to pull down multiple attachments using REST and the JIRA api:

<http://docs.atlassian.com/jira/REST/latest/>

Cheers,  
Gary

comments: author: Paul Brandariz
body: I dont want to pull the whole space. I want to be able to call the flyingpdf utility to convert a space to PDF on the hosted confluence site and download the PDF file, althought the REST api looks intersting.


Tags: confluence-cloud

cloud

pdf
How to render the content of a Confluence page including the Confluence page CSS and Javascript ?
Asked by Manu Sam:

Hello,

Im trying to get the contents of the Confluence page to another site using the JSON-RPC renderContent method. The below code return me most of the contents but some javascript functions are missing and CSS so some Confluence plugins are not working (Expand macro,Info macro).

Do you know how to fix this? Or is there another method to load the Confluence javascript and CSS ?

Also we did notice a character "?" getting displayed when the html code has an empty paragraph

' \<p\> \</p\>' . Do you also know why this occurs ?

Is this an encoding issue ? I checked my Confluence configuration and the Encoding s set to UTF-8.

**Below is the code to call "renderContent" method**

```
$.ajax({			type: "POST",			url: "http://samplehost.net/confluence/rpc/json-rpc/confluenceservice-v2/renderContent",			data: ' [ "AIPAS", 32538632, "" ] ',			contentType: "application/json; charset=utf-8",			dataType: "json",			success: function(data){				$("#mydiv").html(data);			},			failure: function(errMsg){				alert(errMsg);			}		});
```


Answers:
author: Jonathan Simonoff
body: I think you might be better off just doing a regular fetch of the page -- use the actual page URL:

```
jQuery.ajax({    url : "/display/${space}/${mypage}?decorator=printable",    success : function(result){        do something with the result;    }  });
```


author: Max Soldatjonok
body: I have the same problem. I can not solve it.


Tags: ajax

atlassian-support

json

php

webservice
Is there a way to turn off automatic issue links? Preferably per link...
Asked by JamieW:

We've just spun up our OnDemand instance for Confluence and JIRA. I've noticed that Confluence attempts to autocreate links to issues in JIRA where a potential JIRA-esque issue ID is used. This is going to be a great feature, I'm sure. However...

One of our first pages is about an ethernet-connected hardware device we're working on. The term RJ-45 is used a few times and it appears as a link. You click the link and you're taken to JIRA and told that the issue does not exist.

Is there either a way to instruct Confluence to not automatically link to the issue (preferably per link), or force Confluence to check for the existence of an issue prior to the link?

I've already tried the {nolink} macro. It either didn't work or I didn't use it properly.

Any other thoughts or suggestions?

\* edit \*

This is what we're seeing now: "blah, blah, blah something about an [RJ-45](#) connector blah."  
This is what we'd like to see: "blah, blah, blah something about an RJ-45 connector blah."


Answers:
author: Abdulrazaq Mohammed Ali Omar
body: This is a bug in Confluence OnDemand and reported [here](https://jira.atlassian.com/browse/CONF-27282). You can try to escap that by leaving a bit of space after the - . Please vote for the bug to be fixed.


author: Will Fresch
body: As Dave H. suggested in a comment, put a backslash in front of the hyphen. ie - for instances of UTF-8 you should type it as UTF\\-8 to avoid auto-linking.


author: Renjith Pillai
body: Type {}

comments: author: JamieW
body: Renjith, I put the curly braces before, after, and around the "RJ-45". No joy. It's still a URL.


author: Renjith Pillai
body: Will escaping it help, with a \\ ?


author: Dave H.
body: Escaping hyphen with \\ seem to work (i.e. RJ\\-45). Strange no one else responded to this after so many years... This should be an answer so it's visible on search sites.


author: Jobin Kuruvilla [Adaptavist]
body: How about the code macro?

comments: author: JamieW
body: Jobin, the code macro sets the one term apart in it's own box with different formatting. I've edited my original question to give a clearer example of what we're experiencing and what our desired outcome is. I hope that helps clarify.

Thanks for the quick response!


Tags: cloud

issue-link
Confluence wiki url change
Asked by Joe Reyna:

How do I change the confluence web url so I don't have to enter the port #? I currently have to connect to <http://servername:8090/confluence> and I'd like to connect just to <http://servername>

Does it just require a http redirect?


Answers:
author: MatthewC
body: Hi Joe,

It's quite simple to change the port number, just have to update the tomcat configuration

Here are the instructions

<https://confluence.atlassian.com/display/DOC/Change+listen+port+for+Confluence>


Tags: port

redirect

url

web
How to get Confluence skin used on FishEye documentation page
Asked by Dmitry Andrejev:

I've found, that FishEye documentation page (<https://confluence.atlassian.com/display/FISHEYE/FishEye+Documentation+Home>) is used another skin (then Confluence default one), which seems an improvement to default skin.

Can I download it somewhere?


Answers:
author: MatthewC
body: That's just the normal doc-theme in Confluence but they have added a load of space specific CSS to override the defaults.

if you want to do it yourself, you can find the CSS by viewing page source \& looking for the space CSS. You can download it here...

<https://confluence.atlassian.com/s/en_GB/3397/d976175803f1ca76369950eacde52f8cbf5a54d9.17/13/_/styles/custom.css?spaceKey=FISHEYE>

comments: author: Dmitry Andrejev
body: Thanks. That what exactly what I needed. Very large CSS, by the way.


Tags: theme