youngmon/atlassian-qna huggingface dataset:
How can I delete a history version of a confluence page
Asked by Joerg Bencke:

Hi Folks,

how can I delete specific older versions of a wikipage ?

Regards, Josh


Answers:
author: Thomas Schlegel
body: Hi Josch,

this is an old unresolved issue: <https://jira.atlassian.com/browse/CONF-996>

Vote and hope, someday it will come true ;-)

Best regards

Thomas


author: hsuhailah
body: This is now possible in Confluence 5. To remove a page history, navigate to the page where you want the history to be removed \> Click on Tools \> Page History \> Under Operations, click on Remove. Once removed, you can't undo this action though and it has to be done per page.

comments: author: Andrew DeFaria
body: There is no Remove option in Page History for me. Do you need to be an admin?


author: Jason Papadopoulos
body: Hi, you do need to be an admin - I ran into this myself, and for me the only visible operation was to restore a previous version of the page. With the help of our admin I was able to remove the old version.


author: Mikhail T
body: Thanks, this was most helpful! Any chance, a simillar functionality exists in JIRA? Sometimes users post passwords and similar information here and we need to be able to clean it up for good.


author: Lorraine Gorman
body: Hi all,

Is there a solution to this \[in bulk\] for Confluence Cloud? Thanks.

comments: author: Di Chen
body: I have got the same question.

Although confluence cloud has the storage of 25GB, I think it's still urgent needed.


author: Kalas Richard
body: You can use this plug in to remove page versions easily:

<https://marketplace.atlassian.com/plugins/com.elitesoftsp.confluence.page.utility.plugins/server/pricing>

comments: author: Di Chen
body: How about confluence cloud?


author: Michiel Nieuwstraten
body: Using Confluence CLI you can use removePageVersions to remove more historyversions in one time, for instance every version before a date, or to keep last n versions.

Take a look at <https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-removePageVersions>


author: Jarrod
body: Hi guys,

I got this to work on basic auth, with the following api call:

https://\[yourinstance\]/wiki/rest/api/content/\[pageid\]/version/


Tags: history

version
Globally modify external gadget URL references in Confluence?
Asked by Alan Basque:

We (somewhat) recently changed our Jira (4.4.3) and Confluence (4.0) installs to implement SSL. It seems to be working fairly well overall except for one frustrating problem: whenever we interact with a Jira gadget in Confluence (editing the gadget, clicking on links within the displayed gadget, etc), the browser loses the Jira session and the user needs to sign into Jira again on any open Jira tab in that browser. After some investigation, I believe the problem is that the External Gadget URLs added in Confluence all still link to Jira using http rather than https. Unfortuantely, despite knowing the problem I can't figure out how to fix it.

I can go through the External Gadgets admin page in Confluence and delete all of the old http URLs and add the new http ones, but doing that will introduce a new problem. Any page that used one of the gadgets with the old URL will show a broken gadget link error. And since we were using Confluence for several years before using SSL, the list of pages with Jira gadgets is now pretty long.

I could theoretically just add the full set of valid https URLs and leave the existing http ones in there so older pages are not affected, but that would cause the Gadget Browser to list all external gadgets twice (one for http and once for https). So users could end up the old gadgets when creating a new page, and all of the old pages would still have the same lost Jira session problem.

I would even be open to manually modifying all of the broken gadgets on all of the affected pages, but I haven't found a way to get a list of either all broken gadget links OR all references to a particular external gadget URL (so I can update it before I change the configured URL).

And even if I \*did\* have a list of all affected pages/gadgets, because of the switch in Confluence 4.0 away from wiki markup I can't just simply modify the referenced URL to change http to https... if the gadget URL is invalid, the page just shows an error and forces me to recreate the gadget from scratch.

Does anyone have a suggestion that could help me update all references to external gadgets in our deployment to use the correct URLs?

Thanks!


Answers:
author: Svante Gustafsson Bj?rkegren
body: Hi Alan,

This question is a bit old but I give you this answer anyway since I ran into the same problem today.

I found the solution to update the database directly.

See <https://confluence.atlassian.com/display/CONFKB/Changing+URLs+of+external+gadgets> for details.

Rgrds,

// Svante

