youngmon/atlassian-qna huggingface dataset:
How to continue a link to a wiki page after sign in?
Asked by Rich Thorn:

Here is the situation we are seeing in our Confluence 5.1.3 version. We do not use SSO and currently we allow anonymous accesses.

* A user received a url to a wiki page and selects it
* The user is prompted to log into the wiki because of page restrictions
* After log in, the wiki directs them to their user default home page instead of the original page from that url link they were intending to go

I have been fooling around with the settings, but I cannot seem to figure out how to allow the user to continue to the original intended page. This seems to only happen if the page has restrictions on it.

I would appreciate any suggestions, help, or even words of encouragement!

Thanks


Answers:
author: Matthew J. Horn
body: I'm using Confluence 4.x but encountered the same issue.

For the default login screen, the os_destintion param should be set by default when the user is redirected to that page. For example:

<http://devcenter.verivo.com/login.action?os_destination=%2Fdisplay%2Fdoc%2FUsing%2Bthe%2BAkula%2BSDKs>

If it's not setting by default, then maybe you have a custom login screen?

What I did was add a custom login link and add the os_destination query string parameter to point to the value of the requested page. For example, the code to do this in a user macro is:

"/login.action?os_destination=%2Fdisplay" + $generalUtil.urlEncode($req.getPathInfo())

Some additional perspective on this issue might be here:

[https://answers.atlassian.com/questions/43104/wrong-redirect-after-login-to-confluene-homepage-in-stead-of-my-app-using-crowd](/questions/43104/wrong-redirect-after-login-to-confluene-homepage-in-stead-of-my-app-using-crowd)


Tags: confluence-administration
Cannot install Gliffy License in Confluence On-Demand
Asked by Mark Sch?fer:

Hi,

I just bought a License for Gliffy but I can't figure out how to install it in my On-Demand Instance of Confluence.

Cheers, Mark


Answers:
author: KatyK
body: Hi Mark,

If you purhased an actual license key, then you may need to obtain a refund from Atlassian sales. Licenses are only for the download version of Confluence.

Please see this article on how to setup Gliffy in your OnDemand instance: <http://support.gliffy.com/entries/22004944-Purchasing-Gliffy-as-an-Add-on-to-Atlassian-s-OnDemand>

If you have any trouble with this, please contact us at [support@gliffy.com](mailto:support@gliffy.com)

Thanks,

Katy

Gliffy Support

comments: author: Mark Sch?fer
body: Hello Katy,

thanks for yout fast reply. Seems I mixed things up, espiecally my private and my company Atlassian Account :-)

Cheers, Mark


Tags: cloud

confluence-cloud
Password protect only selected content on public confluence wiki
Asked by Sebastian:

I'm currently testing confluence with jira (both onDemand) for our relatively small academic institution. We do have the need to put websites up for lectures. Those websites usually contain some content that needs to be password protected, i.e. it is only available to students who actually take the course. How can I achieve this in confluence? In your answers, please consider that I'm not a web developer. I'm just checking out confluence (I so far have not even started on jira). I really like the it so far, but I need to find a simple fix for this somehow.


Answers:
author: Pepe
body: See our little add-on. I wrote it for sharing passwords, etc internally. A new version will be on marketplace shortly (MSSQL doesn't work in the current version). Note this is not available for OnDemand so you'd have to run confluence standalone: <https://marketplace.atlassian.com/plugins/com.prcpo.confluence.plugins.secure-content-block>

JIRA allows you to use Issue Security schemes to hide certain issues within a project. You would have a public security level, and active student level. You can protect sensivite issues by setting the security level to 'active student.'

Within Confluence you can restrict the view permissions on a page to a group that contains your active students. If you need to mix public and hidden information on a single page you can use the Include macro to include your view restricted page into another publically viewable page. Active students would see all of the content, whereas, public users would only see the public content and not the restricted content.

comments: author: Andreas
body: That add-on looks great, do you think you will be able to provide it for OnDemand as well?


author: Pepe
body: Thanks Jan. Unfortunately I don't think it will make it to OnDemand because it requires access to the confluence database (which wasn't allowed last I knew). We could make it a remote plugin for OnDemand but your encrypted data would have to live on our servers and I'm not sure that we want to take on that responsibility, nor that customers would be comfortable with it. Stay tuned-if we can figure out a way to make it work we will.


