youngmon/atlassian-qna huggingface dataset:
override confluence vm files
Asked by Pinkel Gurung:

Is there a way to override default vm files in confluence.??


Answers:
author: Fernando Horn[MLV Consultoria]
body: Hi Ben,

I think what you want is in this answers: [https://answers.atlassian.com/questions/5737/how-to-override-velocity-templates](/questions/5737/how-to-override-velocity-templates)

If not, please, comment here and i will help you to find another solution :)

Thanks.

comments: author: Pinkel Gurung
body: I did go to that page before i posted my question but the link on that page was not much help. I tried the code below bt that didnt work either.  
`<layout key=``"main"` `name=``"Main Decorator"` `class``=``"com.atlassian.confluence.themes.VelocityDecorator"` `overrides=``"/decorators/main.vmd"``>`  
` ``<resource type=``"velocity"` `name=``"decorator"` `location=``"resource/myNewVelocity.vmd"` `/>`  
`</layout>`


author: Herberts Mark?ns
body: As a comment in that link says:"The only way to modify something like menu-macros.vm is to hijack the other vm file that is executing it, and have your hijacked version include your modified version of the vm file instead. And to hijack a vm file, you need to hijack the XWork Action that is pointing at that .vm file. And for that, you need the Conveyor Plugin."So you have to get that plugin, find the appropriate action and hijack it.


Tags: app

confluence-app

velocity
External Content Macro to Screencast video
Asked by Jason Turner:

I would like to embed videos in our Confluence pages.

Currently the videos are hosted on [screencast-o-matic.com](http://screencast-o-matic.com) (great product by the way)

I have not had any luck using the external content macro. Perhaps there is some other method or the external macro is not compatible with screencast.

**Link**

<http://screencast-o-matic.com/watch/cIhQoXVO47>

**Embed**

\<iframe width=1024 height=608 frameborder="0" scrolling="no" src="http://screencast-o-matic.com/embed?sc=cIhQoXVO47\&w=1024\&v=3"\>\</iframe\>

Any suggestion would be apperciated.


Answers:
author: Felipevsw
body: Have you tried this: <https://marketplace.atlassian.com/plugins/net.artemissoftware.screencast-widget-connector>

comments: author: Jason Turner
body: Unfortunately because I am using On Demand I can't use this plugin. Also I am using [screencast-o-matic.com](http://screencast-o-matic.com) which is different than [screencast.com](http://screencast.com) so it doesn't support my site. I may just end up uploading them to YouTube. Thank for the suggestion.


author: Felipevsw
body: Oh, I wasn't aware that your Confluence is OnDemand. Then yes, you can not install any plugins, since all supoprted plugins are already installed.

Widget Connector macro supports Youtube, so that'll work.


Tags: cloud

confluence-cloud
User who modified page for every confluence page?
Asked by James Roberts:

Is there a way to be able to get a report of the last modifer for every confluence page in the system?


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) will produce a csv file that contains that information using [getPageList](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-getPageList) action. It will take a while on larger installations :).

```
--action getPageList --space @all --outputFormat 2 --file pages.csv
```