comments: author: Alan Basque
body: Thanks for pointing this out, Svante. At the time, Atlassian support recommended that I query the database to find pages with invalid gadgets and then edit each page manually, which is what I ended up doing. Hopefully this Answer and the KB page you linked to will help make this process easier for anyone else that runs into this problem.


Tags: gadget

ssl
Successive @mentions fail to notify user?
Asked by ITops123:

We have a page where people are collaborating and therefore using the @mention for the same person more than once. Common scenario:

Day 1: Jane Doe edits the page and includes an @mention to John Smith, who gets a notification that he's been mentioned.

...several days go by without much activity...

Day 6: Jane Doe returns to the page and makes new edits to the page on a different topic. She once again @mentions John Smith because she wants him to contribute.

**Problem:**The second @mention doesn't trigger a notification. Any idea why that would happen?


Answers:
author: LuizA
body: Hello There,

In a first moment this can be related with the indexes of your instance, so based on this I would suggest you to perform the same test but in the middle you could rebuild your content indexes by the following procedure:

<https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch>

And then try again to use the mentions in the same scenario. I hope this helps.

Kind Regards,

LJ.


Tags: mention
Usage Stats on User Macros
Asked by Binaya:

I am looking to see what "user" written macros have been utilized in the last year to potentially delete user macros that were created but never utilized in confluence. Is there a way to do that?

We have a "Macro Stats" plugin that lists the usage for all the plugins...I am looking to see if a similar one exists for User Macros.

Thanks.


Answers:
author: Steve Goldberg
body: One thing you could do is do a search for the user macros to see how many pages they have been used in. This quite simple, see <http://ffeathers.wordpress.com/2011/11/04/how-to-search-confluence-for-usage-of-a-macro/> for information.

It's manual work, alas.


author: Matthew J. Horn
body: I wrote a macro to iterate over a space's pages and detect macro usage in each space. It works on Confluence 4.2.x. I have not tested it on 3.x or 5.x.

```
## Macro title: Macro Usage Report## Developed by: Matthew J. Horn## Date created: 11/12/13## This macro takes no parameters## @noparams## Get a list of User Macros#set($containerManagerClass = $content.class.forName('com.atlassian.spring.container.ContainerManager'))#set($getInstanceMethod = $containerManagerClass.getDeclaredMethod('getInstance',null))#set($containerManager = $getInstanceMethod.invoke(null,null))#set($containerContext = $containerManager.containerContext)#set($macroManager = $containerContext.getComponent('userMacroLibrary'))#set($macroMetadataManager = $containerContext.getComponent('macroMetadataManager'))#set($macroNames = $macroManager.getMacroNames())## Get the ExcerptHelper (probably not supposed to be used for getting all macros, but it works)#set($eHelper = $containerContext.getComponent('excerptHelper'))## Get a list of pages in the space#set ( $targetSpace = $spaceManager.getSpace("admin") )#set ( $allPagesInSpace = $pageManager.getPages($targetSpace, true) )## List all macro names&lt;h3&gt;Macro names&lt;/h3&gt;&lt;hr/&gt;#foreach($name in $macroNames)  $name, #end#set($isValid = false)## Iterate over each page and check if each of the macros in macroNames is used on that page&lt;h3&gt;Macro Usage&lt;/h3&gt;&lt;hr/&gt;&lt;table&gt;  &lt;tr&gt;&lt;th&gt;Macro&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Page (isValid) (parameters)&lt;/th&gt;&lt;/tr&gt;  #foreach ($name in $macroNames)     &lt;tr&gt;      &lt;td&gt;$macroMetadataManager.getMacroMetadataByName($name).getTitle().getKey() ($name)&lt;/td&gt;      &lt;td&gt;$macroMetadataManager.getMacroMetadataByName($name).getDescription().getKey()&lt;/td&gt;      &lt;td&gt;      #foreach ($page in $allPagesInSpace)  ## $page is of type Page        #if ($eHelper.getMacroDefinition($page, $name))          &lt;a href="$page.getUrlPath()"&gt;$page.getTitle()&lt;/a&gt; ($eHelper.getMacroDefinition($page, $name).isValid()) ($eHelper.getMacroDefinition($page, $name).getParameters())&lt;br/&gt;                  #end      #end      &lt;/td&gt;    &lt;/tr&gt;  #end&lt;/table&gt;
```


