youngmon/atlassian-qna huggingface dataset:
integrating Salesforce with Confluence
Asked by SiriusXM Atlassian Administrator:

Hi folks! Giving the new answers site a try.

I'm looking into including Salesforce content in Confluence. The Customware Connector for Salesforce isn't available yet for Confluence version 3.5. Anyone doing this currently, and how?

Thanks, Myra


Answers:
author: Azwandi Mohd Aris
body: It seems that the plugin is the only solution at the moment. Good news it has been updated for Confluence 3.5.x. <https://plugins.atlassian.com/plugin/details/241>


author: Sanjiva Nath
body: Here's the zAgile webinar which shows how to use the open source Wikidsmart plug-in \& platform to bi-directionally integrate content between JIRA, Salesforce, and Confluence for maximum interoperability, traceaiblity, and federated search:

[http://www.youtube.com/watch?v=woXmp9H6xgs\&context=C4ab96adADvjVQa1PpcFO2zuZDdQq4-xVhEGPLXVbcWUm4hXmy8ic=](http://www.youtube.com/watch?v=woXmp9H6xgs&context=C4ab96adADvjVQa1PpcFO2zuZDdQq4-xVhEGPLXVbcWUm4hXmy8ic=)


Tags: salesforce
How do I change to an older version of a plugin
Asked by Larry Larry:

I upgraded to the latest version of Advanced-search and found out that maxResults stopped working. All our searches now show 10 results only. I found it listed as a bug and the workaround is go back to the previous version. How do I do that? We're on Confluence 3.1


Answers:
author: Joe Clark
body: Azwan's answer is probably the simplest. Alternatively, download the specific plugin manually through your web browser from [plugins.atlassian.com](http://plugins.atlassian.com) and then manually upload it to Confluence - it should overwrite the existing version. See <http://confluence.atlassian.com/display/DOC/Installing+a+Plugin#InstallingaPlugin-Uploadingyourownplugin>.

The advantage of this approach is that it will work even if the version you want to downgrade to is not the version that is shipped by default with your version of Confluence.


author: Azwandi Mohd Aris
body: Try uninstall the plugin and restart Confluence. The bundled version should be loaded back into Confluence.
Confluence Log error
Asked by Jenin C M:

Hi

I am getting below error in my Confluence logs:

2011-07-21 06:45:08,409 ERROR \[TP-Processor168\] \[atlassian.confluence.util.GeneralUtil\] completeUrlEncode Error while trying to encode the URL!  
-- url: /confluence/display/EEMEADO/SOD+Checks+-+HK \| page: 91240649 \| userName: anonymous \| action: viewpage  
java.net.MalformedURLException: Unknown protocol: xmpp  
at java.net.URL.\<init\>(URL.java:601)  
at java.net.URL.\<init\>(URL.java:464)  
at java.net.URL.\<init\>(URL.java:413)  
at com.atlassian.confluence.util.CompleteURLEncoder.encode(CompleteURLEncoder.java:29)  
at com.atlassian.confluence.util.GeneralUtil.completeUrlEncode(GeneralUtil.java:275)  
at com.atlassian.confluence.links.linktypes.ShortcutLink.\<init\>(ShortcutLink.java:26)  
at com.atlassian.confluence.links.ConfluenceLinkResolver.makeShortcutLink(ConfluenceLinkResolver.java:178)  
at com.atlassian.confluence.links.ConfluenceLinkResolver.createLink(ConfluenceLinkResolver.java:123)

Can anyone throw some light on it?

Regards,

Jenin


Answers:
author: Azwandi Mohd Aris
body: Try browsing to the page /confluence/display/EEMEADO/SOD+Checks+-+HK and check the contents. There could be some form of link markups that Confluence could not encode.


author: Nic Brough -Adaptavist-
body: It could be external too - it looks to me like a user has tried to connect to your Confluence site using an instant messenger client!


author: Betsy Walker
body: I think it's caused by what it says it is: a malformed URL. [This page](http://www.jguru.com/faq/view.jsp?EID=15825) describes some typical causes.

If this is a new install of Confluence, check the web app context set in the ROOT.xml file in the /confCatalina/localhost folder. In our case (an EAR/WAR install), for instance, our URLs don't have /confluence at the front of it.
How to make a page from a different space appear to be on the current space?
Asked by Juha Kuusama:

We are an engineering company, doing customer projects using our own semistandard parts and modules. Each customer is using their own space. I'd like to build a project documentation so, that when a documentation page referes to the documentation of our standard module, it looks as a part of the project documents. I know how to link to a page in a different space. The problem is that when a customer clicks a link describing our standard module, he is trasferred to the documentation tree of our common modules. I would like to keep the left hand side hierarchy display the standard module pages in the right places of the hierarchy (currently, they don't appear there at all) and also, when a customer goes to such a page, keep the hierarchy tree showing the customer's project, not our module documentation hierarchy.

