youngmon/atlassian-qna huggingface dataset:
Contributors macro does not display the creator of the page
Asked by Nicklas Kittelmann:

When including a contriboturs macro on the confluence page, it displays the last X persons that have edited the page. However, it fails to show who created the page. That seems like a bug to me. Or am I doing something wrong?


Answers:
author: Nicklas Kittelmann
body: Since this is how it seems to work right now, I concider it a bug. Therefor I created an issue at: <https://jira.atlassian.com/browse/CONF-27898>


author: MJ
body: Hi Nicklas,

I think any additions to the page made before, or at the same time the macro gets added to the page, are being ignored by the macro. When you create a new page and add the macro without adding any other data, it will display no contributers. If you would then edit the page, add data and save again, you will show up as contributer (also when you are the creator). I'm not really sure if we should rate this as a bug or not, but if you feel it should, please raise a support ticket for this.

Cheers,

comments: author: Nicklas Kittelmann
body: What I do is that I have the macro on a global template (togheter with quite a lot of more text). I then go into a Confluence page - press "Add page from template". I get a new page in edit mode with the contributor macro there. I write some more text on the page and press save. Then when I view the page no contributors are displayed.

So it's not about me not adding any text to the page. If that was the case then I could live with it easily. But now it's about me adding a new page from a template and adding lots of text to that page.


author: MJ
body: If you use the "add page from template" option, and end up in the edit mode, directly save without making any extra additions. After you have done this, you enter edit mode again, add all the data you want to the template and save. Now you will show up as contributor. The macro only gets triggered at the moment you save your page. When you place it on the page in edit mode, and made extra additions, it hasn't been triggered yet, and thus will not consider you to be a contributor yet. Any changes made after the first save will be recorded and processed by the macro.


Tags: cloud

confluence-cloud

contributor
Recursively watch a page
Asked by Nabil Sayegh:

Aloha,

how do I recursively watch a page and all it's descendants?

rgds


Answers:
author: Renjith Pillai
body: <http://www.adaptavist.com/w/Plugins/public/descendant-notifications/>


author: Martin Moser
body: If you are thinking about installing the Descendant Notifications plugin please be aware that it may send out wrong emails to your users:

<http://www.adaptavist.com/display/community/Strange+Email+Subjects+and+Email+Body>

