youngmon/atlassian-qna huggingface dataset:
Export Wiki content to doc file.
Asked by Emanuel Chmal:

Hi,

I'm writing plugin exporting wiki content to doc file. If on a page is for example hide-if macro, plugin should not to write the content included in this macro. How can i do this ? Can you help me ?


Answers:
author: Renjith Pillai
body: Since you are on OnDemand plugins are restricted. A workaround would be to use JIRA CLI, get the pages and sub pages using getPageSource, append all of them to a single page in a test space used only for exports, and then use the word link of this new page to get your complete document.


author: dsfgwe sdfgwe
body: --Content Removed--


author: Renjith Pillai
body: Doubt: Isn't the direct save as Word from Confluence feature not good enough?

comments: author: Emanuel Chmal
body: No, because i have to put into one word file content of root page and selected subpages.


author: OmarA
body: Hi,

Are you writing this plugin for OnDemand? Because in OnDemand third-party plugins are not possible , see here : <https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand>

Cheers,

comments: author: Emanuel Chmal
body: Yes, OnDemand. Thanks for reply.


Tags: cloud

confluence-cloud
how can I find pages with the same name in two different spaces?
Asked by Mick Davidson:

We're moving the entire content of several spaces into another sapce.

When I do this, I keep getting errors to do wth duplicate pages names. However, unhelpfully Confluence doesn't say which names are duplicated. This means the only way to find out what the duplicates are, is to do it manually.

Which is a ridiculously time consuming thing to do, especially when each space that's being moved has 100s of pages.

Does anyone know how I can do find out what these duplicates are?

Cheers.


Answers:
author: SarahA
body: Hallo Mick

I've written a couple of Python scripts to do this.

* **`pagelister.py`** -- Accesses Confluence via the remote API, and lists all the pages in a given set of Confluence spaces. It puts the page names and space keys into a text file in the format required by the `pageduptest` script.
* **`pageduptest.py`** -- Checks a text file for duplicate page names, and spits out the offending page names and space keys.

Details here:

<http://ffeathers.wordpress.com/2012/07/28/how-to-find-duplicate-page-names-across-confluence-spaces/>

Cheers, Sarah

comments: author: Mick Davidson
body: Sarah,

thanks for the info, I've passed it on to our man who can. :)


author: Jaskirat Baweja
body: Very useful indeed.


author: Bob Swift (personal)
body: I don't know how to do it easily, but you could use [getPageList](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-getPageList) from [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) on both spaces to at least visually see differences and duplicates in the 2 lists. You will need the latest [snapshot](https://bobswift.atlassian.net/wiki/download/attachments/16285777/confluence-cli-2.7.0-SNAPSHOT-distribution.zip) to get the result ordered by page title.

comments: author: Mick Davidson
body: Bob,

thanks for the idea, but that would mean visually comparing the content of three different spaces, which I'm certainly not going to do. :)

Apparently the API can be used to do this, but I've no idea how to, and at 2130 on Sunday evening, I'm not about to try finding out how. :)

Cheers.


Tags: duplicate

page

space
Is it possible to move the comments within the page?
Asked by Daniela Scheiwe:

I'd like to have the comments to a page as part of the page itself, as we're discussing a lot in confluence.

A {comments} macro would be the perfect solution...any ideas?


Answers:
author: Sam Hall
body: Have a look at this plugin... <https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.talk.confluence-talk-plugin>

Looks like this allows you to add placeholders for inline comments.


author: Sam Hall
body: If you've got relevant content in the comments that you'd like in the page, why not encorage people to simply update the page?

Keeping a clear separation between the formal document and related banter about the document is important, are you sure you want to blurr that line?


Tags: comment

include
How can I embed a customer satisfaction survey tool into my OnDemand Wiki?
Asked by Martin Geck:

As a technical writer I want to ask people visiting our public documentation page three questions:

* What is the purpose of your visit to our website today?
* Were you able to complete your task today?
* If you were not able to complete your task today, why not?

My idea is to create that survey using a survey tool like <http://qualaroo.com/> which creates a \<script\> that I would like to embedd into the relevant pages.

