youngmon/atlassian-qna huggingface dataset:
replacing special chars in url
Asked by Jens Rapp:

Hi,

we've got a program which is called mega plus. This software is basically web based but it doesn'T use normal http protocol. Instead, it seperates parameters using the pipe \| (%7c).

Sadly, this disturbs confluence. Links to megaplus don't work unless I manually repeace those pipes with %7c.

Is there any way to do this automatically?


Answers:
author: Alex Medved _ConfiForms_
body: Some ugly user macro to the rescue :smile:

```
## @param Url:title=Url|type=string|required=true|desc=Server name (with protocol)## @param Query:title=Query|type=string|required=true|desc=Query (to encode)#set ($urlEncoderClass=$content.class.forName('java.net.URLEncoder'))#set ($stringClass=$content.class.forName('java.lang.String'))#set ($getInstanceMethod=$urlEncoderClass.getDeclaredMethod('encode', $stringClass))#set ($encoded=$getInstanceMethod.invoke(null, $paramQuery))&lt;a href="$paramUrl${encoded}"&gt;$paramUrl$paramQuery&lt;/a&gt;
```

Basically, in your case you can hardcode the paramUrl parameter to make it easier to put such links (only the query string to enter, which will be encoded properly in a link, but will look as-is in link's caption)


author: Alejandro Conde Carrillo
body: That is because the pipe character ('\|') is not allowed in URLs. That is why it needs to be encoded. You can read more in the [standard RFC 1738](https://www.ietf.org/rfc/rfc1738.txt).

I am afraid there is not an easy way to replace those character automatically. There is already a feature request for this in <https://jira.atlassian.com/browse/CONF-12818>.


author: Jens Rapp
body: that'll help thank you ![laugh](/html/@BEA1CC333F4D830F5303329D7DC07DE4/images/emoticons/laugh.png "laugh")
Branding
Asked by Thomas Steele-Maley:


Answers:
author: Daniel Wester
body: What's your question? Confluence is branded.. :smile:

I'm guessing you're asking if you can apply your own branding? It is limited to the color scheme and logo: <https://confluence.atlassian.com/display/Cloud/Changing+the+Look+and+Feel+of+Confluence> (at least in the cloud version)


Tags: cloud

confluence-cloud
how to build a table of contents
Asked by Timothy Boyer:

I want to build a Table of Contents out of my current Confluence pages within my project Space.

I also would not mind having an Index (where I could lookup a page by keyword).

These should be "easy", no?


Answers:
author: Davin Studer
body: You could label your pages and the user the content by label macro on your table of contents page. So, using your example you would labels some pages as apple and others as orange. The on the TOC page you would have two content by label macros. One would display the apples and the other would display the oranges. Is this what you are looking for ... or something similar?


author: Boris Berenberg
body: This is done automatically for you in the left bar of any space.

Screen Shot 2015-01-30 at 1.10.00 PM.png  
[](https://community.atlassian.com/t5/Confluence-questions/how-to-build-a-table-of-contents/qaq-p/307140?attachment-id=10194){#link_1188ebc404487c}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/51833/1/Screen%20Shot%202015-01-30%20at%201.10.00%20PM.png){#display_1188ebc404487c_0}


author: Steffen Heller
body: @Timothy Anido

If you want to "sort" pages into categories you can simply create the necessary file structure for that:

Create two new pages (that will work like a directory) and put your apple and orange pages in there, just as you would do in Window's explorer. To move the pages you can either use Tools \> Move or Browse \> Pages.


author: Timothy Boyer
body: While I appreciate your answers, this does not necessarily solve my issue.

I have some 20 pages (so far), I want to "sort" them into categories so the "apples" are in one "chapter" and the "oranges" in the next. The left margin does not do this by default, and the documentation of the tool is not always clear.


author: William Zanchet [Atlassian]
body: Hey Tim,  

The Table of Contents macro scans the headings on the current Confluence page to create a table of contents based on those headings. This helps readers find their way around lengthy pages, by summarising the content structure and providing links to headings.

In other words, you need to have headings to be able to build a table of contents.  

Cheers,  
WZ
My TOC Heading breaks before generated TOC.
Asked by Gillian Flato:

In the bottom of my PDF Space Export Title Page, I have the following: \<div\>\<h1\>Table of Contents\</h1\>\</div\> The Heading renders properly, but the TOC content is on the following page. Obviously I want the TOC heading and the TOC content on the same page. How do I achieve this?


Answers:
author: Steffen Heller
body: If that \<div\>...\</div\> heading is at the bottom of the Title Page there is a good chance that there simply isn't enough space for the TOC itself and it will be moved to the next page.

The easiest solution should be to include a page break before the \<div\>...\</div\> so that the heading also moves to the next page.

If that doesn't work try to explain more precisely:

* What is the code in you Title Page?
* What TOC do you use? The confluence one or the macro?
* Do you use a PDF Export Stylesheet? What is in there?

How a page break can be created has been answered numerous times. It is just a bit difficult to find these answers with the forum search engine. Perhaps try a Google search instead.


Tags: css

pdf

table-of-contents
Does Confluence support personalisation via Active Directory
Asked by nigel heath:

Hi, it is possible to configure Confluence up so it displays a different dashboard or content that is dependant on the users AD entry. i.e All members of the FInance AD group will see the FinanceDashboard, the Legal Team AD group will only see the Legal dashboard etc.

I don't need any detailed instructions at this stage just an idea of whether its possible.

Many thanks

Nigel


Answers:
author: nigel heath
body: Thanks everyone for all your helpful comments.

Cheers.


author: Thomas Schlegel
body: Hi Nigel,

there is also a commercial plugin that should do the trick: [Custom Dashboards](https://marketplace.atlassian.com/plugins/com.simplenia.confluence.plugins.customdashboards). We use it and it works well.

Cheers

Thomas


author: Alex Medved _ConfiForms_
body: You can add logic like this on your landing page. A User macro will do the trick.

Something like:

```
#set ($userGroups = $userAccessor.getGroupNames($action.authenticatedUser))#set ($groupToMatch = "confluence-administrators")#foreach ($group in $userGroups)  #if($group == $groupToMatch)    &lt;p&gt;Hello admin!&lt;/p&gt;  #end#end
```

See the "\<p\>Hello admin!\</p\>", you can replace it with a JS redirect or even a HTTP redirect to the page you want.

comments: author: Stephen Gramm
body: I like the simplicity for this approach, but need to know exact details on how to accomplish adding this to the default dashboard in Confluence.Thanks in advance for yoru help!


author: Alex Medved _ConfiForms_
body: :)Confluence Admin -\> Layouts -\> Site Layouts -\> Global Layoutchoose "create custom", unless you have something custom alreadyand then (as the original requirement to have different content for different user groups) I will go with redirects (preparing own "dashboard" like pages for each group)and will insert the above code to (for example) the line bore the following:\<div class="pagebody"\>that's it :)


author: Stephen Gramm
body: CoolSo then you make a call to the user macro you created after the 'pagebody' line. What is the syntax for the call to the user macro?


author: Alex Medved _ConfiForms_
body: Actually, if I go with a custom global layout I will not use a user macro there, but will put the code (velocity) as is.


Tags: confluence-administration
Site/Page Hierarchy Macro in 2 columns
Asked by Christoph Kaun:

Hey,

I'm really new to confluence and have a problem with one macro. I have a "Index"-Page and I use the "Page/Site hierarchy (Seiten-Hierarchie in german) to display the sites I already created.

but now I want the sites to be displayed in two columns, for example in the left column sites A - M and on the right column pages from N to Z.

How do I manage this?

Greetings

Christoph


Answers:
author: Christoph Kaun
body: So I just checked the documentation of confluence and the macro I'm using is the PageTreeMacro ( <https://confluence.atlassian.com/display/DOC/Page+Tree+Macro> ).

Still the issue remains.

comments: author: Steven F Behnke
body: There is not a way to do that with the Page Tree Macro. You could sort the pages manually between to Index pages but that's not automatic at all.So, really you want a macro, with the same parameters of the Page Tree macro, that returns all pages beginning with A-M or N-Z. You'd like to do this so you can have a page called Index with columns, and a macro in either column to pull those two options. Is that right?


author: Vera Henrichs
body: I don't think that's possible....


Tags: confluence-administration
attachments available in all pages
Asked by Margherita:

Hello,

I put a link to an attachment in the side bar. I would like that this attachment will be available in all pages, but it is not. It is possible to download the file only from the home page, in all others pages, the link does not work.

Is there a workaround?

Thank you for your time.

Best,  
Margherita

ps: I am using the cutomized theme "RefinedWiki Original Theme"


Answers:
author: Dennis Andersen
body: Hi Margherita,

You could place an [Attachment macro](https://confluence.atlassian.com/display/DOC/Attachments+Macro) in your sidepanel using the [RefinedWiki Space Layout](http://demo.refinedwiki.com/display/rwot/Space+Layout). This will show the attachment in the sidepanel on every page in that space. Now, each attachment is bound to a page, so if you always want the same attachments shown you need to specify that page title in the attachment macro using the **Page Title**attribute. This will show the attachment(s) from that specific page independent on what page in the space you are currently on.

Best,

Dennis

comments: author: Margherita
body: Thank you Dennis!Best,Margherita


Tags: attachment

cloud

confluence-cloud

refined-wiki

side-bar
IssueFilter: How to reference Confluence Page Title within a JQL expression?
Asked by Giovanni Costagliola:

I'm trying to write a JQL expression within a JIRA Issue filter and my intention is to reference all the issues whose summary match with the page title.

Is it possible?

More in general, there's a way to reference some Confluence's page attributes within a JQL expression?


Answers:
author: SanaS
body: Hi Giovanni,

Unfortunately for Confluence pages the title is always *Wiki Page* - so you can't search on the Confluence page title. The only unique data that is kept is the url, such as `(``"`[http://www.acme.com/confluence/pages/viewpage.action?pageId=11469162"](http://www.acme.com/confluence/pages/viewpage.action?pageId=11469162)`)`

See this page for more info:

https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-linkedIssuesOf(Subquery,\[linkname\])

Scroll down a bit to linkedIssuesOfRemote...


Tags: cloud

confluence-cloud

jql
Enable auto user creation in Confluence integration with Okta
Asked by Karthik Gajjala:

I have integrated an on premise Confluence setup with Okta. Confluence is connected to our backend AD for user authentication. I am unable to auto create users in Confluence if they do not exist.

There is a setting "Copy User on Login" which does this but only available in JIRA. I could not find it in Confluence or something similar.

Appreciate any pointers !


Answers:
author: Stephen Gramm
body: Crowd is not required for LDAP authentication or automatically adding users to a group on initial login. If you go to the Directory Configuration Summary in your running instance then you should see the 'confluence-users' as an attribute

```
{application url}/confluence/plugins/servlet/embedded-crowd/support/directories?Attributes:   "autoAddGroups":"confluence-users"
```

If it is not then you may need to modify the directory configuation used for the LDAP directory.

**HINT:** You can not modify a directory if you are logged in as a member of that directory so use the local system account you created when you installed Confluence.

I recommend you open a ticket with Atlassian Support if you cant get this workiing right away.

<br />


Tags: confluence-administration
Plug ins for word, excel and powerpoint?
Asked by David Stutzman:

Does Confluence have add-ons/plug-ins for Word, Excel and Powerpoint?


Answers:
author: TomC
body: Hi David,

The Office Connector is an add-on bundled with Confluence. See <https://confluence.atlassian.com/display/DOC/Editing+Office+Files> and <https://confluence.atlassian.com/display/DOC/Office+Connector+Prerequisites> for more info.


author: Mallmann
body: Hey David,

Just in addition to Tom's answer, the Office Connector would be the responsible for allowing users to edit the document from a page. However, in case you just want to see the document, the View File Macro would be enough: <https://confluence.atlassian.com/display/DOC/View+File+Macro>

I hope it helps :smile:

Cheers!

Eduardo

comments: author: TomC
body: Ha, I thought I grabbed an 'accepted answer' (few and far between for me) and then David switched it to your reply. Maybe the platform should allow multiple accepted since there are nuances in some answers making both 'acceptable'. Cheers, Tom


author: Mallmann
body: Hey Tom,True that! We actually already have an improvement request to track this feature: <https://jira.atlassian.com/browse/CQ-1353>It would be great if you comment and vote on that so it gets more popular :)Cheers!


author: TomC
body: Hi Eduardo, Done! Thanks for letting me know that's out there so I could participate.
Edit in Office "office connector" not working in Confluence 5.5
Asked by Michelle Bachmann:

Various users are running IE8, IE9 or IE10. All are windows 7, with office 2010. We have various instances within the company. The Confluence instance running v5.3 is working with the ability to Edit in Office.

When clicking "Edit in Office," the office application opens, but the file does not open. The Confluence instance with v5.5 is returning the following error.

*"Accessing to the web server is disabled by default because it is controlled by basic authentication and does not use Secure Sockets Layer (SSL). Do you want to want to search the Microsoft Online Support Center to view possible solutions?"*

Both instances are running non-SSL. The variation I've found is the versions. Confluence v5.3 is running Office Connector plug in v3.1.2. Confluence v5.5. is running Office Connector plug in v3.3.3.

What can be done to fix the Office Connector issue with the newer versions of Confluence and Connector?


Answers:
author: Timothy Harris
body: We see the same problem with some users. Not all. Our confluence is not using ssl/https.

What I don't understand is why this happens for some users and not others?

comments: author: Timothy Harris
body: Is it a browser version issue or is it an office issue?


author: Michelle Bachmann
body: We ended up installing IE11 and then MS Fixit 50711 to fix the problem.

<http://go.microsoft.com/?linkid=9777384>


Tags: ms-office-connector
Security issue
Asked by Srinivas Patruni:

Does the subspace plugin maintain same level of permissions/security when we configure spaces as navigation menu?


Answers:
author: Rodrigo Girardi Adami
body: Hi Srinivas,

I was googling the communardo sub space plugin page and I could find[this part](https://support.communardo.de/display/cssp/User-%20and%20Adminguide):

"The relationship between the spaces is rather lose (e.g. no permissions or layouts will be inherited), since the plugins focus is on structuring a wiki and its spaces."

So I believe the plugin won't pick up any permission from the space where it's located.

I hope this helps.

Cheers,

Rodrigo


Tags: addon-de.communardo.confluence.plugins.subspace

confluence-administration
Error rendering macro 'jira' : Couldnt find an application link with the name {0}.
Asked by Mike Wilson:

Confluence 4.16

After changing the application link to Jira, we get "Error rendering macro 'jira' : Couldnt find an application link with the name {0}." throughout Confluence.

I have consulted this article <https://confluence.atlassian.com/pages/viewpage.action?pageId=653951529> but the option it suggests -- "Select the jiraIssueMacroServerParamsUpgradeTask from the drop down list." -- is not available.


Answers:
author: Rodrigo Girardi Adami
body: Hi Mike,

There is a bug in this version of Confluence here: <https://jira.atlassian.com/browse/CONF-25329>

It was fixed in Confluence 5.1. I recommend to upgrade Confluence as soon as possible. As workaround, you can try to delete and recreate the application link in Confluence.

I hope this helps!

Cheers,

Rodrigo


Tags: confluence-administration
How can I receive fewer emails from confluence questions?
Asked by Tim Court:

My team, of about 60 people, is starting to heavily use confluence questions but we hate all the email spam. Is there any way to reduce the number of emails from Questions while still getting immediate notification from other confluence watches?


Answers:
author: TomC
body: I researched this a bit and there is a *Confluence Questions* feature request on that very topic here: [Allow users to receive a daily digest of notifications](https://jira.atlassian.com/browse/CQ-1338) (which should affect Atlassian Answers too...).

I suggest you vote for it and watch it (I just did!)  

comments: author: Tim Court
body: Awesome, thank you! :)


author: Vera Henrichs
body: Hi Tim,

Does the answers have helped you? Because that are the options you have to find your way around. You should define your preferences for a digest and have a look at what you're watching.


author: BenP
body: I'm assume there's an easy way to publish into a hipchat room/stream


author: TomC
body: Hi Tim, Could you be more specific as to what you mean by 'all the email spam'? I watch/follow two topics- confluence and confluence admin - and as far as I can recall, only receive emails related to Questions that are either questions using those tags/topics (I use them interchangeably because what CQ calls a Topic is more or less a tag), or from answers to those questions I have chosen to watch.

It is true that there are a lot of questions that get tagged with 'confluence' just like yours, but it's not spam because I've chosen to follow that tag/topic.

*Could it be that people have chosen to follow too many tags/topics?* Or do you mean you are getting marketing emails from Atlassian pegged to Confluence Question activity?

comments: author: Tim Court
body: Yes, people are getting an email for every question that is asked in the topics they are watching and the responses. As we're ramping up to this new platform this turns out to be dozens of emails per hour, which is turning people off of the platform because they see it as a huge distraction to their already over-taxed schedule. A few people are wondering if there's a way to reduce the volume of emails, perhaps as a daily or weekly digest.


Tags: questions-for-confluence
Style "also being edited by" Confluence message with CSS
Asked by Colin Van Alstine:

I'm a space admin (but not implementation admin) for a Confluence 5.6.3 wiki with the Documentation theme and we've had some issues with users losing edits because multiple people were working on a page at the same time. I want to style the warning message to be more obtrusive (and more magenta). I've come up with the following CSS and I want to be confident that it will only effect the message I'm concerned with, and not other elements on the wiki.  
`.aui-message.closeable`

`{ font-size:18pt; background-color: #C71585; color: #F5FFFA; }`

I've read <https://docs.atlassian.com/aui/5.4.0/docs/messages.html> and I'm concerned that there might be other closeable message elements on the wiki that will be negatively impacted by this styling. I've seen some Stack Exchange articles about applying CSS to messages that contain specific strings (in this case, the "also being edited by"), but those solutions were using jquery, which is beyond me right now. Is there a better way to go about styling this wiki element? Is there a way to find out if `.aui-message.closeable` is called elsewhere in the wiki UI?  

Thank you!


Answers:
author: Davin Studer
body: Try this instead. This will only target ".aui-message.closeable" blocks that are in the "#heartbeat-div" block ... which is where that message shows up.

```
#heartbeat-div .aui-message.closeable {	font-size: 18pt;	background-color: #C71585;	color: #F5FFFA;}
```

comments: author: Colin Van Alstine
body: Davin, thank you! If I continue to nest the blocks to include "#editor-messages #heartbeat-div .aui-message.closeable", will that continue to make it more specific? I can see the heartbeat-div block in firebug, now that you mention it, but I'm not familiar enough with HTML or CSS to know if that block is found elsewhere on the wiki (do wikis have souls as well as heartbeats?). When I include the editor-messages block, I can guess that this block will only be found on pages where the text editor is being displayed. Would you feel confident applying this to your own wiki space? I'm just looking to avoid scaring some poor user with the magenta panel of doom, except when use of the panel is warranted.


author: Davin Studer
body: Yes, by adding "#editor-messages" it will be more specific. I think the one I gave if probably sufficient, but if you want to be really sure then by-all-means add in "#editor-messages" to the chain to make it more specific.


author: Steven F Behnke
body: Good answer Davin, as usual.@Colin Van Alstine, you may find this read useful: <https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity>


Tags: css
Unable to find pages that contain an URL
Asked by Evelin:

The search does not return results when we are looking for an URL. We also tried urlPath: but with no success.

Is Confluence not able to search URLs? And how can I use the urlPath search field?


Answers:
author: Rodrigo Girardi Adami
body: Hi Evelin,

I was able to find this other answers which may help you:

<https://answers.atlassian.com/questions/235020>

Cheers,

Rodrigo
Mailing list watching a space
Asked by Steffen Heller:

Hello,

I want a large number of people to watch a space. For this I want to add a mailing list at Tools \> Manage Watchers \> Watching this page.

First I have a little problem:

There are some mailing lists that are found and others that are not. This must be simple, but where do I administer which mailing lists are available? (I don't need a fully technical explanation, just a quick hint where to look).

Secondly, a question:

Will using a mailing list automatically ensure that the list of watchers will always be up to date with people being added to the mailing list automatically becoming watchers?


Answers:
author: Vera Henrichs
body: I guess you should make new group of users and add that to the watch-list.Easier to handle and sort of a mailinglist.

As far as I know, watchers will always be informed of every change (unless you uncheck it when saving).


Tags: watcher