If you want it on a Confluence page, use the same with the [CLI Plugin for Confluence](https://bobswift.atlassian.net/wiki/display/CCLI) with the [CSV Macro](https://bobswift.atlassian.net/wiki/display/TBL/CSV+Macro) - see [How to get page information for all pages](https://bobswift.atlassian.net/wiki/display/CCLI/How+to+get+page+information+for+all+pages)


Tags: confluence-administration
Problem with Confluene Upgrade
Asked by Robert M:

I'm trying to upgrade our Confluence environment from v3.5 to v4.0 (eventually, to v5x) and I'm running into a strage error on startup.

The catalina.out file just shows "INFO: Server startup in 1008473 ms"

In the browser I get:
> Unable to start up Confluence. Fatal error during startup sequence: confluence.lifecycle.core:pluginframeworkdependentupgrades (Run all the upgrades that require the plugin framework to be available) - com.atlassian.confluence.content.render.xhtml.migration.exceptions.MigrationException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.owasp.validator.html.ScanException: java.io.IOException: The character '' is an invalid XML character

I have not been able to find any information on where to look for this error.


Answers:
author: Felipevsw
body: There are some known issues when trying to upgrade from a certain version to another.

What is known to work well is to upgrade from Confluence version 3.5.17 to version 4/5.

So first, upgrade your Confluence 3.5 to the version 3.5.17, then upgarde to version 4.

comments: author: Robert M
body: We had upgraded to 3.5.13 (from 3.3.3) so I wasn't sure if we needed to go higher at the 3.5 level. I'll download 3.5.17 and do that upgrade first then try the 4 again.

Is there any value of going to 4.0 first or is it safe to go directly to 4.3.7 from 3.5.17??


author: Robert M
body: Thanks Felipe, by going to 3.5.17 first, I was successfully able to upgrade to v4.3.7

Now the process of finding all the features and functions that no longer work can begin ;)


author: Felipevsw
body: It's safe to go to the latest version. I've already jumped to the latest 5 version from 3.5.17


Tags: confluence-administration
Uploading Camtasia video output to Confluence
Asked by Serena Ma:

I am creating a screencast with Camtasia and am would like to upload it to Confluence to share with my team. I tried publishing as MP4 and upload to Confluence but it gave me a blank page - what plugin / settings do I need to make it work? (we are using IE 8 and Confluence is hosted within an enclosed network without internet access)

Any idea on:

- what plugin do I need to get the video work in Confluence? - will need to download it separately and load it to the enclosed server

- if anyone has used Camtasia before, what is the best format to publish the video if it is to be uploaded to Confluence? Ideally I'd like to use flash / quicktime as the other formats are far to big after published... but in Camtasia 8, it no longer allows publishing to a swf directly.

Many Thanks!

<br />

Serena


Answers:
author: Jason Plumhoff
body: If any of the videos are of significant size, you might be better off uploading them to YouTube and using the widget connector to display them. Larger videos tend to work better when streamed, rather than waiting for them to load before playing.

comments: author: Serena Ma
body: My video is around 7-10 MB... but since the server that hosts Confluence is enclosed (no internet access) streaming is not an option for us.


author: Jason Plumhoff
body: Those are pretty small - you're probably ok without streaming.


author: Ellen Feaheny [AppFusions]
body: Few ideas:

* Try saving out as another format - and see if same issue?  
* For sanity sake, did you try another browser, like Chrome or FireFox just in case?

\> My video is around 7-10 MB

* Double check with your admin that you can have attachments that size.

<https://confluence.atlassian.com/display/DOC/Configuring+Attachment+Size>


author: CelsoA
body: Hi Serena,

Actually you don't need any plugin, all you need to do is add a content as Multimedia type encoded in one of the folowing formats: "SWF, MOV, WMA, WMV, MPEG, MPG, RAM, RM, MP3, MP4, and AVI".

This is documented on this link:

<https://confluence.atlassian.com/display/CONF43/Embedding+Multimedia+Content>

Regards.

comments: author: Serena Ma
body: I used insert \> Other macros \> mutlimedia

but the media didn't load up - sometimes it loads up, but then says it can't access the file.

In the link above, under point 2 notes '**You will need the relevant multimedia plugin for your browser'**. That's why I'm wondering if I need a specific plug-in to make it work?

Many Thanks again!!

Serena


author: Serena Ma
body: just to add more info, we are using Confluence 4.3.7


Tags: multimedia

video
How to allow collaboration on a page?
Asked by nutmix:

Confluence is great at editing a page, but our staff universally hate it for its limiations and we have had to cancel the subscription.

One of the main gripes is that there seems to be no way for a group of people to see and edit the same page. For example, we ahve a space for each dept, e.g. one for HR, one for Dev, one for Project Management etc.

Now a group of peole spanning these departments needs to work on a page, e.g. a new legal policy or hr policy.