author: Sebastian
body: One fix that I could think of is to create a user "student" and give the user a password and restrict this user only to be able to view certain pages and download specific content. Then what happens if two students try to sign in and download at the same time?


Tags: confluence-cloud

cloud

password

public
Load test for Confluence
Asked by Michael Danielsson:

Hi,

I saw that the load tests, <https://confluence.atlassian.com/display/CONF52/Performance+Testing+Scripts>, are not supported for Confluence 5.2.

How is Confluence load tested now?

Is it possible to get these test?

Regards,

Michael Danielsson


Answers:
author: Abdoulaye Kindy Diallo
body: Based on this [post](/questions/216358/confluence-performance-testing-scripts), it should work on latest version. You may comment otherwise.

comments: author: Michael Danielsson
body: Hi,

Even if it should work this time it is a problem to not now if it will work on the next version.

Performance tests are run to compare diffent versions.

How is Attlassian testing the performance?

I thougt they used this scripts.

Regards,

Michael Danielsson


author: Sorin Sbarnea
body: The test data cannot be imported back in Confluence because was made long time ago and it's not compatible with Confluence 5.1+.

I would have to add that load/stress-testing for confluence cannot be implemented properly using Jmeter because it does not support JavaScript. It seems that the product does lots of AJAX calls, especially the visual editor.

I guess that's the reason why Atlassian dropped jmetter. More and an year ago Atlassian declared that they are working on re-implementing the stress tests differently..., and surprise they decided to implement their own test framework... which was never released.

Another "success" of the not-invented-here syndrome...

Regarding your question: because writing a proper stress-test for confluence is not something easy and especially because Confluence is commercial product (some would argue quite expensive) that was supposed to have this as part of the QA process, this being the only way that would allow a company to release new versions without creating outages for the customers.

You may find interesting to read [](http://blogs.atlassian.com/2012/06/performance-and-soke/)<http://blogs.atlassian.com/2012/06/performance-and-soke/>

PS. Yes, if Atlassian would pay me to write the stress-test, I would probably like to do it. But as a customer, no way, I am already spending too much time trying to workaround product bugs.


author: Matthew J. Horn
body: This scripts use JMeter, which is not hard to install and configure by itself. Why not write your own scripts?


author: Sorin Sbarnea
body: As of today, current version of Confluence does not have any load-tests available. Same was 6 months ago, but it seems the the product is so stable (sic) that it doesn't need them. It seems that we were the only client that failed an upgrade from 3.x to 5.x due to system instability.


Tags: confluence-administration
Confluence 4.1 Migration
Asked by Ben Wozniak:

Hi,

I'm trying to merge 2 seperate confluence instances together (one UK and one US). I've already been through a process of upgrading one instance to 4.1 (to bring both up to the same version and to allow me to import/export spaces) and i successfully managed to export/import a 'small' space over so I at least know it works. I then tried with a much larger space and ran into problems.

It took over 2 hours to compress and download the space from one instance (ok fair enough not great) but when I tried to import it into the new version it failed with the following error:

"Your request could not be processed because a required security token was not present in the request. You may need to re-submit the form or reload the page"

I've since tried increasing the session-timeout feature up to 180 (and restarting confluence) and re-running the import and it runs for approx 2 hours then returns the same error.

I have approx 16 spaces of this size to do so any ideas how I can resolve this ?

Thanks in advance

Ben


Answers:
author: Ben Wozniak
body: Hi, thanks for responding I've just tried disabling secure administrator sessions and rerunning and again it ran for just under a couple of hours then failed with the same error :-(

Thanks

Ben


author: Rodrigo Girardi Adami
body: Hello Ben,

I've googled a bit about this error message and I've found [this other answer](/questions/40590/importing-and-exporting-spaces-from-confluence-getting-a-security-token-error/46556) from my colleague which might be helpful since it's the same error message.

Cheers,

Rodrigo

comments: author: Ben Wozniak
body: Hi, thanks for responding I've just tried disabling secure administrator sessions and rerunning and again it ran for just under a couple of hours then failed with the same error :-(

Thanks

Ben


Tags: confluence-administration

export

import
CSS for headings
Asked by Mick Davidson:

LO,

I want to customise the headings in my space but can't find the CSS for it. How can I get hold of this?

Cheers.


Answers:
author: Mick Davidson
body: ```
OK, I've resolved the problem. I re-read the info that Abdoulae mentioned and noticed the bit about the CSS code review in Firefox.
```

I opened our wiki in FF and then went to Web Developer/Style Editor.

This opened a window that lists all the CSS a page has, seperated into different blocks/types of code. There's one called (this is only the end of the name) .doctheme.documentation/splitter.css which has all the headings info. This looked nothing like the CSS I found elsewhere on the internet (see above).

I coped this into the template, adjusted the margins and hey presto, I now have what I want. :)

