youngmon/atlassian-qna huggingface dataset:
Restrict navmaps and content by label to pagetree
Asked by Joerg Bencke:

Hi Folks,

has someone a (user?)macro for me to simulate a "content by label" or "navmaps", restricted to the current pagetree instead of the whole space ?

Regards, Josh


Answers:
author: MatthewC
body: You could use the reporting macro.... i did some similar for showing recent updates under the current page, so it's not a lot different:

```
{report-block}{local-reporter:page:descendents}{content-filter:reference:value|label=MYLABEL}{local-reporter}{report-header} {report-header}{report-body}{report-info:content:title|link=true} {report-body}{report-empty}No local content found{report-empty}{report-block}
```

You could convert it into a user macro by using

```
{report-block}{local-reporter:page:descendents}{content-filter:reference:value|label=$paramLabel}{local-reporter}{report-header} {report-header}{report-body}{report-info:content:title|link=true} {report-body}{report-empty}No local content found{report-empty}{report-block}
```

and then call it something like:

```
{local-label-content:label=MYLABEL}
```
Cannot get connected via WebDAV
Asked by Jason Pepper:

I am seeing inconsistent behaviour when trying to connect via webdav.

I can connect using transmit on Mac OSX without any problems.

I have managed to configure several Windows 7 machines to connect by applying KB907306 but NOT by adding the UseWebFolders DWORD to the registry.

It seems to me that there are conflicting instructions on how to configure webdav with Windows.

e.g. <http://bit.ly/wfb5Q7>

Please can you provide me with definitive instructions on how to configure webdav with Windows 7 - I need this for our company rollout.

Thanks


Answers:
author: Abdoulaye Kindy Diallo
body: Hope this [documentation](http://confluence.atlassian.com/display/DOC/Configuring+a+WebDAV+client+for+Confluence "Webdav") and [this one](https://studio.plugins.atlassian.com/wiki/display/WBDV/WebDAV+Client+Setup "Webdav2") might be helpful :)
How to make the Pagetree that only display pages that a user have permission to view/edit
Asked by ragesh punathil:

Page tree will display all pages as list view. I just wanted to show only pages that a user or group have **access** .


Answers:
author: Thomas Schlegel
body: Hi,

the pagetree makro shows only the pages that **the logged-in user**is allowed to see.

Best regards

Thomas

comments: author: ragesh punathil
body: Sorry. basically page tree will show up all the pages .Whenever I clicked any of link then the page will display access denied if the page has restricted access . I just want to hide those link of restricted pages.


author: Thomas Schlegel
body: no, it does not. I've tested it once again:

- Restrict one page to a user.

- Looked at the page tree as another user: The link is not visible in the page tree.

- Log in as the user the page is restricted to

- Looked at the page tree: The link is visible in the page tree

There must be something else... The pagetree plugin works well.


Tags: accessibility

page

page-tree

user
Displaying images as thumbnail in Confluence
Asked by Pinaki Basu:

Previous to 4.1.3 version confluence I was able to add image to my page with thumbnail affect. Now I do not have that option when inserting image. The only work around to create a gallery of single picture. This is cumborsome if I have few pictures to load. I am not sure why this option was taken out.

Thanks


Answers:
author: Andrew Frayling
body: Hi,

You don't necessarily have to create a gallery to get a thumbnail. After inserting an image if you single click on it in the editor to bring up the property paneal underneath the editor you can select from one of four preset thumbnail sizes or click on the text displaying the pixel size of the image to set your own specific thumbnail size. Have a look at <http://confluence.atlassian.com/display/DOC/Displaying+Images#DisplayingImages-Controllingtheimageappearance> for details.

It's still not as quick as the old wiki markup, but hopefully quicker than the gallery option?

Does that help at all?

Andrew.

comments: author: Pinaki Basu
body: Thanks Andrew it definetly helped.


author: ProjectMatthias
body: Hey Thomas,

I've come across the same problem. If you make a {html} macro and paste this inside, it will disable the whole pages clickable images:

```
<script type="text/javascript"> AJS.toInit(function() {  // unbind directly-embedded images  AJS.$("img.confluence-embedded-image").unbind("click.fb");  // unbind the gallery macro  AJS.$("a.gallery-link").unbind("click.fb");  // unbind the attachments macro AJS.$(".attachments a.filename").unbind("click.fb");});</script>
```


author: Koloro
body: I tried several options but can t found the way for disable images when mouseover and click popup, we don t need this images like pop up.

here and example

<http://www.portalminero.com/pages/viewrecentblogposts.action?key=PRENSA>

Thanks Thomas

comments: author: Nelson Jimenez Manio
body: Hi,

Is there a way to insert multiple images to a page at one time (multiple select) ?? Inserting an image one at a time is very cumbersome when there are tons of them to insert.

thanks,

Bermelian


author: Rajesh Singamsetty
body: Hi Koloro, the link provided by you does not work.

Thanks

Rajesh Singamsetty


author: Koloro
body: Hi friends, any idea how to disable the action popup when click the image?

comments: author: Thomas Schlegel
body: Hmm, this is the usual behaviour of thumbnails. If you only want small unclickable pictures, you should add a small version of the picture, not a thumbnail ;-)

