youngmon/atlassian-qna huggingface dataset:
Connect to PostGre DB using HTTP proxy
Asked by satish kumar:

Hello Community team,

We are using postgresql-9.4-1202.jdbc41.jar and our PostGre DB is in different data center. The requirement is to connect to that DB server via HTTP proxy is it possible? If so which data source class and what parameters to use?

Kindly advise.


Answers:
author: Hassan Aftab
body: Hi Satish

I tried looking through some options to implement this, but couldn't find an exact answer for this.

A possible workaround for your situation is to use TCP proxy and not HTTP.

You can configure the proxy at your datacenter to route all requests coming at the database port to forward to Postgres database.

Following article is a very good started with this.

* [Database proxy](https://www.digitalocean.com/community/tutorials/how-to-use-proxysql-as-a-load-balancer-for-mysql-on-ubuntu-16-04)

In general, any proxy like HTTPd, Nginx or HAproxy can be used for this purpose.

Thanks,

Hassan
Re-index Confluence Tree Browser through on JAVA API
Asked by Orkun Gedik:

Hello, I have generated pages on Confluence Java API. After all pages are generated, tree browser does not show my new pages. Is there any way to re-index tree browser on Java API?

Can ConfluenceIndexer or ConfluenceIndexManager help me ? If they can, how can I use?. I could not find any clear documentations for those.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Orkun Gedik](/t5/user/viewprofilepage/user-id/1191227) ,

there is an open request for that <https://jira.atlassian.com/browse/CONFSERVER-44340>

Fabio


Tags: index
How can i make the pagetree visible?
Asked by Florian Geiger:

Hi, i am using the cloud version of confluence and i was wondering how i can make the pagetree visible here?

![Screen Shot 2018-02-26 at 13.53.04.png](/t5/image/serverpage/image-id/15799i36327A1CCB73FD7B/image-size/large?v=v2&px=999 "Screen Shot 2018-02-26 at 13.53.04.png")


Answers:
author: Orkun Gedik
body: Hello Florian,

You can check it out;

<https://community.atlassian.com/t5/Confluence-questions/How-to-add-a-page-tree-in-the-sidebar-in-the-new-cloud-design/qaq-p/626149>

comments: author: Florian Geiger
body: hi\&thx upfront.

it does not solve my "problem" i want the pagetree to be instantly visible when you open a space.


author: Simon Teppett
body: I just signed up to the community to ask the same question