[https://answers.atlassian.com/questions/14918/notifications-for-not-watched-space](/questions/14918/notifications-for-not-watched-space)

[https://answers.atlassian.com/questions/28404/watch-notification-emails-the-wrong-page](/questions/28404/watch-notification-emails-the-wrong-page)


author: Thomas Schlegel
body: Hi Nabil,

I think it is not possible out of the box. [There's an open issue for that](https://jira.atlassian.com/browse/CONF-2853)

Maybe you want to vote for it.

Cheers

Thomas
Moving file system location of Confluence attachments
Asked by Ishtiaque Omar:

Hi,

We are hosting Confluence on a server with two drives, C and D. All Confluence program and data files are on drive C. We are using the file system for Attachment Storage. We are running out of space on drive C and I'd like to move attachment storage to drive D. Can anyone kindly let me know if this is possible, if it requires me to move other Confluence files, and whether there is a guide that will help me achieve this?

Thanks,

Ish


Answers:
author: PeterKoczan
body: Dear Ish,

The attachments are stored in the *\<CONFLUENCE-HOME\>* folder. Moving only the attachments is not that easy, thus I would suggest you to move the whole *\<CONFLUENCE-HOME\>*folder.

For this:

1. Shut down Confluence
2. Copy the full contents of the *\<CONFLUENCE-HOME\>* directory to the new desired location
3. Modify the *\<CONFLUENCE-INSTALL-DIR\>/confluence/WEB-INF/classes/confluence-init.properties* file so that the *confluence.home* variable will point to the new location
4. Start Confluence

Please note the difference between \<CONFLUENCE-HOME\> and the \<CONFLUENCE-INSTALL-DIR\>. Also, you may need to [clear the plugin cache](https://confluence.atlassian.com/display/CONFKB/How+to+Clear+Confluence+Plugins+Cache) before starting Confluence again.

You may also want to take a look at this article: <https://confluence.atlassian.com/display/DOC/Confluence+Data+Directory+Configuration>

Kind regards,

Peter
Error "com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException"
Asked by aravind:

Hi All,

Iam trying to setup newer version of confluence in a linux machine,

When i change the confluence.cfg.xml to point the mySQL DB i get below error,

in the confluence.cfg.xml , iam changing as below,

\<property name="hibernate.connection.url"\> jdbc:mysql://localhost/confluence?autoReconnect=true\&useUnicode=true\&characterEncoding=utf8\</property\>

Error when i access the confluence URL.

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)

at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)

at com.atlassian.confluence.web.filter.LanguageExtractionFilter.getLocaleManager(LanguageExtractionFilter.java:63)

at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:48)

at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

I refereed to the below forums and deleted the cache , plugins but it did not resolve the issue,

<https://answers.atlassian.com/questions/94131/confluence-system-error-java-lang-nullpointerexception>

<https://answers.atlassian.com/questions/95478/oops-an-error-has-occurred>

Could any one please help in resolving this issue.

Thanks,

Aravind


Answers:
author: Ryan Goodwin
body: Hi Aravind,

You can try creating a new confluence.home, point the confluence-init.properties at this new location, then start the application. This will drive you through the setup process. Point the setup wizard at a new, empty database. Allow the setup process to run through and create the tables for this new instance. Once the setup process has completed, shut down that instance of Confluence, then modify the confluence.cfg.xml to point at the database you originally tried to point Confluence to, mentioned up above.

Depending on what system confluence is running on, your hibernate.connection.url should look like this:

\<property name="hibernate.connection.url"\>jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB\&amp;useUnicode=true\&amp;characterEncoding=utf8\</property\>

This of course is different for different systems as the special characters are represented differently.


Tags: administration

issue
AD login failed intermitted
Asked by Chino Rodriguez:

Hi,

Some user report when using AD login failed first time, after 2 minutes, it become normal. and it's intermitted for 1 or 2 times per week.

we have setup longer timeout for the AD auth. but seems the issue still present. thanks.

Regards,

<br />


Answers:
author: GuilhermeA
body: Hello CT,

Usually this happens when you have a and AD Farm, that is distance from the source, and this can cause the user to timeout on its login. If the Farm starts responding normally it goes back to normal (assuming that you have a farm).

This could also happen when you SSL, and the encryption times out, or the certificate timeout between the servers are too small, having a 1second delay to drop the packet and therefore close connection.

Either of those are just a theory, the best way to see this is to look at the logs, located at **\<confluence-home\>/logs/atlassian-confluence.log** and take a look, it usually helps to get a better picture of what the error is. If there is no errors, then it means that its outside Confluence.

Hope this helps you.

Cheers,

Guilherme
Confluence default restricted
Asked by Jiannan Tang:

Hi:

When I create a page, I hope the default restricted only creater can view and edit.

How to config this.

Thanks!


Answers:
author: Jeison
body: Hi there,

I'm afraid this won't be possible for now, since this feature can be covered by default space permissions. For more information, see <https://jira.atlassian.com/browse/CONF-27498>

Cheers!


Tags: restriction
{table-plus} content was all dumped into {wiki-markup} tags on upgrade
Asked by Rachel Dunlop:

We use the {table-plus} macro extensively throughout our wiki, and when we upgraded to 4.3 from a much older version, all our table-plus tables have been dumped into wiki-markup blocks, so we can ONLY edit it in wiki-markup which many of our users (read: most) can't comfortably edit them.

Is there any script or something we can run to migrate these back into the table-plus macro correctly? New pages work fine and I've updated all our templates which didn't work either but we still have many pages that are munted now.


Answers:
author: Michael S
body: You should be able to get around this by:

1. Updating your Table Plus macro to the latest version (if you haven't already)  
2. Re-running the content migration: Re-attempting the migration -- for content in 'unmigrated-wiki-markup' macro

If a macro is in an older format that isn't compatible with Confluence 4 it'll be saved in these wiki markup blocks, but once the macro is updated it should be sweet.

Let us know how you go.

comments: author: Rachel Dunlop
body: 1. We already have updated the Table Plus macro to the latest I believe, (I'm not an admin of the Confluence instance) but we still have the issue. Recreating the macro works fine as I mentioned but there are too many pages to fix to do this.

2. If it was unmigrated content, would the tag its wrapped in by "unmigrated-wiki-markup" exactly, because we don't have that, we have "wiki-markup" only. I'm happy to suggest we reattempt the migration if thats definitely a safe operation to perform! This is a big wiki with a lot of users and we really can't afford to lose stuff!


author: Bob Swift (personal)
body: I would suggest you have your Confluence admin check the server logs for errors. Confluence should be migrating all the unmigrated markup. Restarting Confluence should restart another round of migrations. You can [open an issue](https://bobswift.atlassian.net/browse/TBL) once you have some more information.


author: Rachel Dunlop
body: Thanks very much Bob, this answer plus the one you posted on the Migration page are really helping us to demystify what the problem might be! Will keep you posted. :)

P.S. We love your table-plus macro very much here! Great work!


author: Bob Swift (personal)
body: Ok, I thought it was you on the other page :). There have been lots of migrations of the table plugin over the last 6 months or so without this kind of problem being reported, so I expect your issue will clear up as well - hopefully just a glitch in the Confluence migration processing.


author: Rachel Dunlop
body: Just an update, we haven't yet been able to try the remigration so I can't yet call this question answered. Will post our findings!
Is there a function to add hyper link automatically?
Asked by Jinwen Xia:

Hyperlink the keywords to the corresponding page.

e.g.: we create a new page "Corporate Action" which has a sentence " Rights Issue is a kind of corporate action". We also has an old page named " Rights Issue" in the Confulence . Is it possible to add a hyper link on the words "Rights Issue" to the page " Rights Issue" automatically?


Answers:
author: Bhushan Nagaraj
body: Something for you to look at although the document is pretty old

<https://confluence.atlassian.com/pages/viewpage.action?pageId=188785>


Tags: automation

link
Global Custom CSS for Confluence
Asked by eKyNoX:

Hello,

following tutorial : <https://confluence.atlassian.com/display/DOC/Basic+Styling+Tutorial>

Activated in Security Admin page : Custom Stylesheets for Spaces (for Spaces Only ???)

Trying to rewrite #header in Look \& Feel \> Stylesheet

```
#header {  background-color=#326CA6;  }
```

No changes, why please ?


Answers:
author: eKyNoX
body: Finally I got modify header by using custom html field in admin panel :

\<style type="text/css"\>  
#header {  
background-color:#326CA6;  
}  

\</style\>

Thanks anyway
JIRA Misc Custom Fields plugin - formatting?
Asked by Richard S:

I'm using the JIRA Misc Custom Fields plugin within Confluence to calculate some things between other custom fields. The result of the equation is a float, which display just fine, however I want to be able to format the output so that it only shows 2 decimal places.

Not being a java bod in any shape or form, could somebody tell me how I would force the format to 2 decimal places please?


Answers:
author: Richard S
body: Figured it out - the code is not what I am intending to do, just a simple way of proving that I can do something more complex. =)