For anyone else who might need to do this, this is what you are looking for:

.wiki-content h1 { margin-top: 2em; margin-bottom: .5em; font-size: 1.8em; }  
.wiki-content h2 { margin-top: 2em; margin-bottom: .5em; font-size: 1.6em; }  
.wiki-content h3 { margin-top: 1.5em; margin-bottom: .5em; font-size: 1.4em; }  
.wiki-content h4 { margin-top: 1.2em; margin-bottom: .3em; font-size: 1.2em;}  
.wiki-content h5 { margin-top: 1em; margin-bottom: .1em; font-size: 1.1em;}  
.wiki-content h6 { margin-top: 1em; margin-bottom: .1em; font-size: 1.0em;}

Cheers.


author: Mick Davidson
body: OK, I've been playing with the following. But all this does is change the padding for the page title, not the h1. It also doesn't change the font colour.

h1 {

font-color: red;  
padding-top: 10px;  
padding-bottom: 3px;  
}

I've also tried:

h1.heading {

font-color: red;  
padding-top: 10px;  
padding-bottom: 3px;  
}

and:

h1 {

color: red;  
padding-top: 10px;  
padding-bottom: 3px;  
}

So, can anyone see what I'm doing wrong here?

Cheers.

comments: author: Mary Parker
body: It can be due to your CSS is getting overwritten by another. Try inspecting the H1 tag with your crome developer tools and you will find what is causing this overwritting thing. Thank You !!


author: Abdoulaye Kindy Diallo
body: Kindly consider both docs below:

* <https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS>
* <https://confluence.atlassian.com/display/DOC/Customising+Site+and+Space+Layouts>

comments: author: Mick Davidson
body: Abdoulaye,

Thanks for th info. I've looked at these and the aren't detailed enough for what I want. I know nothing about CSS really, so need much more detail. Cheers.


Tags: css

custom-field

heading
Enable System announcement Confluence
Asked by Christoph Bose:

Hello everyone,

We'd like to enable system announcements for our Confluence Server. Such as "The Space "NAME" will be blocked due to REASON from START TIME to END TIME".

But can't figure out the correct settings for this.


Answers:
author: HosseinA
body: Hi,

You may visit the KB below on how to add site banner.

<https://confluence.atlassian.com/display/CONFKB/How+to+Add+a+Site-Wide+Banner>


Tags: confluence-administration
List of restricted pages.
Asked by adam glegg:

Hi all, Is there a way or a Macro available to view all pages within a space that currently have restrictions placed on them. ?


Answers:
author: Matthew J. Horn
body: You don't need a macro. The functionality is built into the admin console. It is described here:

<https://confluence.atlassian.com/display/DOC/Page+Restrictions>

hth,

matt


Tags: confluence-administration

restriction
Is any possible or REST API for adding custom field in on demand Confluence?
Asked by srinivasan radhakrishnan:

HI,

Is any possible or REST API for adding custom field in on demand Confluence?

Please share your knowledge of achieve my goal.

Thanks.


Answers:
author: Nic Brough -Adaptavist-
body: Cofluence is primarily a wiki, which means each page is a block of text. It doesn't particularly have "fields".

Could you explain what you mean by "fields"?

comments: author: srinivasan radhakrishnan
body: Hi Nic,

Thanks for your update.

I am asked wrong question in previous, i need deploy a custom actions ( that mean plugins ) in on demand confluence.

Thanks.
Is it possible to allow users to edit only a portion of the page while in edit mode
Asked by Armon Tiongco:

I have certain macros that i do not want other users to remove from the page.

I only want them to manage the content.


