youngmon/atlassian-qna huggingface dataset:
How to more easily copy & paste from e.g. a {code} block?
Asked by Simon Hardy-Francis:

Let's say I have a {code}echo my line of code{code} block. If the reader wants to copy and paste the 'mycode' text from the wiki page then they must do it with the mouse etc. Very fiddly if doing often. Is there a way to provide some sort of icon which when pressed simply copies the contents of the code block into the copy and paste buffer? Or maybe there is a non-{code} block alternative?


Answers:
author: Thomas Wendel
body: Hi Simon,

As far as I know, double-clicking into the code block will at least select all the code.

Copy/Paste functionality is always a bit tricky to implement into web applications, although possible. Most browsers prohibit the copy/paste functionality as it is a security vulnerability if a web page can read a visitors clipboard. Therefore in Firefox, the user has to tweak the about:config to let JavaScript read and write the local clipboard. Other methods use Java applets to interact with the local clipboard, which is also not nice. So I think this is the reason, why such a click-to-copy button has not been implemented into the {code}-macro yet.

So double-clicking might be your best option so far.

Cheers,

Thomas

comments: author: JamieA
body: Most sites including bitbucket use Flash for copypaste which seems to work perfectly fine.


author: Thomas Wendel
body: Copy/paste with Flash may work perfectly fine, true. But it is still a security risk and it uses, well...., Flash. ;-)


author: JamieA
body: Anyway I just mentioned Flash for completeness as you had talked about java applets and javascript...


author: JamieA
body: I'm not really a Flash fan but looking on most web sites it's the de facto standard for clipboard manipulation... I have the flash blocker plugin but I don't mind enabling flash for those sites where I want to copy from the code blocks.
Customizing Login Invalid Password message
Asked by Ken Ramey:

We are running a standalone instance of Confluence 3.5.9 on linux. We need to customize the Login page and it seems that most tasks require more than just modifying the login.vm file. What file do we need to modify to change the Invalid Password message?ThanksKen


Answers:
author: David at David Simpson Apps
body: Here's a method of changing specific language text that will also nicely survive a Confluence upgrade:<http://davidsimpson.me/2009/11/04/changing-boilerplate-text-in-confluence/>You'll need to search for the specific text in the .properties file and only include that in your new partial language pack.


Tags: custom-field

login
Can you add plugins to hosted Confluence?
Asked by Dan Mabee:

I've read the question about Jira Studio being installed with pre-bundled plugins available for use and that you cannot add additional plugins manually.

Is this the same for hosted Confluence or is it more flexible in allowing me to install plugins on my own?


Answers:
author: NikE
body: You are correct about JIRA Studio.

Hosted Confluence (completely separate from JIRA Studio) is more flexible, allows for more customization, and allows almost all plugins to be installed (a few exceptions for plugins that depend on other programs).

If you want to confirm that a specific plugin can be installed, please post which one and I can confirm.

comments: author: Dan Mabee
body: Thanks for the quick response.

So that I'm clear, hosted Jira Studio comes with licensing for hosted Confluence, correct? Since Confluence and Jira are separate, the plugin issue only really affects Jira, not Confluence?

Specifically, the plugins I want to install are:

Scroll-wiki exporter (they indicate that they can be installed on a hosted instance)

Multi-excerpt plugin

Code macro plugin

Content Plublishing plugin

Copy Space plugin

Jira Macros plugin

...

That's all I can think of at this time. Are these able to be installed in a hosted Confluence environment.


author: NikE
body: A bit of clarification, there are three products we are talking about:

JIRA Studio (which has both JIRA and Confluence included)

<https://www.atlassian.com/hosted/studio/>

Hosted JIRA

<https://my.atlassian.com/hosted/signup/jira>

Hosted Confluence

<https://my.atlassian.com/hosted/signup/confluence>

While they are all hosted by us, they are all separate products. (The links hopefully clarify the issue, hosted JIRA and Confluence are 90% the same as if you were running them locally, JIRA Studio is a suite of our products). To answer you question directly, JIRA Studio does not come with a license for 'hosted Confluence'.

Both 'hosted JIRA' and 'hosted Confluence' (a different license for each one) can be customized and have plugins installed.

All the above plugins should work fine with hosted Confluence (presuming compatibility with the plugin versions).

For reference, the plugins that come with JIRA Studio (for both JIRA and Confluence) are at:

<https://confluence.atlassian.com/display/JIRASTUDIO/JIRA+Studio+Plugin+Policy>


Tags: cloud

confluence-app

confluence-server
Notation Guide: content:title
Asked by Saurabh N. Deshpande:

Hello Guys,

I just noticed that %content:title% is no longer available for using within Linking Plugin.

Have anyone experienced similar issues.

I was using it for creating new pages that would inherit the current Title of the page.

Is anyone using any other method for achiving the same.

Thanks,

Saurabh


Answers:
author: David Peterson
body: Hi there,

The 'content:title' key, along with the other standard keys you can inject with comes with the Reporting Plugin. Make sure that is installed along with Linking.

Regards,

David Peterson

comments: author: Saurabh N. Deshpande
body: Thanks !

I have installed Reporting Plusgin. May be I am missing some setting. I will try again.


author: David Peterson
body: Can you post your wiki markup? There may be an issue with the syntax.
Why does blank pane appear when user edits wiki page in wiki markup?
Asked by David Arlow:

A colleague is having issue whilst editing a wiki page using *Wiki Markup.*

His screen splits between displaying the source code on the left and a blank pane on the right.

This is making editorial within this prefered option of *Wiki Markup* difficult to say the least.

Is there a config change I can make to his confluence instance to ensure he can see the full markup screen without issue?

Thanks.

David


Answers:
author: Nic Brough -Adaptavist-
body: I've seen this before, but it's not Confluence doing it, it was the browser - some sort of plugin or tweak was forcing a dual-display horridness. Can you

1. Check it's the same if he tries another browser or machine
2. Check you get the same if you try wiki markup
3. Post what you're using here - Confluence version, Browser and OS?

comments: author: David Arlow
body: Thanks Nic.

He was using IE! Asked him to try Firefox and issue resolved!

I use Firefox and recommend all new starters to company to use this browser during training sessions. Historically far less issues using wiki with Firefox than IE.

Confluence version: 3.5.2.


author: Kay Brown
body: If I recall correctly, turning off compatibility view in IE it will solve the problem. Tools, Compatibilty View Settings.

Regards,

Kay

comments: author: Manuela Raschke
body: Thanks a lot, that helped!


author: Manuela Raschke
body: Is there a way to solve the problem in IE? Its the standard browser we are using and the splitted editor makes it more difficult with larger pages.
Live version of Confluence 4
Asked by Ole Kristensen:

When will there be a Live version of Confluence 4 available for us to try-out on the web before installing on our stage server?


Answers:
author: Sherif Mansour
body: Hi Ole,

As Richard said, the BETA is available to download right now.