Is there a way to achieve this, short of making separate copies to each customer's space?

Thank you!

-Juha


Answers:
author: MatthewC
body: Can you not use the {include}macro?

You would have a pages in each customer space that mirrored the structure of your common documentation that contain the included content from your common space.

e.g. if you had a page called Glossary in the customer space it would be

{include:COMMON:Glossary}

You could create this for every referenced page just once in blank template space \& use the Copy space plugin to create every customer space.

The only problem with this is that any links between common included pages would link to the Common space, not the customer space but with careful writing you could avoid this.


author: Juha Kuusama
body: ThankYou Matthew!
> Can you not use the {include}macro?

Yes I can, now that I know about it. :-) This is exactly what I was asking for.

Regards,


author: Kevin Buchs
body: How are you currently showing the hierarchy tree? Is this just the page template for Confluence?

What is the expected max number of parts and modules? What about customers?

Does your part/module documentation all have a common parent page, by any chance?

Do the customers each have their own accounts?


author: Kevin Buchs
body: How are you currently showing the hierarchy tree?
List labels under a page (not space).
Asked by Royce Wong:

I want to list all labels under a page (not space) and all its childs pages . I am aware of the listlabels macro, but you can only specify which space, not page.

Thanks in advance.


Answers:
author: Kevin Buchs
body: You can generate a set of the labels used on all descendent pages with the reporter plug-in. It will not be a single unique set of labels, however. Maybe it gives you what you are looking for.

--------------------

```
{report-table} {content-reporter:spaces=@self|types=+page|scope=@self > descendents} {text-filter:content:labels|minLength=1}{text-sort:content:labels} {content-reporter} {report-column:title=Labels}{report-info:content:labels}{report-column} {report-table} 
```

```
 
```

```
-----------------
```

comments: author: Royce Wong
body: Thanks for the reply Kevin! I tested the code, but as you stated, it doesn't display single unique set of labels, so it's not quite what I am looking for, but maybe I can find ways to improve it. Thanks again.


Tags: label
plugin menu issue
Asked by aipune@bmc.com:

### Hi, {#toc-hId-1454534437}

### we have upgraded from confluencde 3.3.3 to 3.5.4. After upgarde when i check confluene admin console i do not see the plugin repository and plugin manager menu.Its just missing from the list of menu.Is there anything i need to enable once i am done with upgarde or something specific to 3.5.x that i need to tune?Please let us know the same. {#toc-hId--1097622524}

