youngmon/atlassian-qna huggingface dataset:
Entire Space Disappears Over Reboot?
Asked by Matt Uebel:

I have been working with a test installation of Confluence. We have a few spaces created over the last couple days, and I noticed some weird behavior for one of the spaces I created yesterday.   

I used the "Create" button to create some pages in this space, and was able to add content, but when I hit the "Pages" link in the space, it acted like the space had no pages, prompting me to create a page.  

When I went to the space settings section, I could find the pages in the content -\> reorder pages dialog.  

If I searched for any of these pages created in this space, I was unable to find any of the pages. The other spaces didn't have this problem.  

This morning, my coworker found that he wasn't able to create any new spaces. When attempting to the start the create space process, he received an error page. I did not capture that error.  

We restarted the test box, and when it came up, we found the problem space was now entirely missing, and we were able to once again create spaces.  

Has anybody come across any sort of issue like this? How would we diagnose exactly what happened here?


Answers:
author: GuilhermeA
body: Hello Matt,

This is indeed something that should not happen, something went terrible wrong, could be the instalation that was not smooth, or the specific space that was not created properly, you can either perform two things, create a new space and verify if that happens in the same way. And you can go to your Support Tools, and ask for the Support Bot, Hercules, to scan your logs for anything unusual. Wheel Cog \> Admin \> Support Tools.

Hope this helps you, Cheers,


Tags: confluence-administration

error

space
Confluence jira-issue macro links to open in a new window
Asked by Matt Michal:

<http://jsfiddle.net/buDxG/>

See above link for a working sample where the links inside jira-issue macro are properly having the target attribute set to _blank. However, when this is actually added to the end of the HEAD via Custom HTML, inspecting jira-issue links shows that the target is "" (no value).

Is there any way to have jira-issue links open in a new tab/window?

Confluence 5.1 with minimal customization or other plugins installed.

```
&lt;!-- open external links in a new window --&gt;&lt;script&gt;jQuery(document).ready(function() {    jQuery(".external-link").attr("target", "_blank");    jQuery(".jira-issue a").attr("target", "_blank");});&lt;/script&gt;
```


Answers:
author: nriley
body: Hey Matt,

In theory this should work. I attempted a similar method internally (using the HTML Macro) and it worked fine.

