youngmon/atlassian-qna huggingface dataset:
Include Confluence Page in another Confluence Page
Asked by Pangianto Pang:

HI is there anyway to include content of the confluence page only (without the beardcrumb, left navigation pane, page tile) in another page?


Answers:
author: Amalia
body: Yes, it's possible to do it by using an Include Page Macro. Here's the documentation for Confluence 4.x: <https://confluence.atlassian.com/display/DOC/Include+Page+Macro>

and for Confluence 3.5.x: <https://confluence.atlassian.com/display/CONF35/Include+Page+Macro>

comments: author: Pangianto Pang
body: Is there anywhere that we can input query string into the 'Include Page' macro?

I need it for doing some query using Run macro.

e.g. Contacts+Search?run_1_rsearch=firstname\&run_1=run

Thanks.


Tags: include
Accept terms before account creation
Asked by Jeroen:

In Confluence, is there a way you can enforce users to agree to some kind of terms and conditions before they can create an account?


Answers:
author: Amalia
body: You can modify the login.vm file to include such terms and conditions with a checkbox if you want. Note that the "signup" part can be found in login.vm for Confluence 4.3 and above. Which confluence version are you using?

comments: author: Jeroen
body: Ah great, I'm using 4.3


author: Geoff
body: Hi Jerre,

We have released a plugin that may help you here:

<https://marketplace.atlassian.com/plugins/com.glintech.confluence.termsandconditions.termsandconditions>

Please note that it does only work with newer versions of Confluence (4.3 and higher).


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

You can do it in Confluence 4.3, but I highly suggest that you create a test instance, to perform this test, because if something goes sideways at least you'll have your production intact. :)  

Cheers,  

WZ
Context for Confluence and JIRA
Asked by jiraguy:

When I add a context path for Confluence and JIRA I get an error on the Confluence Application Links page.

When I navigate to the Application links page in Confluence I get an error at the top that says "Bad Request".

Cheers,

Graham


Answers:
author: William Zanchet [Atlassian]
body: Hi Jiraguy,  

May I ask you, if you've followed this documention in order to add a context path for Confluence?  

<https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy> More precisely the set the context path section.  

I hope this helps, at least in Confluence side. :)  

Cheers,  

WZ