Answers:
author: Davin Studer
body: What you can do in that case is to create a page that they do not have access to edit, and then create other pages that they do access to edit and has the content that you want them to edit. Then include that content on the page they cannot edit using Excerpt Include or Include Page. Check out the Excerpt Include and Include Page macros. I think that would get you what you want.

comments: author: Ramiro Pointis
body: Just pointing out that this is exactly what I wanted to recommend him... Good Answer.


author: Armon Tiongco
body: Unfortunately, it doesnt work for me.

1. The Excerpt Include Macro can still be removed by the user that is allowed to edit the page. What i want is to restrict them from editing or removing particular macros.

2. The User macros don't work when it is done via Excerpt Include.

Thank you for the proposed solution though.


Tags: confluence-administration
Move Confluence Database now look and Feel and Layout chage.
Asked by tousifs:

Hi all,

i have move confluence database from oracle to postgressql now look and feel and lay-out for my confluence got change.

does any one suggest what should i need to do to maintain earlier look and feel for confluence.

i am using "Refinedplugin" to maintain look and feel and lay-out for confluence.

please suggest what should i do.

regard's

tousif shaikh


Answers:
author: AndrewA
body: Is the refinedplugin enabled after the move? There may be somethign keeping it from statrting up so this would be the first thing to check
JQL to show all issues (non paged)
Asked by Taber Loveless:

I want to display a list of ALL issues on a Confluence page but currently the macro/jql forces paging. How do I instrut to 'load all at once' or 'no paging'?


Answers:
author: Taber Loveless
body: There is an open dev item for this: <https://jira.atlassian.com/browse/CONF-30116>


author: Taber Loveless
body: Appears there are many people complaining about this limitation:  
https://blogs.atlassian.com/2013/07/display-jira-issues-in-confluence-more-power-more-control/#comment-107363


author: Nic Brough -Adaptavist-
body: You do not. Jira won't return all issues because you could overload it.

JQL is not the problem here, that really does return all the issues, it's the macro itself and the code in Jira that serves up the results. I suspect you could code an alternative interface which a macro could use instead, but you'll be running the risk of performance issues.

comments: author: Taber Loveless
body: Why does Jira allow me to ad-hoc query but not specify the number of results I want back? Is it not my choice to what extent I want to 'load' the system?

The problem is that the Confluence page wont display all the issues and instead provides a link which takes the user to Jira Issues - I dont want that as it requires us to open up Jira as well not to mention the exposing the Issue Searcher to boot.
Getting the same Documentation layout as https://confluence.atlassian.com
Asked by Connor Conway:

I am using the latest Documentation layout but the styling is different to that of the layout in:

<https://confluence.atlassian.com>

ie. The title is not blue and the entire page is not centered.  

How do I add this funtionality/styling?  
Thank you


Answers:
author: Abdoulaye Kindy Diallo
body: Kindly have a look at the steps provided:

* <https://confluence.atlassian.com/display/DOC/Configuring+the+Documentation+Theme>
* <https://confluence.atlassian.com/display/DOC/Working+with+Page+Layouts+and+Columns+and+Sections>
Copy Paste
Asked by Jenny Schulz:

Hello,

i use Confluence as a Standard version in my Company. Actually we don t have permission to download some Addons.

My Problem is: If i want to Copy something like a complicatet table from one site to another site (both in confluence) the style of this table changes extremly. Is there any cheat to solve this Problem?

Greetings


Answers:
author: HosseinA
body: Hi,

You may use "Tools \> View Storage Format" to copy the codes for the particular table you wish to copy.

You may also need to install Confluence source editor. You may refer to the link below.

<https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor>

Then when editing a page, click on the button that looks like \<\>, and paste the codes.

Hope this helps.


author: Matthew J. Horn
body: When you say "site" do you mean "space"? If the pages with the complicated tables on them are in the same instance of Confluence, you could copy the page to the new space and then edit as necessary.

If not, then just edit the page with the table and copy the Confluence markup and paste in the target page.
Confluence performance testing scripts
Asked by Tim Eddelb?ttel:

Hello,

I setup a new Confluence server and want to check the performance.  
Normally i used Jmeter but it looks like the scripts are not supported anymore.
> <https://confluence.atlassian.com/x/vIXtFw>  
> We no longer support these performance testing scripts.  
They are no longer used internally for testing and may not work with Confluence 5.2.  

How i can i do this now? Any hints?