As with all product releases, we wil first upgrade our external instances to the release candidates before we ship 4.0. That means [confluence.atlassian.com](http://confluence.atlassian.com) will be upgraded in the next few weeks to 4.0. There is a "Test" space there where you can go in and have a play!

Sherif


author: Richard Yale
body: There is already a beta version here:

<http://www.atlassian.com/software/confluence/DevReleaseDownloads.jspa>

Oh you mean a demo? No clue. I would suggest just beta testing it and giving the developers your feedback to help them make it more what you are looking for!
How can display something verbatim on a bullet line?
Asked by Simon Hardy-Francis:

For example, here's some markup:

\* {{http://example.com/\<your name\>/blah/}}

This gets displayed mono-spaced but it also gets converted into a URL instead of being displayed verbatim which is what I want. But how?


Answers:
author: Kevin Buchs
body: This is probably going to seem heroic, but it works (so you gotta vote for it :-):

\* {{\&#104;ttp://www.google.com}}

This uses a literal html "h" as the first character of the URL, which blocks Confluence seeing it as a URL.

Is there a reason you don't want it to be a hyperlink?

comments: author: Simon Hardy-Francis
body: Thanks for the workaround, Kevin. The reason is if I can't find a solution to this question :-)

<https://answers.atlassian.com/questions/7878/how-can-i-embed-the-lower-case-name-of-the-logged-in-user-into-some-text>


author: David at David Simpson Apps
body: @Kevin Buchs: That's a neat trick :)


author: SarahA
body: I like it too!


author: SarahA
body: Here's another solution: Use the "no link" macro:

\* {nolink:http://www.google.com}

Or this:

\* {nl:http://www.google.com}
How can I embed the lower case name of the logged in user into some text?
Asked by Simon Hardy-Francis:

I want some kind of mechanism so that I can embed a URL into a confluence page wiki markup so that the user name is dynamic, e.g. if I'm logged in as 'Simon Hardy-Francis' then I want the URL to read <http://example.com/simon/blah> and if I'm logged in as 'Joe Smith' I want the URL to read <http://example.com/joe/blah.> Is it possible to use some kind of macro in the wiki markup to achieve this? Thanks, Simon


Answers:
author: David at David Simpson Apps
body: Create a user macro **{first-word-in-display-name}** containing this (with no spaces before or after):

```
$action.remoteUser.displayName.toLowerCase().replaceAll("\s(.*)","")
```

Then you can use:

```
http://example.com/{user-first-name-to-lower-case}/foo</pre<>>
```

comments: author: David at David Simpson Apps
body: This assumes you want the first name

i.e.

* Simon Hardy-Francis =\> simon
* Joe Bloggs =\> joe

<br />


author: Kevin Buchs
body: With a reasonable number of users on a fixed list, I would suggest that {show-if} would work and could be used to create working hyperlinks. Some script or programming editor can be used to generate the list. This macro will cause the enclosed contents to only be shown to the listed user. You would need one of these for each user.


author: David Peterson
body: Hi Simon,

You can use the Reporting Plugin or the Replace and Render plugin in combination with the User Info Plugin (I think). I'm not so familiar with the latter two, so here's the Reporting Plugin method:

{report-on:injected=true}http://example.com/%global:current user \> user:name%/blah{report-on}

Hope that helps!

Regards,

David Peterson


author: Kevin Buchs
body: You want to create a valid hyper-linked URL or just some text? How many users? Is the list known and fixed?
With OpenAM how do I set up AMconfig.properties configuration to work with JIRA and Confluence?
Asked by Erez Asif:

I have configured OpenAM for use with some of our services and the last 2 I need to integrate are JIRA and Confluence. The documentation provided by the OpenAM site is not very clear on the AMConfig.properties file. Without the AMConfig.properties file I am unable to use the OpenAM login as I get an infinite redirect error after successfully signing in. If anyone here has experience setting up this environment it would help me out.


Answers:
author: Leon Breukelman
body: <https://wikis.forgerock.org/confluence/display/openam/Integrate+with+Atlassian+Jira+and+Confluence>


Tags: jira
UWC crashes while importing large number of files
Asked by Shivansh Singh:

I have exported Mediawiki pages into text files using UWC. Those are approx 1000 files. When I try to add large number of files (say 500 or more) and import, it crashes in the middle of parsing or importing the files.


Answers:
author: Laura Kolker
body: > Yeah its out of memory error.

I would recommend [allocating more memory](https://studio.plugins.atlassian.com/wiki/display/UWC/UWC+F.A.Q.#UWCF.A.Q.-I%27mgettingOutofMemoryerrors%3FWhattodo%3F) to whichever process (UWC or Confluence) is having the out of memory error.

As an aside, I've noticed sometimes people hit unusual out of memory errors when they are accidentally attempting to upload binary files (images, zips, archives) as if they were pages. You may want to double check the files in question that are triggering the errors.


author: Laura Kolker
body: Are you getting [out of memory errors](https://studio.plugins.atlassian.com/wiki/display/UWC/UWC+F.A.Q.#UWCF.A.Q.-I%27mgettingOutofMemoryerrors%3FWhattodo%3F)? Or is there a particular file that's causing the failure?

comments: author: Shivansh Singh
body: Yeah its out of memory error.


Tags: crash

import

universal-wiki-converter
Comments showing double on a Confluence page
Asked by Jenin C M:

Whenever I add a new comment, it shows double on that Confluence page.

Can anyone help to rectify this?

Regards,

Jenin


Answers:
author: Jenin C M
body: Hey..have found a solution. Initially the theme used for the space in question was "Global Look and Feel Theme". However, when I replaced this with Documentation Theme the issue seems to be resolved now.

The question now is why this issue with "Global Look and Feel Theme"?

Regards

Jenin


author: David at David Simpson Apps
body: If you add a very long comment, does it just repeat the first line of the comment? If so, it could be that the JavaScript expander function (show/hide) isn't working correctly. Does it only happen for your comments? Or other people's too?What theme are you using? Is it the same throughout the Confluence site?
How to list pages sorted according to label
Asked by Michal Zebrowski:

Hello,

I have a set of pages, they have the same parent, and are labeled like this:

Page1 labels: ib, ib1

Page2 labels: ib, ib3

Page3 labels: ib, ib7

Page4 labels: ib, ib7.1

...

Page123 labels: ib, ib200.2

...

<br />

What's more, every page has some other labels related to page'content.

The question is how I can list them sorted according to ibXX label (where XX is a number).


Answers:
author: Kevin Buchs
body: Tough problem. Can you tell us if the labels for all the pages start with ib and ibXX or are there some labels that are alphabetically prior to ib? How high and deep does XX go?


Tags: label

sort
Adding a Page to the List of Spaces on the Dashboard
Asked by Kay Brown:

Is it possible to add a page to the list of spaces on the dashboard?

Thank you and regards,

Kay


Answers:
author: Thomas Wendel
body: Hello Kay,  

It is quite easy to add a link just above of below the list of spaces:  
- In the Confluence administration, go to Layouts and edit the Global Layout.  
- Look for the following lines:

```
<div class="dashboard-section">
    $helper.renderConfluenceMacro("{spaces}")
</div>
```

- You can add your link just above or below that piece of code:

```
$helper.renderConfluenceMacro("[This is a link above the space-list|SpaceKey:This is a test]")
<div class="dashboard-section">
    $helper.renderConfluenceMacro("{spaces}")
</div>
$helper.renderConfluenceMacro("[This is a link below the space-list|SpaceKey:This is a test]")
```

- Alternatively, instead of rendering a wiki link, you can of course use a HTML link:

```
<a href="http://www.google.com">Click here to visit Google</a>
```

I hope this is what you were looking for  
Cheers,  

Thomas

comments: author: Kay Brown
body: Thank you, Thomas.


Tags: custom-field

dashboard
The Crucible reviews disappeared from my Reviews tab and Activity stream
Asked by Ronald Horner:

When accessing Crucible the reviews no longer show up in your activity stream, under the Crucible project, or under the reviews tab. However, you can still get to them by using a direct link such as, [http://www.company.com/fecru/cru/CR-38](http://www.company.com/fecru/cru/CR-38.). How do you get the reviews to appear again?


Answers:
author: Ronald Horner
body: Check your log file for the following error:

2011-08-18 00:00:06,776 ERROR \[pool-5-thread-1\] fisheye.app LuceneConnection$IndexHandle-rollback - problem rolling back index writer REVIEW

java.io.FileNotFoundException: /opt/apps/jira/fecru-2.4.1/cache/cruidx/idx1/_sm.cfs (No such file or directory)

at java.io.RandomAccessFile.open(Native Method)

at java.io.RandomAccessFile.\<init\>(RandomAccessFile.java:216)

at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.\<init\>(SimpleFSDirectory.java:78)

at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.\<init\>(SimpleFSDirectory.java:108)

at org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:65)

at org.apache.lucene.index.CompoundFileReader.\<init\>(CompoundFileReader.java:70) ...

To resolve this issue you will need to:

* Shutdown Crucible
* Delete the /opt/apps/jira/fecru-2.4.1/cache/cruidx/ directory
* Start Crucible

When everything comes back up you should see your reviews in the activity stream and review tabs.

comments: author: Tim Sheppard
body: This also works for permission denied errors etc.


Tags: activity-stream

fisheye-crucible

review
Can confluence be configured to use Amazon S3 storage for attachments?
Asked by Kris Forbes:

Can confluence be configured to use Amazon S3 storage for attachments?


Answers:
author: Mike
body: I would suggest searching how to mount an S3 bucket in Linux/Windows and then changing the Attachment Storage location to the mounted drive.

comments: author: Aaron Bauman
body: This will give you storage benefits, but no CDN benefit.  
ie. the request still has to be routed through your webhead.

Is there any plugin that can provide pluggable storage and the benefits of CDN?


author: Thayne McCombs
body: I've worked with s3fs before. Performance is terrible, and I've had issues with incredibly high memory usage.


author: Cristhian Benitez
body: Is there a way not to pay for an addone more than the S3 service?


author: H
body: Hi Kris. Check out our [Amazon S3 Connector plugin](https://marketplace.atlassian.com/plugins/org.hotovo.confluence.amazon-s3-storage-connector) for Confluence. It will allow you to connect your Confluence with S3 Bucket and present the content within Confluence pages.

Glad to hear you feedback :)

comments: author: Aaron Bauman
body: I don't see how displaying the contents of an S3 bucket addresses the original question at all.
Force Confluence cache to refresh from database?
Asked by Mark Maier:

We want to automatically update a specific page in wiki by directly updating the record in BODYCONTENT table in database. Unfortunately the users don't see the changes after changing the database record.

I guess this has to do with the object cache in Confluence, that doesn't ask the database for changes if the object is always in cache. Is there any way to force the cache to refresh (not from admin area, but by calling something from our script that does the changes in BODYCONTENT)?

Or can I call the page with some parameter that loads the content from database instead of cache?


Answers:
author: B_ Normann P_ Nielsen
body: I do direct inject into the database at the moment, and it is realy not such a big deal - of cause there is a risk, but that is primarily when upgrading Confluence, my current injection of WIKI markup is not V4 compliant.

I stumbled across this post searching for a way to refresh the body cache, calling the URL

/admin/flushcache.action?cache=com.atlassian.confluence.core.BodyContent\&redirectUrl=cachestatistics.action%3FshowDistributions%3Dfalse

will do it (similar to use the gui at /admin/cachestatistics.action?showDistributions=false - flusing the "Content Bodies")

I just nedd to find the login parameters, somethin simelar to JIRA's os_user etc...

The CLI is a great tool, but I dont want page history as several pages are updated each day, and I use the pageId for getting data in.

See my scripts at <http://www.mos-eisley.dk/display/it/Confluence>


author: Nic Brough -Adaptavist-
body: Short answer is "don't do it". You should not be even thinking about poking data into Confluence while it's running.

"Refreshing the cache" would be a nightmare that involves rewriting core code. You could do it, but you'll need to retest all sorts of stuff, persist it through upgrades and frankly, there's far better ways to approach this. The first thing to think of is abstracting the call for data from the content of your page.

I would write a macro that provides the current content from a database table outside Confluence (it can be inside the Confluence schema of course, but the point is to keep it separate and a separate table is the easiest way to do it). Before diving into that though, I'd look at <https://studio.plugins.atlassian.com/wiki/display/SQL/Confluence+SQL+Plugin> as that could solve the problem or at least give you a start on how to code something if it's not quite right.


author: Bob Swift (personal)
body: Or write the content legally by running **storePage** using [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) or similar. Then you get page history as well.
Is it possible to change an attachment comment for old attachment versions?
Asked by Michael Roff:

I have an attachment File.txt.

I attach it to confluence.

I change File.txt and upload it again to Confluence. I now have the current version and the original version which is referred to as Version 1.

Is there any way to go and change / edit the comment for Version 1 of File.txt?


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

This is not possible, however I've created a feature for you: <https://jira.atlassian.com/browse/CONF-27473>

I suggest to vote and watch this feature so it will increase it's popularity and the chance to be implemented.

Hope that helps!

Regards,

Rodrigo


Tags: attachment
How to restore data from Confluence version 2.2.8 to Confluence version 3.5.2
Asked by Amey Nevrenkar:

Hi

I am trying to import a space from an older confluence version to new confluence version i.e. 2.2.8 - \> 3.5.2

The space contains pages which have attachements.

When I try to import the zip file I get an error -

You can only restore space backups exported from the same major version (e.g. 2.2.x or 2.3.x).

It would be great help if somebody can guide me through this.


Answers:
author: Jim Birch
body: You need to set up a temporary 2.2.8 instance, restore the data, upgrade (maybe a couple of version steps, check the release notes), export and reimport. There would have been significant schema changes between 2.2 and 5.5, some of which will affect the xml data format.

I would suggest raising a support ticket on this. Atlassian can advise you which versions you will need to pass through.

You can get temporary licences to do this.

comments: author: Amey Nevrenkar
body: Hi Jim

Thanks alot for the answer.

In the interim I found another way to solve the problem.

When we try to import between two major version i.e. 2.2.x - \> 5.5.2 its not allowed by Confluence, because for the simple fact that its build number changes.

Thus one needs to just change the build number by going in the exportDescriptor.properties file and changing the build number.

Once we do this import it.


author: Nic Brough -Adaptavist-
body: I wouldn't rely on that - it could create incompatible data as you're lying about the versions and potentially throwing complete misinformation at a server. If I were to use that, I'd be very worried, unless I tested at least every macro and function that had been used anywhere in the data, with every combination of parameters in use.