author: Daniel Borcherding
body: This issue may be best handled from our support portal (<http://support.atlassian.com>).

I suggest that you create a ticket there and attach a [support.zip](https://confluence.atlassian.com/display/DOC/Troubleshooting+Problems+and+Requesting+Technical+Support#TroubleshootingProblemsandRequestingTechnicalSupport-CreatingaSupportZipFileviatheConfluenceAdministrationConsole) as well as a screenshot of the behavior you are seeing.

We will identify the problem in the ticket and post the solution back to this answers post so we can help some more users out.


author: jiraguy
body: The actual error I am getting is: "REST request failed: Bad Request"


Tags: jira
How do you get the Add by and last edited by information to print when using the Confluence Documentation Theme?
Asked by Hamzah Hakeem:

In the past we, were using Confluence 2.x until I had no choice but to update to 3.x. The Documentation Theme so far was the only theme that rendered our import from Confluence 2.x documents with not issues, and provided the same look as previous. The Workflow template we were using with Confluence was unusable in Confluence 3.

So it was recently brought to my attention the when we print a document, it does not show the Add by XXXX, last edited by XXXX , information, but it appears perfectly fine on the site. The same when exported to PDF.

We use this feature as part of out documentation presention to auditors, so the can see that the information is list not only electronically but also by paper, if a paper document needs to be filed, attached to other documents that need to filed.

Has anyone else experience this problem? If so, have you found a fix?


Answers:
author: AlysonA
body: Hello there,

Indeed this seems to be an expected behavior as I tested it out and confirmed that the "added by" and "last edited by" are hidden by default.

Since this is not something you can achieve out of the box in Confluence, I went ahead a created an [improvement request](https://jira.atlassian.com/browse/CONF-27410) regarding this matter so it can hopefully be implemented in the future. Please feel free to cast a comment there and also vote on it.

Let's see if someone else has further ideas on this case.

Cheers!


author: Hamzah Hakeem
body: I checked the link to your improvement and it's set as a "won't fix" because "you (i.e. Atlassian)" feel that it's not warranted, but what about your customers that rely on having that information even on their pdf or paper archives.

So now my option is to try and use a custom theme builder to make a usable theme that will print that infomation, but will not look or flow as nicely as the Documentation Theme.

This is just another ding against continued use of Confluence, along with the removal of the Wiki Markup, in Version 4.


Tags: documentation-theme
Updates Tab in Confluence
Asked by jiraguy:

Is there a way to clear the "All Updates" tab in Confluence (on the front page). I did some testing in an environment but before I bring users on I would like to clear it.

Cheers,

Graham


Answers:
author: AlysonA
body: Hi Graham,

I don't think there's a way to clear that out since it dinamically pulls info from your instance. You may be able to clear it if you wipe out all your content, which might not be a feasible solution.

Cheers,
use database backup for new install after reinstalling operating system
Asked by Torsten Steinert:

I have reinstalled the operating system on my virtual server with a different os. Then I installed confluence using the installer, installation succeeded. Now I point my browser to the confluence site and I can enter the license and setup database connection. I created a database user for confluence on my local mysql installation and imported the confluence-db backup. When I configure confluence to use the database containing the backup, I get the error message:

The following error(s) occurred:

Confluence tables already exist in the selected database.

The problem that I see is that a) the backup should contain my old pages and b) the server-id is stored in the old db, so I really want to use the backup.

How is it possible to use the backup database in the new installation?


Answers:
author: Bruna Griebeler
body: Hi Torsten

In this case I suggest you to continue the installation using a new database.

After the installation is finished, you can point your confluence to use the database with the backup data.

You can change this on confluence.cfg.xml, inside Confluence Home folder:

Example:

File: /var/confluence433/confluence.cfg.xml

Content:

...

\<property name="hibernate.connection.url"\>jdbc:mysql://localhost/**confluence433**?sessionVariables=storage_engine%3DInnoDB\</property\>

...

When confluence433 is the name of Confluence's database that you can change.

Hope it helps!


author: Janet Albion
body: I think this can be closed as duplicate


Tags: backup

configuration

database
use database backup for new install after reinstalling operating system
Asked by Torsten Steinert:

I have reinstalled the operating system on my virtual server with a different os. Then I installed confluence using the installer, installation succeeded. Now I point my browser to the confluence site and I can enter the license and setup database connection. I created a database user for confluence on my local mysql installation and imported the confluence-db backup. When I configure confluence to use the database containing the backup, I get the error message:

The following error(s) occurred:

Confluence tables already exist in the selected database.

The problem that I see is that a) the backup should contain my old pages and b) the server-id is stored in the old db, so I really want to use the backup.

How is it possible to use the backup database in the new installation?


Answers:
author: Bruna Griebeler
body: Hi Torsten!  

I suggest you to install Confluence in a new and clean database.  

After your Confluence is successfully installed, you can edit your **\<confluence-home\>/confluence.cfg.xml** to change the database, putting the name of the backup database on the property tag:  

Example:  

\<property name="hibernate.connection.url"\>jdbc:mysql://localhost/**BackupDatabaseName**?sessionVariables=storage_engine%3DInnoDB\</property\>

Hope it helps!!

comments: author: Torsten Steinert
body: Thanks Bruna,

that did solve my problem. I did not change the config, but instead droped the database after clean install and loaded my backup with the same name. Everything seems to work.

Thanks,

Torsten


author: Konrad Klockgether
body: Thank you [@Bruna Griebeler](/t5/user/viewprofilepage/user-id/781555) !

This also still works for Confluence 7.3.1

You saved my day :D


Tags: backup

configuration

database
Links created automatically
Asked by Duncan Greenshields:

Using the text using UTF-8 encoding creates a link automatically in Confluence on the UTF-8 part of the text.

This also happens when using ISO formatted dates 2012-11-15


Answers:
author: Abdulrazaq Mohammed Ali Omar
body: Hi Dunca,

