youngmon/atlassian-qna huggingface dataset:
SharePoint Document Link macro does not find any document
Asked by Sebastien Boudreau:

We successfully integrated sharepoint and confluence. The following features work well:

- The sharepoint list macro in Confluence

- With the search box in Confluence, I can search content in Confluence and Sharepoint (results are displayed in sharepoint)

- In confluence, I can search content in both Confluence and Sharepoint

However, we have not been able to use the SharePoint Document Link macro. It always answers No search results


Answers:
author: Joe Clark
body: Hi Sebastien,

What version of the SharePoint Connector do you have installed? There were a number of problems with the SharePoint Document Link macro that have since been solved with updates to the product.

Please try downloading and installing the latest version of the SharePoint Connector to see if that resolves your issue.

If an update still does not solve your problem, we'll need additional information to diagnose your problem. You may need to provide your Confluence log and SharePoint log for analysis. If you do not want to share this log information in a public forum, you'll need to create a new support ticket on <https://support.atlassian.com> so that the Atlassian support engineers can look at your log files.


Tags: connector

sharepoint
[CONF] Is there a way to randomly generate a number in Velocity for a User Macro?
Asked by Steve Goldberg:

Basically I want to know if there's a way to pull in a randomly generated number. I know I can do it in JS, just wondering if there's a way of doing it in Velocity.


Answers:
author: Matthew J. Horn
body: Just a thought, but can you get the time, in milliseconds in a macro? If you could do that, you can take the last digit. That should be random between 1 and 0, shouldn't it?

comments: author: Steve Goldberg
body: It's funny. I forgot I posted this and then came back to the boards to search for answer and lo and behold, this is the best answer.

The random number method that was mentioned below didn't translate to anything but this method works.

The only thing to note is that you can only use it once per User Macro call (or so it seems). So if, like me, you're using this for IDs then you'll have to consider if this right for you. However, it works for me because I am only calling it once per macro (and then calling that macro several times in a page).

Thanks Matthew!


author: Matthew J. Horn
body: heh, since then I found a way to generate random numbers in a VM file with the MathTool class.