author: Julio Mugabe
body: Same here, a solution will be greatly appreciated.


author: Adolfo Casari
body: I have the same requirement, if someone knows an approach please share it.


Tags: user-macro
Re-assigning decorators on the fly?
Asked by Matthew J. Horn:

This page shows that you can add the query string param "decorators" to a URL, and set it to "none":

<http://forums.atlassian.com/thread.jspa?threadID=8576>

Like this:

<http://confluence.url/path/to/my.action?decorator=none>

Does the "decorators" query string param take any other values? I've tried a few things, like names for other decorators, but could not find anything. Thanks!

matt


Answers:
author: Remo Siegwart
body: The decorators are defined in the **decorators.xml** file in the source code of Confluence. Some interesting decorators are for example:

* none
* setup
* main
* sudo
* admin
* fixonly
* printable
* helppopup
* popup
* ...

Find more information about the Confluece UI architecture here: [Confluence UI architecture](https://developer.atlassian.com/display/CONFDEV/Confluence+UI+architecture)

Hope this helps

comments: author: Matthew J. Horn
body: Awesome, thanks Remo.


author: Tim
body: It seems, that the decorator query string is no longer working for Confluence 5.4.3:

<https://confluence.atlassian.com/display/DOC/Confluence+Documentation+Home?decorator=popup>

Has the name changed? Has it been removed?

edit: From my testings: It stopped working with the release of Confluence 5.1.5.

edit2:

```
&lt;mapper class="com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper"&gt;			&lt;param name="decorator.parameter" value="decorator" /&gt;			&lt;!--			&lt;param name="parameter.name" value="printable" /&gt;			&lt;param name="parameter.value" value="true" /&gt;			--&gt;		&lt;/mapper&gt;
```

has been removed from /WEB-INF/sitemesh.xml in Confluence 5.1.5, you have to manually add it, in order to make it work in the current Confluence Release.

Before adding the ParameterDecoratorMapper again, be sure to read the XSS attack described here: [](https://jira.atlassian.com/browse/CONF-20865)<https://jira.atlassian.com/browse/CONF-20865>as this is the reason, why it has been removed.


Tags: decorator

editor

stylesheet
typing a macro name in text in Confluence but I don't want it flagged as a macro
Asked by Paul McGeoghan:

Hi,

In Confluence, I want to simply type in text as follows:

'We are now using system variables, for example, the system variable ${InstallDir} refers to c:\\ZCM_tmp'

However, when I click Save, Confluence says Unknown Macro: {InstallDir}

How do I simply type the text ${InstallDir} without Confluence thinking it is a macro?

Thanks


Answers:
author: JamieA
body: Or you can just use \\{

comments: author: Paul McGeoghan
body: Thanks, that works.


author: Thomas Schlegel
body: Hi Paul,

try this:

{noformat:nopanel=true}  
${installdir}  
{noformat}

Best regards

Thomas
Problem at Confluence install
Asked by Rumceisz:

Hi All,

I downloaded a 3.5.13 Confluence install. After finishing the installation I tried to start ("Open Browser" link) but when a new browser page shows up it says:

The requested URL could not be retrieved {#toc-hId-1619684715}
--------------------------------------------------------------

*** ** * ** ***

While trying to retrieve the URL: [http://8080.itsystems.de/confluence](http://8080.lsy.bud.dlh.de/confluence)

The following error was encountered:
> Unable to determine IP address from host name for *8080.itsystems.de*

The dnsserver returned:
> Name Error: The domain name does not exist.

This means that:

```
 The cache was not able to resolve the hostname presented in the URL.  Check if the address is correct. 
```

Your cache administrator is [root](mailto:root).

What is the problem here?

Can you please suggest?

Thanks in advance!

Rumi


Answers:
author: Andrew Frayling
body: Hi Rumi,

The URL doesn't look right to me, I'd expect it to be something like:

```
http://itsystems.de:8080/confluence
```

i.e. 8080 would be the port number, not the hostname.

If the 8080.itsystems.de URL is incorrect and the itsystem.de:8080 URL works it's probably worth checking your Base URL in Browse -\> Confluence Admin as the Base URL needs to be the URL that end users will use to access Confluence.

Hope that helps,

Andrew.


Tags: install
Edit in Office link doesn't work
Asked by Rumceisz:

Hi All,

I would like to ask for your help: in our Confluence we cannot edit the attached excel files via the Edit in Office link. When we click on that link, a popup show up and warn to download a Firefox extension. We let the FF to download the extension but it always fails: it says it cannot reach the server.

Do you know which extension do we need? We can maybe download it manually, I guess..

Or any suggestion?

Thanks in advance!

Rumi


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

we had the same problem once. Try this:

<https://addons.mozilla.org/de/firefox/addon/webdav-launcher/>

Cheers Christian


Tags: ms-office-connector
Error with Gliffy and Recommended Mails from Confluence 4.2
Asked by Dirk Bromberg:

Hi,

after upgrade to confluence 4.2 we get the recommended mails... it is fine but has one bug.

Pages with Gliffy Images on are rendered in the mail as:

Error rendering macro 'gliffy' : java.lang.ClassCastException: com.atlassian.confluence.util.ConfluenceMockServletRequest cannot be cast to javax.servlet.http.HttpServletRequest

Is there a bug in confluence or in gliffy?

Is there a solution out somewhere?

Thanks!

<br />


Answers:
author: Keith Rockhold
body: Hi Dirk,

Thanks for opening that support ticket, but we found the bug in Gliffy that was causing it. You, and anyone else who suffers from this problem, should install the latest Gliffy version (4.2.3) to resolve this issue. You can get it from the link below, or from the Confluence UPM:

<http://www.gliffy.com/products/confluence-plugin/download/archive/gliffy-confluence-plugin-4.2.3.jar>

Thank you,  
Keith Rockhold  
Support Engineer  
keith@gliffy.com

Gliffy Inc.  
PO Box 7775 #35255  
San Francisco, CA, 94120-7775

877-2-Gliffy (877-245-4339)


author: Keith Rockhold
body: Hi Dirk,  

Would you please open a support ticket at [http://support.gliffy.com](http://support.gliffy.com.). I'd like to ask for information we shouldn't share in an open venue. However, I do believe this issue will be quickly solved.  

Thank you,  
Keith Rockhold  
Support Engineer  
keith@gliffy.com

Gliffy Inc.  
PO Box 7775 #35255  
San Francisco, CA, 94120-7775

877-2-Gliffy (877-245-4339)


Tags: gliffy

recommendation
Screensnipe
Asked by HopeJ:

Hi

I am trying to upload screen snipe 1.3.1 for confluence 3.2.

The system says it is there but when we run it we get the following error.

load: class com.spartez.ss.applet.ConfluenceScreenSnipeApplet not found.

java.lang.ClassNotFoundException: com.spartez.ss.applet.ConfluenceScreenSnipeApplet

at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)

at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)

at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)

at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)

at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)

at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Exception: java.lang.ClassNotFoundException: com.spartez.ss.applet.ConfluenceScreenSnipeApplet


Answers:
author: Wojciech Seliga
body: Hi, Does it happen when you try to install the plugin or when you try to actually upload (save) a picture?

Does this exception come from Confluence log or from your Java console (on the client side)?

comments: author: HopeJ
body: Hi

It is when i try and upload a pic. So it must be the client side.


author: Wojciech Seliga
body: Just for the sake of completness: this turned into a support case handled by e-mail. I'll post here results if we figure out something.


Tags: app
Where is confluence
Asked by Simon Rodwell:

I started with a Jira on demand account and have just added confluence.

I can not work out where confluence is. My domain is [patcht.atlassian.net](http://patcht.atlassian.net) which takes me to my jira setup. How do I get to confluence?


Answers:
author: TimT
body: Simon,

You may need to grant yourself access to Confluence from the administration console.

1. Click the user drop-down in the header (labelled with your name)
2. Go to Administration
3. Expand the User Management category by clicking the triangle at its left side
4. Choose Application Access
5. On this page, you can select which users should have access to Confluence
6. If you like, you can go to the Default Application Access page to set Confluence access by default for new users

comments: author: Simon Rodwell
body: That has fixed it. Thanks for your help.


author: Septa Cahyadiputra
body: Hi Simon,

Is there any wiki tab on the top bar?

Cheers,  
Septa Cahyadiputra

comments: author: Simon Rodwell
body: Nope, just a tab with "Issues".

Since adding confluence the look and feel of my jira installation has changed... And added the "Issues" tab which wasn't there previously.

Screenshot attached.

![](../../upfiles/Screen_shot_2012-05-03_at_3.17.15_PM.png)


author: Septa Cahyadiputra
body: You might want to double check if you have the necessary permission to access Confluence. Anyway, I believe it would be a good idea to file a support ticket at our [support channel](https://support.atlassian.com) so that you could get a better assistant from our OnDemand support enginner.

Cheers,

Septa Cahyadiputra


Tags: cloud

confluence-cloud
Can't add users to confluence-administrators group
Asked by Aakash Sahai:

I had been trying to figure out how to delete a Global Space that I had created but don't want to use anymore. I couldn't find out a way to do so. I checked some of the other posts on the site and learned that the person has to be a member of confluence-administators group. I see it listed as one of the groups. However, when I go to User Management and try to edit Group seetting for the user, it won't list it as one of the choices. Wonder why? I have all the privileges, including system-administratos.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: It is a restricted function in OnDemand: <http://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand#RestrictedFunctionsinAtlassianOnDemand-Confluence>

comments: author: Aakash Sahai
body: Thanks John. I figured out that even though I don't explicitly have confluence-administrator group membership privileges in the OnDemand version, I was able to delete the extraneous "Space." It is just not straightforward to get to the specific admin page where the "Remove Space" option is buried.


author: Gaby Mora
body: Hi Jobin,

How can we grant access to users if we only have access to the OnDemand instance of Confluence?

Thanks,

Gaby


author: vladkras
body: new link <https://confluence.atlassian.com/cloud/restricted-functions-in-atlassian-cloud-apps-744721664.html>


Tags: cloud

confluence-cloud
JIRA Issue Macro shows no issues within my Confluence 4.2 Wiki page.
Asked by Kevin Set:

Hello,

So basically I have both confluence and jira running on the same computer but in different ports, and I have enable the trusted communication between confluence and jira (only outward). Within my JIRA, I have a filter with 5 issues in which I obtained the XML link of JIRA's Issue Navigator. I then pasted it into my JIRA Issue Macro, and yet when I saved the page within my space within Confluence 4.2, it showed no issues, and no JIRA Issue Macro table either (but when I looked in JIRA at the filter in the Issue Navigator, there are 5 issues). I don't know why my Confluence's JIRA Issue Macro won't show the 5 issues. Any help is appreciated. Thanks!

-Kevin


Answers:
author: Bruna Griebeler
body: Hi Kevin,

Seems like in your case the problem is regarding the application URL set incorrectly in the application link.

Cheers!


Tags: jira
How can I export the network (of followers/following) in Confluence
Asked by Hope Niblick:

We want to do some analysis on social connections among our users. Is there anyway that I can get the data to work with?

Thanks


Answers:
author: Hope Niblick
body: it is lightly used. I'm running a comparison of different internal tools to try to shed light on who uses what and why.


author: Renjith Pillai
body: Just being curious, is this feature (follwers/following) really used in your instance?


Tags: follow

network
http access to atlassian.net for confluence ondemand
Asked by isterM:

Is there a way to configure my confluence instance available on [atlassian.net](http://atlassian.net) to use http instead of https ?

Currently by forcing https, my wiki is not available in some companies blocking https by default preventing these companies to access our documentation.


Answers:
author: TimT
body: This may not be a complete solution for you, but Confluence does have the ability to export spaces to an archive of HTML pages.

<http://confluence.atlassian.com/display/DOC/Exporting+Confluence+Pages+and+Spaces+to+HTML>

If you have other static web hosting somewhere, you could use that to provide documentation to your customers.

This can also be scripted with XML-RPC or SOAP, if you want to automate periodic export and publishing.

<https://developer.atlassian.com/display/CONFDEV/Confluence+XML-RPC+and+SOAP+APIs>


author: SimonS
body: Hi Alexandre,

At the moment, only https is available for OnDemand instances.

-Simon


Tags: cloud

confluence-cloud