youngmon/atlassian-qna huggingface dataset:
default template in Confluence
Asked by Steve Berley:

I have created a simple template that I'd like to be the default for all my users whenever they create a new page (Add page or hit "c" on the keyboard).

I don't mind if they edit the new page to remove the default macros, I just want the macros to be there from the start.

How do I make my template be embedded automatically?

Thanks a lot,


Answers:
author: MatthewC
body: There is currently a feature request open for this: [CONF-3697](https://jira.atlassian.com/browse/CONF-3697)

Unfortunately the workarounds won't be any good for you, they all rely on creating specific links and won't work by default.

Maybe someone else can suggest if there is a way of intercepting the create page actions?


Tags: template
page restrictions not available
Asked by Michael Roff:

For some reason, page restirctions are no longer available within Confluence.

I can see the padlock in the top left if a page has already been restricted, but when I click on it, nothing opens up.

Similarly, if I got to Tools -\> Restrictions, nothing opens up.

I can't think of any changes that have been made in the last 24 hours to cause this issue.

I haven't tried a reboot yet, but before I did I thought it was worth seeing if anyone has seen this before or may know what would be causing it?


Answers:
author: Matt
body: Is it possible that someone made a change to the page layout?

comments: author: Michael Roff
body: Thanks for the ideas Matt.

And yes, "someone" did make changes to the page layout, but they will remain unnammed to protect my anonymity. :)


author: Matt
body: Or if you are connected to LDAP for user management you might be hitting this issue:

http://confluence.atlassian.com/pages/viewpage.action?pageId=217744422


author: Matt
body: One more cause for this issue is that the page maybe restricted to a group that no longer exists. Hopefully one of those three answers is the right one! :)


Tags: restriction
How do I access the Human Resources Atlassian template once it is installed?
Asked by Steven Seese:

Hello,

I have attempted to access the "Atlassian Templates: Human Resources" and the "Atlassian Templates: Software Development" templates after I installed them via importing java files exported from the Atlassian Plugin Exchange. After I installed the plugins, I confirmed they were intalled on the User-installed Plugins page. After that, I went to import the templates and there were no templates present to select in the "import templates" screen. Currently, I am running Confluence 3.4. Can someone please help?

Thanks.

-Steven Seese


Answers:
author: Matt
body: You should be able to navigate to

```
Confluence Admin | Configuration | Import Templates 
```

See this video for further details:

<http://screencast.com/t/qak5pXsr>

That was recorded on Confluence 3.5 so I imagine there is a bug in the version of Confluence you are running?

Are you able to see the 'Default Templates' that are bundled with Confluence available for import under 'Import Templates'?


author: Steven Seese
body: Thanks guys. I am gonna update to 3.5 today, ill let you know if the plugins function properly.

-Steve


author: Azwandi Mohd Aris
body: Steven, it is a known bug in Confluence 3.4 - <https://jira.atlassian.com/browse/CONF-20985>. Try in Confluence 3.4.2 instead.
"Incompatible magic value" error when adding an external Applet within {html} tags on Confluence
Asked by Chris Widget:

I have a page with 3 .JAR attachments. I am trying to execute the applet using this simple code:
> {html}  
>
> ```
> <APPLET CODEBASE="http://XXX:12500/download/attachments/7341517/" ARCHIVE="main.jar,controlP5.jar,core.jar" CODE="main.class" WIDTH=400 HEIGHT=200> </APPLET>
> ```
>
{html}  
The page displays correctly, but the applet does not run. I get the following error:
> Java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file main  
> at java.lang.ClassLoader.defineClass1(Native Method)  
> at java.lang.ClassLoader.defineClassCond(Unknown Source)  
> at java.lang.ClassLoader.defineClass(Unknown Source)  
> at java.security.SecureClassLoader.defineClass(Unknown Source)  
> at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)  
> at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)  
> at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)  
> at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)  
> at java.lang.ClassLoader.loadClass(Unknown Source)  
> at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)  
> at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)  
> at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)  
> at java.lang.Thread.run(Unknown Source)  
Exception: java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file main  
Does anyone have any idea what is wrong? Thank you.