I have raised this[bug report](https://jira.atlassian.com/browse/CONF-27282)concerning this issue for you. Feel free to leave your comments there as well.

Cheers


author: BernardoA
body: Could you please give more details where this link was created in Confluence... as you're having problem using UTF-8 I suggest you to take a look at this following article:

<https://confluence.atlassian.com/display/DOC/Troubleshooting+Character+Encodings>


Tags: link
Template Variables show images, not input fields
Asked by Lis Riba:

Trying to create a template in Confluence 4.3

I insert several variables, but when I try to Create Page from Template, the page shows the green rounded rectangles instead of the input fields.

I've simplified things down to the most basic.

1. Created a page, added 4 variables, saved it - the template worked.
2. Edited the page, used the bullet icon to put the variables in a list. The template failed.
3. Took out the bullets, restored them to a single line - the template failed.

What is going on here?

Checking the source editor, and the code in Step 1 is ***identical*** to that in Step 3, yet 1 worked and 3 fails.

* Has anybody else seen anything like this?
* Any known issues surrounding template variables that I should know of?
  * Does use of the source editor somehow mess up variables?
* Why does the very top of my form show the variable names in an unordered list?

FWIW, here's the source code of Step 1 \& 3:

```
&lt;ul&gt;  &lt;li&gt;ProductVersionWholeNum&lt;/li&gt;  &lt;li&gt;ProductVersionDecimal&lt;/li&gt;  &lt;li&gt;WholeBuildNumber&lt;/li&gt;  &lt;li&gt;IncrementedOvernightBuildNumber&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;  &lt;img class="template-variable" src="http://confluence/plugins/servlet/confluence/placeholder/template-variable?name=ProductVersionWholeNum"/&gt;  &lt;img class="template-variable" src="http://confluence/plugins/servlet/confluence/placeholder/template-variable?name=ProductVersionDecimal"/&gt;  &lt;img class="template-variable" src="http://confluence/plugins/servlet/confluence/placeholder/template-variable?name=WholeBuildNumber"/&gt;  &lt;img class="template-variable" src="http://confluence/plugins/servlet/confluence/placeholder/template-variable?name=IncrementedOvernightBuildNumber"/&gt;&lt;/p&gt;
```


Answers:
author: Tadd Seiff
body: I saw this too, I'm guessing the Source Editor is broken and strips out some of the magic that makes these work.

My fields were drop-downs, and the Source Editor just barfed all the options a a huge \<ul\> at the top of the page. In place of the variables I saw the same as you, just the images.

If I run the developer tools in the browser (e.g. right-click-\>inspect element) on one of the variables in the template, there is a lot more "magic" inline with the element that I don't see in the Source Editor output.

I'm guessing the source editor just doesn't work the way you expect. Sorry I don't have a solution, but wanted to chime in and say I also experienced this.

My template works fine otherwise, so there might not be anything wrong with your template.


author: Sean King
body: Make sure the variables show up under the variables drop down next to the insert button. If they don't then recreate them and they should start working. For some reason if they aren't showing up then confluence doesn't treat them like variables. This could be because variables used to be different syntax. I'm assuming confluence is converting the WYSIWYG variables to that old syntax and if it's not registering with the system and showing up in the available variables then they're not getting converted.


Tags: template

variable
How can I force a specific page to always be the first page listed for specific search queries in Confluence?
Asked by Mick Davidson:

Morning,

I want to force a specific page to always be the first page listed for a specific search in Confluence.

For example, if I search on the word 'Risk', I want a specific page called Risk to always be the page that's returned first.

Is this possible, if so, how?

Cheers.


Answers:
author: PeterKoczan
body: Hi Mick,

The most simple (yet still ugly) way to do so would be to modify the template at *\<CONFLUENCE-INSTALL-DIR\>/confluence/decorators/search.vmd* to display a link (or any custom content of your choice) when a specific search term (or something *like* it) was entered.

Another option would be a third-party plugin that you can find here: <https://marketplace.atlassian.com/plugins/com.hascode.plugin.search-boost-plugin>

Cheers,

Peter

comments: author: Mick Davidson
body: Peter,

Thanks for the info. I've had a look at the plugin and that seems to do just what we want. However, it's a bit behind our current Confluence version (we're on 4.3), so will have to wait until it's caught up.

Cheers.


Tags: search

sort
How to report on oldest pages in Confluence space?
Asked by John Straffin:

Is there any way to create a report that displays the oldest pages in a space?

We'd like to make sure all of the content in our site is updated or confirmed as valid on a regular basis, and we figure that the best way to do that would be to work from a list of the oldest pages in our space. There's a "Recently Updated" page under Browse Space ... is there a way to get the opposite?


Answers:
author: Bob Swift (personal)
body: Using the [SQL Plugin for Confluence](https://bobswift.atlassian.net/wiki/display/SQL)

```
{sql-query:datasource=confluenceDS|output=wiki}select    lastmoddate as "Last changed",    '[' || (select spacename from spaces where spaces.spaceid = content.spaceid) || ':' || title || ']' as "Page"  from content   where prevver is null and contenttype = 'PAGE'   order by lastmoddate   limit 100{sql-query}
```

comments: author: John Straffin
body: This looks pretty sweet, but it's unlikely that I'll be able to get the service managers for Confluence here to add the plug-in. I'll give it a shot tho. Thanks!


author: Rob Church
body: Another plugin suggestion: <https://marketplace.atlassian.com/apps/1221449/update-this-for-confluence> - I haven't tried it though as I'm using an on-prem install and it appears to only work for Cloud.


author: John Straffin
body: Any confirmation that this is not possible without a plugin? It's somewhat unlikely that our deployment will install and support anything beyond stock Confluence.


author: John Straffin
body: Any confirmation that this is not possible without a plugin? The service managers for our deployment are extremely reluctant to install and support anything beyond stock Confluence.
Edit footer in Documentation theme
Asked by Bruce Schlueter:

Hi all,

we are using the Documentation theme and would like to change the footer. I have learned that the "powered by Atlassian" has to stay, what we would like to do is change the link for "Report a bug" to our own support. How can I achieve this? We are running Confluence 4.3.2.

Thanks,

Bruce


Answers:
author: David at David Simpson Apps
body: Add this to **At the end of the HEAD** in **Confluence Admin \| Look \& Feel \| Custom HTML**

```
&lt;script&gt;  AJS.toInit(function(){    AJS.$('a[href="http://jira.atlassian.com/secure/BrowseProject.jspa?id=10470"]').attr('href','http://yourjira/')  });&lt;/script&gt;
```

comments: author: Bruce Schlueter
body: Thanks that worked fine. We haven't got Jira (yet) so I used a mailto instead which suits exactly to our wishes. Thanks a lot.


author: PeterKoczan
body: Hi,

Alternatively you may also edit the **footer-content.vm** file under *\<CONFLUENCE-INSTALL-DIR\>/confluence/decorators/includes* to customize/remove the link completely.

Kind regards,

Peter

comments: author: Bruce Schlueter
body: We might think about using this if we get more into Velocity etc. What stops me doing this is also that we are not updatesafe if I understood the documentation correct. But still thanks for your effort.


author: PeterKoczan
body: Hi,

This technically only requires to cahnge this line accordingly:

```
&lt;li class="noprint"&gt; &amp;nbsp;&amp;middot;&amp;nbsp; &lt;a href="$action.getText('url.bug.feature.request')" class="hover-footer-link"&gt;$action.getText('bug.feature.request')&lt;/a&gt;&lt;/li&gt;
```

This is mainly HTML with a few variables, however the solution provided by Bruce is surely more clean and tidy, this is just a possible alternative :)

Cheers,

Peter


author: Bruce Schlueter
body: I just tried your advice and this works fine also. Itgives us the possibility to put our disclaimer at the bottom line.
Upgrade to 4.3.2 leads to all users are visible
Asked by Christian Neureiter-Schneider:

In version 4.2 we could only see the users which where at least in the user group confluence-users. After upgrading to 4.3.2 we could see ALL users from our LDAP. From our 7000 LDAP users only approx. 150 do have an Confluence account at the moment - hence most of the people we can find are not relevant for Confluence users. Is there a way to limit the results again as in 4.2?


Answers:
author: PeterKoczan
body: Hi,

This is most likely to be a result of a bug that was fixed in this release: <https://jira.atlassian.com/browse/CONF-6404> (release notes here: <https://confluence.atlassian.com/display/DOC/Confluence+4.3.2+Release+Notes>)

This results that even those users who have not yet logged in to Confluence, but has the ability to do so, will have their Confluence profile created, thus appear in the people directory.

To avoid this, the best way is to create an LDAP search filter that will only pull those users who you want to see in Confluence. More information about writing such filters can be found in the online documentation:

- <https://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters>

- <https://confluence.atlassian.com/display/DOC/Connecting+to+an+LDAP+Directory>

Kind regards,

Peter


Tags: ldap

user-management
Does not show the autocomplete with the users in the Share-block in Confluence OnDemand
Asked by ????? ?????????:

After the upgrade, autocomplete list not show up in the Confluence. This is very unfriendly. I have to enter the email completely and lose time. This problem is not in the JIRA. Look at the two images in the application.


Answers:
author: Bruno Rosa
body: ?????, are you saying that when trying to share something, the list of users when *typing* doesn't pop up anymore (meaning that no user is found)? If that so, this is happening because after the last maintenance Confluence People directory appears to be empty. Fortunately, this can be resolved by rebuilding the index. Therefore, I'd recommend you to create a ticket under [support.atlassian.com](http://support.atlassian.com) so we can fix this problem for you.

Hope it helps.

Cheers,


Tags: cloud
Upgrading Confluence Add-in for SharePoint from 2007 to 2010
Asked by Stuart Warke:

Hi, we are about to upgrade SharePoint from 2007 to 2010. We logged an issue (CSP-80903) regarding an error we were receiving and you provided an upgdated WSP package to install on SharePoint 2007. Can you please provide, or point me to, the WSP and procedure for upgrading to the Confluence add-in from SharePoint 2007 to 2010?

Confluence Version: 4.3.2

Connector Version: 1.5.0.0

We will be building a new SharePoint 2010 farm to replace the current SharePoint 2007 farm


Answers:
author: Joe Clark
body: Hi,

You might find this documentation useful: <https://confluence.atlassian.com/display/SPCON/Upgrading+the+SharePoint+Connector+on+SharePoint+2010>

I had a look at your support ticket (CSP-80903) and the patch you were provided with has since been incorporated into the core product.

When you upgrade to SP2010, just make sure you download and install the latest version of the SharePoint Connector and you should be good to go :-)
Searching question
Asked by Darren Walker:

If I enter a word that I know exists in a page from either the search on the desktop or from Dashboard \\ Search screen I get no results. On the DashBoard \\ Search screen I have All Spaces, All Content and All Dates but still no results.

If I search from the navigation left hand panel above the pages from within a Space, I get an extra bit in the search (ancestorIds:1048583 AND this) where 'this' is the word I'm looking for. It results results but what is the ancestorId why does it have to be visible?

Cheers,

Darren.


Answers:
author: AlysonA
body: Hi Darren,

In short, the syntax "ancestorId" is a built-in function of the Confluence search that allows results to be limited to a particular page and its children. The PageTree search takes advantage of this underlying functionality and constructs a targeted search by adding the appropriate ancestorID to the list of search terms. The fact that this appears in the search terms field in the list of results is normal, so you shouldn't worry about it.

There's an [improvement request](https://jira.atlassian.com/browse/CONF-17259) being tracked that will make this more "user friendly".

Cheers
Force a canvas size for slideshow image display - so that arrows to scroll are always in the same spot.
Asked by Diane Sexton:

When using the gallery macro, the slideshow images open in their original canvas sizes ... this is fine except that when the images are e.g. oriented differently (portrait vs. landscape) or they are different resolution/canvas size then the arrows to scroll the slideshow are always in a different spot.

You can see what I mean at the Confluence Documentation: <https://confluence.atlassian.com/display/DOC/Gallery+Macro> the final image is portrait orientation and the scroll arrows are now closer to the centre of the window than before.

I realise we can workaround by using arrow keys on the keyboard but it would be nice to give a single consistent location for the mouse to click to scroll all the way through in one direction too.


Answers:
author: Luzia Mendes
body: Hi Diane,

That's an interesting observation.

Must be annoying when you're going through a bunch of images.

Open a feature request in [jira.atlassian.com](http://jira.atlassian.com) for the Confluence project. Maybe they can make a fix-sized frame around the images so the navigation buttons wont move.