youngmon/atlassian-qna huggingface dataset:
How to save a code block to confluence through jsonrpc api?
Asked by Frank Dai:

I tried to save a code block ({code}somecode here{code}) using the api. It saved the plaintext to confluence, not a code block. How can I save a code block? A sample will be much appreciated.

btw, the confluence version is 5.4.4


Answers:
author: Stephen Deutsch
body: You'll need to use the Storage format instead of wiki format. Examples can be found in the official documentation here: <https://confluence.atlassian.com/doc/code-block-macro-139390.html#CodeBlockMacro-Storageformatexample>

You would probably end up using the 1st or 2nd example from the table, I would imagine.
How to use Google Analytics with Confluence Cloud?
Asked by Seongwoo Kim:

Hi there

To use GA with the Confluence cloud service, I read [Tracking Atlassian Confluence usage with Google Analytics](https://davidsimpson.me/2009/03/18/tracking-atlassian-confluence-usage-with-google-analytics/#update2014-08-14) only to find that there is no custom HTML field in the cloud. In addition to it I've also found that the existing header and footer fields don't accept \<script\> tag.

So could somebody please help setting GA in the cloud?

Thanks


Answers:
author: Tim
body: Hi Seongwoo,

We've created an add-on that provides some great usage statistics in Confluence Cloud. It includes an overview of activity but also the details like who has viewed a particular page.

You can find more information here: [Analytics for Confluence Cloud](https://marketplace.atlassian.com/plugins/com.addonengine.analytics/cloud/overview)

Hope it helps!


author: Christian Reichert (resolution)
body: Hi!

Pretty old thread - I've written a on Demand plugin (free) to do exactly that. I am considering to publish it on the marketplace. Let me know if you would be interested to be a beta tester.

<br />

Cheers,  
Christian

comments: author: Daniel Byrne
body: Hi Christian,

Did you end up releasing this plugin? I am interested in testing it...


author: Christian Reichert (resolution)
body: Hi [@Daniel Byrne](/t5/user/viewprofilepage/user-id/459017),

I did indeed.

Here you can find it ... <https://marketplace.atlassian.com/plugins/de.resolution.cloud.analytics.google/cloud/overview>

Cheers,  
Christian


author: Luiz Maia
body: Hello there,

It's unfortunately not possible, as it would require a custom HTML, what is not allowed on Confluence Cloud.

As you can see on [this page](https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html), custom HTML is not configurable on Confluence Cloud. The only workaround for this would be migrating to Confluence Server, where you would be able to add the Custom HTML required in order to have the Google Analytics working on the application, or you could use the [Google Analytics plugin](https://marketplace.atlassian.com/plugins/com.go2group.plugins.confluence-ga) as well.

Regards,  
LM


Tags: cloud

confluence-cloud
Can you show a JIRA Epic or Story with all sub-objects on a Confluence page?
Asked by Joe Szilagyi:

I've got a simple need that I can't find the right answer to -- is there any way I can do these two things?  

1. Embed a JIRA Epic on a Confluence page and have it expand in a table to show all Stories under that, and all sub-tasks/bugs/jobs under that?
2. Do the same thing starting on the Story level, as well?


Answers:
author: RVal
body: AFAIK if your Confluence is connected to JIRA you can add JIRA macro on your page which will show JIRA filter results. These results can be a list of Epics or Stories, depending on the filter you select. However to drill down to issues in the epic or story you would have to click on epic/story which will open JIRA view for you.

To see everything on one confluence page what you could do is to create JIRA filter showing all tasks and includes Epic Link column. You can also sort it by this column. In this case you will see tasks with epics they belong to right there. But you will not achieve expand/collapse on click by doing that.


Tags: jira
I downloaded the trial version of Confluence Server edition. I could install it. Initally I could log in. But now with the same user name and password I am not able to log in any more.
Asked by Shubhra Kanti Acharya:

I downloaded the trial version of Confluence Server edition. I could install it. Initally I could log in. But now with the same user name and password I am not able to log in any more. Does anyone have any suggestion or solution for the problem?


Answers:
author: Thiago Zandona
body: Hi Shubhra,

To identify what might be happening with your instance we would need some additional information. Is there any error you see on the login page or it's the default email/password incorrect? Do you run any authentication method apart from Confluence like JIRA auth, LDAP server? The user you are not able to login is the administrator one? If not, did you try to login as admin and reset it? If yes and you want to reset the admin's password follow below guide:

<https://confluence.atlassian.com/display/DOC/Restore+Passwords+To+Recover+Admin+User+Rights>

Hope it helps.

Cheers


Tags: confluence-administration
check configuration for license page
Asked by Sriram Vinay:

I want to check configurations to display license page in confluence but license box is not appearing even after enabling it in atlassian-connect.json file. I have made enableLicensing=true and scope:\["read","write"\] in atlassian-connect.json file.


Answers:
author: Nic Brough -Adaptavist-
body: There's not enough context for this question. What are you putting in the file, where, and why?


Tags: cloud
creating and moving page not working after update from Confluence 5.8.9 to 5.8.13
Asked by Guido Lepping:

after an upgrade from Confluence 5.8.9 to 5.8.13 it is not possible to create pages or move them.

I am using Confluence behind an Apache proxy where docs.intern.*\<mydomain\>*is my user-friendly subdomain and which is redirected to the Confluence Tomcat (localhost:8090 on our webserver). Everything was working before the update.

What i could find out is, that an access through docs.intern.*\<mydomain\>*:8090 is working and it is also possible to create pages and move them. but thats not user friendly.

Is somebody experiencing the same issue?

(I already created an issue CSP-157945 but at the moment it says my proxy should be reconfigured. I do not see this is necessary)


Answers:
author: Andy Smith
body: I had this when I upgraded my instance from 5.8.6 to 5.8.13. The Confluence server sits behind a reverse proxy and the upgrade removed the proxyName and proxyPort settings from the \<Connector\> settings in server.xml.

Once these were added back in the create page popup worked again.

proxyName should be set to proxyName="docs.intern.*\<mydomain\>*" and proxyPort="80" (443 for SSL, or whatever port your proxy is listening on)

I thought it was odd at the time when I ran the upgrade (on Windows) as it usually detects the customised server.xml and reminds you to update it, but it didn't give a message so I assumed it wouldn't make any changes.

More info here <https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html>


author: Nic Brough -Adaptavist-
body: Ok, if you can use things on docs.intern.\<mydomain\>:8090, but you can't from a proxied address, then there is something wrong with your proxy settings. Let me phrase it this way and you should see why I agree with the conclusion of your support call: "I can use Confluence normally on a base address, but not when I go through the proxy". Confluence is working, your proxy is not.

I can't tell you any more than that without details of the proxies and knowing what you've changed on them during the upgrade.


Tags: confluence-administration
excel preview for more than one sheet
Asked by Bita Valinejad:


Answers:
author: Giuliano C.
body: Hi Bita,

As discussed in one of our support cases, there's some options that might interest you:

* This feature request, which is related to view multiple spreadsheets: <https://jira.atlassian.com/browse/CONF-39183>
* And the Bob Swift Excel add-on, that will have this option and also improve the user experience with Excel content: <https://marketplace.atlassian.com/plugins/org.swift.confluence.excel>

Hope it helps you!

Cheers,

Giuliano T.


author: Nic Brough -Adaptavist-
body: Where?


Tags: confluence-administration
If I create a page using pageme, then later update the Jira ticket, does it automatically update the Confluence page?
Asked by Pamela Cole:


Answers:
author: Roger de la Fuente
body: PageMe! doesn't auto-update the page, you'll have to click PageMe! again and choose the "Override content" to update the previously created page.


Tags: addon-com.atsistemas.jira.plugins.pageme

jira
Came from cloud. Move from 5.9.1 OD to 5.8.13 Possible?
Asked by Eric Hoch:

Running 5.9.1 OD

need 5.8.13 for a plugin. Possible?


Answers:
author: Mallmann
body: Hey Eric,

We always recommend you to keep running the OD version (which is newer than the BTF one) until a newer server version is released. In this case it would be necessary to wait for the Confluence Server 5.9 or 5.10/6 (not sure which one will come first), upgrading the instance with the correct upgrade steps instead of exporting/importing XML backups.

Note that as long as the OD version you're running Behind The Firewall is newer than the latest Server version we have released, you'll be covered by our support just as a Server version is. :smile:

I hope it helps,

Eduardo


author: Eric Hoch
body: From what I have read, yes manual downgrade can be tricky.

As far as migrating from the OD release were running now to the 5.9 Server, is it simply a backup/export from OD instance and then import into new 5.9 Server instance? This was the process moving from the cloud product to our now in house server.


author: Nic Brough -Adaptavist-
body: Pretty much a "no", it can be very hard to downgrade an Atlassian application. 5.9 Server is on the way, your best bet is to wait for that, migrate to it and then bother the add-on vendor to update as well.


Tags: confluence-administration
Confluence user suggestion popup not updated after name change
Asked by Alec Lazarescu:

After changing a user's first and last name the suggestion box still comes up with their old one.

I saw this answer <https://answers.atlassian.com/questions/118335> suggesting to clear the cache but I'm on Confluence Cloud and I don't see any option to do that there.


Answers:
author: Guilherme V.
body: Hello Alec,

Only the System Administrator can perform that on Cloud versions.

I suggest opening a ticket in <https://support.atlassian.com/> for the Cloud Team so they could assist you performing that.

Cheers,


Tags: cloud

confluence-cloud
Can't access confluence after wrong base url configuration
Asked by project-march:

I have been trying to get confluence to redirect to port 80 but now I locked myself out somehow..

When I try to access my confluence site on either port 80 or 8090 it just gets stuck loading. Is there a way I can change the configuration of the base url back to :8090 through the command line or in the database?

I'm running a digital ocean server with confluence installed. I tried routing through iptables and changing the server.xml file to no avail. Now I have no way of accessing my confluence installation.


Answers:
author: Guilherme V.
body: Hey Nick,

Regarding changing the URL directly the database, please follow the instructions from the following documentation:

* <https://confluence.atlassian.com/display/CONFKB/How+do+I+Manually+Change+The+Base+URL>

Hope this will help you :smile:.

Cheers,


author: Nic Brough -Adaptavist-
body: An incorrect base url will not break Confluence to that extent - it'll give you errors in the UI, but not block all your access.

If it's running on port 8090, then it should be there. When you say "stuck loading", I assume you get an empty screen and nothing coming up at all? That implies Tomcat is running, but not able to load and run Confluence, which often happens when you mess up server.xml or other configs in Tomcat.

You should chekc the Confluence application log, but for that symptom, Tomcat's catalina.out file is usually where you will find the errors that are stopping Confluence.


Tags: confluence-administration
Multiple atlassian products on one Windows server
Asked by estankevicius:

Hello,  

We have one dedicated server for Atlassian products.  
It runs Windows server.  
We want to have internal domain for each Atlassian product.(like: bitbucket.local, confluence.local)  
And products running on 80 port, not 8090.   

Are there any solutions for this? I only could find this: <https://confluence.atlassian.com/display/CONFKB/How+to+setup+Confluence+with+IIS> but will this be a solution?   

<br />

P.S.  
Well, we just want to move from TFS to actual working tools. We have HUGE virtual stack with almost no limits in resources (2TB ram).  

Anyway, we did install on one machine. You could really improve integration between your products. And different configuration on each product(exmp.: LDAP) does not look nice for company like yours.   

Would be nice, if you had one installer where you could just enter your account of [atlassian.com](http://atlassian.com) and then select what to install on what database and so on. With integrations out of the box. It takes a lot of time to configure your products.


Answers:
author: Nic Brough -Adaptavist-
body: Running several Atlassian applications on a single server is fine, as long as you take into account

* The server has the required resources to run them (and bear in mind, they can be heavy loads)
* You accept that if there is server maintenance to do, it will affect all of them
* Same goes for faults - if one of them chews up all your CPU, the others will run out of steam.
* You run them separately - for each application, there is a separate Tomcat - never bundle them together.

Because of those points, most people will generally not want to run them all on the same box. But it does work - the applications are not an issue, it's the co-hosting and resourcing implications.

Your other problem about the ports is a case of getting proxying right. You still run the applications on port 8080, 8085 and 8090 etc, but within IIS, you need to tell it "when listening on domain jira.local:80, proxy the connections through to localhost:8090". The document you've found covers doing that for Confluence, but the steps for other apps are similar


author: Jan-Peter Rusch
body: Hi,

this won't work, as Atlassian strongly recommends to NOT RUN MORE THAN ONE PRODUCT on a single server. What you can do is having a single HTTP-Server (Apache, IIS,..) running on port 80 facing the customers/users (Frontend-Server) and serving the applications (Confluence, Jira, Bitbucket) (Backend-Server) via e.g. AJP on port 8090. I've no experience with IIS as HTTP-server and can only point our that Apache 2.4 is running without flaws using this configuration. Try running the Atlassian products on virtual servers on your Windows server. Depending on the user size each product would need about 4-6GB RAM initially...

You can try, but I STRONGLY do not recommend this, running the single products on different ports (8009, 8010, 8011) and configure the HTTP-Server to listen to the different ports, but I'm pretty sure you will run into trouble having more than a single JVM running on a single server.


Tags: confluence-administration
How to Display Bugs from Bugzilla in Confluence
Asked by Srinivas Prasad:

Hi,

I want my Confluence home page to display bugs from Bugzilla. Is there a specific macro plug-in for this, or a script that I can run?

Any help in this regard is appreciated.

Regards,  
Srini


Answers:
author: Bill Bailey
body: I have developed a Bugzilla connector that makes REST calls to a Bugzilla 5.x server, plus a set of macros to enter bug links, or display a list of search results in a table. If you are interested to learn more, let me know.

comments: author: HIS eG
body: Hi Bill!

I just found your answer via Google search and i am very intererested in your bugzilla connector for confluence. Can you tell me more about it?

Regards!

Stefan


author: Bill Bailey
body: Hello Stefan,

It is a two-part solution. I have a plugin that builds a REST connection to a Bugzilla instance (set in the admin console). REST calls are returned as Java objects that are available in the Velocity context. Then I have a set of user macro:

* Bug link, that can display one or more bugs from a list as a set of links. Mouse-over on the link displays a bug summary, or the summary can be displayed inline after the bug link. Bug link decoration based on whether the bug is new, resolved, etc.
* Table lsting user-selectable values for a list of bugs.
* Table similar to above based on a Bugzilla search query.

The way it is structured, anyone familiar with Velocity could create their own macros for custom application. For example, I have a customer who stores release note data in Bugzilla. That information can now be brought in to Confluence, properly formatted for output to PDF release notes, all from a single macro with a search string. It greatly simplified their release-note process.

I don't have a publicly accessible demo site set up yet (too busy solving customer issues :wink: ), but you can contact me through my website [www.marketcomllc.com](http://www.marketcomllc.com) if you want more info.


author: HIS eG
body: Hi Bill!

Thanks for your reply. I tried to open your website, but it seems that your server is down...


author: Pedro Cora
body: Take a look at this page: <https://www.cloudpipes.com/integrations/bugzilla/confluence> It seems to provide some integration.

-- Pedro
Is it possible to use confluence in place of one drive and if yes how or should I use Explorer as a bridge among the two?
Asked by gian domenico serra:


Answers:
author: Stephen Deutsch
body: Hi Gian,

Confluence is a wiki, you could probably compare it to Mediawiki (the software behind Wikipedia) or Sharepoint. While you can store files in it, it limits file sizes by default to 10MB.

Basically, while you could use it as a file sharing solution, this is not the use case for this software, and therefore is not a very good solution.

I would recommend using a proper file sharing service, such as Dropbox for Business, Onedrive, Google Drive, etc. You could then link this into Confluence using one of many different plugins that allow you to browse the contents of file sharing services.

comments: author: gian domenico serra
body: Thank you!! To link confluence and Onedrive is ok explorer or si better something else?
Postgresql database removed, what can be restored
Asked by Julien Ganichot:

I'm running the latest versions of confluence, jira and stash on my server. Unfortunately somebody completely removed the postgrsql server including the data in /var/lib/postgresql.

What can be restored? How do I set up a new database without removing the home directories?


Answers:
author: Rodrigo Girardi Adami
body: Hi team,

If you have an old backup of Postgres Confluence database, you can also reinstall the postgres and restore it by using this command:

```
psql -h database_host -p database_port -U  database_user schema_name &lt; C:\backup_file.dmp
```

I hope this helps!

Cheers,

Rodrigo


author: Nic Brough -Adaptavist-
body: Not a lot.

If you had the backup services installed (they're on by default), then you should have .xml files in the applications home directories, so you could install new versions of them and restore the xml - you'll need the attachments directories too. But that's about it if you've lost the databases - you're mostly starting from scratch.


Tags: bitbucket

jira-cloud

postgres
Is it safe to enable Confluence Usage Stats add-on?
Asked by Markus:

Confluence version 5.6.3  
Version: 0.18  
Vendor:  
Vendor: [Atlassian Pty Ltd](http://www.atlassian.com/)  
Add-on key:  
Add-on key: com.atlassian.confluence.ext.usage

"This add-on is not compatible with your Confluence instance. An update for this add-on has already been requested from the vendor."


Answers:
author: Guilherme V.
body: Hey Markus,

If you want to see some stats from Confluence, I suggest using the [Google Analytics for Confluence](https://marketplace.atlassian.com/plugins/com.go2group.plugins.confluence-ga).

Cheers,


author: Stefan Ernst
body: We have this plugin enabled in 5.6.6 but its a system plugin so it is not flagged as incompatible. Its working fine for our wiki even though the report generation is a bit slow.


author: Nic Brough -Adaptavist-
body: Possibly might work, but I would not do it.

It's not flagged as compatible, so there's a good chance that it has problems (or simply won't function at all).


Tags: confluence-administration
Anyone seen Confluence UndeclaredThrowableException on Task Re-open?
Asked by Mark Symons:

Has anyone noticed logged UndeclaredThrowableException in Confluence that occur when a task that contains an @mention is re-opened? There is no error in the UI. I've seen these exceptions with Confluence v5.7.4 and v5.8.6. If it's not just me then I'll log it on JAC: it just seems strange that there is nothing already logged.

```
2015-09-24 12:35:34,300 ERROR [http-bio-8090-exec-407] [atlassian.event.internal.AsynchronousAbleEventDispatcher] run There was an exception thrown trying to dispatch event [ConfluenceTaskUpdateEvent{user=com.atlassian.confluence.user.ConfluenceUserImpl@2a541eb3[alice,ff80808141044f6c0141044fdfda000a], task=Task [globalId=0, id=3, contentId=22938087, taskStatus=UNCHECKED, title=blah blah blah. Alice http://foo.bar.com/display/~alice, description=, body=<span>blah blah blah. <ac:link><ri:user ri:userkey="ff80808141044f6c0141044fdfda000a" /></ac:link> <br /></span>, creator=null, assignee=alice, createDate=null, dueDate=null, updateDate=null, completeUser=null, completeDate=null]}] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener.onTaskUpdatedEvent(com.atlassian.confluence.plugins.tasklist.event.ConfluenceTaskUpdateEvent) throws java.lang.Exception, listener=com.atlassian.mywork.providers.confluence.ConfluenceTasksEventListener@685c6c4d}]
?-- referer: http://foo.bar.com/plugins/inlinetasks/mytasks.action | url: /rest/inlinetasks/1/task/22938087/3/ | userName: alice
java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException
?? ?at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:50)
?? ?at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)
...
Caused by: java.lang.reflect.UndeclaredThrowableException
?? ?at com.sun.proxy.$Proxy1183.markIncomplete(Unknown Source)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.reflect.InvocationTargetException
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.NullPointerException
?? ?at com.atlassian.mywork.model.TaskBuilder.<init>(TaskBuilder.java:42)
?? ?at com.atlassian.mywork.host.service.LocalTaskServiceImpl$2.apply(LocalTaskServiceImpl.java:112)
?? ?at com.atlassian.mywork.host.service.LocalTaskServiceImpl$2.apply(LocalTaskServiceImpl.java:108)
```


Answers:
author: Christian Schlaefcke
body: Yes - I have found this too when running the log scanner on Confluence 5.7.3

I will also leave a comment on [CONF-31800](https://jira.atlassian.com/browse/CONF-31800).


Tags: confluence-administration