So I thought [Enabling HTML Macros](https://confluence.atlassian.com/display/CONF43/Enabling+HTML+macros) and then using the [HTML include macro](https://confluence.atlassian.com/display/CONF43/HTML+Include+Macro) is the way to go.

But in OnDemand I can not find any HTML Macro in the Wiki Plugin administration.  
And I could not find information on [Atlassian OnDemand Plugin Policy](https://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+Plugin+Policy) if it was not supported.  

How can I accomplish this task?


Answers:
author: Tim
body: Hi Martin,

It's many years later but this might help the next person: we've built an add-on that includes a secured HTML macro designed specifically for Confluence Cloud. It will let you easily embed HTML and Javascript that other products give you right into a Confluence page.

You can find more details here: [Macro Toolbox for Cloud](https://marketplace.atlassian.com/plugins/com.addonengine.macrotoolboxforcloud/cloud/overview)

Hope it helps!


author: Tim
body: Stefany: see my answer below -- it might help you as well.

comments: author: Stefany_Bueno_Miguel
body: Hi! There's any problems in the macro? I can't see the content of html. Thanks!


author: Stefany_Bueno_Miguel
body: I would like to know, too. :)


author: Martin Geck
body: Related to [https://answers.atlassian.com/questions/40897/adding-google-analytics-to-an-ondemand-confluence-instance](/questions/40897/adding-google-analytics-to-an-ondemand-confluence-instance) ?


Tags: app

cloud

confluence-cloud

javascript
"Confluence Admin" menu item missing
Asked by Pamela Lee:

The confluence admin item on the Dashboard's browse dropdown menu has disappeared. I need help to make it reappear.


Answers:
author: Azwandi Mohd Aris
body: Perhaps you do not have the [Confluence Administrator permission](https://confluence.atlassian.com/display/DOC/Global+Permissions+Overview), since this menu item will appear for only those who have the permission.

If this is not about permission, this might happen if you have non-standard themes or some customisation to the instance.

comments: author: Azwandi Mohd Aris
body: I realized that you are using Confluence OnDemand. For some reasons the administrators group does not have the permission to administer Confluence. I have since fixed this for you.


Tags: administration

confluence-cloud
Can not grant existing Jira user access to Confluence
Asked by Adam Cowley:

I have users in Jira that want to see my Confluence instance.

How do I grant them access?

All of the help documents are wrong.


Answers:
author: Matt
body: Have you tried to add Jira as a User Directory in Confluence?

Go to Confluence Admin -\> User Directories

Point to jira instance and save connection.

Hit synchronize, if it is not sync by default.

After a moment your users will be able to login to confluence using their jira usernames and passwords.

Check out the documentation:

<https://confluence.atlassian.com/display/DOC/Connecting+to+Crowd+or+JIRA+for+User+Management#ConnectingtoCrowdorJIRAforUserManagement-ConnectingConfluencetoJIRAforUserManagement>


Tags: jira

permission
Email notification for Wiki posts?
Asked by Curtis Long:

Is there a way to activate email notifications for posts/changes to the Confluence wiki? We're not working full-time in Jira yet (we're just starting out) so we rely pretty heavily on email notifications to let us know of things requiring our attention.


Answers:
author: Harry Chan
body: Hi, you can watch Confluence pages/spaces. You will get notified if you are a watcher.

Refer to <https://confluence.atlassian.com/display/DOC/Watching+a+Page+or+Blog+Post> for watching a page/blog.

Refer to <https://confluence.atlassian.com/display/DOC/Watching+a+Space> on watching a space.


author: Gary
body: Hi,

If a user is set as a watcher for the particular page, they should be emailed when changes or updates are made to that page. Here is the documentation for managing watchers:

<https://confluence.atlassian.com/display/DOC/Managing+Watchers>

Thanks,

Gary

comments: author: Matt
body: Do not forget, that you may watch a space also. You'll get emails about any activity on the space. Here is a link <https://confluence.atlassian.com/display/DOC/Watching+a+Space>


author: Curtis Long
body: Thanks for your answers.


author: Renjith Pillai
body: Some hints

* Managing watchers requires space admin rights, AFAIK
* The community bubbles plugin from CustomWare helps to watch page trees as well mainly targetted at forums built inside Confluence using the {forum} macro

<https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.bubbles>


Tags: cloud

confluence-cloud

email

notification

wiki
In App Notifications - In On-Demand yet?
Asked by Richard S:

I've been looking through the documentation available on what is coming in Confluence 4.3.

I can see the vast majority of changes in the on-demand instance I have already (table sorting, colouring, mentions etc.) and all of the features are excellent, however one feature in the documentation is In App Notifications / Personal Task Lists. Is this feature available on-demand yet as it looks to be from the documentation, however I can't seem to find it?


Answers:
author: John Masson
body: Hi Steve,

We released a lot of the 4.3 features to OnDemand ahead of the Download release, something you'll see us doing more of in the future.

You'll have Tasks, Notifications, Mobile and the rest of the 4.3 features very, very soon. ;)

John

comments: author: Richard S
body: I'm so glad you guys are on the other side of the world and in front of us timewise .... I wake up this morning and it has all magically appeared - talk about first class service, I only asked yesterday! ;-)


author: Georges Moubarak
body: Hi [@Richard S1](/t5/user/viewprofilepage/user-id/527664),

Why don't you check [In-App \& Desktop Notifications for Jira](https://marketplace.atlassian.com/plugins/com.infosysta.jira.in-app-and-desktop-notifications-for-jira/server/overview), we will support on-demand in-app notifications in a couple of weeks.


author: Harry Chan
body: Hi, looking through the OnDemand release notes, I don't think this is available yet.

You can view the release notes here - <https://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+release+summary>. It's constantly updated and something to follow on upcoming features.

comments: author: Richard S
body: Funniliy enough, I'd just read that. ;-)

Fingers crossed in may be released tomorrow, as most of the rest of 4.3 functionality is already available.


Tags: cloud

early-access

notification
Making the SSO in SalesForce Work
Asked by Jeff Summers:

Hi,

I have tried to create the SSO button (<http://wiki.customware.net/repository/display/SFCONF/Configure+Salesforce+SSO+1-click+button>) in our SalesForce system; however, it doesn't seem to work.

I can get the button to show up in SalesForce; however once I click on it I get taken to at Atlassian Maintenance Message. What am I missing?


Answers:
author: NikE
body: With OnDemand, SSO is only available between the applciations in the OnDemand suite. The customware doc that you linked is only going to work with the download/Behind-the-Firewall versions of Confluence (and the guide looks to be on point for that application).


Tags: confluence-cloud

cloud

customware

salesforce
Quotation marks are appearing as &quot
Asked by E:

We've set up a macro to pre-format the code block macro to cpp. The problem is in our macro,

```cpp functions bold
printf("Drive OEM is %s",oem_name);
```

```
is appearing as
```

```cpp functions bold
printf(&quot;Drive OEM is %s&quot;,oem_name);
```

The macro is:

```
## @param Title:title=Title|type=string|desc=Title <ac:macro ac:name="code"> <ac:parameter ac:name="language">cpp</ac:parameter> <ac:macro ac:name="code"><ac:parameter ac:name="title">$!paramTitle</ac:parameter><ac:parameter ac:name="language">cpp</ac:parameter><ac:parameter ac:name="atlassian-macro-output-type">BLOCK</ac:parameter><ac:plain-text-body><![CDATA[$body]]></ac:plain-text-body></ac:macro>
```

And set to Escaped.

Confluence 4.1.5

Help!


Answers:
author: Matt
body: What confluence did is the " signs has been escaped and converted to html entity. Try turning escape off. maybe macro from yor example has a parameter not to escape html chars.

comments: author: E
body: Thank you Matt


author: Stefan Mueller
body: have you solved it?  
I properly run now in the same problem, see my comments in [Can I create macros within an HTML macro?](https://community.atlassian.com/t5/Confluence-questions/Can-I-create-macros-within-an-HTML-macro/qaq-p/717910#U1071206)


Tags: code-block

macro
Confluence reporting session expired
Asked by Sasa:

When editing page (old or new), after clicking Save, Confluence reports session error.

We need to click Save more than once in order to really save it.


Answers:
author: Giuliano C.
body: Like Peter said on the ticket (<https://support.atlassian.com/browse/CSP-87328>)

To increase the time to expire the session, you'll have to edit the `web.xml`:  

|---------------------------------------------------------------------------------------------------|
| `<``session-config``>` ` ``<``session-timeout``>60</``session-timeout``>` `</``session-config``>` |

The value within the **session-timeout** tag defines the length of time a user's session will exist, in minutes.

Then, restart Confluence. After it, if you wish to configure Confluence's internal database connection pool timeout period, please tweak the **c3p0.timeout** property in `<YOUR CONFLUENCE HOME DIRECTORY>/confluence.cfg.xml` file:  

```
<property name="hibernate.c3p0.timeout">30</property>
```

This value determines the number of seconds a database connection can remain pooled but unused before being discarded. Zero means idle connections never expire.

Detailed informations in this page:

<https://confluence.atlassian.com/pages/viewpage.action?pageId=126910597>

Kind Regards
Macro to add labels to spaces?
Asked by Daniela Scheiwe:

Is it possible to add labels to a SPACE through a user macro? I found several macros to add labels to pages, but none for spaces...


Answers:
author: Giuliano C.
body: I'm not sure if we have an specifically Macro to reach it. But you can add labels to categorise spaces. You can see it better through the following page:

<https://confluence.atlassian.com/display/DOC/Using+Labels+to+Categorise+Spaces>

Kind Regards


Tags: label

macro

space
Some error with Configure Application Links
Asked by Kitae Kim:

I just try to link to Jira.

So I try to add Configure Application Links.

After adding Link, when I click Trusted Apliications or Basic Access,

I got error message window

System error... (i will add that screen shot)

![](../../../upfiles/System-error_2.png)

and I just try to delete,

There also error window ( i will add that screen)

![](../../../upfiles/rest-error_1.png)

after click the OK,

The Confirm button is never enabled.


Answers:
author: Harry Chan
body: Hi, can you please show us the full stack trace from the first screenshot? This will tell you what the error is.
How can I insert a link in a Confluence Page to the related Jira project( Project link)?
Asked by Azzurra Pantella:

I would like to allow the users to navigate smoothly from their confluence space to the related JIRA Project.

I could configure a project link (Space Admin -\> Application Link). Is there a way to refer the ProjectLink while inserting a link in a page?


Answers:
author: Azzurra Pantella
body: Once configured the applicatione link, I ended up inserting a "shortcut link" to the Jira browse project address.

In my case:

|----------|-----------------------------------------|
| jira_prj | <http://progetti.asc.webred.it/browse/> |

Then i could add a link in a page to the specific JIRA project as \[\<JIRA_PRJ_KEY\>@Jira_prj\]. For instance I have a \[WGIS@jira_prj\] link to the "browse" page of my WGIS jira Project


author: William Zanchet [Atlassian]
body: Hi Azzurra,  

Actually the Application Links is a bundled feature of Confluence, so you just need to go to *Browse \> Confluence Admin \> Application Links* , there you can configure the connection to JIRA.  

I hope this helps.  

Cheers,  

WZ


author: Azzurra Pantella
body: Thank you for the suggestion..The JIRA issue macro link could be fine but actually I would like to insert a link to a JIRA Project Home Page, and , in the JIRA Project , a link to the related Space Home page (There's sth. like this in the OnDemand version if I'm not wrong)...

What about a macro using the ApplicationLink API?

Azzurra


author: PauloP
body: Hi Azzurra

First of all, you should have Confluence and JIRA properly integrated. After that, all you have to do is insert JIRA issue macro in the related page.

So you'll be able to insert a link to an issue on JIRA side. For further details, please review the following link:

<https://confluence.atlassian.com/display/DOC/Integrating+JIRA+and+Confluence>

Cheers,

Paulo Renato


Tags: application-link
Confluence Space Admins List
Asked by srinivasp:

Is there any macro which shows the list of all spaces with respecive admins?


Answers:
author: srinivasp
body: Its done. I had written a small macro to fetch the required data.

comments: author: Chris Ridgeway
body: How did you do this? I was looking for the same thing: a macro that would list the spaces but also admins.


author: srinivasp
body: ## Macro title: Space Administrators

## Macro has a body: Y or N (N)

## Body processing: Selected body processing option

## Output: Selected output option

##

## Developed by: Srinivas Patruni

## Date created: 28/04/2012

## Installed by: \<your name\>

## Macro to list all users and groups with the permission to administer the current space.

## @noparams

#set($containerManagerClass=$action.class.forName('com.atlassian.spring.container.ContainerManager'))

#set($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance',null))

#set($containerManager=$getInstanceMethod.invoke(null,null))

#set($containerContext=$containerManager.containerContext)

## the spaceManager gives you access to the spaces

#set($spaceManager =$containerContext.getComponent('spaceManager'))

\<h1\>Pages Count\</h1\>

\<table class="confluenceTable"\>

\<tr\>

\<th class="confluenceTh"\>Space Name\</th\>

\<th class="confluenceTh"\>Administrators\</th\>

\<th class="confluenceTh"\>Count\</th\>

\</tr\>

#foreach($sp in $spaceManager.getAllSpaces())

#if($sp.isGlobal())

\<tr\>\<td\>

\<a href="/display/$sp.getKey()"\>$sp.getName()\</a\>

\</td\>

\<td class="confluenceTd"\>

#foreach ($permission in $sp.getPermissions())

#if ($permission.isUserPermission() \&\& $permission.getType() == "SETSPACEPERMISSIONS")

#usernameLink($permission.getUserName())

#end

#end

\</td\>

\<td\>

$spaceManager.findPageTotal($sp)

\</td\>

\</tr\>

#end

#end

\</table\>


Tags: confluence-administration

content
Migration to new server
Asked by Daniel Haas:

After following migration guide to move confluence 3.4.1 to a new server I am presented with the installation page more specifically the load content page.

Where are using confluence 3.4.1 on Centos 5.6 with postgres 8.3. We are migrating to Centos 6.2 with the same DB version.

Steps I've taken.

1. Shutdown running confluence

2. Put postgres database into hot standby mode.

3. Dumped a copy of DB.

4. Restored copy to development DB server

5. Rsync all files in confluence directory to dev server

6. Changed confluence.cfg.xml to point to dev db server.

7. startup


Answers:
author: Felipe Reis
body: Hi!

Sorry, what is the question?
Not able to login after upgrading from 3.2 to 3.5.1
Asked by Chandan kumar:

I did the upgrade from confluence 3.2-std to 3.5-std. After following all recommended steps for upgrade including mysql InnoDb changes and password changes the upgrade went fine. However, now when I try to login as admin. After entering the password it again comes back to login screen. I believe its not even going to authentication phase as I am not getting any login failed kind of error.

I did try to reset the admin password to admin using the steps but nothing seems to work. Everything was working before upgrade.

I am following below steps for upgrade. I am using centos 5.

Shutdown the confluence.

Take backup of the confluence data directory and the mysql dump.

tar -czvf confluence-data.tar.gz /usr/local/confluence-data/\*

###backup: #

mysqldump -umyname -p confluence \> confluence_dump.sql

##restore:#

mysql -umyname -p confluence \< confluence_dump.sql

### Find and replace MyISAM to InnoDb in the mysql dump script and save as confluence_dump_innodb.sql

## goto shell

mysql -umedaccess -p confluence \< confluence_dump_innodb.sql

Change the mysql setting.

mysqld

......

transaction-isolation=READ-COMMITTED

.......

service mysqld restart

Update the license key if it has expired. To check it Confluence Admin -\> license status

Download confluence 3.5 standalone zip file unzip it.

Change the data directory in file /usr/local/confluence/confluence/WEB-INF/classes/confluence-init.properties

confluence.home = /usr/local/confluence-data

Copy the osuser.xml file from previous installation to /usr/local/confluence/confluence/WEB-INF/classes.

chown -R confluence.confluence /usr/local/confluence

Start confluence.


Answers:
author: Chandan kumar
body: It turned out to be Browser issue and cleaned everything and tried it worked.


author: hsuhailah
body: How about try to access Confluence from another browser and login again. Just to isolate if it could be due to session issue.

comments: author: Chandan kumar
body: Well it works on Chrome and firefox is giving issues.


author: Chandan kumar
body: I cleaned up browser stuff and its working on firefox too. Thanks


author: Harry Chan
body: Hi, can you see if there are any errors/warnings in the logs? Are you using LDAP or local users? The way that LDAP users login has definitely changed.

Make sure you have followed all the steps in <https://confluence.atlassian.com/display/DOC/Confluence+3.5+Upgrade+Notes> and any other previous upgrade notes from 3.5 to 3.2.

comments: author: Chandan kumar
body: No I am not using any LDAP. Moreover, Interesting fact is my upgrade from 3.2 to 3.5 worked on my test environment after fixing the mysql issues. And when I tried it on live system I ended up with this new problem. So now I am again doing a complete upgrade on test environment before I try it on the live once again.


Tags: upgrade