youngmon/atlassian-qna huggingface dataset:
How to apply a macro globally
Asked by ashan:

Hi all,

I want to apply the \<Next/Previous\> macro to all pages in a space without having to include the macro to each and every page manually. Is there a way to do this please?

Thanks


Answers:
author: Stefan Eike
body: Ah, Bob explained it in [this thread](/questions/10635/how-to-add-next-and-previous-buttons-on-each-page-of-the-confluence-system-automatically).


author: Steve Goldberg
body: I had the same issue. Here's what I did:

1. Put the macro in the header of the theme.
2. Put similar jQuery that Stefan mentions above directly into the macro itself (that way it only runs when the macro does).

My code is:

```
&lt;script type="text/javascript"&gt;		var panel = jQuery('#prevnext').html().replace(/&amp;nbsp;/g,'');		jQuery('#prevnext').empty().append(panel);		jQuery('#prevnext').insertBefore('#main-header');	&lt;/script&gt;
```

This assumes you've put a wrapper around the whole of the prev/next button output with the ID of "prevnext".


author: ashan
body: Do you have a sample on how to inject the macro with JQuery into the body please?

comments: author: Stefan Eike
body: Hmm... you can add something like that to the **At end of the HEAD** section at **Look and Feel \> Custom HTML** in the Admin panel.

```
&lt;script type="text/javascript"&gt;AJS.toInit(function(){  AJS.$('.wiki-content').append("&lt;p&gt;&lt;a href='http://www.google.de'&gt;Hello World!&lt;/a&gt;&lt;/p&gt;");});      &lt;/script&gt;
```

But you can only add (X)HTML like that. If you want to add a macro to the body, place it to the header section, like Bob mentioned, and than cut and paste it with JQuery to where you want it to live after the page has rendered.


author: ashan
body: Thanks. Only problem is, I don't want this macro added in the header section. I want to add it to the page's content section (the body).

comments: author: Stefan Eike
body: Maybe you should put it in the footer, use it in a (live-)template or inject it with JQuery into the body.


author: Bob Swift (personal)
body: Sorry, I should have provided more details.

1. Go to Space Admin -\> Themes -\> Configure Theme
2. Add your macro (I use scrollbar) in the Messages header section.


author: ashan
body: Yes I am using the confluence documentation theme. But I don't know how to do this.


author: Bob Swift (personal)
body: You should be able to do with with the Documentation theme.


author: Stefan Eike
body: Hmm... that's an interesting task. Maybe it's possible by modfying the theme? Maybe with some JQuery injecting the content you'd like to have. Unfortunately I don't have a usable code snippet for you ATM.


Tags: template

user-macro
Get blog posts or pages from confluence to my site
Asked by Alexander Bykov:

Hello, we use confluence as a knowledge base. However, we are trying to use it widely.

We think to create news of our company as **confluence** blog posts with special lables, which we need to use on our corporate web-site (not confluence).

Could you advice me how can we do it correctly?

I suppose we can use RSS Feed builder, but are there any best practices?

Thanks in advance.

Alexander