Add the org.apache.velocity.tools.generic.MathTool class to the Velocity context -- instructions are here (you'll need to modify the XML file to get the Math class rather than the Sorter that the instructions use): https://answers.atlassian.com/questions/62575/use-of-velocity-generic-tools-in-a-page-decorator


author: CharlesH
body: I've used this approach in several user macros to help make unique names for elements:

```
#set($someUniqueId=$action.random)
```

It generates a number with between 8 and 10 digits which appears to be random. The getRandom() method for the Action object was deprecated some time ago according to the documentation, but it does not mention the "random()" method.

[http://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/core/ConfluenceActionSupport.html#getRandom%28%29](http://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/core/ConfluenceActionSupport.html#getRandom%2528%2529)

```

```


author: AndrewA
body: Yes, the mathtool class has a Rand() function for velocity templates

<http://velocity.apache.org/tools/devel/generic/MathTool.html>

Cheers,  
Andrew

comments: author: Steve Goldberg
body: Thanks, but I can't seem to call it in a user macro. What's the correct notation? I tried $math.random(1,10) for a random number between 1 and 10.


author: AndrewA
body: ah, in a macro I'm afraid that can't be done by default. Bellow is a link to the context which are provied in the user macro creation process.

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

And unfortunatley, the Math class is not among them. The only way this could be done is if we overrode the class that creates context by defualt in Confluence and added the math class...which I am not sure how to do myself


Tags: macro

user-macro

velocity
Menu Point Manage Plugin disappeared after upgrading UPM
Asked by Thye:

after upgrade to a new plugin manager the menue point "Manage Plugin" is not available anymore.

Confluence 4.2.6


Answers:
author: AlysonA
body: Hi Allister,

Can you confirm you upgraded UPM to 2.7.7? If so, you should have a new link to plugins called "*Manage Add-ons".*Can you confirm you have such link in the Confluence Admin section?

Cheers

comments: author: Thye
body: Yes, it s now "Manage Add-ons"

THX
Can we make the user log in only when adding a comment in Confluence?
Asked by Karina Clemente:

Can we make the user log in only when adding a comment?


Answers:
author: Florin Manaila
body: Have you tried setting the "Add comments" permission only to confluence users and not to Anonymous?

comments: author: Karina Clemente
body: I tried that but did not work. Thanks anyways


Tags: login
Confluence migration from 4.0
Asked by Steve Parkinson:

We were hosting our own confluence 4.0 and chose to migrate to On Demand.

Jira went perfectly.

However Our backups and even single Space exports just will not import.

We have the files in our WebDav folder

Help! this is preventing us from using On Demand.


Answers:
author: Mark Hrynczak
body: Your local Confluence instance is v4.0 while OnDemand is using Confluence v5.0. This is probably causing your problem.

You will need to import your site's data into a local v5.0 instance first, and then import spaces into OnDemand from there. You can download the installers from <http://www.atlassian.com/software/confluence/download-od>

The full process is documented at <https://confluence.atlassian.com/display/AOD/Importing+wiki+data>

Cheers,  
Mark


author: Nic Brough -Adaptavist-
body: What errors are you getting?

Have you got in touch with Atlassian support about this?


Tags: cloud

migration
Cannot edit or create page content
Asked by Icap Media:

I just installed Confluence and imported users from JIRA.

But when I create a page it brings me to the page editor where I can edit the title but I cannot effect the body content. The editor is completely disabled.

Also on the tutorial which came with the product it told me to edit the page I was on. When I clicked edit, a blank page appeard.

Is this a bug?

Edit:

I receive the following error when loading the page

"parsererror: TypeError: AJS.Confluence.PropertyPanel.Macro is undefined"


Answers:
author: LuizA
body: Hello There,

Not a bug, but probably a specific problem that you're experiencing, as a first approach please try to rebuild the content indexes by the following procedure:

<https://confluence.atlassian.com/display/DOC/Content+Index+Administration#ContentIndexAdministration-RebuildingtheContentIndexes>

If doesn't work I would suggest you to raise a support ticket at our [Support.atlassian.com](http://Support.atlassian.com) and attach your support zip to further investigation.

Best Regards,

LJ.

comments: author: Icap Media
body: That didn't help.

When I click on the Add Comment icon for a page, I get the following error

"parsererror: TypeError: AJS.Confluence.PropertyPanel.Macro is undefined"

When I load any page, I get the same error in firebug console.

Looks like a bug? Should I create a support ticket?
Multiple NS entrys setup with JIRA Gadgets
Asked by sandro gehrig:

Hy all

We previously added a second ns entry in order to make our confluence Wiki accessable in another network and domain (using a proxy). So we got:

[wiki.bnc.com](http://wiki.bnc.com)

and

wiki.int.bnc

both of them are accessed and used, and it works. The Problem now are the JIRA Gadgets:

Because JIRA is in the int.bnc domain and in another network, there is no access via [bnc.com](http://bnc.com).

If we make it accessible, what application link should I then set in order to make it work on both sites? I guess it is only possible to make this work for one URL because the application link only works with one.

In Addition the base-url now is 50% "wrong", and this is where i already had problem while setting up the JIRA gadgets.

If anyone did understand, is there a possible solution?

Regards

sandro


Answers:
author: Nic Brough -Adaptavist-
body: Jira and Confluence can only have ONE base url each. You need to use them on that one url.

Now, that only applies to the server side - if you have something in front of it, then you can rewrite the urls as much as you want (e.g. Apache), but you need to make sure that whenever does it always directs traffic to that one url.

comments: author: sandro gehrig
body: Allright thank you Nic, I'll then configure the proxy to rewrite the url.

Now, while using those JIRA Gadgets over a Trusted Application Link, the requests to JIRA are sent from the client and not from the wiki instance, right? If so, if I acces

[jira.bnc.com](http://jira.bnc.com)

[wiki.bnc.com](http://wiki.bnc.com)

from the "outside" but both base urls point to \<instance\>.int.bnc. The [bnc.com](http://bnc.com) ones will be rewritten by the proxy.

Now I open a wiki page with JIRA Gadgets, but they are configured for jira.int.bnc where my client from outside doesn't know who this is, so again it will not work.

Long story short:

* do I have to configure the Gadgets to use the [bnc.com](http://bnc.com) in order to make it work for both sides?
* And, would I have to configure the application link the same way?
* Can Gadget and Application Link use different URL?

Thanks in advance
An unexpected error occurred on a receive
Asked by Shyam:

The underlying connection was closed: An unexpected error occurred on a receive."\> at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)

at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object\[\] parameters)

at Tzunami.Common.EcmConfluenceExporter.ConfluenceAPIWebsServiceVersion2.ConfluenceSoapServiceService.renderContent(String in0, String in1, Int64 in2, String in3)

while extracting the content of Confluence Server version 4.3.1 using Confluence RPC XML API 2 version


Answers:
author: Luzia Mendes
body: You should contact [support.atlassian.com](http://support.atlassian.com) and provide them with system information, Atlassian Support Zip, and steps to reproduce.


Tags: rpc
How to add image on top right of page- PDF Export Customisations?
Asked by Shreena Patel:

Hi there,

I am trying to put a logo on the rop right corner of my page but it won't work. Can you tell me what I'm doing wrong? I tried adding a content: url to stylesheet but that didn't work either. Is it the size of my image (180x86)?

**PDF Space Export Header**

\<div style=s"margin-top:10mm; text-align:right"\>

\<img src="/download/attachments/###/name.jpg"/\>

\</div\>

**Stylesheet**

@page

{

/\*The A4 paper size is 210 mm wide by 297 mm long\*/

size: 210mm 297mm;

}

@page

{

size: 210mm 297mm;

margin-top: 20mm;

margin-bottom: 10mm;

margin-left: 10mm;

margin-right: 10mm;

}

div

{

word-wrap: break-word;

}

@page {

@top-right{

background-image: url("/download/attachments/###/name.jpg");

}

}

Would appreciate your support.

Thanks,

Shreena


Answers:
author: Daniela Scheiwe
body: Hey!

I'm struggling with that at the moment as well.

For me it worked best when I put the background image to the complete page element:

```
@page {background-image: url(http://xyz.com/logo1.png);background-repeat: no-repeat;}
```

```
You might then add background-position to align the image.
```

I noticed that adding the image to the @top elements displays them but depending on the size of the logo it's placed outside the visible area. You can try that by adding a large fully colored graphic. I only saw a 2px line of the logo although it was like 50x50px.

And another thing that took a while to find out: If the logo should stretch over the complete document, the desired width is 797px at 96dpi.


author: Stephen Fairclough
body: One important thing to mention: You will not get the PDF layout when you export using the PDF export from the page tools. It only works when using the PDF export method of the space.


author: Shreena Patel
body: I don't think any of it is working, even if I get rid of most of the code and just leave the logo it isn't displaying.


Tags: cloud

confluence-cloud
Additional login required when Confluence redirect to Jira
Asked by Pangianto Pang:

Hi all,

I have a Confluence page which shows the filter of JIRA project using macro. Upon clicking on the issue link, it will bring me to the JIRA. However, the login will be required again in the JIRA to view the issue even i have configured the trusted application between them two.

The user with the same user exists in both of the applications. I have been thinking it would be good if no login additional login is required in the JIRA upon going to the JIRA issue.

JIRA used is in 4.2.3 version and Confluence is 4.2.8.

Is this possible to be done?

Thanks in advance.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Trusted application doesn't guarantee Single Sign ON. If you need SSO, you need to look at Crowd.

Trusted application will let you see that issue and its details in Confluence but when you go to JIRA, it is a different application and needs a different login.

comments: author: Pangianto Pang
body: Actually what i want to do is changing the status of the issue from the confluence. Thinking that; if do not need login in jira since Confluence is already logged in, the changing status can be done manually at the JIRA with linking provided in the Confluence.

So is there anyway to change status of jira issue from the Confluence?


Tags: jira
Only prints one page in IE under Windows 7
Asked by David Stephensen:

We are running Confluence 4.1.3

With Internet Explorer 9 running under Windows 7 we can only print the first page of any Confluence topic. The Print preview only offers one page and that is all that prints.

We don't have this problem:

\* Using Firefox

\* Using IE 8 under Windows XP

\* Using IE 9 under Win 7 when trying to print something outside Confluence

Can you help?

<br />


Answers:
author: Mark Hrynczak
body: To workaround this problem, you can follow these steps:

1. Export the page to PDF (Tools -\> Export to PDF)
2. Open the PDF file
3. Print that

This is a known bug, and has been raised as <https://jira.atlassian.com/browse/CONF-23962>

Cheers,  
Mark

comments: author: David Stephensen
body: Thanks, Mark. This is quite a serious bug for us.


Tags: internet-explorer

print

windows
select alternate server.xml location
Asked by Brian Hill:

I need to modify conf/server.xml, but I don't want to do it in the jira home, since that makes system updates a hassle.

There must be some way to feed options to the java command to tell tomcat to use a different server.xml, without moving tomcat altogether. I'd also rather not use a symbolic link if that can be avoided.

How is this done?


Answers:
author: PauloP
body: Hi Brian

Peharps you can just call the server's binary with **-f** value. For further details, the following link could be useful:

<http://tomcat.apache.org/tomcat-3.2-doc/uguide/tomcat_ug.html>

Also, try to seek for further details in the default apache/tomcat docs.

Cheers,

Paulo Renato


Tags: server.xml

tomcat
How do I make a user a system level admin on Confluence?
Asked by Jeremy Bodenhamer:

I have Jira, Confluence and Bamboo. I can only find how to make users administrators on Jira. Where do I do this for Confluence and Bamboo?

<br />

Any help is apprecaited.

<br />

J


Answers:
author: Abdoulaye Kindy Diallo
body: This could be done by granting the right permissions after creating the groups. For further details, you may want to have a look at the below guides:

- Global Permissions and [Global Groups](https://confluence.atlassian.com/display/AOD/Global+Groups+Overview)

- [Administering Bamboo](https://confluence.atlassian.com/display/AOD/Administering+Bamboo)


Tags: cloud

confluence-administration

confluence-cloud
Banner logo does not display as expected in the Documentation Theme
Asked by JT:

We used the Custom HTML and Stylesheet options in administration to add a site banner with our logo. The Stylesheet is used to set the banner width so it fits across the top of the page. This works great so long as we use the Default theme. If we switch to the Documentation theme, the banner logo does not stretch across the entire top of the page.

How do we get the Documentation Theme to display the banner logo in the same manner as the default theme?

Confluence v3.5.13


Answers:
author: JT
body: Removing the style information from the css and adding it to the Custom HTML resolved the baaner issue in the Documentation theme.


author: Selcuk Savas
body: Hi JT,

Check this out: <https://confluence.atlassian.com/display/CONF41/Configuring+the+Documentation+Theme>

But I don't think that you can strech the logo accross the entire top as the left hand section is dedicated to navivation in this theme.

Hope this helps.

Selcuk
LDAP and licensing
Asked by horihel:

I'm currently evaluating Confluence and Jira and have a few questions. I know similar questions have been answered here before - i just wanted to know if my approach would be possible with the licensing scheme.

We have about 80 users in LDAP, but are intending less than 25 users for confluence and probably less than 10 for jira. Both Jira and Confluence have problems resolving groups from LDAP at the moment - users work right. Would the following be possible:  
\* I synchronize all users from LDAP, but don't add them to the group confluence-users (or jira-users) by default (ldap scheme is "Read only with local groups").

\* I add only those users we want to use confluence/jira to the group "confluence-users" (or jira-users) manually.

Now technically users not belonging to any group can still login - they can't do anything though. So how would this count on the license?


Answers:
author: JohnA
body: Hi Horihel,

Users who aren't members of any group should not be able to login at all, so if they can login then there is a problem in your configuration. However, licensing works by counting each user who can login to the application as a user that counts against your license so you should ensure that any users that you don't wish to count against your license then you should ensure they are not members of any groups in the application.

All the best,  
John

comments: author: horihel
body: well a user without a group can definitely login on my server - but when logged in he only receives "forbidden" on any page he tries to access. He has less rights than the anonymous user.

Unfortunately I can't see yet if that user is counted on the license, because the eval only shows "unlimited"


author: Florin Manaila
body: You can find a 10 user non-evaluation license here to test this theory (it's only valid for 3 hours after each restart).

<https://developer.atlassian.com/display/UPM/Timebomb+Licenses+for+Testing>


author: horihel
body: Aaah thanks a lot - so I can confirm: Though users can login (but not do anything), the license count actually counts only against users who are in the confluence-users group.


Tags: ldap

licence
Resolve performance issues caused by excessive logging
Asked by Sozhavendhan M:

Hi Team,

We are using confluence 3.4.6. Licence for 2000+ community users.

We noted that on, at times the confluence application is too slow.

This can be due to excessive logging.

Please provide are a solution for this.

Regards,

Soz


Answers:
author: JohnA
body: Hi Soz,

You should start by ensuring that neither SQL logging, Access logging or Page Profiling is enabled as these are all intensive logging processes which can slowdown your application. You can also change the logging level to reduce the amount of things that are being logged in the application logs by making the changes suggested in this document: <https://confluence.atlassian.com/display/DOC/Configuring+Logging>

However, I'm not convinced that logging is the most likely cause of your performance issues, so unless you have conclusive evidence that the slowdowns are related to logging I would suggest that you work through our performance tuning guide to see whether there are any improvements you can make there: <https://confluence.atlassian.com/display/DOC/Performance+Tuning>

All the best,  
John


author: Nic Brough -Adaptavist-
body: Er, turn the logging down?

The default logging configuration for 3.4 is quite light, so it's quite likely you've increased logging and caused the problem (with genuine reasons - you'll have a good reason to look for some error in the logs and forgotten to turn it back down afterwards)

If it's not that, then you need to analyse why you think logging is excessive. Have a look through the things you think it is logging excessively and deal with them. One of my clients had a similar problem - almost 3Gb logs a day from normal usage. Turned out they had a whole swathe of configuration problems and Confluence was screaming for help by logging lots of errors, which they'd ignored. Once they fixed them, the logging went quiet.

<https://confluence.atlassian.com/display/DOC/Working+with+Confluence+Logs>