youngmon/atlassian-qna huggingface dataset:
Confluence team calendar - how to remove older events?
Asked by Khanh Nguyen:

Is there a way (script or SQL) to remove all events in a calendar that 30 days or older?


Answers:
author: Sherif Mansour
body: I think this is the real feature request you are after: <https://jira.atlassian.com/browse/TEAMCAL-886>

comments: author: MatthewC
body: Thanks Sherif!


author: MatthewC
body: There's an open request for a remote API for team calendars which would have enabled you to script it but it's not an option right now

<https://jira.atlassian.com/browse/TEAMCAL-269>

You could right some external script that logged into the database and manipulated the data store but it would require Confluence to be down and it would likely break any time the data format changed.

I've been thinking about this as well as I've noticed the performance isn't great for large data sets. (caveat: I'm running an older version). Only way I could think about is to delete old calendars and roll onto a new one


Tags: team-calendars-for-confluence
Confluence, Sharepoint and CAS proxy tickets
Asked by Issa:

We have a Sharepoint protected by CAS and would like to integrate Confluence with this Sharepoint instance. We would need to use CAS proxy tickets between the two.

Can someone from Atlassian confirm this is doable ? Or any one having done that already ?

Thx


Answers:
author: LucasA
body: Hello there,

We have Sharepoint Connector for Confluence (<http://www.atlassian.com/software/sharepoint-connector/overview>). I know that using it, you can use Active Directory for authentication on both environments, however, I don't know if it supports CAS authentication.

Please raise a support ticket at [https://support.atlassian.com](https://support.atlassian.com.). I believe that you'll get a more precise support there.

Cheers,

Lucas Lima


Tags: sharepoint
Allowed space key regex?
Asked by Dick Visser:

Hi

I have a Confluence install that allows spaces to be created with a dash. I know that I have set this up somewhere by configuring a space key regex. But the problem is that I don't know anymore where this had to be configured, and also I can't find anywhere on the web how to do this...

Thanks


Answers:
author: MatthewC
body: The space key regex was for Jira but that is being withdrawn with Jira 6.1

<https://confluence.atlassian.com/display/JIRA/End+of+Support+Announcements+for+JIRA#EndofSupportAnnouncementsforJIRA-20130513projectkey>

You've never been able to configure the Confluence space key which is why you can't find anything about it

also

[https://answers.atlassian.com/questions/64961/how-can-the-space-key-format-regex-be-changed](/questions/64961/how-can-the-space-key-format-regex-be-changed)


Tags: regex

space-key
XML+XSL Pages in Confluence
Asked by Christoph Bergmann:

Is there a possibility to embed XML Documents into Confluence?

I would like to have Pages generated from an XML Document. I DON'T mean importing an xml document but having XML and the according XSL and show this as confluence page.

I want the pure xml embedded and styled in the page and when I retrieve the content of that page via WebService to get the XML Document which I then need to process further.


Answers:
author: David at David Simpson Apps
body: Add both XML \& XSL as attachments and use Bob Swift's [XSLT Macro](https://bobswift.atlassian.net/wiki/display/HTML/XSLT+Macro) to render the correct HTML on in the page?

You could then use a different web service to get the XML attachment instead.

comments: author: Christoph Bergmann
body: this sounds like a decent plan. I will try that and report back later.


author: Christoph Bergmann
body: I'm not attaching the file now but read it directly from the filesystem (access via URL) and it's working like a charm, thank you!


Tags: confluence-administration
Confluence Macro Jira Issues gets error
Asked by KP11:

We are trying to setup Confluence Dashboard/Space with the JIRA ISSUES macro and get an error.

Error on line 128.The element type link must be terminated by the matching end tag "\<link\>".

\<br/\> class java.io.IOException

What causes this?


Answers:
author: Timothy
body: So many answers..

[https://answers.atlassian.com/questions/25338/the-element-type-link-must-be-terminated-by-the-matching-end-tag-class-java-io-ioexception-in-the-jiraissues-macro](/questions/25338/the-element-type-link-must-be-terminated-by-the-matching-end-tag-class-java-io-ioexception-in-the-jiraissues-macro)

[https://answers.atlassian.com/questions/115251/jira-macro-does-t-work](/questions/115251/jira-macro-does-t-work)

<https://answers.atlassian.com/questions/26652/confluence-jira-connector-displays-an-error>

comments: author: KP11
body: I tried the above. Second link gets 404 error.

I now get message : Jira server unable to process search. If i click the title Jira Issues it take me to Jira with the correct display. Can someone paste a working query for Jira Issues Macro 4.3.3 Confluence and 5.2.4 Jira


Tags: issue

jira

macro
Need to constantly refresh browser (IE7) to make Image Map links work
Asked by Petra Liverani:

Using IE7 there is a problem that the image map links do not work unless the Refresh button is pressed up to 4 times or IE is closed and reopened.


Answers:
author: NikE
body: Indeed, IE7 is no longer supported in recent versions of Confluence:

<https://confluence.atlassian.com/display/DOC/Supported+Platforms>

Does this issue show up when using a different browser?


author: Theinvisibleman
body: You might want to try using a different browser, and see if the problem persists.

Also, as far as I know, the latest version of Confluence no longer supports IE7. Could you tell me which version you are using?


author: Petra Liverani
body: Forgot to mention it's a problem in Confluence.


Tags: image-map

internet-explorer

refresh
Google Analytics tags for OnDemand intances
Asked by Emma Run Bjarnadottir:

Hi,

Do I understand correctly that there are Google Analytics tags for OnDemand intances, but that they are only for Atlassian to use?

Reading through this answer and then the documentaiton on creating a knowledge base, one gets confused... Can others than Atlassian use Google Analytics for OnDemand intances?

Best regards,

Emma R?n


Answers:
author: Michael Knight
body: > Do I understand correctly that there are Google Analytics tags for OnDemand intances, but that they are only for Atlassian to use?

Yes, that's correct.
> Reading through [this answer](/questions/151029/) and then the [documentaiton](https://confluence.atlassian.com/display/AOD/Creating+Your+Knowledge+Base+Space#CreatingYourKnowledgeBaseSpace-Step9.InsertGoogleAnalyticscodeintoConfluence%27scustomHTML) on creating a knowledge base, one gets confused... Can others than Atlassian use Google Analytics for OnDemand intances?

The page you linked has a line under the heading stating:
> *The information in this step [does not apply](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand) to Confluence OnDemand.*

OnDemand doesn't allow the entering of arbitrary HTML/JavaScript for security reasons, so it's not possible to place your own Google Analytics code in there.

comments: author: Emma Run Bjarnadottir
body: Thanks, but do you have any plan of changing this? Will users of Confluence OnDemand not be able to do any analytics in the near future?


author: Harry Chan
body: I would go to [jira.atlassian.com](http://jira.atlassian.com) and check / raise a feature request if you need this. Meanwhile, if this feature is important, probably best to go self and/or 3rd party hosted Confluence[.](https://www.cloudshards.com/confluencehosting.php)


Tags: cloud
Confluence 5.1.2 editor issues with Chrome Version 27.0.1453.94 m
Asked by Fabian Lopez:

When I tried to edit a page in confluence th editor is showing only the first 5 lines and a vertical scroll bar.

Is there any known issue whit Chrome and Confluence editor?


Answers:
author: Fabian Lopez
body: Fixed with the new plugin released by Atlassian

[https://answers.atlassian.com/questions/152787/confluence-edit-page-in-chrome-27-look-bad](/questions/152787/confluence-edit-page-in-chrome-27-look-bad)


Tags: confluence-administration
Confluence 4.3.7 on Java 7?
Asked by Viktor Nemec:

Hello,

I have been running Confluence 4.3.7 on top of Java 1.6.0_43. I have been a little bit hesitant to upgrade Confluence to v5 and Java to v1.7 simultaneously, so I wanted to test an upgrade of Java only first. To my surprise, there were some big issues with rendering the Confluence 4.3.7 UI (I am using a "Documentation" theme) after I have re-started it on top of Java 1.7. For example, the menus on top right were constantly expanded, there was some additional lines of text above the standard breadcrumbs and some error message on the very bottom of the page. The left sidebar (part of the Documentation theme) was not visible at all. The problem seemed to be only the UI presentation, because the wiki engine seemed to be working fine - all links were clickable (including those in the incorrectly constantly expanded top right menus), it was possible to edit a page, etc. Reverting back to Java 1.6.0_43 solved the problem.

Is it normal? Can you suggest what might have caused the problem? Shall I not bother about htis and upgrade both Confluence and Java in one step? Neverthless, according to documentation, Conf 4.3.7 should work with Java 1.7.

More details: I am running Confluence on 64bit Ubuntu on top of MySQL.

Thanks,

Viktor

|---|---|
|   |   |


Answers:
author: Mark Hrynczak
body: There is a description of this problem, and steps to resolve it here:

<https://confluence.atlassian.com/display/CONFKB/Breadcrumbs+and+drop+down+menus+broken+in+header+after+changing+to+Java+JDK+7>

comments: author: Viktor Nemec
body: Thank you very much indeed. Your answer helped me to resolve the problem. I had been searching the knowledgebase before posting my question, but I didn't come accross the article you pointed me to. Thanks again.


author: Theinvisibleman
body: Hi Viktor,

Hmm, that's curious. May I know which browser you are using currently (along with the version)?


Tags: confluence-administration
Windows or Linux for Hyper-V Install
Asked by Nick Burns:

I am brand new to Atlassian, but am prepping to install Confluence and Jira. We are a Hyper-V shop. I can either install Confluence within the Linux Host OS or a Windows Host OS. Any recommendations on which performs better? Any recommendations on a Linux Distro (that would only be running this)?

Thanks in advance


Answers:
author: Radu Dumitriu
body: JVM runs faster on Linux. I do not believe this comes as a shock to anybody, right ?

First, the JVM primary development platform is \*NIX system. Next, the architecture of Win is not very friendly with resources. Windows does not have a proper network stack (if I remember well, the loopback network is still an 'adapter'! stupid windows)

<http://superuser.com/questions/278978/why-has-microsoft-never-implemented-a-loopback-interface-in-windows>

I wrote once a driver for Win (based on WDM, Win98) Man, it was like shooting myself in the foot. The driver architecture is complicated, unnecessary stupid, crazy to get. In comparison, the driver architecture on Linux systems is plain and simple, and it works quite easily. I will never (ever!) get myself into WDM, that's for people who only enjoy pain.


author: Pedro Cora
body: Nick,

This is really up to you. We support Windows and Linux. As a personal choice, I rather have my servers running on Linux (Ubuntu or CentOS).

comments: author: Nick Burns
body: Understood the decision is personal. However, I am wondering if anyone in the community as personal recommendations - annecdotal or otherwise - which is more preferable. Performance, etc. Maybe both products run identically on either Windows or Linux but just thought I would check and see.

Thanks again!


Tags: confluence-administration
Code Block Macro has Maximum Number of Lines?
Asked by MarkC:

I'm using the Code Block macro to display a rather lengthy XML document on a page. The macro is placed within a double-column layout (not a section macro with columns, but the layout) on the right side.

The line numbering is turned on, but after it reaches line 1476, it no longer continues to number the lines. Is there a maximum line number for this macro?

Also, because it is in a layout with two columns, some of the longer lines are breaking and falling onto the following line. This break is being counted as a line number rather than being skipped in the numbering.


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

I was able to reproduce the same scenario that you have there. I believe that is due the Word Wrap of the Code Blocks. With that in mind, I was able to create a bug report based on my testings as you can see here:  
[](https://jira.atlassian.com/browse/CONF-29820 "CodeBlock Does not Honor the Number of Lines due to Word Wrap")  
[CodeBlock does not honour the number os lines due to Word Wrap](https://jira.atlassian.com/browse/CONF-29820)  

I would strongly suggest that you vote on this [bug report](https://jira.atlassian.com/browse/CONF-29820) to increase its popularity and add it to your watchlist for future updates.  

Cheers,  

WZ


author: David at David Simpson Apps
body: 1400 lines is a lot. Maybe you could link to the file in your source control system.

Failing that, I'm be tempted to put it in a [gist](https://gist.github.com/) and embed from github ;)

comments: author: MarkC
body: Is there really a maximum on the code block macro? And if so, why is it there?

The individual's requesting this want it to be included directly on the page in full without having to link to it or go somewhere else to see it. I, personally, don't like the idea of embedding it from somewhere else as that adds another layer of maintenance.


author: David at David Simpson Apps
body: All I'm saying here is to use the right tool for the right job. If Confluence can't handle it, open an issue with Atlassian, or look for workarounds - I've suggested one.

Maybe theres a limit around 1400 lines because the line numbers are handled client side and your chosen browser borks at that point. I don't know.

Perhaps if you change the page layout to a single column that might left too. I'm guessing the second column may be quite empty for a large part of the page anyway.


author: MarkC
body: On every browser I've tried (Chrome, Firefox, IE), the line numbers stop at 1476.

Changing the page layout has no affect. The other column in the layout is actually longer than the code block, so it's not empty in the least.


Tags: confluence-administration
Confluence plugin like http://www.mediawiki.org/wiki/Extension:TreeAndMenu
Asked by Bill Kepner:

I potentially have a new set of Confluence users if they can do what they had done before with their mediawiki environment using the TreeAndMenu extension. The specific things they want to be able to do is "The idea is that you can create an interactive file system diagram with in-line comments describing the purpose of the different files/folders. This plugin supports menu construction as well."

A quick search through the Add-ons didn't turn up anything that looked exactly like they wanted.


Answers:
author: David at David Simpson Apps
body: It sounds like you're trying to achieve something like this vertical flyout menu: <http://greengeckodesign.com/projects/MenuMatic/examples/vertical/index.htm?q=projects/menumatic/examples/vertical/>

That sounds really easy to do. It could be created with auser macro that wraps a nested unordered list.

The user macro would include some stock javascript from a library that builds the menu system.


Tags: confluence-administration
Theme that combines the two defaults?
Asked by Philip Winston:

We upgraded from Conflunce 3 something to 5.1.2. I love the new "documentation" theme, the tree control, but I also like some features of the default theme: links like "add a child page" and "blogs" and the ability to customize. Is there some easy way to combine these, have the custom stuff up top followed by the tree control? Or is this a bad idea? Or a custom theme we can download? Thanks.


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

On top of my mind, the theme you may want to use is the Adaptavist theme builder located [here](https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.themes.sitebuilder) however it's not supported for the 5.1 confluence version yet. You may need to wait a bit more until they provide a supported version of the plugin.

Moreover, You may want to check our our plugin repository and look for a theme that might fulfill your request.

I hope that helps!

Rodrigo

comments: author: Philip Winston
body: Thanks, of course I was hoping for the name of a theme! But yes we will look around. I also found out that you can configure the Documentation theme and add links the top, so that might be an option as well.
Images bug in confluence
Asked by Nick:

Hi guys. We encountered a problem in confluence 4.1.9. When we change the image quality on the average size is 300 px, and the image becomes unreadable.If we change the size to 301px, the quality has returned


Answers:
author: Septa Cahyadiputra
body: Hi Teplov,

As describe on the other channel. In regards to your issue, after some research on your issue, I have able to find that this issue is due to a known bug which is reporter here:

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

Please watcht the mentioned bug so that you would be updated on it and please feel free to address your concern directly into it.

Regards,  
Septa Cahyadiputra


author: Joachim Ooi
body: It seems like you have hit into this bug - <https://jira.atlassian.com/browse/CONF-27748> ?

The fix is already there from Conf 5.x onwards, perhaps you can do a simple test and let me know if that is the case.


author: Nick
body: ![](https://dl.dropboxusercontent.com/u/52737205/bad.png)![](https://dl.dropboxusercontent.com/u/52737205/normal.png)


author: Joachim Ooi
body: Hi Teplov,

When you say the image becomes unreadable, does it mean that the image was somehow broken?
Page location with API
Asked by Fran?ois:

Hi, is it possible to get this screen to choose the page location with Confluence API?

Thanks.

![](http://s7.postimg.org/f5c3t0h8b/screen.png)


Answers:
author: David at David Simpson Apps
body: You need to look in the Confluence source code. If you haven't got it, spend 10 bucks to get a starter license.

The file you're looking for is page-move-dialog.js It has all you need to get going.

Here's where the business is to trigger it:

```
$("#action-move-page-dialog-link").click(function (e) {        e.preventDefault();        if ($("#move-page-dialog").length &gt; 0) {            $("#move-page-dialog, body &gt; .shadow, body &gt; .aui-blanket").remove();        }        new Confluence.MovePageDialog({            moveHandler: viewPageMoveHandler        });        return false;    });
```

Swap out the link click to be however you're triggering the screen.

comments: author: Stefan Mueller
body: can I use this in the HTML Macro?


author: David at David Simpson Apps
body: Are you trying to do this remotely using web services or from within a plugin?

**Remotely:**

I normally take a look at the Confluence CLI in [Atlassian CLI](https://marketplace.atlassian.com/plugins/org.swift.atlassian.cli). If it's possible there, then, there's likely a SOAP API available.

To move a page under a new parent using Confluence CLI...

```
confluence --action movePage --space "zconfluencecli" --title "This Page Title" --parent "New Parent Page Title"
```

[More CLI examples here](https://bobswift.atlassian.net/wiki/display/CSOAP/Examples)

So, it's entirely possible using the Confluence remote APIs.

For more details check the **movePage** method on <https://developer.atlassian.com/display/CONFDEV/Remote+Confluence+Methods#RemoteConfluenceMethods-Pages>
>
> * void movePage(String token, String sourcePageId, String targetPageId, String position)- moves a page's position in the hierarchy.  
>   * sourcePageId - the id of the page to be moved.
>   * targetPageId - the id of the page that is relative to the sourcePageId page being moved.
>   * position - "above", "below", or "append". (Note that the terms 'above' and 'below' refer to the relative vertical position of the pages in the page tree.)

**As a standard plugin:**

Try something like this...

```
Page page = pageManager.getPage(spaceKey, pageTitle);Page newParent = pageManager.getPage(parentSpaceKey, parentPageTitle);page.setParentPage(newParent);
```

comments: author: Fran?ois
body: Hi thanks for your answer, it's with a plugin but i now how to set a parent with the API, i just want to know if it's possible to get this screen in my plugin to let users choose a space and parent like we can do in confluence.
Upload Google Calendar to Confluence - how to?
Asked by Rumceisz:

Dear All,

we would like to upload some google national holidays calendar to our Confluence but we are not able to do so.

Can you please help?

Thanks in advance,

Rumi


Answers:
author: Marlene Kegel -codefortynine-
body: You can also try our macro **[Secure Google Calendar for Confluence](https://marketplace.atlassian.com/apps/1218211/secure-google-calendar-for-confluence?hosting=cloud&tab=overview&source=community02)**.

Don't hesitate to get in touch with us if you have feedback or questions.


author: MatthewC
body: You could try this?

<https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.google.calendar>

or you could create own by using user macro and getting it to output HTML and just paste in your calendar code.

e.g. the embed code for the UK Holidays calendar would be
> \<iframe src="https://www.google.com/calendar/embed?src=uk%40holiday.calendar.google.com\&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"\>\</iframe\>

Info on how to write user macros

<https://confluence.atlassian.com/display/DOC/Writing+User+Macros>

and how to get the embedding code from google

<https://support.google.com/calendar/answer/41207?hl=en>


Tags: confluence-administration
Include page content from random page
Asked by Christian Veillette:

We have a list of pages that contain Quotations.We would like to randomly include a Quotation into content pagesI use to use a macro/plugin called Include Random Page but it is no longer available since we upgraded.Is there another way to do this? I saw a way to include a random image using reporting plugin but was uncertain how to modify this for page content.RegardsCV


Answers:
author: MatthewC
body: if you have Zen, they have a random content macro

<http://www.stepstonetech.com/display/help/Random+Conten>t

Otherwise, I guess you could write a user macro or a plugin?


Tags: include

page
People directory show group members only
Asked by Mark Johnson:

Is there a way to configure the People Directory page to only show member for the groups that the user has permission to? Currenly all groups show all of the users (people) that have access right for any group in the system.


Answers:
author: Michael Knight
body: Hi Mark,

This is a long-standing feature request for Confluence: [CONF-7837](https://jira.atlassian.com/browse/CONF-7837). Please vote/watch/comment on the issue as you see fit.

As a workaround, if you would like the People Directory in your OnDemand instance hidden, you can [contact Support](https://support.atlassian.com) and we can do this for you.

comments: author: Mark Johnson
body: Thanks, I have voted on this issue. I hope it gets fixed soon.


Tags: cloud

confluence-cloud