Best regards

Thomas


author: Joe Clark
body: Hi! Welcome to Atlassian Answers :) When asking questions, you should create a new question rather than adding an answer to an existing question. This makes it easier for people to find the question and provide a good answer for it!


Tags: thumbnail
Using headings after tables effects the heading formatting
Asked by JZ:

Confluence 4.1.5

Any heading size 3-6 appearing after a table inserted onto the page become a very small font size. All headings in these sizes occuring before the tables appear in the proper font size.

I have removed all tables from the page, and the headings go to their regular size, but as soon as I insert a new table, the font sizes fo the headings after the table decrease again.

Any thoiughts? Thanks so much!


Answers:
author: DavidH
body: On thing I could think to check is whether any of text in the table is formatted as headings. One of the tricky things about the PDF export is the "demotion of headings" -- heading levels can change (like H2s become H3s or H4s), and if you're not aware of it, ut can be hard to figure out why headings are getting smaller.


Tags: format
Issues importing spaces - no error msg, but certain pages/page groups are missing.
Asked by stephen walcott:

Some background:

We have been using the Confluence knowledge base for several years and hosting our own server.

However, at this time I would like to put some of this into an Atlassian hosted solution and leverage all of the integrated tools.

Our old Confluence server is on version 3.02, Confluence on-demand is a much newer version so I need to not only export/import select spaces, but I also need to upgrade it.

I've installed 3.02 standalone locally and exported each of the spaces I need. However, when I import the spaces, some of the pages are missing. There was no error message displayed and all of the pages that are there appear to work just fine.

I've tried to alter the logging to determine the cause of the problem, but with SQLLogging on, a 10 minute import took over 3 hours. (I killed it at 3) Any other logging doesn't seem to give me useful information.

I'm not sure where to go from here, has anyone run into this?

Thanks,  
-Stephen


Answers:
author: stephen walcott
body: When importing pre-existing pages to a new dataset: Pages restricted to a group or user may not be visible, **even if the group is re-added later.**

After importing, remove the restrictions from each page to restore page visibility.


Tags: export

import
white list url for being able to upload informations about plugin in the upm
Asked by Michael Regelin:

Hello,

Not sure if this is possible but as we are behind reverse proxies, we are actually unable to get information from Atlassian to upload informations about plugins in the upm.

Is there a unique url that be have to whitelist ?

Thanks for help.

Sincerly,

Michael


Answers:
author: Andrew Frayling
body: Hi,

If I understand the question correctly I think you need to configure a proxy for Confluence by following the instructions at <http://confluence.atlassian.com/display/DOC/Configure+Web+Proxy+Support+for+Confluence>

Andrew.

comments: author: Michael Regelin
body: Hi Andrew,

I mist this one.

thanks for your answer. I managed to configure the white list and the proxy parameters in the launch of confluence.

Sincerly,

Michael
Change default selection of macros in "insert" menu of editor
Asked by Maciej Sidor:

Hi,

In the "insert" menu of editor there are some macros that I'm not using at all. Is there any way to replace those macros with other builtin macros.


