youngmon/atlassian-qna huggingface dataset:
CONFLUENCE: How can I increase the database query timeout for my datasources defined in the server.xml?
Asked by Eddie Connatser:

I have a database query in Confluence that is using the SQL and RUN plugins - after 120 seconds this is the message I get: Error: Rendering this content exceeded the timeout of 120 seconds. Is there any way I can extend this time somehwere through a config file? I am using the Postgres 9 jdbc driver, so this documentation will not work unfortunately: <http://confluence.atlassian.com/display/DOC/Configuring+database+query+timeout>

Thanks in advanced for any help!

Kind regards,

Eddie


Answers:
author: hsuhailah
body: You can change the timeout value through <http://screencast.com/t/UJN78fBh8loy> (Admin console -\> Security configuration)
Connecting JIRA and Sharepoint via Confluence
Asked by Peter Callies:

I want to be able to display JIRA content in Sharepoint. Therefore, I am attempting to connect Sharepoint and JIRA via Confluence and the Sharepoint Connector.

I've got JIRA and Confluence connected. I am able to see JIRA content on a Confluence page.

I've got Confluence and Sharepoint connected. I am able to see Confluence content on a Sharepoint page -- as long as the Confluence page doesn't contain JIRA content.

When a Confluence page contains JIRA content, I see "Please wait... retrieving content from **Confluence** . ![](http://qa-connect.surescripts.local/_layouts/images/Atlassian/wait.gif)" in Sharepoint.

Has anyone connected JIRA and Sharepoint using this method?

I don't see anything useful in the Confluence or JIRA log files. Any suggestions?


Answers:
author: Peter Callies
body: This ended up being related to firewall setting. It's now working. So, yes, it is possible to display JIRA gadgets in Sharepoint via Confluence and Sharepoint Connector.

comments: author: Ramiro Pointis
body: Hi Peter, do you use the connector only to display JIRA info or you are able to create JIRA issues from Sharepoint or update Sharepoint ticket from JIRA?


author: Peter Callies
body: Ramiro, back in April we were only evaluating Confluence so I didn't take it too far. We're in the process of purchasing both Confluence and Sharepoint Connector so I expect to get much deeper in both over the course of the next few weeks.

If I was going to create JIRA issues from Sharepoint, I think I'd probably create a JIRA Issue Collector and figure out how to embed that on a Sharepoint page.


author: Jesse Miller
body: Hi Peter,