author: Florian Geiger
body: ...looks like there no way to do that?! :(


Tags: page-tree

side-bar
Still seeing whats new popup after confluence upgrade from 5 to 6
Asked by sachin sharma:

Hi Team,

After upgrade from confluence 5.7.5 to 6.2.4, I am seeing what's new popup when user lands on dashboard. How can I disable it


Answers:
author: Igor M.
body: Hey,

Can you try disabling What's New system addon as per [How to Turn Off "What's New" Window](https://confluence.atlassian.com/confkb/how-to-turn-off-what-s-new-window-315326493.html)

1. Go to ![](https://confluence.atlassian.com/confkb/files/315326493/788958143/1/1446774808839/cog.png) \> **Add-ons**
2. Search for the **Confluence What's New** system add-on (you'll need to select System or All add-ons from the filter drop down)
3. Disable the add-on.

Let me know if this helps.

Regards,

Igor
User Attributes:What is the use of "type":"known" attributes in User Management in Confluence Cloud?
Asked by Rokesh Lakshmipathy:

Hi,

I am able to fetch single user details using the URL mentioned below.

h`ttp://example.com/rest/api/user?key=4028sdfsdfsd767sdfsd `

`JSON Response:`

`{`  
`"type": "known"`  
`},`  
`"_links": {`  
`"base": "http://myhost:8080/confluence",`  
`"context": "/confluence",`  
`"self": "http://myhost:8080/confluence/rest/experimental/user?key=402880824ff933a4014ff9345d7c0002"`  
`},`  
`"_expandable": {`  
`"status": "",`

`"operation":"",`

`"details":""`  
`}`  
`}`

`can someone explain what is need for `**type,_expandable**` and `**_links**` attributes in User Management in Confluence.`


Answers:
author: Mark Bereznitsky
body: Hello [@Rokesh Lakshmipathy](/t5/user/viewprofilepage/user-id/1187010),  

_expandable and _links are standard entities in a REST object response. They describe which fields can be further expanded (by indicating them in the request, for example, expand=...).

<br />

You can visit this page for a more detailed explanation:

<https://developer.atlassian.com/cloud/confluence/rest/#using>

The type field indicates whether the user is anonymous or known to the system.


Tags: atl-dev

confluence-cloud

jira

jira-cloud
Included excerpt does not adopt orginal excerpt's content
Asked by Sven Ja:

Hello,

I am quite new to the Confluence world. So sorry for (maybe) stupid questions.

Here's my problem:

I want to install a newsfeed to my wiki front page.

So I set up a page with news (news page): four headlines with some text beneath them. Let's call the headlines A, B, C and D.

To kick out news that aren't relevant anymore, I decided to put a status macro behind every headline. Let's say there are two statuses: NEW and DONE. So my page looks somehow like this:

A NEW

text

B NEW

text

C DONE

text

D NEW

text

On my wiki's front page, I would like to show only the headlines and only those that are NEW.

So on my news page, I set an excerpt macro, "filled" with a content macro. The content macro is supposed to filter the headlines by statuses. To do so, I set the parameter "headline exclusions" (maybe not the exact term - I am using a different language) on DONE.

Result is, I have a perfectly working excerpt on top of my news page, looking like this:

A NEW

B NEW

D NEW

Now, to get the news headlines on my front page, I put an Excerpt Include macro there and linked the news page within the macro.

That leads to good looking excerpt on my front page. Problem is, it is "status unfiltered", so it looks like this:

A NEW

B NEW

C DONE

D NEW.

I have no idea why the Excerpt Include macro does not adopt my original settings on the excerpt. I am very grateful for every advise you give!

Thanks in advance,

Svenja


Answers:
author: Fabienne Gerhard
body: Hi [@Sven Ja](/t5/user/viewprofilepage/user-id/1191185) - how did you exclude the headlines? I tried to recreate it and it worked perfect.

Page (News) -\> **Macro Excerpt** including **Macro TOC** with TOC. excluding DONE

    {toc:exclude=.*(DONE)}

On the other page (Dashboard) -\> **Macro Excerpt Include**

    {excerpt-include:News|nopanel=true}

Have you thought about using Blogentries for News? There are some nice Addons for Dashboard -\> we're using [Lively Blogs](https://marketplace.atlassian.com/plugins/de.scandio.confluence.plugins.lively-blog/server/overview) and it works perfect for us! There are many possibilities for sorting and settings for dashboard.

comments: author: Sven Ja
body: Thank you very much for your help. I excluded the headlines by typing "DONE" into the text bar "Eclude Headlines" within the settings of the content macro.

I've copied your source code, but the result was the same problem as before.

Lively Blogs looks nice! Maybe I will try it if I won't find a solution for my excerpt problem.


author: Fabienne Gerhard
body: Sorry that the problem still exists - is it only when you show it as a front page?

Do you have multiple excerpt macros on the side?

Did you make settings on the excerpt/excerpt-include?

Settings should be like that:

```
{excerpt:hidden=false}
{toc:exclude=.*(DONE)}
{excerpt}
```


Tags: excerpt

status
Get comments from a custom content type via REST
Asked by Oliver Wevers:

I have created a custom content type and now I want to use Confluence-REST to assign comments or properties to it. There is always an error that this type is not supported, is there a possibility that REST can use or do I have to build one myself?

![2018-02-26 11_27_32-REST API Browser - d.velop serviceportal.png](/t5/image/serverpage/image-id/15789i5B43D4A2ECC683D6/image-size/large?v=v2&px=999 "2018-02-26 11_27_32-REST API Browser - d.velop serviceportal.png")![2018-02-26 11_27_10-REST API Browser - d.velop serviceportal.png](/t5/image/serverpage/image-id/15788i08B880E0EB6C9730/image-size/large?v=v2&px=999 "2018-02-26 11_27_10-REST API Browser - d.velop serviceportal.png")


Answers:
author: Hasnae
body: Can you double check your implementation of the \`\`\`ContentTypeApiSupport\`\`\` class

You should have the method \`\`\`supportsChildrenOfType\`\`\` implemented

```

@Component("communityApiSupport")
public class CommunityApiSupport implements ContentTypeApiSupport<CustomContentEntityObject> {

    private static final String COMMUNITY_TYPE_KEY = "atlassian.confluence.community:community-type";

    private final CustomContentManager customContentManager;
    private final SpaceManager spaceManager;

    @Autowired
    public CommunityApiSupport(
            @ComponentImport final CustomContentManager customContentManager,
            @ComponentImport final SpaceManager spaceManager) {
        this.customContentManager = customContentManager;
        this.spaceManager = spaceManager;
    }

    @Override
    public ContentType getHandledType() {
        return ContentType.valueOf(COMMUNITY_TYPE_KEY);
    }

    @Override
    public boolean supportsChildrenOfType(ContentType contentType) {
        return contentType.in(ContentType.ATTACHMENT, ContentType.COMMENT);
    }

    ...
}
```

That tells the custom content API that comments are allowed on your custom type, therefore everything works as expected. For a sample implementation please have a look at [https://bitbucket.org/viqueen/confluence-community/src/ad754ddc59b08746fa0a37d4122c3aadd924b261/src/main/java/com/atlassian/confluence/community/type/CommunityApiSupport.java?at=master\&fileviewer=file-view-default#CommunityApiSupport.java-63](https://bitbucket.org/viqueen/confluence-community/src/ad754ddc59b08746fa0a37d4122c3aadd924b261/src/main/java/com/atlassian/confluence/community/type/CommunityApiSupport.java?at=master&fileviewer=file-view-default#CommunityApiSupport.java-63)

![Screen Shot 2018-04-20 at 18.30.03.png](https://community.atlassian.com/t5/image/serverpage/image-id/20200iA4C7047F3893D06E/image-dimensions/502x420?v=v2 "Screen Shot 2018-04-20 at 18.30.03.png")![Screen Shot 2018-04-20 at 18.29.23.png](https://community.atlassian.com/t5/image/serverpage/image-id/20199i3A3DB99A3B6D2DB5/image-dimensions/502x438?v=v2 "Screen Shot 2018-04-20 at 18.29.23.png")

Hope this helps

Hasnae R.


Tags: atl-dev

custom-field

rest-api
Remove Confluence from Cloud Version
Asked by Paul O'Rourke:

I accidentally added Confluence to my JIRA account. I was just having a look at the new 'Pages' section and there was no option to cancel the setup. It said I would be billed once the free trial expires. I don't want to use it and I can't find a way to disable it.

Does anybody know where I can find the option to switch it off or remove it?

Thanks,

Paul


Answers:
author: Shannon S
body: Hi Paul,

You can use the first set of instructions to manage your applications:

* [Cloud Cancellations](https://confluence.atlassian.com/cloud/cancellations-873871347.html)

> **You're already logged in to your Cloud site:**

1.
   > Choose  
   > ![Application picker](https://confluence.atlassian.com/cloud/files/744721579/939933854/1/1510710728093/App+switcher.png) \> **Site administration** \> **Billing**.
2.
   > Choose **Manage applications**.
3. Choose **Cancel my site** in the top-right corner of the page.

Then, you can delete Confluence:

![Screen Shot 2018-02-26 at 4.30.05 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/15807i4C38335C27490702/image-dimensions/541x197?v=v2 "Screen Shot 2018-02-26 at 4.30.05 PM.png")

Note that this will delete all Confluence data, but not the users, which are shared by Jira.

Let me know if you have any trouble!

Regards,

Shannon

comments: author: Paul O'Rourke
body: Hi Shannon,

Thanks very much. That did the trick.

Regards,

Paul


author: Shannon S
body: Paul,

Glad to hear!

Take care, and have a pleasant week.

Regards,

Shannon
Does Confluence support https for custom addresses?
Asked by Anthony Clarke:

We have set our own site address within Server Base URL, is there anyway to also host an SSL certificate on Confluence to allow this address to be accessible over https?

Cloud hosted Confluence.  
Thanks


Answers:
author: Nic Brough -Adaptavist-
body: Confluence on Cloud runs on https://\<your chosen name\>.atlassian.net which is SSL already, and has nothing to do with your site address.

I think you need to explain the question more.

comments: author: Anthony Clarke
body: Sorry for being unclear.

We are setting our own address within Site Configuration \> Server Base URL eg

confluence.mycompany.com , when browsing to this address there is no option for https, I appreciate your point if we use the atlasian.net it would be under https, but just wondering if there is a way to host the certificate for mycompany.com so this would also be supported on https.

Thanks

![server_base_url.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/15792iDFC0BE71F6EDE45C/image-size/large?v=v2&px=999 "server_base_url.jpg")


author: Nic Brough -Adaptavist-
body: I don't understand the question.

If you are on Cloud, you can not set the server base url
Adding signatures in Confluence
Asked by Adarshdeep Kaur:

If we don't have a plugin for adding signatures in Confluence, are there any others ideas that can be implemented so that the requirement of adding signatures without using a plugin can be fulfilled?


Answers:
author: Shannon S
body: Hello,

What kind of signature are you looking to add, a digital signature or a handwritten one, for example?

It will definitely require an add-on or at least that your organization writes a [User Macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html).

Otherwise, you could host a handwritten signature image somewhere on another page, and then use the [Excerpt Include Macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) to insert it where you need it.

Let me know if you have any questions about that?

Regards,

Shannon

comments: author: Adarshdeep Kaur
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)Thank you for your response. Let's say we want to approve a page and want a signature for doing so. Do you have any ideas? I don't want to use a plugin so, what could be some other ways of approving it?


author: Shannon S
body: Hi there,

In Confluence, there's no built-in way to do this without add-ons. We do have a feature request below for an approval mechanism. If this interests you, please feel free to vote on it and comment with your usage case and suggestion to include a signature while approving:

* [CONFSERVER-1675](https://jira.atlassian.com/browse/CONFSERVER-1675)

Let me know if you have any questions about that!

Regards,

Shannon


author: Adarshdeep Kaur
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)Alright. Thank you:)


Tags: atlassian-marketplace
Non clustered confluence database is being updated by another confluence instance
Asked by Cormant Systems Administrator:

Dear All,

Please help us to resolved this issue. I cannot find another confluence instance running.

![ConfluenceError2018.PNG](/t5/image/serverpage/image-id/15785i487D8BF6E4A04905/image-size/large?v=v2&px=999 "ConfluenceError2018.PNG")


Answers:
author: Shannon S
body: Hi there,

Could you review this article, and let us know if you are able to resolve the issue with the information provided?

* [Cluster Panic due to Multiple Deployments](https://confluence.atlassian.com/confkb/cluster-panic-due-to-multiple-deployments-201852123.html)

Thank you!

Regards,

Shannon
What are the server requirements for Confluence 6.1?
Asked by Jarvin Li:

Good day!  

I'm interested about my server requirements, I've seen the documentation regarding server requirements, ( <https://confluence.atlassian.com/doc/server-hardware-requirements-guide-30736403.html> ) but I am wondering on how can I be sure that my server is good enough?

The reason I am asking is that I am receiving frequent issues where my site is not responsive or takes a while to load. The issue I believe is on server side because I test other sites for while my Confluence site takes a while to load and the other sites load faster.

Below are some details that may shed some light into my issue.

1. OS - Windows Server 2012 R2 6.3
2. OS Architecture - amd64
3. Application Server - Apache Tomcat/8.0.41
4. Servlet Version - 3.1
5. Java Version -1.8.0_112
6. Allocated for Java Heap - 4096 MB
   * Used - 2087 MB
   * Unused - 2087 MB
7. Number of CPU's - 2
8. HDD Drives
9. Virtual Server
10. Users
    * User base - 500
    * Peak User Count - 50
11. Spaces - 16
12. Plugins - 249

Thanks!


Answers:
author: James Ponting
body: Hi Jarvin,

I have some thoughts that might help you narrow this issue down.

With the information available, it's a little hard to definitively say whether your hardware is sufficient for your instance. Everyone's usage of Confluence is different, so their hardware needs are different. Also be aware the page you linked to is for **minimum** hardware requirements. If you need faster performance, you might need to add some more resource.

Here are some things to check into to get you started

* During periods of slowness, check [Resource Monitor](https://blogs.technet.microsoft.com/askperf/2012/02/01/using-resource-monitor-to-troubleshoot-windows-performance-issues-part-1/) in your Windows environment to see if your server is at 100% usage. In particular check the CPU, Memory and Disk values.
* If you have other software running on the server (for instance your database), check to make sure they're not taking the resources Confluence needs.
* It appears you might be running your server as a VM. It's also worth checking to ensure that other VMs aren't using all of the available resource on your host server.

Another give away that you're running in to a resource issue is if the slow responses only happy at particular times of the day. Try using Confluence at a time when few people will be online and see if the experience is faster.

Hopefully this can get you started in working out your issue :)

Thanks,  
James

comments: author: Jarvin Li
body: Hi James,

Thanks for your answer, I will look into the performance during the peak times and when there are less users.

Regads,

Jarvin
Content Index Administration missing in Configuration menu
Asked by Michael Radeka:

Hi there, I'm following the instructions on

<https://confluence.atlassian.com/doc/content-index-administration-148844.html>

[,](https://confluence.atlassian.com/doc/content-index-administration-148844.html) however this option does not exist in the menu.

I am an administrator on the Site.

Also, I can see content that will not appear in search results so need the above to work in order to diagnose why the content is not turning up in search results.

Q1. Does Content Index Administration / Content Index still exist as an option to use?

Q2. Where is it? (So I can re-index the site pages)

Thanks in advance for your input :)


Answers:
author: MoroSystems Support
body: Hi Michael,

Depending on how you say you're a Site Admin, I assume you're using Atlassian Cloud? In Atlassian Cloud, this feature is turned off, see <https://community.atlassian.com/t5/Confluence-questions/Why-is-cloud-confluence-indexing-disabled/qaq-p/337558>

Best Regards

Pavel

MoroSystems Support

comments: author: Michael Radeka
body: Hi Pavel, if its turned off what can be done about the fact that content is not being indexed at a regular enough basis? We have a particular page we know has a string e.g. 'P0001' but the search finds older documents with the string but not a newer document? I gather this is a question for Atlassian themselves to answer?


Tags: index
Can wiki send notification on a periodic basis?
Asked by Palanivelu Ramaswamy:

We have a wiki page where my team members are assigned to weekly basis to monitor certain activities related to automation. How can we get an email alert to all of these members starting of the week? This is a static page, so there is not much change expected periodically. I can add all my team members as watches to this page, but they need to get email alert starting the week.

If there are any other better option to do this, please suggest.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Palanivelu Ramaswamy](/t5/user/viewprofilepage/user-id/1191084) ,

you can try the following app [https://marketplace.atlassian.com/apps/1224261/date-reminder-for-confluence?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1224261/date-reminder-for-confluence?hosting=cloud&tab=overview)

Hope this helps,

Fabio
How to reinstall Confluence with the same licence?
Asked by acn001:

We have a licensed Confluence Server instance with 10 users.

However, this instance was totaly broken down.

We want to rebuild the instance with this licence. What can we do?

Thank you so much!


Answers:
author: Lei Wang
body: Hello Yue,

To re-install Conlfuence, you can apply the same license to the production environment, you would not need to have an additional license. Please do retrieve your existing license key from <https://my.atlassian.com/product> then reinstall Confluence. While prompt with the license key, paste your existing license in it and you're good to go!

comments: author: acn001
body: It works! Thank you!


author: Craig Castle-Mead
body: You can reuse the same license. There's no "smart" checking if the license is in use on another machine or anything.

If you don't have backups, I suggest you rebuild on a new machine so you can try and recover the files/database or something.

CCM

comments: author: acn001
body: Thank you. I will try it.
Uknown macro error for Confluence user macro
Asked by C M JENIN:

Hi Folks,

I have copied an user macro from Confluence 5.10.2 to 6.6.1

I am getting unknown user macro error in Confluence 6.6.1 which are working perfectly fine in 5.10.2.

Please suggest!

Thanks and Regards,

Jenin C M


Answers:
author: Nic Brough -Adaptavist-
body: Could you give us the full unambiguous error message? You say "getting unknown user macro error", but this is not clear because you might mean the error is unknown user, or "unknown user macro" which Confluence should not throw (a page doesn't know if a macro is a user macro or one from an add-on)

Whatever the error though, have you checked that you have a macro of that name available?


Tags: user-macro
Cannot make Mail Server to work
Asked by E__Capuano:

I cannot make SMTP Mail Server to work on Confluence but i can make it work with JIRA with the same server parameters. I have double checked the SMTP parameters for configuration and are all good, would you please give me some ideas on how to fix this, thanks a lot

ERROR RETRIEVED:

An error has occurred with sending the test email:  
com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;  
nested exception is:  
java.net.SocketTimeoutException: Read timed out  
at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:120)  
at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:79)  
at com.atlassian.confluence.admin.actions.mail.SendTestEmailAction.execute(SendTestEmailAction.java:57)  
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)  
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)  
at

........


Answers:
author: Shannon S
body: Hi there,

Can you confirm what settings you currently have for your SMTP server? You don't need to include your username/password, just the provider. Are you using Gmail?

If so you can try the alternate settings available below. I've had a lot of luck with these in Confluence:

* [Confluence unable to send email through Gmail server due to 'Read timed out'](https://confluence.atlassian.com/confkb/confluence-unable-to-send-email-through-gmail-server-due-to-read-timed-out-763003262.html)

Regards,

Shannon


Tags: mail-server