youngmon/atlassian-qna huggingface dataset:
Best Practices for Archiving Old Wiki Content
Asked by Ed Schriger:

I am looking for any guidelines or documented best practices for archiving old or out of date wiki content. We want to keep it in our OnDemand environment, but want to minimize storage, minimize confusion by eliminating it from searches, etc.

Any tips or links would be appreciated.


Answers:
author: Midori
body: This is a great write up on the topic: <http://sivupoluilla.fi/2011/08/managing-content-in-confluence-archiving-and-retention-policies/>

Please note that it rather focuses on keeping the content fresh than minimizing the storage space requirements.

The other problem is that the [Archiving Plugin](https://marketplace.atlassian.com/123) suggested in that article is not currently available at OnDemand, only in in-house hosted Confluence instances.


author: Darin - Opus Guard
body: [@Ed Schriger](/t5/user/viewprofilepage/user-id/527728) following up here as this is a good topic and still relevant. In terms of best practices, I wrote some content in our knowledge base around the importance of information governance. It's a worth while read. [The importance of information governance](https://docs.opusguard.com/kb/the-importance-of-information-governance/)

In Confluence Cloud there's no longer the ability to set global retention policies, however, many apps have come to Atlassian Marketplace including [Content Retention Manager for Confluence](https://marketplace.atlassian.com/apps/1233769/content-retention-manager-for-confluence?hosting=cloud&tab=overview) as a means to make it easy to declutter, save space, and remain compliant (ISO/SOC2) by having a means to enforce data retention policies. Also of note, in Confluence Cloud archived content still counts against your storage limits, and in terms of compliance with information governance, content is still considered discoverable until fully purged.


author: SimonS
body: Hi Ed,

One thing you could do is restrict the outdated spaces/pages to a select few users, or no users at all. This would remove the content from search results but leave it there for an administrator to access if they needed to.

This would have no impact on storage size, though. Content would have to be deleted outright to decrease the storage footprint.

-Simon


Tags: confluence-cloud

archive

cloud

content

management
Confluence Queue Contents not flushing on own
Asked by Patricia Wiebe:

Hi,

Anyone else seen this? We are running Confluence 4.2.2. Today we noticed that things were not updating on our pages and blogs. We checked the Queue Contents and it was not flushing on it's own. We have a scheduled job to flush every minute, and the task says it's doing it (as long as we are talking about the "Flush Index Queue), but the queue is not being flushed. Oh, and the mail queue also isn't flushing. Any thoughts - anyone seen this happen?? It just seemed to stop on it's own, we have not had any problems before this.

Thanks!


Answers:
author: Patricia Wiebe
body: I think we solved this. I restarted confluence and then did a search re-index. At 98% of the re-index, an exception was thrown regarding the "too many files open" problem.

20:54:59,954 ERROR \[STDERR\] org.apache.lucene.index.MergePolicy$MergeException: java.io.FileNotFoundException: /export/atlassian/confluence/4.2.2/core/data/temp/lucene5020753486088339503index/_8h.fnm (Too many open files)

We were familar with this problem, but thought it had been addressed with our newer version of confluence (we went from 3.3.1 to 4.2.2). Also for reference, we run on JBoss 4.2.3 and are running Confluence 4.2.2 with Oracle 11g.

<https://confluence.atlassian.com/x/ygCmC>

So, I added to our start script: ulimit -n 10000

After that restart, I did the re-index and it completed successfully with no errors. Since that restart, the queues have been flushing normally on the 1 minute schedule.

I'm not completely sure why the open file limit would affect the queue flushing, and it could have been just the restarts that did the trick, but we are running normally again.


author: Leena Bakshi
body: When we restarted the confluence , it fixed the issue for two days and today on the third day it is back again.. and I did rebuild the index from scratch also after restarting the service. any idea about the resolution..


author: Sow Behl
body: We just restarted Confluence and it seemed to fix the issue.


author: Matthew J. Horn
body: I saw this with comments. I'd be interested in anyone has a workaround.
Changing Restrictions on a page that an Administrator does not have permissions to view
Asked by David Buttrick:

I think that Atlassian needs to create some kind of view of all pages and their restristions.

To do some testing, we restricted a page to be viewable only by me. We then found that another admin could not go and edit the restrictions on the page, and remove the restriction that I created.

There is a list of Pages with Restrictions in the Spaces Admin, is it possible for any Admin, to edit the restrictions, or only the person that created the restriction?

Thank you.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: If you are a member of confluence-administrators group, you can do it. Remember, not just an admin but a member of that group. The group has 'special' rights!


author: David Buttrick
body: We have Active Driectory for our user directory.

So, the order of user directories is:

\* Our AD Server

\* Confluence Builtin Directory

When i try to add a user to the confluence-admin group, nothing happens. I suspect that this is because Confluence is trying to update that group in Active Directory, which does not exist there, but cant update the Confluence local dir.

Any ideas?

Thanks.


Tags: restriction

space
Edit in office doesn't work in 4.2 Confluence
Asked by Rumceisz:

After upgrading from 3.5 to 4.2 Confluence version, it is no longer possible to lock attachment for editing. This was done with the plugin "Arsenale Lockpoint"  

The plugin page says that this plugin is not active.

Can you please help?

Thanks in advance!

Rumi


Answers:
author: Christian Czaia _Decadis AG_
body: Hey Rumi,

have you tried to enable the plugin? If your current plugin version is not compatible with the new Confluence version it might get disabled. Upgrade to the latest Arsenale Lockpoint version and enable the plugin. Hope this works...

Cheers

Christian


Tags: ms-office-connector
Logged in users in Confluence
Asked by Rumceisz:

Hi All,

where can I check how many users logged in at the moment to Confluence? I have 4.2. version. I didn't found anything in the documentation.

Thanks in advance!

Rumi


Answers:
author: Matthew J. Horn
body: [https://answers.atlassian.com/questions/36898/how-to-query-active-users-in-confluence](/questions/36898/how-to-query-active-users-in-confluence)


Tags: user-management
Main Page Url Rewrite
Asked by Alex Suslin:

we have a confluence that is access by the url [portal.company.com](http://www.portal.company.com)

I have set the start page in configuration to the News page of Intranet space, thus as soon as user go to portal.company,com he/she is redirected to portal.company.com/INTRANET/News

I need a simple url rewrite, so the user will see in the address bar just [portal.company.com](http://portal.company.com) but the content should be from INTRANET/News... so I need rewrite, not redirect - any Ideas

I've tried tweek urlrewrite.xml (with the plugin installed):

\<rule\>

\<from\>\^$\</from\>

\<to type="redirect"\>/display/INTRANET/News\</to\>

\</rule\>

\<outbound-rule\>

\<from\>/display/INTRANET/News\</from\>

\<to\>\^/$\</to\>

\</outbound-rule\>  
However it throws exception:  
java.lang.StringIndexOutOfBoundsException: String index out of range: 3  
at java.lang.String.charAt(String.java:686)  
P.S. I'm testing on test machine (on live I have "port forwarding" so it is public through the IIS)


Answers:
author: Matthew J. Horn
body: This should help you get started: <http://www.tuckey.org/urlrewrite/>

comments: author: Alex Suslin
body: I think I have a loop:

1. [portal.company.com](http://portal.company.com) redirects to portal.company.com/homepage.action

2. in preferences I set homepage to be /INTRANET/News so it is redirected there

3. And what is weird, my outbound rule is treat like redirect to [portal.company.com](http://portal.company.com) and we have a loop

P.S. I'm already using tuckey dlls for that
Resrticted pages in CONF 2.8.1 are accesable by user via the search engine when they have permissions in the space. Any hints or ideas what to do?
Asked by Stefan Baader:

we have a space with 2 user groups. The larger group should view only most of the content. The smallergroup are the authors and they are working on pages which should not be accessed by the larger group until moved to the not restricted parent page.

As we recognized the protection of page restriction works not when user of the large group search content of the restricted pages. Those pages are listed in the search result and accessable.


Answers:
author: Thomas Schlegel
body: Hi,

I don't have an answer for you, but I would recommend upgrading to a newer version. 2.8.1 is quite old and I would at least migrate to the latest 3.5.x Version if this is possible.

Best regards

Thomas


Tags: restriction
How are results weighted to be shown in quick navigation aid?
Asked by Michael Rieger:

It seems that in standard case some maximum number of items is shown per content category (pages, users, attachments, spaces).

How are the search result selected to this maximum number?

E.g. 20 pages are actually found, but only a maximum of six pages is shown: Why are these six pages shown and not any of the 14 other results?


Answers:
author: Dee Scarano
body: Hi Michael,

I believe you're asking how the content is ranked in search results. I think [Ranking of search results](https://confluence.atlassian.com/display/DOC/Ranking+of+Search+Results "Ranking of search results - Confluence") should help.

This ranking should apply to both the [Quick Navigation Aid](https://confluence.atlassian.com/display/DOC/Searching+Confluence#SearchingConfluence-UsingtheQuickNavigationAid "Confluence Quick Navigation Aid") and the [Full Site Search](https://confluence.atlassian.com/display/DOC/Searching+Confluence#SearchingConfluence-PerformingaFullSearch "Confluence full site search").

comments: author: Michael Rieger
body: Thanks Dhyana, didn't find that page myself :-)
How to link a JIRA/Greenhopper version to a Confluence page
Asked by JeenB:

I am looking for a way to easily allow a developer to associate some general notes with a particular build or release. These notes are not precisely issues but more in the nature of a short summary of what to expect in the build.

It would be great if we could have such notes as a confluence wiki page and link directly from the Version in JIRA/Greenhopper to that wiki page. I could not find a way to achieve such a link however. Is there a way to do this or alternatively, can this be considered as a new feature for a future version?

If you have any suggestions for alternative ways to achieve this, I'd be keen as :)


Answers:
author: LucasA
body: Hi Jeen,

I believe that is not possible on the present release. If you want, you can open an Improvemnet Request on [http://jira.atlassian.com](http://jira.atlassian.com.). Your request you bee analised anif you achieve a great number of votes, this could be included on future releases.

Cheers,

Lucas Lima

Atlassian Support


Tags: cloud
Best practices for backing up Confluence running in a Hyper-V VM
Asked by jprateragg:

We're running Confluence 4.2 inside of a Server 2008 R2 Hyper-V VM. We're currently using backup software that backs up our VMs to backup this VM. We have a local installation of MySQL running inside the VM that is used by Confluence. We're backing up the Confluence nightly using its built-in backup manager. We simply saves these inside of the VM and backup the VM. Is this okay? Should we be doing anything else? Thanks!


Answers:
author: raadad
body: This should be ok, if both confluence and mysql are stopped before the backup starts


author: raadad
body: This should be ok if both confluence and mysql are stopped before the backup starts.


Tags: backup

virtual-machine

windows
To activate trial licence Creately
Asked by Jos? Mar?a Diestre P?rez:

How it can activate plugin of Creately on Confluence On Demand trial.


Answers:
author: Bastiaan Jansen
body: I'm sorry to say that this is not possible on the OnDemand environment. At the moment we do not allow any activation / installation of additional plugins as stated in our [restricted functions page](http://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand)

We are working on improving this in the future but at the moment we are not yet sure when additional plugins will be possible.


Tags: cloud

integration
How do I remove underline decoration from all links in confluence?
Asked by Brett Ryan:

Confluence 3.x and earlier never displayed underline decoration for links, and I seem to remember a setting for this but can't find it.

Since we've upgraded to 4.2 all links have underlines and I have to manually change all styles in confluence_ist/confluence/includes/css.

I've just now upgraded from 4.2.4 to 4.2.5 and I can see this is going to be tedious every time we need to upgrade. There has to be a better way.


Answers:
author: Matthew J. Horn
body: If you edit the custom stylesheet in the confluence admin panel, it will not be blown away when you upgrade. Just remember to put "!important" after each style property.

comments: author: Brett Ryan
body: Unfortunately this technique isn't working for us as the global stylesheet only works for the default theme. Almost all of our spaces do not use the default theme, we currently have over 60 spaces not including personal spaces.


Tags: install

stylesheet
Issue creating Page templates with labels
Asked by Adolfo Casari:

When creating Page templates and adding a label, if I edit the template the label is added again and then everytime I edit the template.

Confluence 4.2.1

Is this a known bug?

Thank you.


Answers:
author: RianA
body: Hi Adolfo,

I think you've encountered a bug that affecting Confluence 4.2 and above, for more information please refer to the following bug report.

\* <https://jira.atlassian.com/browse/CONF-25327>

Feel free to comment or add yourself as a watcher. Please bear in mind on how is our [bug fixing policy](https://confluence.atlassian.com/display/Support/Atlassian+Bug+Fixing+Policy). Have a nice day!

Cheers,  
Josua
Wrong information from Confluence contributors-summary macro
Asked by Lis Riba:

I am getting incorrect results from the {contributors-summary} macro.

Can someone please explain what the macro is doing to get these results and how to get more accurate information?

I've run this macro (in Confluence 3.5x):

```
{contributors-summary: space=FOO | scope=descendants | contentType=pages,blogposts | groupby=contributors | columns=edits,comments,labels,watches,lastupdate | order=update | showAnonymous=true}
```

The latest updates in the space were 1 comment yesterday, and 2 page edits last week (all by me).

However, the contributors-summary table shows 4 people whose last update took place "less than a minute ago"

Checking the latest activity in each person's profile, 1 was 3 hours ago, 1 was 2 days ago, and 1 has had no activity since February. \[I'm the 4th person listed; my only activity today was creating the page with the contributors-summary macro in my personal space.

So what's going on here?

And, if this macro doesn't return accurate results, how ***can*** I reliably get the information this macro purports to provide?


Answers:
author: Dale Fernandes
body: Poor form that nobody from Atlassian has picked up or replied to this

I've today had a user report the same problem. New Page created, the contributor macro inserted, it displays a user in the results of the macro who has never seen the page, but also, with the "show zero counts" unticked, and the user has zero counts against them, but still show!

an explanation would be good. preferably in earlier than the next 2 years.


author: Chase Seibert
body: I am also experiencing incorrect results, which change every time you refresh the page.

I wrote some code here to tabulate pages and edits by user.

<https://github.com/chase-seibert/confluence-stats>


author: pmiller
body: Did you ever find an answer to this? I'm experiencing the same problem and I seem to have narrowed it down to a problem with comments. If any contributor has commented on a page, they always show their last edit "less than a minute ago". I don't know how to fix it.


Tags: contributor

macro
Confluence Space -> Jira Project, what's the benefit?
Asked by Stephen Hayden:

Is the only benefit having content editing appearing in the activity stream of the project?

<https://confluence.atlassian.com/display/DOC/Adding+Project+Links+between+Applications>

Seems like this should do more... put a tab for the Home of that space to be accessible within JIRA from the associated project, or some other definable page, or maybe just the navigation or page tree.

Or am I misunderstanding the extent of this?

Thanks!


Answers:
author: RianA
body: Hi Stephen,

Last time in prior to Conlfuence 3.5, this link exist for better linking between Confluence Space and JIRA Project, such that when Project that has name PROJECT link to certain space in Confluence, you can just type issue key of that project in any page of that space and it will be linked to that issue in JIRA. For example if you type PROJECT-123 in any page, it will be automatically linked to Confluence. However, this is not the case anymore after 3.5, there's [a bug report](https://jira.atlassian.com/browse/CONF-23693) regarding this issue.

Prior to Atlassian OnDemand, on JIRA Studio, we do have this feature to link between Project and Space, so that it can be easily accessed just like you mentioned. However it didn't work on stand alone Confluence. Which is why the benefit of the Entity link which is between project to space is only that for the time being.

Hope this information helps.

Cheers,  
Josua
Use of Velocity Generic Tools in a page decorator
Asked by Adolfo Casari:

I am trying to use [SortTool](http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/SortTool.html) from Velocity Generic Tools inside a decorator that handles the search results.

The code is:

```
&lt;div id="search-results-body"&gt;            &lt;ul class="search-results"&gt;                #foreach($searchResult in $sorter.sort($results,"lastModificationDate:desc"))                 &lt;li &gt;                    $action.newSearchResult($searchResult, $showExcerpts, $queryString)                &lt;/li&gt;                #end            &lt;/ul&gt;        &lt;/div&gt;
```

Where $results is the collection of search results and $sorter is a handle to the Sorter class as explained in [SortTool](http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/SortTool.html).

But the foreach loop is not executed since nothing is displayed, this is because $sort is null which means that confluence default velocity context don't know about that class.

How can I use those generic tools inside the decorators?

Thank you.


Answers:
author: Adolfo Casari
body: I found a solution in case someone need it:

1) install velocity-tools-generic-2.0.jar in confluence/WEB-INF/lib

2) Create a plugin in order to add $sorter to Confluence velocity context:

```
&lt;atlassian-plugin name="Sorter" key="confluence.extra.sorter"&gt;&lt;plugin-info&gt;    &lt;description&gt;      Plugin to do sorts in velocity templates and decorators.    &lt;/description&gt;    &lt;!-- This version is displayed in the application's Plugin Manager. --&gt;    &lt;version&gt;1.0&lt;/version&gt;  &lt;/plugin-info&gt;    &lt;velocity-context-item key="mySorter"          name="Sorter" context-key="sorter"          class="org.apache.velocity.tools.generic.SortTool" /&gt;&lt;/atlassian-plugin&gt;
```

Now the search results are ordered descending. I would like to know if there is a cleaner way to do 2), since just doing 1) didn't do, nothing was shown.

comments: author: leonizm
body: Can't get sorttool class to load, please help.

Could not load class: org.apache.velocity.tools.generic.SortTool' to 'com.leonizm.confluence.plugins.testp'

Thanks,

Leon


author: Andrey S
body: I am summing: To use $sorter.sort($results,`"lastModificationDate:desc"``)) `

`in velocity macros `Confluense Admin-\>User Macros ` macros in confluense `You should

1) install velocity-tools-generic-2.0.jar in confluence/WEB-INF/lib

2) Name xml above as "atlassian-plugin.xml" zip (the only file) it into .jar file (for example sorter.jar) and install it as a usual plugin using Confluense Admin-\>Plugins .

comments: author: Matthew J. Horn
body: Awesome, thanks for this!


author: Vijay Krishna B
body: Thanks Andrey.sorter.jar was working fine with confluence 4.3.Do I need to make changes in order to use the same jar in 5.6.5.After installation of sorter.jar in 5.6.5 it shows an error "This add-on could not be loaded. It has one or more errors that prevent it from being enabled. Refer to the logs for more information.".Can you please help regarding this.


Tags: velocity
Spaceaccess macro problem after upgrade to 4.2
Asked by Rumceisz:

Hi All,

we just upgraded our Confluence from 3.5 to 4.2. In the Admin -\> User Macros menu we get an announcement info:

"There are user macros with wiki formatted templates. They have been highlighted below.

For these macros to continue working in future versions of Confluence they must be manually changed to use HTML templates.

There are user macros without any metadata configured in their template. They have been highlighted below.

For these macros to be available for use in content they require parameter information. See the [Guide to User Macro Templates](http://docs.atlassian.com/confluence/docs-42/Guide+to+User+Macro+Templates)."

The weird thing is that this is with the 'spaceaccess' macro which is an "official" Atlassian macro.

Can you please suggest for a help?

Thanks in advance!

Rumi


Answers:
author: Rumceisz
body: We get the attached error message.


author: Rumceisz
body: Hi Matthew,

of course, here is our code:

```
{report-block}{combining-reporter:unique=true}#set ($prevname = "")#foreach ($perm in $space.getPermissions())  #if ($perm.isUserPermission())    #if ($prevname != $perm.getUserName())      #set ($prevname = $perm.getUserName())        {user-reporter:user=$perm.getUserName()}    #end  #else    #if ($prevname != $perm.getGroup())       #set ($prevname = $perm.getGroup())       {user-reporter:group=$perm.getGroup()}     #end  #end#end{combining-reporter}{report-body}{report-info:user:full name|link=true}{report-body}{report-block}
```

Many thanks for the help!

Rumi


author: Matthew J. Horn
body: Can you post the code for the macro and we'll take a look.


author: Rumceisz
body: Hi All,

any idea?
Option to mark attachments?
Asked by Hans Kanns:

Is there a way to set marks on attachments? For example if a attachment is confidential, we want to mark it and highlight it by another color. And maybe as a last step, generate reports about which spaces host confidential attachments.


Answers:
author: Adam Laskowski
body: In Confluence 4.2, we added the ability to [label attachments](https://confluence.atlassian.com/display/DOC/Adding+Labels#AddingLabels-Labellinganattachment), which then can be [searched](https://confluence.atlassian.com/display/DOC/Working+with+Labels) or used to filter an [RSS feed](https://confluence.atlassian.com/display/DOC/Using+the+RSS+Feed+Builder). It wouldn't be color coded, but the label is viewable when you are looking at all of the attachments stored on a page.