Answers:
author: Jim Birch
body: From [http://stackoverflow.com/questions/2390733/incompatible-magic-value-1008813135\</p\<\>\>](http://stackoverflow.com/questions/2390733/incompatible-magic-value-1008813135%3C/p)

[](http://stackoverflow.com/questions/2390733/incompatible-magic-value-1008813135%3C/p)
[`0xCAFEBABE` is the usual first 4 bytes of a Java file.
**1008813135** is `<!DO` in Latin encoding, which is, in all probability, the start of `<!DOCTYPE...`.
It is therefore likely the start of a `404 error`, or some other error page from the server
ie. You may be trying to load something that the server doesn't know. Check logs, try to load the jar manually, etc.
(BTW you might be better off embedding html code in a user macro rather than enabling the html tag, it's a lot safer.)](http://stackoverflow.com/questions/2390733/incompatible-magic-value-1008813135%3C/p)
Confluence 4.0 - Formatting as Code no longer in dropdown?
Asked by Victor Hooi:

Hi,

In Confluence 3.x, I could select a bit of text and then selected it as formatted it as "Code".

The option I have were:

* Paragraph
* Heading 1 to 6
* Quote
* Panel
* Code
* Preformatted

However, in Confluence 4.0, the formatting options are slightly reduced:

* Paragraph
* Heading 1 to 6
* Preformatted
* Quote

Do we know if Code is going to be added back into the options?

I know you can create a code block macro with {code, however, I personally found the format dropdown a bit quicker to use.

Any thoughts/ideas?

Cheers,

Victor


Answers:
author: Jim Birch
body: It's surely coming, the editor is a work in progress at this stage, and things like tables and macros will get the most action. If you want to ensure this is on the radar, and follow the issue, create an issue at [http://jira.atlassian.com/](https://jira.atlassian.com/ "https://jira.atlassian.com/").

You could also try the {{ access to macros, it may be just not on the visual picker.


Tags: code-block

format
code snippets in wiki markup
Asked by Hilary Yothers:

My company is currently running 3.3.3 and i am tasked with creating a document that requires code snippets.

How do you best present code in this version.

I found a macro, but it says that it doesn't export to PDF very well.

Does anyone have a good solution to this?

(I do know that there is an upgrade in the works, but no one has time to do this at the moment.)


Answers:
author: David at David Simpson Apps
body: The obvious choice is the {code} macro.

A quick test on Confluence 3.3 seems to show it working nicely in both Confluence and a PDF rendition of the page.

![](http://desmond.yfrog.com/Himg740/scaled.php?tn=0&server=740&filename=ghl.png&xsize=640&ysize=640)

Here's a link to the full image:

<http://yfrog.com/z/kkghlp>

comments: author: David at David Simpson Apps
body: -- now moved to yfrog. hope it doesn't close soon.


author: David at David Simpson Apps
body: In the example above, I was using the bundled **{code}** macro on a clean installation of Confluence 3.3.


author: Jon Cotter
body: Which macro did you find. There is more than one. If you are on 3.3.3 you might want to check out the appropriate version of

the [New Code Macro](https://studio.plugins.atlassian.com/wiki/display/NCODE/Confluence+New+Code+Macro) (1.9.6)


Tags: code-block
Confluence Macro: Using confluence-content
Asked by Alex Church:

I'm working on a macro that I would like to print the title, an except from and a link to some article (from any space). It is designed to be used on the Dashboard to highlight articles of interest.

Given the "confluence-content" parameter type I assumed this would be easy, and indeed the widget in the macro creator makes searching for and selection an article very easy. But all this seems to pass through is a string in the format \<space\>:\<page\>. I haven't yet been able to find a way to use this string to actually select the appropriate page and use it the way I would like.

Any suggestions?


Answers:
author: David at David Simpson Apps
body: The string is in format **spaceKey:pageTitle** , so you can access the **Page** object using...

```
Page page = pageManager.getPage(spaceKey, pageTitle);
```

Use [dependency injection](http://confluence.atlassian.com/display/CONFDEV/Spring+IoC+in+Confluence#SpringIoCinConfluence-Plugindependencyinjection) to get the **PageManager** object

comments: author: Alex Church
body: Thanks. I was just using user macros, but have since migrated to using plugins, which provide much more flexibility.


Tags: content

macro
embedding multimedia content
Asked by Asya Dvorkin:

Hi everyone,

I'm trying to evaluate the software and having issues with embedding media into the wiki.

I'm running confluence CentOS and testing on Mac OS X/Safari browser. For the mp4 format, I get a question mark when I add attachment (using instructions found on <http://confluence.atlassian.com/display/DOC/Embedding+Multimedia+Content>). I uploaded the file to my server (and I can play it successfully by going directly to <http://www.site.com/file.mp4>). I've tried using macro widget and I'm getting some type of a two wheels icon.. sorry, not sure what it's called.

If I simply upload a file and try to look at it in the attachments tab, I still get a quicktime question mark....

Pretty much, we have bunch of podcasts (in mov, avi or mp4 formats) that we need to embed into a wiki.

I would appreciate any pointers or ideas.

Thank you,

Asya


Answers:
author: epohl
body: You'll definitely want to use the multimedia macro for this. Also, to get it to work right (and show player controls) you need to make sure to add an appropriate width and height in the macro. If you're uploading HD video, here is a nice little calculator to help you get an appropriate size: <http://size43.com/jqueryVideoTool.html>

Finally, MP4 works SOMETIMES in Firefox, but not always. I put a note at the top of the page to let users know that other browsers work better and also use the attachments macro below the player so that Firefox users can click the attachment link to view the video.


author: David at David Simpson Apps
body: I've noticed this too in the {multimedia} macro. WebKit based browsers worked fine, but Firefox doesn't like mp4 format.


author: Colin Goudie
body: What version of confluence are you running? It's possible the issue is your browsers plugin or lack of.The multimedia tag in 3.5 should work. See <http://confluence.atlassian.com/display/DOC/Embedding+Multimedia+Content>

comments: author: Asya Dvorkin
body: Thank you for responding. I'm running 3.5.5 and it seems i went through all requirements. I will go over them again....


author: Asya Dvorkin
body: Thank you for responding. I'm running 3.5.5 and it seems i went through all requirements. I will go over them again.... Also, if i just go to the website directly http://www.site.com/file.mp4, it plays perfectly...
Table of contents while using include macro
Asked by Jennifer S:

Hello, I am building a page made of content entirely generated by include macros. Is it possible to have a standard table of contents when the entire page is built this way? We are generating a table of contents in very odd formats and the links do not direct the user to the right heading on the page. Would really appreciate the help! Thanks!


Answers:
author: twong_atlassian
body: I do believe that this is an instantiation of this reported bug:

https://jira.atlassian.com/browse/CONF-3844
Using one Confluence Space by Artefact Version or one per Artefact
Asked by Dirk Bromberg:

Hi,

we plan to use Confluence for Software Documentation.

Is it better to use it like Atlassian Style: One Space per Artefact Version.

Or is it better to use a Space per Artefact and then add all Versions to this Space?

Creating a new Version by copying an old subtree...

Is there a good documenten way for beginner? Video? Tuturial? Book?

Thanks!

Dirk

Next Step after Documentation an Requirements in Confluence is Setup of JIRA....


Answers:
author: David at David Simpson Apps
body: The answer is likely "it depends". Whatever works best for you.

Having said that, Atlassian's usage, where they copy the space for the next version does seem to be a good example.

One space per version means that any search within a single space (if you're using the space specific search box in the Documentation theme) is guaranteed to be specific to that version (assuming the documentation is correct).

Also, if you have all versions in a single space, you can't have multiple pages with the same title. This may prove to be a problem.


author: Dirk Bromberg
body: I'think we will start with one space per version. Thanks.


author: Dirk Bromberg
body: Hi David,

thanks for this answer.

Is there a simple way to search over all spaces?

Thanks.

comments: author: David at David Simpson Apps
body: @Dirk Bromberg: Do you mean *all* spaces, or all spaces for your product's versions?

The former is easy (try the search in the breadcrumb/header bar).

The latter, is also achievable -- try this [search for "Upgrade" in 2 Confluence spaces](http://confluence.atlassian.com/dosearchsite.action?queryString=%28ancestorIds%3A1556+OR+ancestorIds%3A236588137%29+AND+upgrade+notes&where=JIRA&type=&lastModified=&contributor=&contributorUsername=). You'd like need to make your own user macro to get a decent form displayed.
Scaffolding and TOC
Asked by Ruben van der Steenhoven:

Hi,  

we're using scaffolding to create standardized pages.  
In these pages we use textareas, so the user cannot easily forget certain subjects.  
The last of these texareas is for the user to add his/her own subjects, so i cannot use Headings outside this textarea in that case.  

We've noticed that Headings embedded in a textarea aren't included in the TOC.  

Do you know/have a solution for this?

(we're using Confluence v3.5.6 and Scaffolding v3.4.2)


Answers:
author: David Peterson
body: Hi Ruben,

I did a quick test an was able to replicate the problem. It seems that the {toc} macro is caching the TOC (which is a good thing, since generally the layout doesn't change, and it saves it from having to render the whole page twice every time you view it), however it's not updating the cache when Scaffolding data is saved.

I'm not sure if this is due to Scaffolding not sending out the correct event when it updates the page, or if it's something in TOC, or both, however there is a workaround. Simply add '?refresh=true' to the URL to force the TOC to refresh after you save a Scaffold page. Not ideal, but it's the best I've got at the moment.

It may also be worth raising an issue for Scaffolding (<https://greenhouse.customware.net/jira/browse/SCAFF>) and/or the TOC (<https://studio.plugins.atlassian.com/browse/TOC>).

Hope that helps!

David Peterson

comments: author: Ruben van der Steenhoven
body: This pointed me in the right direction, what i did as a workaround until the root problem is fixed is this:

I created a usermacro {kvk-refresh} which contains following code:

\<a href="$content.getUrlPath()?refresh=true"\>$body\</a\>

Next, i added a call below my TOC heading in the scaffold like this:

h1. TOC  
{kvk-refresh}(update TOC){kvk-refresh}  
{toc:style=disc\|indent=20px}  

At least for now we're safe, i will file an issue for Scaffolding.


author: twong_atlassian
body: I don't actually know how scaffolding works (I haven't examined the customware code), but I do believe that it relies on some mechanism of "including a page," which means you're probably running into a variation of https://jira.atlassian.com/browse/CONF-3844


Tags: scaffolding

table-of-contents
Short text from blog on Dashboard
Asked by Alexander Shapovalov:

Hello All!

Please help me, is there any way to show short information (ex: several words or more) of each blog that is on dashboard.

For example I can see comments, but no information about blogs only summary on dashboard.

Confluence version: 3.5.4.


Answers:
author: Penny Wyatt (On Leave to July 2021)
body: There is indeed.

1) Go to Administration-\>General Configuration-\>Site Configuration-\>Edit

2) Set the "Site Welcome Message" to the following wiki markup:

```
{blog-posts:7|content=excerpts|space=@global}
```

Full documentation for this macro can be found at <http://confluence.atlassian.com/display/DOC/Blog+Posts+Macro>

comments: author: Alexander Shapovalov
body: Good! Thank you, it's almost what I want, but I want to see it in All Updates list if possible.

Is it possible?
Does Confluence expose's any services/Web services to expose a Content in Confluence?
Asked by praveen Indupuri:

Hi,  

We have an requirement to show confluence data on to our portal. We dont want to do that using export or import of content. Is there any way we can access the content dynamically?  

Please let us know.  

Thank you!  

Praveen


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) can you used to find and render pages for use in external sites.


author: David at David Simpson Apps
body: Confluence has remote APIs that would enable you to do this.

Check out the documenation page: [Remote API Specification](http://confluence.atlassian.com/display/CONFDEV/Remote+API+Specification)

comments: author: David at David Simpson Apps
body: I believe that for example the University of Bath use this approach in surfacing content from [their wiki](http://wiki.bath.ac.uk/) in their portal.


author: Martin Cooper
body: Depending on your portal, you may be able to use the confluence gadgets which follow the opensocial standard so can be used on any compliant portal i.e. igoogle

<http://confluence.atlassian.com/display/DOC/Configuring+Confluence+Gadgets+for+Use+in+Other+Applications>

<http://confluence.atlassian.com/display/DOC/Confluence+Gadgets>
Find and Replace?
Asked by Emily Johnson:

Hi,

We are changing the name of one of our products, and I need to do a find and replace in our knowledge base. (Doing this by hand would be kind of ridiculous.) I'm not finding any options---does anyone else know how to do it? This plugin (<https://studio.plugins.atlassian.com/wiki/display/CGSR/Confluence+Global+Search+and+Replace+Plugin>) is not updated to Confuence 3.5.

Thanks!

Emily


Answers:
author: Thomas Krug
body: I am doing search and replace with the the Confluence Command Line Interface

<https://studio.plugins.atlassian.com/wiki/display/CSOAP/Confluence+Command+Line+Interface>

using the 'getPageList', 'getPageSource' and 'storePage' actions.

Utilizing this within a shell script you can export the pages to plain text files, perform the search and replace using tools like UltraEdit and push them back to confluence again.

comments: author: Emily Johnson
body: Thank you Thomas, but I don't think I have access to the command line because we've got a hosted instance. :( Maybe I can get support to do this though


author: Jeremy Largman
body: Hi Emily,

The Remote API is open on hosted instances (or it should be, if you request it!). You also have admin access and can enable the remote API. You should be able to run a find and replace script that way, with full programmatic logic to make sure you don't make any mistakes. That is, you can output everything in a report for manual inspection first then run the replacement.


author: Jim Birch
body: You can find the pages by running with the sql script against the database (if that's your kind of thing.) Even if you edit in Confluence this will give you the scope.

It's also possible to edit via sql but not recommended, you must **take a backup(!)**, stop Confluence, run update, then reindex on restart. In addition to the command line interface, the webDAV interfce could also be used (if it still works.)
>
> ```
> -- Query to locate current pages containing a specified string-- Jim Birch 2011.01.28select  -- top 100 s.spacekey, c.TITLE, c.CREATOR, c.LASTMODIFIER, c.LASTMODDATE --, bc.body from  dbo.CONTENT cjoin  dbo.BODYCONTENT bcon c.CONTENTID = bc.CONTENTID-- note: spaceid is null on old page versions so join on-- space id selects only current pages.  Nice.join dbo.SPACES son s.SPACEID = c.SPACEIDwhere bc.BODY like '%productname%' order by s.spacekey, c.title
>
> ```
Any plans on adding discussion threads to Confluence?
Asked by Anthony Dotson:

As an org we use Confluence fairly heavy...was wondering if you guys had any plans to add Discussion Threads as a first class content type to your system?

Thanks,

Anthony


Answers:
author: ITops123
body: I don't know about Confluence's plans but the Adaptavist Community Bubbles plugin works pretty well for discussion threads in communities.

<https://www.adaptavist.com/display/Bubbles/Forums>
Migrating Teamforge wiki to Confluence
Asked by YinKee Yee:

Hi,

We would like to migrate our existing TeamForge Wiki project to new Confluence space. Do you know any success stories in the past where someone able to use the universal wiki converter to achieve this task?

Thanks,

YinKee


Answers:
author: Matt
body: Hi Yinkee - I've not come across any myself. I'd suggest emailing Laura Kolker who develops the UWC - laura@appfusions.com


author: tao sun
body: Hi Yinkee,

We are in the situation now. I am trying to send the email to Laura but her email is invalid. Would you mind sharing some good news?  
Tom


Tags: universal-wiki-converter
Organizing Spaces on the Dashboard. (e.g. Folder to group spaces would be nice)
Asked by Yasushi Shiba:

Dear all,

On Confluence, I have 50+ spaces and also use "favorite" tab to select the most used ones. But the admin has 100+ spaces and it is very difficult to navigate to different spaces, if you don't remember the actual names of spaces.

Is there additional tabs (to Favorite and Global), or a plan for a new feature to have folders containing spaces in the "Globa" tab? It would be very helpful, I believe.

I use version 3.3.1.

Thank you for your support, as always.

- Yan


Answers:
author: Matt
body: In Confluence 3.5 we shipped the Space Directory which allows you to group Confluence Spaces by category. [See here](http://confluence.atlassian.com/display/DOC/Viewing+All+Confluence+Spaces#ViewingAllConfluenceSpaces-ViewingSpacesintheSpaceDirectory) for more details.

You may also want to check out the [Subspace Plugin](https://plugins.atlassian.com/plugin/details/194):
> The plugin provides functionality to organize spaces hierarchically in spaces and sub-spaces

The [RefinedWiki Original Theme](https://plugins.atlassian.com/plugin/details/15231) also allows you to organize spaces in a hierarchy.

comments: author: David Keaveny
body: The [Spacetree plugin](https://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDIQFjAA&url=https%3A%2F%2Fmarketplace.atlassian.com%2Fplugins%2Fcom.simplenia.confluence.plugins.spacetree&ei=qHJJUJKgLKmViAf_v4HgDQ&usg=AFQjCNGWxrh93zaVzT9-AEKZLV6_DLXl6A) also allows you to achieve this.


Tags: organization

space