Regards,  
Tim


Answers:
author: Bruna Griebeler
body: Hi Tim,

Indeed is not supported anymore, but it usually works even on newer versions (is more problematic for the newest one though).

Have you tried to use it on your new Confluence? If so, could you tell us if it works for you?

comments: author: Sergey Svishchev
body: This is not useful. If those scripts are not guaranteed to work, their results are suspect as well.

What do you recommend to use instead?


author: WillemA
body: I assume Atlassian has switched to another method of permormance testing?

Is it possible for Atlassian to share the method (/scripts) as before?


author: Sergey Svishchev
body: They did, see [HERE](https://blogs.atlassian.com/2012/06/performance-and-soke/ "here") but they aren't sharing it just yet.

Also, <https://github.com/EmidioStani/confluence-jmeter>


author: Karol Kapica
body: Do you have any idea how to configure <http://gatling.io/docs/> for test confluence performance?

Or maybe you know where I can find any tutorial?

Thank you.

comments: author: Rym Faleh
body: Hi i'm wondering if u manage to find a way to configure gatling for test confluence performance ?

I'm working on a similar project and i need help with it.

if you have any idea, please let me know

thank you.


Tags: confluence-administration

jmeter

performance

test
Fetching all the spaces a user has permissions to in Confluence
Asked by troy:

Hi,

Is there any kind of query or admin functionality to find out all the spaces that a particular user has access to?


Answers:
author: Matthew J. Horn
body: You can write a user macro to do this. You use code like this to get the groups for the current user:

## Macro title: Get Groups For User

## Developed by: Matthew J. Horn

## Date created: 09/26/2013

## @noparams

$userAccessor.getGroupNamesForUserName($req.remoteUser)
How to manage having many Global Templates
Asked by Jorge:

We are a large organization and different teams are responsible for their own templates.

As a result we have many dozens of templates.

Is there a best practice in order to not overload the users with such a large amount of templates?

Is there any plan to add some sort of "template categories"?


Answers:
author: Jorge
body: I've decided to close this question


author: Fringe Technology
body: Jorge, Do they really need to be GLOBAL available to all spaces? or could they only be available to certain spaces? If not, one idea to consider:

Create a page in Confluence that all users have access to. Add a table with columns to that page, that sorts/lists all of the global templates. So in the first column you could put the CATEGORY or team the template belongs to, in the second column the name or description of the template, and in the 3rd column, on each row, use this macro ([](https://confluence.atlassian.com/display/DOC/Create+from+Template+Macro)<https://confluence.atlassian.com/display/DOC/Create+from+Template+Macro>) to add a button for each template - and configure each button to create the appropriate template in the appropriate space. This way your users could scan the list to find their template, then just click the correspnding button on that row in the table to start the CREATE PAGE dialog.It would take a bit of time to set up the table, but you only have to do it conce, and then make it a Desk Procedure for your Confluence Admins - that when they create a new Global template - they need to update the page to document it.

Hope something like this works for you.

Shari

comments: author: Jorge
body: Thanks Shari, the problem with this is that the new page based on the template would be created wherever determined in the Create From Template macro. If the users has their own team space then they would need to manually move the page (?)


Tags: confluence-administration

template
Some lines are missing in table with Confluence 4.3.7
Asked by Michael Regelin:

Hello,

When I create a table inside a page, sometimes, some horizontal lines are missing.

This is totally dependant of the content on the page. Not sure why this is happening ?

![](../../upfiles/line-missing_1.png)

Did someone already have this behavior ?

Sincerly,

Michael


Answers:
author: Michael Regelin
body: Hi Abdoulaye,

Yes, I can reproduce this on another page.

I can also say that it is more often reproducable with a percent of 90%.

Michael


author: Abdoulaye Kindy Diallo
body: Michael, I have raised a bug report: <https://jira.atlassian.com/browse/CONF-30955>. Kindly watch it and feel free to comment.


author: Abdoulaye Kindy Diallo
body: Hey Michael,

May I confirm that you were able to reproduce this issue in at least two different pages?

<br />


author: Michael Regelin
body: Apparently, this is a problem related to the percentage of the page size.

If set to 100% (control + 0 on Firefox), there is no problem displaying the lines.

If set to 80% and scroll down or up, some lines disappears... !

Michael


Tags: table