Answers:
author: RianA
body: I believe the best way to do this is through RSS. You could also call the content of Confluence through [REST API](http://docs.atlassian.com/atlassian-confluence/REST/3.2/) if you wouldl like to do so.


author: Daniel Borcherding
body: Alexander,

There is the ability to create blog posts in Confluence already.

<https://confluence.atlassian.com/display/DOC/Working+with+Blog+Posts>

Are you trying to aggregate external blogposts into Confluence or ship the ones you create inside Confluence externally?

comments: author: Alexander Bykov
body: Hello Daniel, I understand that my message was misunderstood. Sorry.

Let me explain.

We use the confluence as a knowledge base and we create blog posts there as news. Also, we have an additional web-site ("site A"). We need to publish blog posts from confluence on our additional "site A".

The first method which I found is to use RSS Feed from our confluence. However, I believe, that there are can be the better ways to do this.

I corrected my first message.


author: Stefan Eike
body: You know [RSS Feed Macro](https://confluence.atlassian.com/display/DOC/RSS+Feed+Macro)?


Tags: confluence-administration
What is the "Atlassian Cross Product Quick Nav" add-on that appears in the User-installed Add-ons list in the OnDemand environment?
Asked by David Stokes (david.stokes.nz@gmail.com):

I've just noticed it there. It's not enabled currently and rather than just enable it, I'd like to know what it does first. All it says is "This plugin provides cross-product Quick Nav in a harmonious way". I've found no documentation on it and no mention of it on the internet.

Thanks

David


Answers:
author: Paul Greig
body: Hi David,

This is a new feature that is currently in development. The feature enhances the quick search between the products. As the feature is still in development, there is currently no additional documentation available and the feature is disabled for your OnDemand instance.

Cheers,

Paul

comments: author: David Stokes (david.stokes.nz@gmail.com)
body: So I should leave it disabled?


author: Paul Greig
body: Hi David,

You can enable it, but as mentioned there is currently no supporting documentation for the feature and it is still in development. If stability is a major concern for your instance I would recommend leaving this disabled until a formal release occurs.

Thanks,

Paul


author: Ryan Goodwin
body: Hi David,

The applicaiton navigator is a configurable drop-down menu that allows quick-access switching between connected Atlassian applications, or any other application you configure. Have a look here for the FAQ:

<https://confluence.atlassian.com/display/AOD/Application+Navigator+FAQ>

Hope this helps and thanks for posting on Answers!

comments: author: David Stokes (david.stokes.nz@gmail.com)
body: The drop down menu is already available and we are using it. But this addon is currently disabled.


Tags: cloud

jira
MariaDB support
Asked by J. Caldwell:

Just shareing out that I created a request to have MariaDB be supported...

<https://support.atlassian.com/browse/CSP-100629>


Answers:
author: J. Caldwell
body: Correction...sorry...forgot that about the support tickets. It's flagged as Confluence, but was hoping it could apply to all.

<https://jira.atlassian.com/browse/CONF-29060>


author: Harry Chan
body: Hi, support tickets are locked down and only viewable by you and Atlassian support. For new feature requests, best to raise it at <http://jira.atlassian.com/> under the relevant projects.

Do check to see if they already exist though[.](https://www.cloudshards.com)

comments: author: Nic Brough -Adaptavist-
body: Yup, this is one that the community would be very interested in, across the whole set of Atlassian products. (I suspect MySQL is the second most used database for the suite and people are getting increasingly interested in keeping it free and open)

I'll vote as soon as I spot them...
Built in confluence archive space function non operational
Asked by George Meyer:

Hi

I just upgraded confluence to 4.3.7, and was looking at the built in archive space feature but it doesn't seem to do anything.

When i change the status of a space to archived and save it, it doesn't disappear from the dashboard and in fact seems pretty much unchanged. Has anyone seen this before? Am i missing something? No log errors that i can see

Thanks in advance

George Meyer


Answers:
author: Ryan Goodwin
body: Hi George,

I just ran this test locally and on my instance the space no longer appears on the dashboard after archiving it. As a test, I would suggest you run through these steps after setting the space to archived:

\* Navigate to Confluence Admin \> Cache Statistics

\*\* Click flush all

\* Navigate to Confluence Admin \> Content Indexing

\*\* Rebuild the index  
Hope that helps!

comments: author: George Meyer
body: Hi Ryan

Did as you suggested, and no change. Archived Spaces are still visible in the dashboard. Any other possible suggestions?


author: Brian
body: Custom layouts can affect the display of archived spaces on the dashboard. If you have any in place, disable them to see if that resolves your issue.

Hope this helps!


author: Vineetha
body: We are also facing the same issue , confluence 4.3.7 upgraded from 3.5 - Any updates on this one ? George, were you able to archive successfully ?

Thanks


author: George Meyer
body: I am guessing no one has an idea?


Tags: archive
SharePoint-Confluence Connector on Office 365 Dedicated environment
Asked by Betsy Guthrie:

Will the SharePoint-Confluence Connector be available on Office 365 Dedicated any time soon? This requires approval by Microsoft. Last year there was little interest but the user based using SharePoint in a hosted environment is growing. Is Atlassian interested in tapping that market?


Answers:
author: Marian Finch
body: We currently have an open feature request to support Office 365 integration with SharePoint. At this time there are no plans on the roadmap to include this functionality in a future release of Confluence/SharePoint Connector.

Please feel free to vote, watch and/or comment on the request - [CONF-25100](https://jira.atlassian.com/browse/CONF-25100?jql=project%20%3D%20CONF%20AND%20text%20~%20%22office%20365%22). Any updates to the status of this request will be made directly to the request by one of our Confluence Engineers or Confluence PM's.

Please feel free to email me at [sales@atlassian.com](mailto:sales@atlassian.com) and ask for Marian if you have any additional questions :)  

Marian Finch \|\| Product Advocate  

<br />

comments: author: Nelson Pereira
body: Hi, we just lainched an Office 365 integration for Confluence. Currently it supports OneDrive, Dropbox, Box, GoogleDrive, Egnyte, FTP servers and Windows File Shares (SMB).

Support for SharePoint is in the roadmap for this Fall! :)

you can check it here: <https://marketplace.atlassian.com/plugins/cloud-files-google-drive-docs-office-365-documents-dropbox-topdox-for-confluence/cloud/overview>


author: David Burns
body: Do you know if there are any plans to support a Confluence Server version of this Add-On?


author: Scott Eck
body: I'd like to know this as well. A server version of this add-on would be hugely useful to my company. Any plans?


author: Carry Megens
body: A full year later...still nothing. Come on cloud progress should be much faster than this!


author: Eric Brown
body: Anyone who wants this feature should also vote for: <https://studio.plugins.atlassian.com/browse/CSI-683>


author: Ole Kristensen
body: Please vote, watch and/or comment on the request - [CONF-25100](https://jira.atlassian.com/browse/CONF-25100?jql=project%20%3D%20CONF%20AND%20text%20~%20%22office%20365%22) - if you need the Office 365 integration with Confluence.


author: Ellen Feaheny [AppFusions]
body: @Betsy - see my comment on the issue referenced by Marian. Contact me offline if you would like. Love to hear your story and how we could expedite this.


Tags: ms-office-365

sharepoint
Blog Macro Error
Asked by Shreena Patel:

Hi there,

Everywhere I have used a Blog macro, they are not displaying, I get an error saying "Error rendering macro 'blog-posts' : com.atlassian.renderer.v2.macro.MacroException". This has been happening since yesterday. Is this going to be resolved soon?

Shreena


Answers:
author: Marlon Aguiar
body: Hi Shreena,

This problem with the Blog Post macros is being caused by a known bug introduced in the latest upgrade of OnDemand, that bug is being tracked here: <https://jira.atlassian.com/browse/CONF-29038>.

Unfortunately there's no workaround currently available, but the good news is that our development team has already found out a fix and they are currently working on getting it rolled out to all OnDemand instances. I strongly recommend you add yourself as a watcher to the bug report so you can get updates on the deployment schedule.

Hope this information helps!

Regards,  
Marlon Aguiar

comments: author: Shreena Patel
body: Seems like it has been fixed now. Thanks :)


author: Elite Bautista
body: Hello,

We are experiencing this as well. Has a solution been provided yet?

Thanks!  
Elite


Tags: confluence-cloud
XML-RPC Page Updater
Asked by tjayantha:

Hi All,

After upgrading to confluence to 4.0. we are not able to read the page content via xml rcp. because to which all automated report in wiki page are failing.

We changed our scripts to use api version 2 , its returning the page content in html formate.

can we get page content in plain text/wiki formate formate ?

any suggestion or tips ? i don't want to CLI since it is slow :)

Br,

Jayanth


Answers:
author: Bob Swift (personal)
body: Confluence 4.x and higher only has storage format (no wiki format). The only thing you could do is write the content wrappered with the [wiki macro](https://bobswift.atlassian.net/wiki/display/CWP) and later when you retrieve it, you can find the wiki text portion of returned storage format.
Exception after moving from WebSphere to Tomcat
Asked by Logan Carpenter:

I have moved the Confluence system from a WebSphere Environment to one with Tomcat. In WebSphere however the version is 2.10.2, which is no longer available. Thus on Tomcat I installed/configured 2.10.4.

The pages seem to load fine except for images on the pages. When trying to render them I see the following exception:

Apr 23, 2013 3:32:43 PM org.apache.catalina.core.StandardWrapperValve invoke  
SEVERE: Servlet.service() for servlet action threw exception  
java.lang.ClassCastException: com.atlassian.confluence.user.PersonalInformation cannot be cast to com.atlassian.confluence.pages.AbstractPage  
at com.atlassian.confluence.spaces.DefaultSpaceManager.getSpaceFromPageId(DefaultSpaceManager.java:590)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
at java.lang.reflect.Method.invoke(Method.java:597)

I have to reupload the images from the new 2.10.4 version and then they render fine (but then they fail with the same exception when viewed from the old 2.10.2 environment.

I do have a confluence-2.10.2.war file for the old version, but when downloading the new verions zip file there are binaries included which I don't have in the war file.

My questions are:

1) Is there a step I am missing which is causing this exception to occur? I have looked over

the steps for migrating from 2.10.2 to 2.10.3/4 but I don't see anything which could alleviate the exception.

2) Is it possible to deploy just the 2.10.2 war file without the binaries into Tomcat?

Thank you for your time.


Answers:
author: Peter Van de Voorde
body: If you still have your Websphere environment available you can first update it to 2.10.4 and then move it to the Tomcat environment, maybe that will help.


Tags: migration

tomcat

websphere
Confluence Front-End Menu Items Not Responsive
Asked by Gabriel Young:

Hi guys/gals,

I hope that you can help me on this. Items on Confluence 4 are not responsive. For example, when clicking on the Browse button, the drop down list doesn't show the possible options. This forces me to type in the appopriate page in the URL. Has anyone experienced this issue? And is this there way to solve this? Thank you in advance.


Answers:
author: David at David Simpson Apps
body: Try dropping your plugins into safe mode to see whether the menus reappear, then start enabling plugins one by one to find a culprit.

Or perhaps you've disabled JavaScript in your browser ;)


Tags: menu
unable to use a key in confluence
Asked by Rachel Davies:

Hello.  

I'm a network administrator at a charity that is set up to incubate new start up companies.   

Basically we are expierencing a little trouble with one of the spaces. A team member of one group managed to delete their space. But because they are a user (with admin over their space) it did not delete the entire thing.  

I can still see the group when I go into "Administrator \> Settings \> Users \& Security \> Space premissions" so there are reminants of it about.   

But when I go into "spaces" top button it is no where to be seen.   

The dilema we are getting is when we try to create a new "Space" for the team the key that was being used by their old space is still taken and I keep getting "premission denied" error.   

Any ideas where to start? I've had a quick look around the database but to be honest I first looked at this less than a week ago so it's all still pretty alien to me.  

Thanks in advance.  

Rach.


Answers:
author: Marlon Aguiar
body: Hello Rachel,

This is a fairly common issue, as a starting point I recommend you to read this two documents as they explain different ways to remove spaces via the database:

<https://confluence.atlassian.com/display/CONFKB/Unable+to+Delete+Space>

<https://confluence.atlassian.com/display/CONFKB/How+to+Manually+Delete+a+Space>

Once you find out the ID for the page via the DB you can also try going into your browser and typing this **http://\<baseURL\>/pages/removepage.action?pageId=XXXXXXX** (the X's being your space ID)

Hope this information helps!

Regards,  
Marlon Aguiar

comments: author: Rachel Davies
body: Hello Marlon.   

Thank you for your reply, apologies in my delay in getting back to you.   

We managed to end up using a different key to avoid the issue. I did manage to find the space ID and used the URL you posted but sadly I was still getting the premissions issue. I'm assuming it was due to the space being empty (sorry should have mentioned that). Only a starter home page was ever made.   

Once I am more comfortable using databases I will return to these tutorials to see if I am able to manually find and delete the key. It must just be something really simple that I'm missing.  

Many tutorials have mentioned pretty common sense stuff like "find the spaces file" but we do not seem to have one/ I've missed something.  

Anyway thanks again for your help and taking the time out of your day.  

Kind Regards.  

Rachel.
Problem using JIRA gadget in Confluence: doesn't show any content
Asked by Michael Heinze:

I have an onsite installed JIRA and Confluence server. Both by themselves are working fine. They the same user database and I set up a trusted relationships and a project link between the JIRA project and the confluence space - so far it looks good. However, when I try to add or lookup/search a JIRA issue with the JIRA gadget to show the status of a JIRA issue in a confluence page, I do not see any content... I tried all kind of things, but I don't seem to make it work. No error message or so is displayed, and both links (app link + project/space link) look fine... any hints what I could try?


Answers:
author: Ramiro Pointis
body: Hi Michael have you read this steps specified in the documentation?

<https://confluence.atlassian.com/display/DOC/Adding+JIRA+Gadgets+to+a+Confluence+Page>

comments: author: Michael Heinze
body: Yes, I saw this page and the others in this area... however non of these pages I saw discussed any troubleshooting when the setup itself works, but no data shows up...?


Tags: confluence-administration
A recently NOT update e-mail from Confluence
Asked by Edwin Stol:

I was wondering if there are people that have found a way to let confluence send an e-mail out to page creators/updaters with the question if they want to update their page, if the page wasn't edited for the last x days. We are looking for this functionality to keep the pages up to date.


Answers:
author: Ryan Goodwin
body: Hi Edwin,

There is not an easy 'free' way to do this that I know of, but this add-on hits the nail you're trying to hit head on, including sending emails to the owners of stale pages:

<https://marketplace.atlassian.com/plugins/com.midori.confluence.plugin.archiving>

If this is something you are in need of, the cost might be worth the benefits from a clean, updated wiki!

Hope this helps!

comments: author: Edwin Stol
body: Hi Ryan,

<br />

Thanks for your reply. I did came across the Archiving plug-in as well, but i thought this was a bit too much for my needs. I'll consider it again.  

Kind regards,

<br />

Edwin.


author: Stefan Eike
body: Hi Edwin,

please tell us which plug-ins you already have. I did something similar with the [CustomWare Reporting](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.reporting) plug-in. But I (want to) have some minor manual steps in my process, because I need to have more control. To be honest: A phyisical kick in the ass is more efficient than an automatically generated E-mail which nobody reads, but that depends on the size of your Confluence instance.

Best regards,

Stefan

comments: author: Edwin Stol
body: Hi Stefan,

We don't have the Reporting or Scaffolding plug-in. In fact; we don't have any paid plug-ins on this Confluence instance.

<br />

Kind regards,  
Edwin.


author: Edwin Stol
body: We are running Confluence 4.3.7, so that's not an option. I've tried version 2.0.0 on 4.3.7, but it doesn't. We'll just consider buying the plug-in.


author: Stephen Hayden
body: Note that depending on your version, the earlier pre-commercial version might be an option:

<https://marketplace.atlassian.com/plugins/com.midori.confluence.plugin.archiving/version/15>

One of the more useful plugins in the market though if you have a lot of content.
Blog Marco not working
Asked by Andreas:

Hi,

it seems to be the case that the Blog Gadget is not working any more after the latest upgrade of our ondemand installtion. We've got the following error message:

Fehler beim Rendern des Makros 'blog-posts': com.atlassian.renderer.v2.macro.MacroException

Thanks in advance!


Answers:
author: Andreas
body: Feature is running again after installtion of suggested fix


author: MJ
body: Hi Andreas,  
We are aware of this issue, and have it under investigation. You can find our bug report [here](https://jira.atlassian.com/browse/CONF-29038)

comments: author: Andreas
body: Hi Mick, it's good to know that you already have this under investigation. I am not able to enter the site you have mentioned but for the moment I am fine with the information. Could you please update this Question here, when the bug is fixed?

Thanks in advance!