If the page resides in one of the spaces, there is no way to allow others to see it, without giving them permssion for the entire space. I.e. when you look at the permission of a page, you can only restruct it further, not open it up.

Is there anyway round this?

Obviosly, we could setup a new space create and new group with those relevant people in, or make everything public, but neither of these solutions is tenable for every ad-hoc cross department document. So we are using google docs more and more, which is a shame.


Answers:
author: Ramiro Pointis
body: Hi, sadly by now I'm not aware of anything that can make this work. It really is a shame because it's something very important. Should be something like page restrictions (<https://confluence.atlassian.com/display/DOC/Page+Restrictions#PageRestrictions-TheConfluencePermissionsandPageRestrictionsHierarchy>) but the opposite (allowing pages).

I'm sure you are aware of this:<https://jira.atlassian.com/browse/CONF-5095> but just to encourage people on keep pushing for this to work out.

Cheers.


Tags: page

permission
Redirect my ondemand domain name to another domain name
Asked by Gabriel Viger:

Hi,

I would like to redirect my ondemand domain name to another domain nam. Is it possible ?

ie. \[name\].atlassian.net to [docs.\[name\].com](http://docs.%5Bname%5D.com) ?

Thanks!

Gabriel


Answers:
author: Felipevsw
body: Hi, Gabriel!

Changing domains and/or setting up redirects can not be done at this point. More info can be found on the Restricted Functions on Atlassian OnDemand page: <https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand>


author: Marlon Aguiar
body: Hello Gabriel!

There's an open improvement request regarding this, I strongly recommend you to vote for it since the more activity it gets the sooner it will be implemented: <https://jira.atlassian.com/browse/AOD-5311>

Regards,  
Marlon


author: Rodrigo Girardi Adami
body: Hi Gabriel,

Honestly I don't know if this is possible. I recommend opening this question to the ondemand support so they can answer precisely if this is possible or not.

I hope this helps!

Rodrigo


author: Gabriel Viger
body: Thanks guys!


Tags: cloud

confluence-cloud
Automatic emails - new forum topics
Asked by Paul Waldron:

Can I setup a group of users that recieces an email everytime a new topic is added to a particular forum?

Thank you,

Paul


Answers:
author: BernardoA
body: While reading the plugin's documentation I found something similar that may help you achieve your goal on this page:

<http://www.adaptavist.com/display/Bubbles/Forums>


author: Paul Waldron
body: Thank you Bernardo, I could not find any information here on a group getting an email automatically sent to them when a new topic is being added to a forum.

One way may be to add watchers to the forum page but it does not automatically add the watchers to the children pages. Does anyone know if this is possible?


author: Paul Waldron
body: Hi John, I am using confluence 4.3. The forum has been created using the bubbles plug-in.

Thank you


author: John Chin
body: Hi Paul, may I know the question that you asking is refer to which Atlassian product?


Tags: community-forums-for-confluence

email

forum
how to convert a blog post to a page?
Asked by Nic Hart:

we have quite a bit of content in blogs that work well as page content, or would if it could easily be imported.... It seems crackers to have to cut'n'paste between identically formatted screens


Answers:
author: Anthony Pelosi
body: There's a Jira for going both ways: blog post to page and vice versa. Vote for it here!

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


author: m
body: Hi Nic,

A simple thing to do is include the blog post in the page with Confluence's **Include Page** macro. Then, you get to keep the blog post and create a new page.

Mary

comments: author: Nic Hart
body: thanks but i need 'full citizenship' - edit, move, export as other content. The import macro is great for it's purpose (and thanks for pointing it out!). But my users use blogs as initial/ad-hoc work spaces - perhaps because they don't want to have to think about taxonomy in the initial heat of the moment. I don't know what I am missing - but a blog feels like a regular page in every respect other than parentage! - surely atlassian society should allow adoption rights for all suitable parents :-)


author: m
body: I see your point. It is almost like you want a "create page from blog post" function.


author: Nic Hart
body: if we're 'solutioninizing' - then my vote would be to include blog pages in the view page hierarchy, and allow them to be moved into the main tree. Simples! (as we say in the UK!)


author: m
body: You threw a spanner in the works with *solutioninizing*. Simples didn't even register. :-D


author: Mick Davidson
body: 'solutioninizing'? Aaaagh! :)


author: Amit - Blue Sheen
body: We're having this pain right now, and a right pain it is too. Exporting spaces does not export blog posts, which compounds this problem.


author: Fabio Genovese
body: may be a solution??

<https://marketplace.atlassian.com/plugins/com.ir.integrated-research-plugin/versions#b100200>


author: Nic Hart
body: The short answer is that, as of rel 5.1, you can't do this. (Though I'm not saying there aren't any add-ons or back-end database which might work - only that no one has pointed to any such.)
Setting CSS counter from Confluence Page
Asked by avic:

We are using counters in our CSS for numbering sections subsections, etc.

We want to use h1 as the chapter number, and since each confluence page is a chapter in our 'book', we want to reset the CSS counter for h1 from the Confluence page so that we can manually define the chapter number.

So the CSS currently has something like:

```
.wiki-content h1:before {  counter-increment: h1counter;}.wiki-content h2:before {  counter-increment: h2counter;  content: counter(h1counter) "." counter(h2counter) ". "}
```

Is it possible to insert some \<div\> or other code in the Confluence page, so that we can override and set the value of h1counter = 4 using counter-reset ? Then we can use the same stylesheet, but in the Confluence pages we can define the chapter number manually for that page.


Answers:
author: Sean Curtis
body: If you're using OnDemand then you can use a {style} macro to bump the counter on each page. If you're running your own instance then you can get the {style} macro via the [Adaptavist Content Formatting Macros plugin](https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.contentFormattingMacros).

You can do:

```
{style}.wiki-content h1 {    counter-increment: h1counter 4;}{style}
```

Then on the next page you could bump it to 5, then 6, and so on.

comments: author: avic
body: Thank you, that worked exactly as desired.

-v


author: avic
body: No - I don't want it to always start at 4 (that was just an example). I want it to be settable from each Confluence \*Page\* in the space (since each page is a chapter, I want h1 to be the chapter number and manually set the value of h1 in the CSS from the Wiki page.


author: Sean Curtis
body: Do you only want it to start at 4 for specific pages?

You can start a counter at 4 by doing:

```
.wiki-content h1 {    counter-reset h1counter 4;}
```

Also - you don't need to specify the counter-increment using **:before** - same with the h2. I'd do this instead:

```
.wiki-content h1 {  counter-increment: h1counter;}.wiki-content h2 {  counter-increment: h2counter;}.wiki-content h2:before {  content: counter(h1counter) "." counter(h2counter) ". "}
```


Tags: css

numbered-heading
TOC to a shared page??
Asked by SallyD:

I have several customer-facing spaces that share content from another space. Yep, lots of Page Include macros. Now I need to add a bit of help content to get my non-wiki customers (and co-workers) more comfortable. I'd like to create the help in the Shared Content space and simply provide a TOC on each customer space. The default TOC macro works only on the current page. Does anyone know of another option, macro, or idea on how to accomplish this?

Thank you


Answers:
author: m
body: You could try adapting this macro:

<https://confluence.atlassian.com/display/DISC/Spaces+listed+by+label+with+Children>
Lost, any help is very appreciated
Asked by Gabriel Esparza:

Can anyone shed some light on the following error. Error snippet below. Full log at <http://pastebin.com/xWf4EaDg> . Thanks.

2013-05-08 15:18:09,257 ERROR \[main\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fullDidYouMeanIndexBuilder' defined in class path resource \[indexingSubsystemContext.xml\]: Cannot resolve reference to bean 'didYouMeanLuceneConnection' while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'didYouMeanLuceneConnection' defined in class path resource \[searchSubsystemContext.xml\]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class \[com.atlassian.bonnie.LuceneConnection\]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: Failed to create searcher for directory: org.apache.lucene.store.SimpleFSDirectory@/var/www/confluence-data/index/didyoumean lockFactory=org.apache.lucene.store.SimpleFSLockFactory@57507544


Answers:
author: Joe Clark
body: Hi, it looks like you are running in to the problem described by this Knowledge Base article: <https://confluence.atlassian.com/display/CONFKB/Confluence+Fails+to+Start+with+LuceneException>

The suggested resolution is to rebuild your content indices from scratch: <https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch>

If you need additional assistance understanding what is exactly required in order to rebuild your content index in Confluence, please feel free to contact Atlassian support for help: <https://confluence.atlassian.com/display/DOC/Troubleshooting+Problems+and+Requesting+Technical+Support#TroubleshootingProblemsandRequestingTechnicalSupport-RaisingaSupportRequestwithAtlassian>


author: BernardoA
body: Did you noticed any misbehavior in Confluence?

As mentioned before try rebuild index from scratch, which basically is necessary to shut down the application and them delete the index directory located in the home directory...after that restart the Confluence.


Tags: confluence-administration
Automatising Tasks in Confluence - How?
Asked by Mick Davidson:

Star Date: Lost in Space

I'm in the process of re-designing the structure of one of our spaces (an internal user manual used by the development team), I've also got to re-design the page layout and make sure the content is up to date. And several other things...

To do this I shall copy the existing space and rebuild that. That's the easy bit, the rebuilding includes tasks such as:

* Taking existing pages and rebuilding them using a common template.
* Re-naming all pages to a short suffix.
* Moving pages en-masses.
* Identifying pages that have certain pieces of info missing.
* Identifying pages that have specific words.
* Adding labels based on the page's name and other criteria (assuming they've not been added).

Some of these are tasks will change the page in some way, while some simply produce lists.

Does anyone have any suggestions about how I can achieve any of this? I'm assuming this will involve writing scripts and will have help in that dept, and with running them too.

Thanks in advance.


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) can help you with your scripting.