Answers:
author: Joe Clark
body: Hi Maciej,

Unfortunately it's not possible to change the list of macros in this menu, unless you want to edit the source code of Confluence directly.

It is possible to add *extra* macros to this list by installing a [Web Item](https://developer.atlassian.com/display/CONFDEV/Web+Item+Plugin+Module) plugin module.

There is an existing open feature request for Confluence to improve functionality in this area - please vote or comment o <https://jira.atlassian.com/browse/CONF-23368> if you are interested.


Tags: menu
After rebooting Confluence, we now have macros that seem to be disabled, but we cannot see them being disabled in the system
Asked by Bryan Guffey:

The navigation panel of spaces using the Documentation theme are rendering as blank, rather than showing the hierarchical view of space contents. Also, several other macros appear to be missing or disabled (see the Beta Psi Chapter space for examples).


Answers:
author: Giuliano C.
body: It seems that you were under a malfunction plugin problem and we got the help for this one through [CSP-78092](https://support.atlassian.com/browse/CSP-78092 "CSP-78092") by performing the Rebuild of your Plugin data. Following the mentioned instruction on [Removing Malfunctioning Plugins](https://confluence.atlassian.com/display/DOC/Removing+Malfunctioning+Plugins "Removing Malfunctioning Plugins").

Thanks for contacting us!

Kind Regards,

Giuliano
Changing LDAP Source from Novell to Microsoft
Asked by Markus Adler:

We are running Confluence 3.4.6 and are migrating from Novell eDir to Microsoft Active Directory.  

Currently the two systems are synchronized, so user IDs and passwords match. Confluence is using LDAP only to authenticate, all group memberships and access are controlled in Confluence.  

I plan to change the atlassian-user.xml to point to AD and then restart confluence. I expect I will have to re-add the users to their Confluence groups but will it orphan any of their pages? eg. Personal Space  

Or will it recognize their account as the same user but from a different source?


Answers:
author: Andrew Frayling
body: Hi Markus,

I've not done that particular LDAP switch, but if the usernames are the same I'd expect Confluence to recognise accounts as the same user and it shouldn't orphan any pages - I wouldn't even expect to have to re-add users to their Confluence groups.

If the usernames are different things get a bit complicated (<http://confluence.atlassian.com/display/DOC/Changing+Usernames>), but if they're the same and you're only using LDAP for authentication then as far as Confluence is concerned a user with the username "jbloggs" is "jbloggs" whether it authenticates against eDir or AD.

As mentioned, I've not tried this particualr switch, but that's what I'd exepct. A quick test on a test instance of shutting down Confluence, changing LDAP config and re-starting Confluence will give you a definitive answer.

Andrew.

comments: author: Markus Adler
body: Looks like it works. We did end up migrating Confluence to a new server with LDAP authentication pointing to Active Directory but it seems to have picked up all the accounts as before.

Thanks for the information.


Tags: ldap
Is there any way to see more information on who initiated a Java thread?
Asked by WSST:

I recently had a single Java thread out of my confluence instance run away from me. Using top -H, I could see that this thread was consistently running CPU usage up to 99.9% while all the others appeared normal.

Is there any way I can map this thread to a single user or to a single IP address or to a single task. Perhaps next time this happens I can ask the user to stop what they are doing and log out rather than restart the entire Confluence service for everyone.


Answers:
author: WSST
body: For the googlers,

I found this script elsewhere and it did the trick:

```
#!/bin/bashPID=$(top -n1 | grep -m1 java | perl -pe 's/\e\[?.*?[\@-~] ?//g' | cut -f1 -d' ')echo The PID of the Confluence process is $PIDTID=$(top -n1 -H | grep -m1 java | perl -pe 's/\e\[?.*?[\@-~] ?//g' | cut -f1 -d' ')echo The PPID of the highest CPU consuming Java thread is $TIDNID=$(printf "%x" $TID)echo The hex value of the highest CPU consuming Java thread is $NIDif [[ $PID -gt 0 &amp;&amp; "$NID" != "0" ]]; then        sudo /usr/java/jdk1.6.0_20/bin/jstack $PID | grep -A500 $NID | grep -m1 "^$" -B 500fi;echo -n "OS thread count is: "ps -eL | grep java | wc -lecho -n "Open file count is: "sudo /usr/sbin/lsof | grep java | wc -lecho -n "Total established connection count is "sudo /usr/sbin/lsof -i | grep java | grep -i established | wc -lecho -n "HTTPS incoming connection count is: "sudo /usr/sbin/lsof -i | grep java | grep -i established | grep :https | wc -lecho -n "Total other (outgoing) connection count is: "sudo /usr/sbin/lsof -i | grep java | grep -i established | grep -v ":https" | wc -lecho -n "Database (outgoing) connection count is: "sudo /usr/sbin/lsof -i | grep java | grep -i established | grep "dbServer" | wc -l
```


Tags: administration

java

thread
Controlled document number generator macro/plugin
Asked by Mike Jansen:

Are there any plugins available for generating document numbers for controlled documents?

We're looking to use Confluence for all of our document ation and are trying to figure out how to best use it for controlled documents. One of the important features we need is to be able to generate a unique document number. It would be preferable if you could drop down a list of prefixes Confluence would generate the next unique number.

I realize that I can write a plugin but I'm looking for something already written (community or commercial).

Thanks,

Mike


Answers:
author: David Peterson
body: You can do it using the 'child-counter' feature of the Linking Plugin. Example is here:<http://wiki.customware.net/repository/display/AtlassianPlugins/Child+Counter+Supplier>Regards,David Peterson
Date a space was last modified
Asked by Adolfo Casari:

I am creating a report about all spaces in a Confluence instance using the reporting plugin.

I would like to show the las time the space was "touched" (page edited, commented, file attached).

The plugin has a **Space** supplier but the *modification date* it prints doesn't match my expectations (seems that this date is the last time some space related info was updated, not the space content date).

Any suggestions?

Thank you.


Answers:
author: Joe Clark
body: The Space's modification date will reflect that last time the space's own metadata was updated (space name, space description, etc.).

You'll need to use the PageManager, CommentManager and AttachmentManager to piece together recently updated content in each space. There are methods on each of these interfaces to retrieve recently updated content for a particular space.

I don't think there's any easy way to aggregate this all together via the API, unfortunately.

comments: author: Adolfo Casari
body: Hi, I was able to get this report using the [reporting plugin](https://plugins.atlassian.com/plugins/net.customware.confluence.plugin.reporting), it's sort of complex but it does its job.


author: Joe Clark
body: That sounds like a better solution - nice one :-)
Jira macro in Confluence 4.1 only displays the key
Asked by Walt Fles:

I am using Confluence 4.1 and want to display Jira issues.

They recently established the trust between Jira and Confluence, and also are using an SSL certificate.

The Jira output only displays values in the key column, even though I requested columns such as status, summary, component.

Is there something else which needs to be establish for the trust, or some other setting in the macro?


Answers:
author: Christian Czaia _Decadis AG_
body: Hi, do you have blanks between the single fields? You must specify the columns like this:

key,summary,assignee,status

If you insert blanks after each field like key, summary, assignee you don't get values...

Cheers,

Christian


author: Christian Czaia _Decadis AG_
body: Still facing the problem?
Could not upload the file to confluence
Asked by Jonghyuck HONG:

When I tri to upload an image file or other media attachment, there comes error message like this:

"Could not upload the file to Confluence. The server may be unavailable."


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Are you seeing any error in the logs when you do this? Like OutOfMemory errors?


author: Brandon Beveridge
body: If you're getting this error and you're proxying with nginx, you may be recieving a '413 Entity too large' error. [](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size)<http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size>needs to be changed.

comments: author: Scott Molinari
body: This fixed our problem! Thanks for that!

Scott


author: NielsJ
body: Maybe your attachment is too big. Maybe you get a more clear error message when uploading via Tools --\> Attachments. The limit is adjustable in the general configuration in the administration panel.

comments: author: Jonghyuck HONG
body: I found something wrong in "Attachment storage" field of Admin page.
\<th colspan="2"\>Attachment Storage\</th\>

|-------------------------------------------------------|-------------------------------------------------------|
| \<label class="label"\>Attachments Storage:\</label\> | **Filesystem:** $action.getLocalAttachmentDirectory() |

The file system field does not show the directory path.

How can I fix this.


author: FernandoA
body: Hi,

This issue can be caused by the configured base URL that is not matching the URL you use to access Confluence via the browser. For example, you access Confluence via <http://atlassian.net:8090> while the configured base URL from Confluence Admin \> General Configuration is <http://atlassian.net/confluence>.

As a resolution please ensure that the configured base URL must match the URL you use to access Confluence via the browser. Update the base URL from Confluence Admin \> General Configuration.

Hope this helps.

Cheers!


author: GaryM
body: The problem can be reproduced by using Insert/Link/Attachments and browsing to a filename where the filename includes one or more single quotes (Example: filename = a'test.xlsx )

The drag-drop method of adding attachments (Go to "Tools" -\> "Attachments") works fine.


author: Alexis Morganza
body: Fernando and Brandon gave me the clues I needed to find my own solution: I restarted my ssh proxies on my system and was able to upload images afterwards. (I was able to edit documents with no problems, but needed the proxy running to upload an image.)
In confluence 4, how can I easily insert a link with a specific format?
Asked by Mark_Booth:

In previous versions of Confluence, we used to use the wiki markup \[\<number\>@tag\] to create links of the form https://\<long url body\>/\<number\> displayed as r\<number\>.

With the new wiki markup editor we have to do Insert wiki markup, type \[\<number\>@tag\] as before and then click on Insert.

It would be nice if there were a more convenient way of adding these links in the wysiwyg editor.

What are my options?

If this isn't something I can do as a Confluence user, what do I need to request from my Confluence administrators?


Answers:
author: Andrew Frayling
body: Hi Mark,

It sounds like you're using shortcut links - <http://confluence.atlassian.com/display/DOC/Configuring+Shortcut+Links> (site down for maintenance at 12:29pm GMT) - which are still available in Confluence 4.x and once configured can be entered directly into the editor without having to wrap them with the wiki markup macro.

If the Shortcut Links have already been configured you should just be able to type \[\<number\>@tag\] in to the editor and Confluence will expand the link using the alias provided in the shortcut configuration.

If they haven't been configured you need to get an administrator to select Browse -\> Confluence Admin -\> Shortcut Links and create a shortcut link with the following values:

\* Key: tag  
\* Expanded Value: [http://](http://your)\<your url body\>/  
\* Default Alias: r%s

Hope that helps,

Andrew.

comments: author: Mark_Booth
body: Thanks Andrew, but that isn't working for me. As soon as I type \[ the 'Link suggestions' box pops up, I type the rest of the shortcut but as soon as I add the closing \] the box disappears and the text remains exactly as I'd typed it, rather than being replaced by the link. It looks like I'll need to contact our Confluence admin to fix it.


author: Andrew Frayling
body: Just a follow up to this, which version of Confluence 4 are you using? I was testing on 4.1.4 which works as I described, but I just found <https://jira.atlassian.com/browse/CONF-23392> which says the shortcut functionality did change in 4.0. If your admin has already set up the shortcut links and you're on 4.0.x rather than 4.1.x it could be the above issue that you're hitting.


author: Mark_Booth
body: That's probably it, it says "Confluence 4.1" at the bottom of the page, so I'll have to ask when we are due to upgeade.  


author: Mark Hrynczak
body: The ability to type a link directly into the editor and have it convert on the closing '\]' was introduced in 4.1.2. See <https://jira.atlassian.com/browse/CONF-24038>

If you are using an earlier version, and upgrading is not an option, then the easiest way to enter a shortcut link is:

* Press ***Ctrl+K*** to open the Links browser
* Switch to the 'Advanced' tab
* Enter your link there as ***\<number\>@tag***
* Press the 'Insert' button

This is also described here: <http://confluence.atlassian.com/display/DOC/Linking+to+Pages#LinkingtoPages-shortcutlink>


Tags: link

markup

wysiwyg