### Thanks \& Regards,
Deepak. {#toc-hId-645187811}


Answers:
author: Joe Clark
body: The Plugin Manager in Confluence is, in itself, a plugin. If it fails to initialise properly during Confluence's start-up, then the links it provides may be missing from the administation console.

<br />

Check the Confluence logs to see if there are any errors during start-up. See our [Working with Confluence Logs](http://confluence.atlassian.com/display/DOC/Working+with+Confluence+Logs) documentation guide.


author: HuseinA
body: Joseph was right. Most likely, Universal Plugin Manager (the new plugin manager in 3.4.x onwards) failed to initialise properly upon startup due to [this known issue](http://confluence.atlassian.com/display/CONFKB/Unable+to+Start+Confluence+or+Some+Plugins+are+Disabled+upon+Startup). You should still be able to access the old plugin manager by direct accessing it at *[http://confluence-path/admin/viewplugins.action](http://confluence-path/admin/viewplugins.action.)*. If UPM turned out to be disabled (which most likely is the case), then you just need to enable it to make the link appear in Admin Console as normal.


author: Nic Brough -Adaptavist-
body: Ouch, could you not capitalise every word? It makes it VERY hard to read.

You need to check your permissions first - do you have all the admin rights? Next, check the list of plugins to see if any are disabled because of loading errors.
reporting plugin: sorting contents by modification date - is this the correct syntax?
Asked by Kevin Buchs:

I am using the reporting plug-in macros to generate a list of child pages along with their modification dates. I want the reporter to do the sorting. Can anyone suggest any mistakes in this syntax?

```
h3. Software Release Planning Documents 

{report-table} 

{content-reporter:space=@self|types=+page|scope=@self > descendents} 
{text-sort:content:modification date|order=descending} 
{content-reporter} 

{report-column:title=Title}{report-info:page:title|link=true}{report-column} 
{report-column:title=Last Modified}{report-info:page:modification date}{report-column} 

{report-table}
```

Here are the results I see (note the sorting does not happen)

https://docs.google.com/leaf?id=0B_HuVg-yTgznZjU5YTc5OTktYzQ3Mi00YjgxLTg2ZDUtMzc2YWE5OWJlMmU1\&hl=en_US

![output of markup](https://docs.google.com/leaf?id=0B_HuVg-yTgznZjU5YTc5OTktYzQ3Mi00YjgxLTg2ZDUtMzc2YWE5OWJlMmU1&hl=en_US)  


Answers:
author: Kevin Buchs
body: The answer is: use date-sort instead of text-sort for date fields.

> {report-table}
>
> {content-reporter:space=@self\|types=+page\|scope=@self \> descendents}
>
> {**date-sort**:content:modification date\|order=descending}
>
> {content-reporter}
>
> {report-column:title=Title}{report-info:page:title\|link=true}{report-column}
>
> {report-column:title=Last Modified}{report-info:page:modification date}{report-column}
>
> {report-table}
Confluence Usage Stats
Asked by IT KnowledgeSystemsManagement:

I was wondering if anyone has any good suggestions on pulling usage stat's from confluence. Page views per min type stuff. Has to be an internal solution, using Google Analytics is not an option due to security concerns.


Answers:
author: Joe Clark
body: There is the [Usage Tracking Plugin](https://plugins.atlassian.com/plugin/details/271), but it can cause some performance problems on large instances and can quickly blow out the size of the lucene index, so I'd recommend trialling it before going the whole hog with it.


author: Matt
body: What about using the Webtrends Analytics Connector?

<https://www.appfusions.com/display/WTRDSC/Home>


author: Vijay Sv
body: If your using MS SQL, here is how you get Confluence Usage via DB.

select 'Total Spaces', count(\*) from SPACES -----Total Spaces  
select 'Personal Spaces', count(\*) from SPACES where \[SPACETYPE\] ='personal' ---Personal Spaces  
select 'Site Spaces',count(\*) from SPACES where \[SPACETYPE\] = 'global' -- Site/global Spaces  
SELECT 'Content (All Versions)', count(\*) FROM \[CONTENT\] ---- Content (All Versions)  
select 'Content (Current Versions)', count(\*) from CONTENT where PREVVER is null; --- Content (Current Versions)  
select count(\*) from \[dbo\].\[cwd_group\] ---Local Groups  
select count(\*) from \[dbo\].\[cwd_user\] ----Local Users  
SELECT 'Blogposts',count(\*) FROM \[CONTENT\] WHERE CONTENTTYPE = 'BLOGPOST';  
select 'All Pages',count(\*) from CONTENT where CONTENTTYPE ='PAGE';  
SELECT 'Comments',count(\*) FROM CONTENT WHERE CONTENTTYPE = 'COMMENT';  
SELECT 'All Content Attachments', count(\*) FROM \[dbo\].\[CONTENT\] WHERE CONTENTTYPE = 'ATTACHMENT'; --All Content Attachments

Hope this help!!

Thanks,  
VJ


author: AbrahamA
body: Hi Betsy

Is it possible to share your sql queries.

Thanks

Abe

comments: author: hsuhailah
body: This might help: https://answers.atlassian.com/questions/70444/how-to-get-confluence-stats/70485


author: Betsy Walker
body: The [How Do I Get More Statistics from Confluence article](http://confluence.atlassian.com/pages/viewpage.action?pageId=154239308) has some good suggestions. In our case, i just run a set of SQL queries once a month that give me stats for the previous month, such as # of spaces, attachments, users, count by contenttype, top 10 largest spaces based on content, etc. I've found that some of the metrics-oriented plugins are very performance-intensive.

As we're in the process of adding Webtrends analytics to our Confluence installation, the statistics gathered there may suffice going forward.

comments: author: IT KnowledgeSystemsManagement
body: BetsyW,

Love to hear how your webtrends test works out.
How do I keep Confluence running after logging off of the server?
Asked by Network Administrator:

I have just finished installing Confluence 3.5.7 on a Windows Server 2008 R2 using a SQL database. Now that I am done with the installation, I want to log off of the server. But when I log off, it closes open programs, including the Tomcat window.

So my question is, How do I log off of my server without the Confluence website shutting down?


Answers:
author: Richard Yale
body: You need to install Confluence as a Windows Service.

comments: author: Edwin Chan
body: A quick way to do it is to use service.bat in /bin


author: Elvir Hadzic
body: Did you check the Confluence (error) logs?


author: Network Administrator
body: I tried the instructions on <http://confluence.atlassian.com/display/DOC/Start+Confluence+Automatically+on+Windows+as+a+Service>.

But I get a message saying that:

Windows could not start the Apache Tomcat Confluence on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 0.

comments: author: David at David Simpson Apps
body: Are you running the 64bit version of Java? If so, you'll need to update the bundled services fro the 32bit version.
Upgrading Confluence and Database together
Asked by timrmoore:

I'm a bit stuck on this one.

I have 2.7.4 on windows server 2008 connecting to an SQL 2000 database (this is the interim step from 2.6.0)

I need to get to 3.5.7 on windows 2008 connecting to an SQL 2008 database

2.7.4 doesn't seem to support a 2008 DB, while 3.5.7 doesn't seem to support a 2000 DB

So I'm in a bit of a chicken and egg situation I think. I can't upgrade the software install to point to the old DB and I can't upgrade the DB and point the existing install to it (or can I?!)


Answers:
author: Martin Cooper
body: I would need to check the various details - but you should be able to use the xml export import method.

export your current data to xml then import that into your empty new version and DB.

You may be better off hopping to an intermediary verison first rather than try to go all in one step, and that may enable you to move using the more automated in-situ db upgrade.

Else follow the instructions for moving to new Database:

<http://confluence.atlassian.com/display/DOC/Migrate+to+Another+Database>

comments: author: timrmoore
body: Hi Martin, I didn't think you could do an upgrade and a DB migration at the same time?

I'm thinking 2.9 might be the next step as it Supports 2005 and works with 2000, but then I'll need yet another DB created.

Atlassian support have advised I shouldn't need another step (already gone 2.6.0 to 2.7.4), but I can't see how else to do it.


author: Martin Cooper
body: In normal circumstances, its not advised you want to de-risk as much as possible - but the xml is database independant making your confluence data pretty portable in reality. As always would test first of course.

From a quick check, 2000 support was last mentioned in 2.8. 2.9 only lists 2005

<http://confluence.atlassian.com/display/CONF29/List+Of+Supported+Databases>

(2.7.4 is the minimum version from the confluence side)


author: timrmoore
body: Yeah, this is the test migration. Will give it a go


author: Jeremy Largman
body: I upticked Martin's answer, it's basically the same one I'd give. One caveat - the XML backup is notoriously unreliable. If you hit an error you can troubleshoot it. Start with [XML Backups and Space Exports Troubleshooting](http://confluence.atlassian.com/display/CONFKB/XML+Backups+and+Space+Exports+Troubleshooting) and find the error in the logs for the article you need from there.

Alternatively, you can run the upgrade to 3.5, then use a native database tool to migrate your data from 2000 to 2008 (I bet it will work, it's just not supported - it had performance problems and we deprecated it for that reason).
Conditional formatting in confluence
Asked by Jason Skrzypek:

Hi Guys,

I have a table which produces a scores based on information entered into a scaffold form. Is it possible to change the cell or text colour based on the score value? For example is the score is below 40% this would turn red, 41%-60% this would turn orange and 61%+ would turn green. Ive started messing with Jquery which i know nothing about and probably heading in the wrong direction. I know the option is available in Excel (conditional formating) and was hoping someone would know how to do this with Confluence

Cheers

jason


Answers:
author: Kevin Buchs
body: Well, here a beginning of something you might try: put your scores on other pages, and make the text on each page be set to a color based on a label. The {include} all those pages into one master table.

other pages, for example Page a, Page b and Page c contain:

```
My number is {show-if:label=small}{color:blue}24{color}{show-if}{show-if:label=medium}{color:green}24{color}{show-if}{show-if:label=large}{color:red}24{color}{show-if}
```

Where the number of interest is 24 or others. Change the colors to match your requirements. Then label each page with one of "small", "medium", "large". The roll-up page can look like this:

```
|| Values ||
```

```
| {include:Page a} |
```

```
| {include:Page b} |
```

```
| {include:Page c} |
```

This will render a table with three colored numbers in it.

I tried to think of how I could combine this with the reporting plug in, but it spits out all the {show-if} macros.


author: Jason Skrzypek
body: based on this link <http://community.customware.net/customware/topics/using_the_show_if_macro_with_scaffolding_data>, ive created a text box where you can enter 1,2, or 3. The the report block produces text and a background colour based on the content. I just need to get this to work with the eval-data macro

\|{text-data:test}{text-data}\|

\|{report-block}

{local-reporter:data:test}

{text-filter:@self\|include=1}

{report-body}{bgcolor:yellow}test1{bgcolor}{report-body}

{text-filter:@self\|include=2}

{report-body}{bgcolor:green}test1{bgcolor}{report-body}

{text-filter:@self\|include=3}

{report-body}{bgcolor:blue}test1{bgcolor}{report-body}

{report-empty}Nothing is selected.{report-empty}

{report-block}\|


Tags: condition

format
Customizing page title in the documentation theme
Asked by Stefan Prenner:

Hi everybody,

is there a simple possibility to add the same line which is at the end of every page between the site title and the content in the documentation theme?  

Thanks.


Answers:
author: HuseinA
body: You can [customise theme](/questions/592/how-do-you-customise-a-bundled-theme)'s Page Layout (ie. page.vmd) to do that. For documentation theme, you'll need to edit confluence-install/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip/doctheme-x.x.jar/doctheme/decorators/**page.vmd**. And add anything you want before where the content is:
>
> ```
>         <div class="wiki-content">
> ```
>
> ```
>            $body
> ```
>
> ```
>         </div>
> ```

comments: author: Stefan Prenner
body: o.k. thanks, i'll try it.
Recently Updated for Parent Page and Descendents
Asked by Michael Roff:

Is it possible to create a recently updated report based on any changes made to a parent page and any of its deccendents?

IE. I don't want a report for the WHOLE space - just a specific section of that space


Answers:
author: Colin Goudie
body: There doesn't apear to be, however, probably wouldn't be too hard to modify the source from the recently updated macro and include the parent page as an optional parameters

<http://confluence.atlassian.com/display/DOC/Recently+Updated+Macro>

comments: author: Michael Roff
body: I guess the degree of difficultly is relative to experience writing macros for Confluence.

Unfortunately, I am not experienced, thus, it's probably not easy for me.

Thanks for the response.
Error on Confluence startup
Asked by Brent Horine:

Hi,

We have installed Jira and are now installing confluence. JDK is installed, JAVA_HOME is set to c:\\Progra\~1....

Upon starting startup.bat, it starts, but when trying to startup confluence server we get the error

HTTP Status 500 - {#toc-hId-1869903610}
=======================================

*** ** * ** ***

**type** Exception report

**message**

**description** The server encountered an internal error () that prevented it from fulfilling this request.

**exception**

```
java.lang.NullPointerException	com.atlassian.confluence.util.GeneralUtil.isSetupComplete(GeneralUtil.java:810)	com.atlassian.confluence.web.filter.LanguageExtractionFilter.getLocaleManager(LanguageExtractionFilter.java:57)	com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:46)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)
```

**note** The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

<br />


Answers:
author: BernardoA
body: Sometimes the fix is just restart the application or clean and rebuild the bundled plugin directories. However to better investigate this problem is necessary to analyze the log.


author: Richard Yale
body: To me this is saying that there was an error during setup because the variable isSetupComplete is Null. I would suggest trying to install Confluence again following all of the installation steps to a T.


author: Azwandi Mohd Aris
body: In case you need some help to find the log file, try this [doc](http://confluence.atlassian.com/display/DOC/Working+with+Confluence+Logs)


author: Colin Goudie
body: We'll need some more information. Can you provide full exceptions from the logs in your confluence home?