youngmon/atlassian-qna huggingface dataset:
X Windows paste into confluence rich text editor
Asked by anthony_bargnesi:

Hello,

I am running Atlassian Confluence 4.1.7 and I am not able to copy and past using the standard X-Windows approach. The approach is to highlight text with the left mouse button and then paste the text with the middle mouse button. The approach is detailed in [this link](http://michael.toren.net/mirrors/doc/X-copy+paste.txt "X-Windows Copy/Paste").

Pasting using the middle mouse button has no effect in the Confluence rich text editor.

I have confirmed this is not a browser issue (running Chromium) and only occurs with Confluence.

Any solution or fix for this?

Thanks!

Tony Bargnesi


Answers:
author: Adam Laskowski
body: We've created a bug report for this functionality for review by our dev team. If anyone wishes to track it's progress, you can add yourself as a watcher for updates:

[CONF-28441](https://jira.atlassian.com/browse/CONF-28441)


author: LuizA
body: Hello Anthony,

In this case I would suggest you to raise a support ticket at our [support.atlassian.com](http://support.atlassian.com) and so we can check better and try to reproduce the problem in a local instance, so if we can reproduce the same behaviour we can register a bug report for you at our system. This would be the best approach for your case about x window paste into Confluence's editor. I hope this helps.

Cheers,

LJ.


author: Chloe Sowers
body: Is it an issue with the source of the text? Can you paste the text into a plain text editor, and copy \& paste that into Confluence? Perhaps Confluence is rejecting the rich text, but will accept plain text. Does CTRL-V work?

comments: author: anthony_bargnesi
body: It is not an issue with the text.

If I left-mouse copy an ASCII word I can middle-mouse paste into an editor like gedit without any issues. I could then copy and paste from gedit using Ctrl-C / Ctrl-V, but why should I have to do this in two steps?

I am able to middle-mouse paste into a confluence page's title without an issue. The only problem is with the rich text editor.

Can a Confluence developer verify this? Where can I post a bug on this?


Tags: paste
Where I can load a new js file? something like "menu-min.js"
Asked by liljoint:

Hi, I need to include a new js-file just like the "menu-min.js" file, in this file is where load the jquery from tools menu... something know how I can add a new js??

thnx..


Answers:
author: Matthew J. Horn
body: Those files are all batched up by references, but there's nothing stopping you from putting your own file in there and then adding a reference to it from your Custom HTML page in the Admin console like this:

```
<script src="/confluence/includes/js/my_new_js_file.js"></script>
```


author: Matthew J. Horn
body: Those files are all batched up by references, but there's nothing stopping you from putting your own file in there and then adding a reference to it from your Custom HTML page in the Admin console like this:

```
<script src="/confluence/includes/js/my_new_js_file.js"></script>
```


author: Matthew J. Horn
body: In your Confluence install, you would typically add JS files to the following location:

\\confluence\\includes\\js

This is where the menu-min.js file resides. You will need access to the server.

hth,

matt

comments: author: liljoint
body: Yep, but those js files are loaded in another place... I think is in batch.js where the js libraries are loaded... I don't understand it...


Tags: include

javascript
Confluence-cli-2.6.0 can not restore local export file
Asked by Oliver Deng:

Hi,Bob

The Confluence CLI add restoreExport function by 2.6.0, but when I cp the export xml file to home/restore directory and run the restoreExport command, error is below:

./confluence.sh --action restoreExport --file "export_xxx.xml" -v

Successful login to: <http://xxx/rpc/soap-axis/confluenceservice-v1> by user: admin. Token is uG5rrU0reX  
Post data: buildIndex=true\&localFileName=export_xxx.xml  
URL requested: [http://xxx/admin/restore-local-file.action?os_username=admin\&os_password=\*\*\*
Request](http://xxx/admin/restore-local-file.action?os_username=admin&os_password=***%3Cbr%3ERequest) type: POST  
Content type: application/url_encoded  
Post data: buildIndex=true\&localFileName=restore%2Fexport_xxx.xml  
Reading Key: JSESSIONID  
Val: 02D29F930C0D5571E8E1443D08C3A90C  
Response code: 200, message: OK, url: [http://xxx/admin/restore-local-file.action?os_username=admin\&os_password=\*\*\*
Start](http://xxx/admin/restore-local-file.action?os_username=admin&os_password=***%3Cbr%3EStart) of response data: \<title\>com.atlassian.confluence.importexport.actions.RestoreLocalFileAction.action.name -  

Remote error: No local file specified  
org.swift.common.cli.AbstractRemoteClient$RemoteRestException: No local file specified  
at org.swift.confluence.cli.ConfluenceRestClient.parseResultData(ConfluenceRestClient.java:167)  
at org.swift.confluence.cli.ConfluenceRestClient.restRequest(ConfluenceRestClient.java:282)  
at org.swift.confluence.cli.ConfluenceClient.restoreExport(ConfluenceClient.java:3861)  
at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:658)  
at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119)  
at org.swift.common.cli.CliClient.doWork(CliClient.java:298)  
at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:130)  
uG5rrU0reX logged out.

<br />

There is no file pass to the RestoreLocalFileAction,i guess, So can you help me to resolve it?

btw, we are on Confluence 3.5.13.

Regards,

Oliver


Answers:
author: Bob Swift (personal)
body: For problems like this, please open an issue at [Confluence Command Line Interface](https://bobswift.atlassian.net/browse/CSOAP) . However, I quick scan of the above shows a descrepancy between the command parameter you quoted: --file "export_xxx.xml" and the log showing: localFileName=restore%2Fexport_xxx.xml . The CLI does not insert a restore directory so are you sure you have provided the correct information. Also, double check by running the UI directly and verify the file shows up in the dialog. If you still have problems, create the issue.


Tags: cli
UWC not starting gui correctly
Asked by Martin Scholz:

today I tried to start UWC in case of a testing transition and it just starts in a pure grey box without drawing some context on it, I had similiar issues on another java tool and fixed it with starting the tool with an AWT_TOOLKIT=\<TOOLKITNAME\> parameter before running that tool, so I guess it might be something similiar here too and would like what I can try to get UWC started.

Any help would be welcome.


Answers:
author: CharlesH
body: Is Java installed properly on your pc/server? Is the java home directory set correctly? To be honest this sounds more like an environment issue, although you're seeing the symptoms in the UWC.

comments: author: Martin Scholz
body: Hi CharlesH,

yes the home is set correctly and and the env is working for other java tools, so it just seems to be a Toolkit issue to me, would be nice to get it working


Tags: universal-wiki-converter
Header Style (Format) Problem
Asked by Marcel Hungerb?hler:

Headers in my spaces doesnt look the same. One Header is underlined and black in one space and in a another space the header isnt underlined and sometimes it has the colour black or blue. As far as i know it is not possible to change the format of the headers in a space with ondemand confluence?


Answers:
author: Gary
body: Hi MaHu,

It's possible that you have a different themese set for multiple spaces:

<https://confluence.atlassian.com/display/DOC/Applying+a+Theme+to+a+Space>

Cheers,

Gary


Tags: confluence-cloud

cloud

header
Confluence crashes daily
Asked by Daniel Loftus:

I simply log in on the server that hosts my confluence wiki (an ec2 instance) and initiate ./startup.sh to get confluence running again (removing the PID file). I've enabled logging, and reviewed the logs (catalina and the other one), but the logs don't reveal anything of note to me. Can you please share with me what I can share with you that will help me figure out why it crashes? I would like to begin letting the public review and use the content of my wiki.

Thank you,

Daniel


Answers:
author: Adam Laskowski
body: This instance was running on an Amazon EC2 Micro, which is a little resource sparse for Confluence to run stably. The OP had an open support request and eventually had luck with running Confluence as a service, which stopped the crashes so long as XML backups were off.


author: Septa Cahyadiputra
body: Hi Daniel,

Judging from your statement that this instance is not public yet means that this is not a production instance hence the load is not huge yet.

Which is weird to hear that you need to restart it daily. You might want to review your atlassian-confluence.log which is located in:

* \<Conf_HOME_Dir\>/logs/atlassian-confluence.log

Most probably the cause of your issue is either OutOfMemory issue which is well documented here:

* [Fix Out of Memory Errors by Increasing Available Memory](https://confluence.atlassian.com/display/DOC/Fix+Out+of+Memory+Errors+by+Increasing+Available+Memory)

Also, you might want to [disable](https://confluence.atlassian.com/display/DOC/Scheduled+Jobs) Confluence XML [automatic backup](https://confluence.atlassian.com/display/CONF41/Configuring+Backups) which use a huge resources and opted to this [strategy](https://confluence.atlassian.com/display/DOC/Production+Backup+Strategy) which is more reliable.

Hope it helps.

Cheers,  
Septa Cahyadiputra
Confluence Team Calendar - Administration
Asked by Khanh Nguyen:

As a Confluence Admin, Is there a way through the Confluence/Confluence Administration UI to see a listing of all calendars created with Team Calendar?


Answers:
author: Khanh Nguyen
body: As a Confluence admin, I would like to see a Team Calendar Admin UI displaying the following in a table. . . Team calendar name, type, creator, date created, # of subscriber and admin actions option.


author: Rodrigo Girardi Adami
body: Hi There!

I believe that in the dashboard, when you click on Team calendar you'll see all calendars that were created for confluence.

I think that this documentation might help you too: <https://confluence.atlassian.com/display/TEAMCAL/Using+Team+Calendars>

Regards,

Rodrigo

comments: author: Paul Stallworth
body: This does not appear to be true for the current version of Team Calendar. Could you provide an update on this functionality? Is it possible to see all calendars that exist in Confluence as an administrator?


Tags: team-calendars-for-confluence
How to import java.util classes??
Asked by liljoint:

Can I import a java.Util class??

1. import java.util.ArrayList;
2. import java.util.Collections;


Answers:
author: Nic Brough -Adaptavist-
body: Yes, probably

Although your question really doesn't make any sense - you haven't given any useful context to it. You could be writing those lines on a page as text, writing a plugin, stuffing things into velocity - there's no sane answer to that question without knowing what you're trying to do and why you think you might need them


author: Thomas Schlegel
body: Hi Bryan,

I don't know, if I understand your question right, but of course you can import a java.util class.

Here's an example with java.util.x - Classes : <http://www.hascode.com/2010/04/how-to-build-a-confluence-macro-plugin/>

I did not test it, but maybe it helps you.

Best regards

Thomas

comments: author: liljoint
body: So, I need to sort a list of page... in java the object Collections can Sort the lists... Who can I implement this class in the user macro environment??? That's what I need... Please helppp... :)


author: Thomas Schlegel
body: maybe you should start reading here:

<https://developer.atlassian.com/display/CONFDEV/Confluence+Developer+Documentation>

or here:

<https://developer.atlassian.com/display/CONFDEV/Confluence+Plugin+Guide>


author: liljoint
body: Thomas,

I Found a sentence to include a Class...

#set ($col=$action.class.forName('java.util.Collections'))

It works, thanks for your disposition :)


Tags: import

java

macro

page

space
How to track individual access to pages?
Asked by andrey dmitriev:

We would like to both see the info on the page, as well as be able to create a report.

We used to use "viewtracker", but that seems to have died in confluence 3.5, and no longer available through the Marketplace. In addition, I do not believe one could get any reports on it.


Answers:
author: David at David Simpson Apps
body: Repeating [this answer](/questions/58601/i-d-like-to-know-the-page-view-numbers?page=1#58669), you *could* consider the Confluence User Engagement plugin which AppFusions recently released on [Atlassian Marketplace](https://marketplace.atlassian.com/plugins/com.appfusions.confluence.plugins.engagement).

It tracks:

* Create, read, update and delete (CRUD) events are captured for all content types
* Supported content types: Spaces, pages, blogposts, attachments, comments
* For each event additional data is linking the content to the space in which it belongs and the user performing the event

Additionally, user logins and search terms are tracked.

More details here:  
<https://www.appfusions.com/display/CONFENGAGE/Documentation>

Here's an example screenshot:

![](http://i.minus.com/ibtfMpJlSDju1c.png)

**Disclaimer:** I am the author of the plugin.


Tags: analytics

track
Why don't I see Confluence updates in my activity stream on main dashboard?
Asked by Shane Day:

I do not see any Confluence updates in the activity stream on the main dashboard.

This does not happen to anyone else using the system.

Any theories?


Answers:
author: Renjith Pillai
body: Could you please raise a support request with Atlassian for your OnDemand instance?


author: Bastiaan Jansen
body: Hi Shane,  

I'm from the OnDemand support team and quickly took a look in your instance. I noticed that the "Popular" tab was selected when I browsed to the main dashboard (the tabs are found above the activity stream). Could you check if you see the updates when you select the "All Updates" tab?

I you still experience issues please open a support case so we can take a closer look into this.


author: Shane Day
body: No answers yet? This behaviour is getting to be very annoying.


author: Septa Cahyadiputra
body: Hi Shane,

Try to [rebuild indices from scratch](https://confluence.atlassian.com/display/DOC/Rebuild+the+Content+Indices+from+scratch) and see how it goes.

Hope it helps.

Cheers,  
Septa Cahyadiputra

comments: author: Shane Day
body: Septa,

I can't follow those instructions as I am using OnDemand.


Tags: cloud

confluence-cloud
Possible to restore space from a site backup or from external backup
Asked by Lars Nordin:

Is it possible to restore space from an XML site backup or from external backup (database dump and filesystem backup)?


Answers:
author: Septa Cahyadiputra
body: If the XML created is the whole site backup, then it is not possible to restore just a space from it. However you can actually restore the whole site to a staging environment using the XML backup (not recommended for huge instance) or the database backup.

When the new instance is ready, create the [space XML export](https://confluence.atlassian.com/display/DOC/Exporting+Confluence+Pages+and+Spaces+to+XML) then [restore](https://confluence.atlassian.com/display/DOC/Restoring+a+Space) it to the targeted instance.

Please take note that you will need to create the space XML export from the same major version as the target instance as describe on the mentioned [documentation](https://confluence.atlassian.com/display/DOC/Restoring+a+Space).

Hope it helps.

Cheers,

Septa Cahyadiputra

comments: author: Lars Nordin
body: Thanks! That is exactly what I ended up doing.


author: Jobin Kuruvilla [Adaptavist]
body: You can do it from an XML space backup.

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

comments: author: Lars Nordin
body: Yes, but I don't have an XML space backup.


Tags: restore

space
which are all the objects that I can use in User Macro environment??
Asked by liljoint:

I need to know if a page is watching... I did something like this to get the favourites pages and generate a list... But I hasn't any object to get isWatching or something....

I know that exists this objects:

$action

$pageManager

etc... :S

**I found this code in the decorators.vmd**

#set ($pageNotifications = $helper.action.pageNotificationsForUser)

#if ($pageNotifications)

\<table class="tableview condensed"\>

\<tr\>

\<th colspan="2" class="colHeaderLink"\>$action.getText('page.watches')\</th\>

\</tr\>

#foreach ($notification in $pageNotifications)

\<tr #alternateRowColors()\>

\<td class="tableview-action-text"\>

#contentLink($notification.page)

\<!--\<a href="$req.contextPath$notification.page.urlPath"\>$notification.page.title\</a\>--\>

\</td\>

\<td class="tableview-action-icon"\>

\<a href="${req.contextPath}/users/removepagenotification.action?pageId=$notification.page.id"\>\<img src="$staticResourceUrlPrefix/images/icons/watch_cancel_16.gif" height="16" width="16" title="$action.getText('stop.watching.page')"\>\</a\>

\</td\>

\</tr\>

#end

\</table\>

#end

can I use something like this in the User macro Environment?????

please help....


Answers:
author: Sandro Herrmann [Communardo]
body: Take this little usermacro as a starter for your further implementation

```
## @noparams#set($containerManagerClass=$action.class.forName('com.atlassian.spring.container.ContainerManager'))#set($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance',null))#set($containerManager=$getInstanceMethod.invoke(null,null))#set($containerContext=$containerManager.containerContext)   #set($notificationmanager = $containerContext.getComponent('notificationManager')) #set ( $userWatchingSpace = $notificationmanager.isUserWatchingPageOrSpace($action.remoteUser,  $space, null))#set ( $userWatchingPage = $notificationmanager.isUserWatchingPageOrSpace($action.remoteUser, null, $content))User is #if(!$userWatchingSpace) not #end watching space.&lt;br&gt;User is #if(!$userWatchingPage ) not #end watching page.
```

The Usermacro available variables can be found here

<https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity>


author: Joerg Bencke
body: Hi, I can answer the general part of your question :

the usermacros are writtenin Velocity as well, so go searching for "Objects, available in velocity" or "objects available for templates".

Check the "shared usermacros" sourcecodes for further inspiration as well.

So it should be there as well.

Josh


Tags: user-macro
where can I see who add an event in team calendar?
Asked by anaelle chaperon:

I am confluence administrator and I would like to fin the way to see who add/edit an event in the team calendar.

I don't find the team calendar relevant data in the confluence database, where are they?

I a running on the confluence 3.5.13 and team calendar 1.6.2.


Answers:
author: Natasha Liberman
body: 6 years later looking for the answer to the same question: how can I see who added an event to the calendar, i.e. it would be great to have "calendar history" somewhere.

comments: author: Elena_Lurye
body: Hi Natasha,  

I was also looking for same exact information and understand that it is not available.  
I asked this question today and found one more similar here -   

<https://community.atlassian.com/t5/Questions/Confluence-Calendar-is-there-a-way-to-view-the-history-of-edits/qaq-p/1175>

They also refer to the existing feature request - <https://jira.atlassian.com/browse/CONFSERVER-51119>

I added my vote to it (as of now it has only 18 votes..)


author: Kai Friemann
body: come on, Sherif.

The question is pretty straightforward.  
This teamcalender team bugs me. Is there still no API for adding events and calendars?


author: Sherif Mansour
body: Hi Anna,

Why do you want to do this via the database? This is possible by by selecting "Restrictions" from the calendar you wish to check:

<http://cl.ly/050A3c2T0i3I2G1e1t1C>

Then once you've done that, you can see any restrictions applied to the calendar:

<http://cl.ly/1L1G1N2a142G3N2U2g1l>

If the dialog is empty - it means there are no restrictions applied to a calendar.

comments: author: anaelle chaperon
body: Hi Sherif Mansour,

I would like to know who added one event or who edited on event. It deals with a calendar without restrictions. It means I would like to be able to access the list of authors of each calendar event. Where can I access this information?


author: OutOfTheBox
body: To answer your question: when a dev team takes years to deliver software people start looking for their own solutions. Getting the data directly from the database is a time honoured way around the problem of slow development. It would have been helpful to respond to this question by pointing out where this data is stored.


Tags: author

team-calendars-for-confluence
why is my standard editor the wiki markup? how can I change it to rich text?
Asked by anaelle chaperon:

wenn I edit a page the wiki markup is automatically opened and not the rich text. I am running on the confluence 3.5.13. For others users of our installation hthe rich editor will appear at first. How can I edit it?control it?


Answers:
author: Septa Cahyadiputra
body: Hi Anna,

You should be able to choose rich text editor by choosing the "Rich Text" tab on the top of your editor. After you choose it, the following button will appear "Make Rich Text Default".

Click it and rich text editor will be your default editor the next time you edit a page.

Hope it helps.

Cheers,  
Septa Cahyadiputra


author: Thomas Schlegel
body: Hi Anna,

if you open a page in the rich text editor, you can see a link "Make Rich Text Default" or so. Klick this and you will always see the rich text editor first

Best regards

Thomas


Tags: editor
Product used for Word and PDF document generation
Asked by Jerry Callistein:

I would like to know what product(s) Confluence uses to generate Word and PDF documents. I have a similar need for a project I am working on


Answers:
author: Steffen Heller
body: Hi Jerry,

as regards PDF exports [Paul explained to me](/questions/50936/pdf-export-which-css-properties-do-work-and-which-ones-not) that [Flying Saucer](http://code.google.com/p/flying-saucer/) is the library used. What is used for Word I don't know.

Steffen


Tags: document-management

ms-word

pdf
How to place text over an image map in exact spot?
Asked by Jeremy Neumann:

I am looking if there are any good ways to place text in an exact place in an image map? I have an image map as a navigation element embedded in a Confluence Wiki page. I am looking for options to be able to place a box of text over the image that can easily be changed or updated without having to create the image each time to update the text. I was looking to see if this could be done with CSS or jQuery.


Answers:
author: Milo Test
body: You can put the text in a Div macro and add the background image CSS in a Style macro.


author: Gizachew Mebratu
body: http://www.arifgebeya.net


author: SarahA
body: Hallo jeremy

One idea is to use an image map generator, such as CoffeeCup (<http://www.coffeecup.com/image-mapper/>). You'd need to manipulate the HTML outside Confluence, and paste it in each time you need to change it.

Another option is to use Gliffy, a Confluence plugin (<https://marketplace.atlassian.com/plugins/com.gliffy.integration.confluence>). Instead of using an HTML image map, you could use a fully-fledged Gliffy image which includes the pictures, text, links, and/or diagram elements that you need. This also means that other people can easily edit the image, changing the text and other elements within the web browser without having to access the image map HTML outside Confluence.

I hope these ideas help.

Cheers, Sarah

comments: author: Jorge
body: Hi Sarah, where can I test Gliffy? I have trial Confluence OnDemand account, but I cannot create Gliffy diagrams there, I can only import them. I'm interested in testing the image map through Gliffy.


Tags: image-map