I would try a couple things (following from: <https://confluence.atlassian.com/display/CONFKB/How+to+Use+JavaScript+in+Confluence>)

1. While it's nitpicking, I would add a: type="text/javascript" to your script tag.

2. Confluence wraps jQuery in another function, AJS. You can use all the jQuery functionality by calling something like

```
AJS.$('div.foo');
```

I would modify your jQuery calls using AJS instead. You can test if this works by throwing an alert() or console.log() function inside your .ready() call, to confirm that your function is firing off as expected.

comments: author: Matt Michal
body: I've changed to the below code which is at least working in Firefox and Chrome (after you wait a while for the load even to fire). This is not working in IE and I'm not sure how you got yours to work with the ready event as I still can't get it to work in any browser with that event.

```
&lt;!-- open external links in a new window --&gt;&lt;script type="text/javascript"&gt;AJS.$(document).ready(function() {    AJS.$(".external-link").attr("target", "_blank");});AJS.$(window).load(function() {    AJS.$(".jira-issue a").attr("target", "_blank");});&lt;/script&gt;
```


author: Matt Michal
body: Neal, what theme were you using during testing? I've seen a Chrome editor bug fix not work in with the newest documentation theme. Maybe this is something that only works in the new theme?


author: Matt Michal
body: Confluence 5.1 with minimal other customization.


Tags: confluence-administration

issue

jira
Page export to Word doesn't work
Asked by Rumceisz:

Hi All,

I try to export a Confluence page to Word with the built-in Export to Word function. When I click the button I get a screen "The file cannot be found."

Have you got any idea what can it be?

Thanks,  
Rumi


Answers:
author: twong_atlassian
body: I'm going to guess that you're using IE, and this is running over https.

<https://confluence.atlassian.com/display/CONFKB/Unable+to+Download+Attachments+in+IE+over+SSL>

comments: author: Rumceisz
body: Hi Tim,

it's the contrary: we don't wanna download an attachment but export a page to Word.


author: twong_atlassian
body: Perhaps I misunderstand the situation. You click export to word. You get a dialog box to save, then you hit save and then you get an os level error about file not found?

When you export to word, you have to save the file (download the attachment), which is why I suggested the above article. Could you give more details about what is going on?


author: Jerry Dworaczyk
body: I have the same issue but it is intermittent. Some pages work and some don't. The issue occurs immediately after selecting Export to Word. I don't use IE, but the behavior exists in Firefox and Chrome. The attached image is from Firefox. Also, it's not a connection issue as the functionality works in other topics.

![2019-03-29_10-52-27.png](https://community.atlassian.com/t5/image/serverpage/image-id/50015i2189E1A15A9D3F17/image-size/large?v=v2&px=999 "2019-03-29_10-52-27.png")


author: David
body: thanks


Tags: confluence-administration
Macro browser error
Asked by Joe Wojak:

In Confluence, when I go to *Insert \> Other macros* the macro browser never opens. If I do this several times I eventually get this [pop up error](http://i.imgur.com/vuBL9Jv.png)with the text:
> "The page at https:\<my domain\> says:
>
> There has been an error loading the macro browser.
>
> Please try again or see your system administrator."

Entering the macro name wiht a curly brace in text works, but I can't always remember the macro name. Like this: {\<macro name\>}

I use a Mac and see this problem on Chrome and Safari. Checking with our sysadmins, but wanted to see if anyone else has had this problem.

Thank you.


Answers:
author: PeterKoczan
body: Hi,

Sometimes this is caused by a gadget feed, where the source is not reachable. Can you please check and remove any from **Confluence Admin \> Gadgets \> Gadget Feeds**?

Also, the following KB articles may be related, however, I encourage you to open a support ticket at <http://support.atlassian.com> and see if we can trace it back based on your logs.

<https://confluence.atlassian.com/display/CONFKB/Error+Loading+Macro+Browser+due+to+corrupted+plugin+cache>

<https://confluence.atlassian.com/display/CONFKB/Error+Loading+Macro+Browser,+Tree+View,+Insert+Image,+Page+Restrictions+and+Preview+in+Confluence+3.2+or+Later>

<https://confluence.atlassian.com/display/CONFKB/Error+Loading+Macro+Browser+after+Upgrading+Confluence+to+4.0+and+Higher+Due+to+Adaptavist+Theme+Builder>

Kind regards,

Peter


author: Joe Wojak
body: Thank you for the response. I will try clearing the plug ins cache.


Tags: macro-browser
Displaying a test file from server on confluence page
Asked by Jump Operations:

If I have a text file "file.txt"on a server "fileserver-1" how would I go about displaying that file on a confluence page? The file "file.txt" would be regularly updated and I would want to display the most current version on confluence everytime someone views the page


Answers:
author: PeterKoczan
body: Hi,

For that you can use the iframe macro for example: <http://www.adaptavist.com/display/AtlassianConfluence/iframe+macro>

Or simply use the HTML macro (Confluence built-in) and write the iframe yourself (<http://www.w3schools.com/html/html_iframe.asp>).


author: PeterKoczan
body: How about embedding this in an iframe? This would make sure if a client-machine has access to the file directly, the file will be displayed for them within the iframe too.

comments: author: Jump Operations
body: How would I set up iframe?


author: PeterKoczan
body: Hi,

Is the file in question located on a file share or can you publish it on a webserver? If you can use a webserver, I'd suggest the [HTML include macro](https://confluence.atlassian.com/display/DOC/Enabling+the+html-include+Macro) otherwise an option would be to use a simple HTML macro instead and create an \<iframe\>, linking to the file specifically.

Kind regards,

Peter

comments: author: Jump Operations
body: The file is stored localloy on a server that isn't a webserver. The file would be stored at \\\\fileserver-1\\c\\user\\genuser\\file.txt I had though of using the csv macro for this but I am running into a few issues with a security macro.
How do i put confluence online
Asked by Lisa Sparks:

I just switched from OnDemand to the downloadable Confluence product. It has been an ordeal to get it finally into a server/database. It's on my laptop, but how do I get this online so my users can access Confluence as well?


Answers:
author: Nic Brough -Adaptavist-
body: That's mostly a networking question, but...

The machine the Confluence application is running on has an IP address. Confluence listens to messages sent to that address, on a port. Anything that sends messages to that IP address and Port will be replied to by Confluence. Let's say you've got an IP of 192.168.1.64 and Confluence is listening on a standard port, 8080

The most common messages here are web browsing. So, if your users go to <http://192.168.1.64:8080> , they will see Confluence in their browser.

However, there's a very good chance that your machine has some form of firewall on it, which will block the others from getting in, and you probably want something a bit more name-based (<http://confluence.myorg.com>), in which case you'll need to think about DNS. And that IP address is local to your network and you might want externals to get in. And your network address can change if it's using DHCP. And you'll want to think about network and information security. And. And.

Short answer - you probably need to talk to your local networking people.

comments: author: Lisa Sparks
body: Good idea. Thank you for that insight. I have a virtual team so this may be a bit more complex than I can handle. Appreciate your feedback, Nic! - L
Is it possible to create a blog post per email?
Asked by Bj?rn Eitmann:

We would like to fill a blog via email. Is there already a function in confluence?


Answers:
author: dleng
body: Its a feature request for Confluence. Feel free to vote in it here: <https://jira.atlassian.com/browse/CONF-1726>

for now you can consider using this plugin : <https://marketplace.atlassian.com/plugins/biz.artemissoftware.plugins.confluence.send-email-to-page>
Give permission to a child page but not the Space?
Asked by Team Admin:

We have spaces where a whole project is listed - different child pages for the branches/aspects.

Now we want to allow the team-members to view/edit certain child-pages but not the whole space.

As I understand, the restrictions are inherited. Is there a way to change the logic to permissions?

(similar to the file-share-logic: one can see a folder and all sub-folders but not the parent/root)


Answers:
author: Team Admin
body: Hi Thomas,

we figured this workaround (and others) as well, but as you already said - this will *definitely* result in a restriction hell as we would have to set up a massive number of restrictions (or "restrict view/edit to" settings).

Tanks anyway


author: Thomas Schlegel
body: Hi Jochen,

there's no way to change this logic as far as I know. We had a similar problem and made it this way:

1. Create a group: whole project without the team members
2. Give space permission to whole project
3. Put all the pages the team members should see under a certain first-level-page
4. Restrict all the other first-level-pages (without the one created for "3") to the group created in "1", so they can be seen by everyone but not the team members

Of course this is only manageable with a small number of first-level-pages and you have to restrict every new first-level-page of your space. If you have a lot of them, you will end in a "restriction hell" that is hard to understand some months later ;-)

Good Luck

Thomas


Tags: confluence-administration
How to add custom java in topnav.vm
Asked by saurabh bhagat:

Need to add java code or access java method

How to do that


Answers:
author: Nic Brough -Adaptavist-
body: Saurabh, you're asking very similar questions in several different ways without waiting for an answer. This is not a good way to ask questions in a forum, you end up ignored or with scattered and unfocussed answers.

See [https://answers.atlassian.com/questions/180246/in-confluence-how-to-create-own-java-and-vm-velocity-file](/questions/180246/in-confluence-how-to-create-own-java-and-vm-velocity-file)


Tags: java
In Confluence how to create own java and vm(velocity) file
Asked by saurabh bhagat:

In confluence how to create own java and vm file and map java class object and access that object in Velocity


Answers:
author: David Pinn
body: May I suggest that you consider using Soy templates instead of Velocity? Soy templates are used by the newer Atlassian products, and I believe the plan is to use them in new features added to JIRA and Confluence. In any case, Atlassian appears to be moving towards Soy and away from Velocity.

There is a suitable [tutorial on using Soy templates in Confluence](https://developer.atlassian.com/display/CONFDEV/Writing+Soy+Templates+in+Your+Plugin).

The documentation for [Soy templates](https://developers.google.com/closure/templates/docs/overview) is published by Google.

If you insist on using Velocity, then the [Velocity User Guide](http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html) will be very handy, as will the [Velocity Template Overview](https://developer.atlassian.com/display/CONFDEV/Velocity+Template+Overview) for Confluence.

comments: author: David at David Simpson Apps
body: Oh yes, I can recommend that tutorial on Soy templates ;)

Full source code is available for it here:  
<https://bitbucket.org/appfusions/confluence-tutorial-soy-templates>


author: saurabh bhagat
body: thanks both of you i will try


author: Nic Brough -Adaptavist-
body: Generally, you'll want to create a plugin to bundle all your code together and make it interact. Your other questions mention Confluence, so I'd start at <https://developer.atlassian.com/display/CONFDEV/Confluence+Plugin+Guide>

Even if this is not the right approach for your answer, the process of working through writing a plugin will teach you the basic stuff you need to understand to write code for Confluence, especially how java and velocity interact


Tags: java

velocity
Chart Macro: Time Series example with 2 tables = duplicate time period error
Asked by Beverly Flegel:

I've been getting an error when I try to replicate the results I should be able to get when using the Chart Macro (in Confluence 4.3.7).

*You are attempting to add an observation for the time period January 2011 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpdate() method.*

I used the two tables that are shown in the [Confluence documentation](https://confluence.atlassian.com/display/CONF43/Chart+Macro#ChartMacro-TimeSeriesChart)on the Chart Macro that's showing how these two values change over time, yet it seems having two tables with values does not work?

Has anyone gotten this to work? I have been able to get it to show as a "stacked bar*",* but that has an issue with wanting to show the "month" in the legend as a column with values*.*


Answers:
author: Beverly Flegel
body: I was able to get this to work when I found you must number the columns, not list their names.


author: ymenageru
body: What do you mean by "number the columns" ?

I've tried putting numbers in the columns and that didn't work, tried putting numbers in the headers of the tables and that didn't work either ?


Tags: chart
Current User macro in confluence
Asked by Sreenivasaraju P:

Want do the user details of current (logged in user) on a page , how can we do this.

Is there any macro for this.


Answers:
author: Renjith Pillai
body: Borrowed this answer from the comments at <https://confluence.atlassian.com/display/DOC/User+Profile+Macro>

It says:

You can create a User Macro with the following features:

**Body:** No body

**Output**: Macro generates wiki markup

**Template:**  

|------------------------------------------|
| `{profile:user=$req.userPrincipal.name}` |


Tags: confluence-administration
Can you have a Group definition with several sub groups under it for space permissions
Asked by KP11:

Can you have a Group definition with several groups under it for space permissions

Currently when you create a group you can specify only users to join. Is there a way to specify Sub groups in the Group creation? Jira 5.2.4.2 or Confluence 4.3.3

I see the capability in ROLES, but we need to specifiy a user group by space permissions so i see no way to do it.


Answers:
author: Nic Brough -Adaptavist-
body: No. Groups are flat groups. You can only put users in groups, not other groups.


Tags: group
Create multifilter on table
Asked by Ale? La?ar:

Hi there,

i have a problem. I need write or use something like table filter, but with multiple selection. I mean that in one dropdown i could select more items. Any idea?

Thank you!

Ales


Answers:
author: Ale? La?ar
body: Resolved = only via writing your own plugin or macro.


author: Kate (izi)
body: Hello Ales,

Multiple selection for filter values in drop-down filters is available in [Table Filter](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter) starting from the [version 2.0](https://docs.stiltsoft.com/display/public/TableFilter/Table+Filter+2.0).


Tags: confluence-administration
Confluence restore from zip takes long time.
Asked by Jiannan Tang:

Hi:

I want to change the confluence server.

The Conflunce backup file size is 2.2G.

I want to change restore the backup file in new confluence.

The restore progress had running 2 hours, and only 16%complete.

**Importing Data**

|---------------------|----------------------------------------------|
| **Time Elapsed:**   | 2 hours, 35 minutes, 33 seconds              |
| **Time Remaining:** | 13 hours, 36 minutes, 43 seconds (estimated) |
| **Completion:**     | 16% complete                                 |

New server Config?

CPU?Intel? Xeon? Processor E7-4870 \* 4

ROM?16\*16G

HardDish:8\*300G(15000)


Answers:
author: Jiannan Tang
body: I restore an little bakup file.

Then restore the big file, then success.


author: Kavirajacholan Selvaraj
body: Hi,

How do you change Backup file size to 400 MB? rest of the file how you split it? Could you please give some insight on this?

I know its been long days. If you remember it would be help for us


author: Jiannan Tang
body: The error log fond is some group not found.

I change a 400M backup file, then restore success.

I change restore the env from 5.2.8 to 5.2.8.


author: hsuhailah
body: Since the backup is quite huge in size, the restoration process may take some time to finish but if its taking up so much time, hours and hours had passed by but the process is still not finished, it's time to check \<confluence-home\>/logs/atlassian-confluence.log and check if there is any erorr reported which is related to the process. Then, we can determine/find out if the task is actually successful or might be stucked halfway.

May I know if you were trying to migrate a version of Confluence from one server to another server or upgrading a Confluence instance to a higher version?


Tags: restore
Move user authentication from JIRA User Directory to LDAP
Asked by Svante Gustafsson Bj?rkegren:

Hi,

We currently use JIRA User Directory to manage users within our Confluence instance. JIRA, in turn, uses LDAP for authentication.

Now we would like to switch over Confluence to use LDAP directly as well. Any suggestions for how this is done without too much hassle?

I figured that since JIRA is using the same LDAP it would work to just add LDAP to Confluence and put it above the "JIRA User Directory" in the Directory name list in Confluence.

It feels to be too easy so any suggestions are appreciated!

Thanks in advance!

// Svante


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: That should be it. Sometimes things are too easy ;) Make sure the users are in the right groups in LDAP too or else they will start complaining about invalid permissions!

comments: author: Svante Gustafsson Bj?rkegren
body: Hi Jobin,

Great, thanks for your answer!

Good point with the groups. They are currently created in JIRA and do not exist in LDAP. I will have to create them in LDAP first and synchronize them as well with confluence.


author: Svante Gustafsson Bj?rkegren
body: I have made my tests now in my staging environment and this will work fine.

When disabling the JIRA User directory all users will disappear from the confluence-users group which was created in JIRA.

However, I have conf?gured LDAP as Readonly with local groups and setup that users are added to confluence-users on first login. This group is starting to fill-up now as people are logging in again. All history, favorites, notifications and stuff are preserved.

I had a concern that the group was created in JIRA (hence belongs to the JIRA User directory) but it turns out that Confluence actually migrates this group to the INternal directory when I delete the JIRA User Directory. This has to do with the fact that the group is in use in Confluence. I noticed that groups from JIRA not used in Confluence were removed when I deleted the User Directory.


author: Sanu Soman
body: I'm also going to perform same activity. So could you please suggest which is the better way to achieve this.

Once LDAP integration completed, then how will be the first time login? users need to do any kind of sign-up? or simply they can access by their LDAP username \& password?

Also, which permission type is better while configuring LDAP integration? means which one is better from Read Only, Read Only, with local Groups or read/Write. We have some custom groups associated with spaces.

Please suggest.. Many thanks in advance.


Tags: confluence-administration

ldap

user-directory