comments: author: Mick Davidson
body: Bob,

Thanks for the info. I'll pass it on to the tech team as they're the ones who a) understand this sort of thing and b) will be writing the scripts. I may only be pushing the Go! button.

Cheers.


author: Daniel Borcherding
body: Hello Mick,

Bob has a great tool for this. I definitely recommend checking it out.

I did want to mention to you and perhaps to others that we have an out feature request to allow users to schedule their own tasks.

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

This focues around flushing the cache specficially, but it can be made to be much more boradly applicable.

I am adding this post to the ticket to further increase it's visibility.


Tags: automation

task
Read only Custom Field not appearing
Asked by Nikhil Srivastav:

I made a screen on which i want to insert a custom field which would be a read only field having comma separated values. I made a Read only cusotm field and placed it on the screen but its not coming.

I have also tried the field "Message Custom Field (for view)" and added some default values in it but that is also not coming on the screen.

Please help

Thanks


Answers:
author: Ramiro Pointis
body: Hi Nikhil, once you create the screen you have to associate it to the transition or the issue operation. Check this doc:

<https://confluence.atlassian.com/display/JIRA/Associating+a+Screen+with+an+Issue+Operation>

comments: author: Ramiro Pointis
body: Check if the screen with the field you created it's associated to an issue type issue operation or to a transition. It depends where you need to see this screen.


author: Nikhil Srivastav
body: Yes Ramiro, I have added tht in transition, The other custom field which i have added are coming except this one :(


author: Ramiro Pointis
body: In that case, you have to go to the Custom Fields on the admin section and then select configuration of the field you are trying to show and then check what issue types are marked to use this field and if it is selected the Global context (means applicable for all issues).


author: Ramiro Pointis
body: Here you have doc on how to do it:

<https://confluence.atlassian.com/display/JIRA/Configuring+a+Custom+Field#ConfiguringaCustomField-Context>


Tags: custom-field

read-only

screen