Did you ever take a look at the [Connector for SharePoint and JIRA](https://marketplace.atlassian.com/plugins/net.customware.plugins.sharepoint.jira)? Im curious if that would suit your needs to what additional functionality you require for connecting JIRA and Sharepoint.

comments: author: Peter Callies
body: We purchased the Sharepoint Connector for JIRA and that is working for us.


Tags: jira

sharepoint
Map attachment directory as network drive
Asked by Heshan Manamperi:

I need to map attachment directory as a network drive. This drive should be unique for each and every user.

Ex: Map user A all attachments as a network drive.


Answers:
author: JamieA
body: I presume you've looked at <https://studio.plugins.atlassian.com/wiki/display/WBDV/WebDAV+Client+Setup#WebDAVClientSetup-WebDAVClientSetupMicrosoftNetworkDrive> ?


author: Heshan Manamperi
body: HI All,

DO you know plugin other than web dav. because I have another requirement;

I have documents in folder structure which contain files and folders. How can I import these folders and files to confluence. I need it to done automatically. Any opinion please....

Thanks

Heshan


author: Nic Brough -Adaptavist-
body: That's something you would do at an operating system level, and not within the application.

Some thoughts:

1. If you do decide to do it, it is absolutely critical that the network drives are READ ONLY - users must not upload files or edit exisiting ones. Or change directory structures or permissions.
2. You will need to make sure Confluence is configured to store attachments on the file system (it's possible to use the database for this)
3. I notice you've used the "OnDemand" tag. If you are using OnDemand, then you'll need to talk to Atlassian about doing it

On the last point, I suspect the answer will be "no", because it's a lot of work (you'll have to establish dynamic networks from your organisation into theirs, with the consequent security and hardware work - if I were a service provider, I'd charge you a fortune to set up a massive project like that), and frankly, it's pretty much pointless because your users can just edit most files directly from the pages they're on.

comments: author: Nic Brough -Adaptavist-
body: Oops, yes, I forgot about Webdav. I won't touch it because it's not https, but if you're on plain http, it will do part of the job for you.


author: Heshan Manamperi
body: Thanks for your answers Nic. I'm not using ondemand version, and I have selected it by mistake. I'm using standalone version.


Tags: cloud

confluence-cloud
#include not working?
Asked by Matthew J. Horn:

I tried to add the following line to my Main Layout template:

#include("/confluence/includes/test-include.txt")

I checked that the file exists, that the path is correct, and that the contents are innocuous, but I still get the error:

Error occurred during template rendering: Cannot process content resource. Contact your administrator for assistance.

Any ideas?


Answers:
author: David at David Simpson Apps
body: If you're doing this for an updated theme, why not just create a plugin -- it is surely a simpler workaround.

Also, I'd say that it's bad practice to add your own files to the installation directory -- means that upgrade is slightly harder.

comments: author: Matthew J. Horn
body: Agreed. I havent created a plugin yet, so maybe now is a good time to do so. Thanks!


author: David at David Simpson Apps
body: If this is a plugin, ensure that the file is found at **resources** **/confluence/includes/test-include.txt** within your plugin.

You could also try **#parse("/confluence/includes/test-include.txt")** instead, but that's likely to fail too if you don't get the path correct.

If you're doing stuff directly in the Confluence installation directory, first of all, don't as it will cause you pain on upgrade, secondly, where are you adding the file?

See:

* [include](http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#include)
* [parse](http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#parse)

comments: author: Matthew J. Horn
body: It's not a plugin. I am trying to do an include from the Main Layout decorator in one of my spaces.

I added the file here: C:\\confluence\\confluence-3.5.9-std\\confluence\\includes

I've read the Velocity docs, but also found this bug:

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

This basically says that include does not work in the admin area. The problem with the suggested fix in that bug is that to use the patch you need to compile from the source and then redeploy Confluence, which is basically over my head at this point.

I thought it might be a pathing issue, but I've used absolute paths as well and still get the error.


Tags: include

velocity
Problems with sharing content
Asked by Peter Scheidt:

Hi,  

I have a problem with confluence and the team calendar and I suppose that these relate to each other.  
I want to share a page with the share button but there are some names that won't appear within the autocomplete dropdown. These names are in the user management list and they are active users but I am not able to share content with them.  
I have a similar problem within the team calendar, more specifically within the people calendar. The same people won't appear within the autocomplete dropdown.  

It would be great if you could help me very quick because I need to work with these tools urgently.  

Thanks,  
Nicole  


Answers:
author: Bruno Rosa
body: Florian, I believe that by the time you commented here, there was a problem with the People Directory in Confluence, which was causing problems when trying to share content and add another users in people calendars. Fortunately, this is already solved. Thus, I'd like to ask you, are you still facing this problem? If so, would you mind to raise a support ticket at [support.atlassian.com](http://support.atlassian.com) so that we can further investigate what could be happening? Thanks

Cheers,

Bruno Rosa


Tags: cloud

confluence-cloud
Search does not find doc numbers in title
Asked by SallyD:

Many of the documents in my wiki have document numbers, such as SBT-00065. If I search for SBT-, I get a nice long list of items in the results. As soon as I add the first digit, SBT-0, I get 'no results found.'

Is anyone familiar with this?

Thanks


Answers:
author: Steffen Heller
body: Have you checked <http://confluence.atlassian.com/display/DOC/Confluence+Search+Syntax> ?

It says:
> **Excluded Term search**
>
> Similar to the NOT search, to search for content that contains "chalk" and "butter" but NOT "cheese"  
`chalk butter -cheese`  
It is just a guess, but could it be that your "-" is interpretated as a minus thus excluding all finds that contain a "0"?


author: Steffen Heller
body: Have you checked <http://confluence.atlassian.com/display/DOC/Confluence+Search+Syntax> ?

It says:
> **Excluded Term search**
>
> Similar to the NOT search, to search for content that contains "chalk" and "butter" but NOT "cheese"  
`chalk butter -cheese`  
It is just a guess, but could it be that your "-" is interpretated as a minus thus excluding all finds that contain a "0"?


Tags: search
Formatting of content from Excerpt Macro
Asked by SallyD:

I would like to use the Excerpt Include macro to reuse across pages but I can't do it with the formatting I'm getting. The text is indented in a shaded box with a centered heading of the file name where the content came from. Although that would be perfect in Edit mode, it is not good for my released version.

Is it possible to change the look of this content?

Thanks in advance.


Answers:
author: Thomas Schlegel
body: Hi Sally,you can remove the Panel like this: {excerpt-include:Page\|nopanel=true}Best regardsThomas

comments: author: SallyD
body: Thank you.
how to know if a content is page or blog ?
Asked by liljoint:

Hi, I need to know if a content is page or blog. does exists any parameter to know it?

Please help, thnx.


Answers:
author: SarahA
body: Hallo Bryan

One way to differentiate between a page and a blog post: Check the URL. A blog post contains the date in the URL, like this:

<http://MY.CONFLUENCE.COM/display/SPACEKEY/2012/04/20/PAGE+NAME>

But a page has just the page name:

<http://MY.CONFLUENCE.COM/display/SPACEKEY/PAGE+NAME>

I hope this answers the question. :)

Cheers, Sarah


author: Matthew J. Horn
body: There are programmatic ways to tell whether content is a blog or a page as well. I think what you want is the ContentEntityObject's getTypeEnum() method. I haven't tested this yet, but it would look like this:

$content.getTypeEnum()

That should return one of the ContentTypeEnum's constants which includes BLOG, COMMENT, PAGE, etc...


Tags: blog

content

page
Adding Groups in Delegated Directory setting
Asked by meena radhakrishnan:

I have setup a **Delegated Active directory** to the AD server using LDAP.

When the permission to 'Add/ Remove Group' is selected...

(i) Does adding a new group on this directory within Crowd create a local group in Crowd?

(ii) does Crowd get a read-only access to LDAP server?

(iii) Since I am not able to search and view the users or groups in LDAP, how can I create groups within Crowd and add users to it?

(What I am trying to do is create a delegated authentication directory and create/modify application-specific (jira/crucible/confluence) groups within crowd which will be the SSo for all the apps.)


Answers:
author: meena radhakrishnan
body: what I found so far.....

\>\>(i) Does adding a new group on this directory within Crowd create a local group in Crowd?

Yes, any groups created in Delegated directory are local to Crowd.

\>\>(ii) does Crowd get a read-only access to LDAP server?

Yes

\>\>\>(iii) Since I am not able to search and view the users or groups in LDAP, how can I create groups within Crowd and add users to it?

The only way I see it is to set to Import LDAP groups when the user first logs in and then go into Crowd and add the user or the user's LDAP group to Crowd's local group.


Tags: group

ldap

read-only
Append the import of a Word document to an existing page
Asked by Mark:

Is there any way to have the import of a Word document appended to an existing page?

Normal behaviour when importing a Word document is, that the content of a page is replaced.

I would like to have the Word content appended to the page, so that the previous content isn't lost.

Using Word as attachment is not an option...


Answers:
author: Thomas Schlegel
body: Hi,

I think, this is not possible. We use a workaround:

* Import the document as a new Page
* Copy and paste the new Page to the old page

It's not very smart, but it works ;-)

Best regards

Thomas

comments: author: Mark
body: Thanks for your reply! But I want to avoid such workarounds, as too many users will work with confluence.


author: Mark
body: For the moment we're using this workaround. Hope there will be a better solution sometime.


author: CharlesH
body: Why not import the document (creating a new page in the process) then use the include macro to append the content into your existing page.


author: Joerg Bencke
body: Start out with CharlesH suggestion, then include a standard-usermacro into your pages "if exist child with name "xxx", {include xxx}"


author: Mark
body: I created an issue: <https://jira.atlassian.com/browse/CONF-25889>


Tags: import
Can I import a part of a page (macro somehow?)?
Asked by Anthony Newnam:

We have a lot of definitions and would like to have a page that contains all of them. I would also like to display a sub-set of those definitions on a given page, but I would rather not duplicate the definitions.

Is there some way I could pull from the other page?

e.g.

{get-definition:Build}

{get-definition:SomeTLA}

which could render the word with a definition as defined on another page.


Answers:
author: Christian Czaia _Decadis AG_
body: Depending on how many definitions you have you could split them into seperate pages and include those whenever you need them with the "include page" macro. It's by far not a perfect solution but it works:-)

Cheers

Christian

comments: author: Anthony Newnam
body: I was hoping for something that didn't require hundreds of pages but maybe this is the best that can be done.

Thanks
Where can I see my @mentions in Confluence 4.2?
Asked by Ole Kristensen:

It's quite annoying with all thos @mentions mails and I forget older ones.

Is there a way to see my @mentions in Confluence 4.2?


Answers:
author: Jeison
body: Hey lads,

Just filed this as an improvement request. [https://jira.atlassian.com/browse/JRA-29412](https://jira.atlassian.com/browse/JRA-29412#comment-333728)

Please take some time to vote for it, in order to increase the chances of having this feature implemented on the next releases.

Cheers


author: Diego Cagnoni
body: yes I think a sort of notification center, like the one present in the confluence administrator would be nice to have. It could notify users of new mentions and provide a list of the past (read) mentions


author: Christian Czaia _Decadis AG_
body: It would be nice to have a tab, maybe as part of your profile, showing you a list of all the pages/comments you have been mentioned in. Or if you could add a dashboard filter to the activity stream


Tags: mention
Is there a way to have a message for another application if it not accessible
Asked by Lakshmi:

Hi I have place an iframe on confluence for another applicaiton called ABC. Few users did not have access to that ABC applcation. My requirement is ifuser does not have an access to ABC application through IFrame, it should take to confluence home page or any statick confluence page.

is this possible on confluence? Please provide your inputs on this.

Thanks in advance!


Answers:
author: David at David Simpson Apps
body: Create a wrapper that checks whether the user has access to the ABC application and then use that as the target for the iframe.

Put all the logic in your wrapper and then get the wrapper to redirect to the appropriate URL.


Tags: iframe
How to convert confluence wiki to html ?
Asked by Shyam:

I fail to convert

\<p\>\<ac:macro ac:name="section"\>\<ac:rich-text-body\>\<br\>  
\<ac:macro ac:name="column"\>\<ac:parameter ac:name="width"\>60%\</ac:parameter\>\<ac:rich-text-body\>\<br\>  
\<ac:macro ac:name="recently-updated"\>\</ac:macro\>\</ac:rich-text-body\>\</ac:macro\>\<br\>  
\<ac:macro ac:name="column"\>\<ac:parameter ac:name="width"\>2%\</ac:parameter\>\</ac:macro\>\<br\>

to pure html . Help me


Answers:
author: Bill Barnes
body: I am using Contour wiki 4.x and need to create an HTML snap of an entire tree for a customer to view. How can I do this? I only see export to word and PDF under the Tools section.

Thanks :)


author: Shyam
body: I am reading page using getpage() method and the page.content gives like

p\>\<ac:macro ac:name="section"\>\<ac:rich-text-body\>\<br\>  
\<ac:macro ac:name="column"\>\<ac:parameter ac:name="width"\>60%\</ac:parameter\>\<ac:rich-text-body\>\<br\>  
\<ac:macro ac:name="recently-updated"\>\</ac:macro\>\</ac:rich-text-body\>\</ac:macro\>\<br\>  
\<ac:macro ac:name="column"\>\<ac:parameter ac:name="width"\>2%\</ac:parameter\>

\</ac:macro\>\<br\> format of page content so hw to convert in html exactly


author: David at David Simpson Apps
body: You might like to give the context on this. How are you trying to convert it?


Tags: wiki
SU plugin for Confluence
Asked by Rumceisz:

Hi All,

is there a plugin or feature in Confluence which enables system administrators to become another user? Let you know that this is the SU Plugin for JIRA - so in JIRA it exists.

Is there a same feature for Confluence?


Answers:
author: Andrew Frayling
body: Hi,

There's the Sudo Plugin from Adaptavist - <https://plugins.atlassian.com/plugins/com.adaptavist.confluence.sudo>

It's only listed as supported up to 3.4.9, but I've used it on 4+ and it seems to work ok.

Hope that helps?

Andrew.

comments: author: Rumceisz
body: OK, thanks for the suggestions!


author: Sorin Sbarnea
body: Outdated, plugin archived, so clearly not an answer anymore.


author: JamieA
body: <https://studio.plugins.atlassian.com/wiki/display/CONFSU/Confluence+SU> - easy points!

comments: author: Sorin Sbarnea
body: Not quire easy points, as the URL gives 404, more like easy negative points ;)


Tags: account-management

sudo

user
What can I do to use LONG links in Confluence?
Asked by Kyle:

Hey guys,

I have a question regarding Confluence @4.2 about long links. This problem happened way long back. When I try to insert a link in any page, when it is probably over 255 characters, the link is lost when saving the page.

This long link problem happened to JIRA as well when using a custom field, but is possible to fix by changing the size of the field from the database.

For Confluence, i really don't know what the workaround is, because the URL is added via Link \> Web Link. But when I preview/save, the link is there, but not clickable. When going back to Edit mode, clicking the link and Go to Link works.

My current workaround is to use TinyURL or Google Link shortener.

Help. Thanks.


Answers:
author: Kyle
body: Update/expand the database schema for the custom field to have varchar or whatever type that is larger than 255 characters.
Turkish Character Support
Asked by zaferc:

I've installed confluence4.2 on my server.

When I entered any Turkish character(like ?, ?, ?,?) in confluence it shows me ? instead of Turkish characters. However, this attitude is not stable, when i refresh the page, sometimes it shows me Turkish characters.

I've opened a database in UTF8 collation and my database script has useUnicode=true\&characterEncoding=utf8 in URL.

Do you have any suggestions to solve this problem?


Answers:
author: zaferc
body: I solved my problem. It was about database collation. I noticed that collation is utf8_general_ci instead of utf8_bin.

comments: author: Ka?an YE??N
body: Zafer bey merhabalar,

bu sorunu a?t???n?z? g?r?yorum bende ayn? sorunu ya?amaktay?m fakat mysql taraf?na ?ok hakim de?ilim acaba varolan database collation yap?s?n? nas?l de?i?tirebilirim


author: Zafer Cakmak
body: @Ka?an YE??N

<http://stackoverflow.com/a/9531221/354138> veya <https://mediatemple.net/community/products/dv/204403914/default-mysql-character-set-and-collation> ba?lant?lar? i?inizi g?recektir. Kolay gelsin.


author: Ka?an YE??N
body: ?ok te?ekk?r ederim Zafer bey sorun tamamen ??z?ld?.


Tags: encoding
Is it possible to display Source Code contents in the Wiki but as a reference to an actual file in Subversion?
Asked by Craig Barr:

Is it possible to display Source Code contents in the Wiki but as a reference to an actual file in Subversion?

I know that I could just copy the source code content and paste is as Code in the Wiki however, if the source code changes I don't want the stale code to be displayed in the Wiki.


Answers:
author: Renjith Pillai
body: May be you can use the {html} macro and use an iframe inside that which points to the source code url. But am not sure whether this is possible in OnDemand?

comments: author: Craig Barr
body: Thanks Renjith for the suggestion. I couldn't seem to find a generic HTML macro (only html table, comment etc.). Perhaps this is an OnDemand limitation.


author: Michael Knight
body: That's right. We don't allow ways to include arbitrary HTML in OnDemand. Unfortunately there's no good way I can think to achieve this.


author: Craig Barr
body: Ok. Is there a way I can log an enhancement request? Would this be a feature that would be useful to anyone else?

I know many programming purests (even those that have written books) hate the idea of including code as text that is not controlled by Continuous Integration. How often do you read technical books that have code that doesn't actually work? The lack of embedded source code integration with source control systems is the reason for this. Perhaps Atlassian could lead this innovation for Wiki or do 3rd party macros already exist that do this?


author: JamieA
body: Confluence is very weak at displaying source code imho. For years I've been using a wordpress plugin where you specify a url in your \<pre\> tag and it pulls the code from the url, which is usually a subversion url.

I completely agree about pasting in code, so, if you create an RFE, I'll vote for it.


Tags: cloud

code

confluence-cloud

source

svn

wiki
Is it possible to merge two on demand accounts?
Asked by Sebastian Stadil:

Our devs and docs teams created two OnDemand confluence accounts for their team's use. The devs' one is now paid, the docs one is still trialing.

Is it possible to merge docs into devs?


Answers:
author: Dave
body: You can export the spaces from the docs site and import them into the devs site. You can check out the [page on Managing Data](https://confluence.atlassian.com/display/AOD/Managing+data) for details.


Tags: cloud

confluence-cloud