```
&lt;!-- @@Formula: import java.text.DecimalFormat;import java.text.NumberFormat;double estDiff = 0; estDiff = issue.get("timeestimate");estDiff = estDiff / 3600;NumberFormat formatter = new DecimalFormat("#0.00");return formatter.format(estDiff);--&gt;
```


author: Nic Brough -Adaptavist-
body: It's not something you can do in the UI I'm afraid.

If you were willing to pull apart the plugin and recompile it, you can do it with a bit of "velocity" - these are templates which determine the html that comes out. The result you're seeing is probably rendered with a simple "if $value, then show $value" type line of code, which you could change to "if $value, then show $value.format("%.2g%n") "

Or you might try injecting some javascript to format it as the browsers render it (I'm less sure on the code for that)

comments: author: Richard S
body: The documentation for the plugin states it can be formatted ...
>
> ##### Custom formatting {#toc-hId-1058831104}
>
> You can also specify custom formatting for the value of the Calculated Number field. In the Description field, add your formatting formula using the following syntax:  
>
> |--------------------------------------------|
> | `<!-- @``@Format``: formula goes here -->` |
>
> The formula itself is a Java-style expression that can reference the *value* returned by the formula using the *value* variable. You can also use the *numberTool* object to format the number value:  
>
> |----------------------------|
> | `numberTool.format(value)` |
>
> \<h6\>Example\</h6\>
>
> To display an icon to the left of the field value depending on the field value:  
>
> |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | `<!-- @``@Format``:` `if` `(value > ``21``)` ` ``return` `"<img src='/images/icons/priority_trivial.gif'> "``+numberTool.format(value);` `else` `if` `(value >= ``10``)` ` ``return` `"<img src='/images/icons/priority_major.gif'> "``+numberTool.format(value);` `else` ` ``return` `"<img src='/images/icons/priority_blocker.gif'> "``+numberTool.format(value);` ` ``-->` |

I just can't figure it out - at least, not in the amount of time I have :-(


Tags: confluence-app

format
Upgraded QA confluence to 4.3.3
Asked by Shilpa M:

however the in-app notification is erroring out with system error- number format exception. I have teh inapp notification enabled in confluence admin btw.

CAn you tell me what the error is


Answers:
author: Ryan Goodwin
body: We are working with Shilpa on <https://support.atlassian.com/browse/CSP-94801> to resolve this.


author: Nic Brough -Adaptavist-
body: Nope. There's no way we can debug your Confluence without you giving us information about the error - please look in the logs and find the section where it went wrong and tell us about that.

Also, explain which function you mean by "in app notification"?


Tags: email
Is Confluence 2.10.2 compatible with Postgre SQL 9.x
Asked by Dave Prigg:

We are upgrading PostgresSQL from 8.1 to 9.x as part of our JIRA upgrade. I would like to move our older confluence version to PostgreSQL 9.x as well. The documetation for this version indicates that it supports PostgreSQL up to version 8.3. Are there any know issues that would prevent us upgrading the confluence database to PostgreSQL 9.x


Answers:
author: Bruna Griebeler
body: Confluence 2.10.2 supports[PostgreSQL 8 until 8.3](https://confluence.atlassian.com/display/CONF210/List+Of+Supported+Databases).

Since this version of Confluence is old and [already unsupported](https://confluence.atlassian.com/display/Support/Atlassian+Support+End+of+Life+Policy), I reccomend you to first upgrade Confluence to a version 4.3.x, where [PostgreSQL 9 is already supported](https://confluence.atlassian.com/display/CONF43/Supported+Platforms).

Cheers!

comments: author: Dave Prigg
body: Hi Bruna

Thanks for the reply. That would be the best route but unfortunately I will not be able to upgrade Confluence until after JIRA so I will need to upgrade its db to at least PostgreSQL 8.4 in the interim.
How do you add a banner with links above the page title?
Asked by David Kanenwisher:

I have a set of API documents that are specific to each version of the API they were created for. I followed Atlassian's [Managing the Life Cycle of your Technical Documentation](Managing%20the%20Life%20Cycle%20of%20your%20Technical%20Documentation) page to get it all setup. I got it all working as per the instructions, but it didn't include instructions on how to add the banner at the top of the page like Atlassian has on theirs.

If you click the link above you'll notice a grey banner at the top of the page that says 'Confluence Latest -- This documentation is for Confluence 5.0 developer (EAP) releases only. Not for you? See the Confluence OnDemand documentation. For the latest downloadable release, see the documentation for Confluence 4.3.x. Earlier documentation is available too.' I tried recreating this using the info macro, {info}, but when I did that my links stopped working. Does anybody know if there's a different macro or some other cool trick I should use to add that banner at the top?


Answers:
author: David Kanenwisher
body: I suspect you might be looking for the Space Jump macro (<https://confluence.atlassian.com/display/DOC/Space+Jump+Macro>).Add this to the Header section when configuring the Documentation Theme - <https://confluence.atlassian.com/display/DOC/Configuring+the+Documentation+Theme#ConfiguringtheDocumentationTheme-ScreenCustomised>Apologies if this is not I'm not available in the OnDemand versions of confluence, I don't use those versions, however as it is part of the documentation theme I suspect it is.

comments: author: David Kanenwisher
body: This very nearly worked, except that the links don't render as links instead I see the wiki markup like so: \[API Documentation 2011-10-10 (Latest)\|API Documentation Home\]. If I don't wrap the links in an {info} or {note} macro the links work correctly but then I don't get the highlighted banner. I supect this has something to do with using confluence ondemand but I can't find any documentation to confirm that.


Tags: cloud

confluence-cloud
Installer Distribution / WAR Distribution
Asked by Soporte Interno:

Hello, we recently purchased a license of JIRA. We currently have version 4.1.1 installed (WAR distribution) over CentOS Linux and need to migrate to version 5.2.4.1.

We are thinking of reinstall our Server using the Installer distribution instead of WAR distribution, keeping our LDAP connection and our data.

Thinking about the benefits of using the installer distribution, here\`s the question:

Does the installer distribution has an automatic upgrade option? I m talking about some feature that you can autmatically upgrade the version of JIRA.

Thanks!


Answers:
author: Dave C
body: I would highly recommend using the standalone installer over the WAR installer. The WAR installer is more difficult to configure, upgrade, maintain and support. You could upgrade your current instance with the following docs:

<https://confluence.atlassian.com/display/JIRA/Upgrading+JIRA+Manually>

Whilst the installer doesn't have an inbuilt upgrader, you can use later versions to upgrade the instance for you instead of installing a new version. With WAR, you would need to download the WAR, rebuild it (along with modifying some of the libs manually as per the install docs) and move it to the webapps directory then restart Tomcat. The installer will do all of this for you.

comments: author: Soporte Interno
body: Thank you all for your responses.

As much as I wish there was an automatic upgrade option, I understand that there is not. Still, I understand the advantages of the installer, so I'll go for that distribution.

Regards.


author: Zul NS _Atlassian_
body: BIN installer can help you upgrade your instance easier, although you will still need to download the BIN file to run the upgrade. More info, here.


author: Rahul Aich [Nagra]
body: UNfortunately not, the installed version still needs to be upgraded manually.

You would need to take xml export, install new jira version, re-create old configurations and import the xml.

The documentation we have on upgrade processes are very exhaustive.

Rahul


Tags: ear-war

install
What is the best way to Migrate our data from a Confluence version3.2 to 4.3.6.
Asked by Jacob Fraser:

I have tried a few things.

1) backup space in xml and import it over. this fails every time with duplicate entry error for mysql.

2) I created a same version confluence 3.2 and imported that data over.. it failed at 90% saying error finding a producing a stream for export properties. I did try to move attachments with this backup and I just read that it might be better to just copy them over to a new site. If I ever get this to go 100% I was going to try and upgrade it in place. The problem I see with this approach is it seems backing up a space does not bring over all the customer macros used and plugins... do I have to manually re-install all these?

Is there a way I can just clone a mysql database and then I would have everything ? spaces.. user macros.. plugins??

<br />


Answers:
author: Jacob Fraser
body: I have recieved great emails. I think the route I will take is to try and clone the database with mysqldump and copy directories then try and upgrade my new server that I cloned at version 3.2 to version 4.3. I will then try and use confluence to backup spaces and pages and using these zip files import them into a clean 4.3 build.


author: LucasA
body: Hi Jacob,

This error is occuring because you can only move spaces XML files between installation using the same Confluence version. To perform this upgrade, you have to proceed with database and home folder import.

Please take a good look into this document here: <https://confluence.atlassian.com/display/CONF43/Upgrading+Confluence>.

I believe that here you'll find all the necessary info to get this upgrade done.