youngmon/atlassian-qna huggingface dataset:
How to run one job per cluster?
Asked by ket.pjwstk:

Hi,

Last year we've deployed confluence for our customer and recently it turned out that some (custom - self devloped in our plugin) our jobs are executed per node. We want to make it execute once per cluster.

Any ideas?


Answers:
author: ket.pjwstk
body: It looks like I have to answer my own Q. In atlassian plugin you have to add parameter (in job line) perClusterJob=true.

Thats all. Heres the magic wand.


author: Radu Dumitriu
body: Ah, a classical problem of distributed processing ....

You can either:

a) synchronize via DB (which is a shared resource anyway). For instance you create a running flag table and you run queries like:

update flagtable set f_running = 1 where f_running = 0;

Logic: if update **count** is 1, you can enter into processing. Finally, you must set the flag on zero, so "update flagtable set f_running = 0" will be necessary.

However, if current processing node fails completely, the flag will be set forever on 1, so the remaining nodes will be unable to progress. Manual or timeout recovery should be available.

Advantage: it's simple, most people understand it, you don't need to worry to much if it fails, it is usually acceptable to reset those counters after some time or manually.

b) Create a ring between the nodes of your cluster. Pass a token (message) from node to node; when the node receives the token, it can run.

Fun to implement, various algorithms exist. Disadvantage: Cost is high.

c) Use libraries that have already these implemented (check if quartz has it - I do not use quartz, so I'm not familiar with it, it's kinda "jobs for everyone" with a yellow page on top - [link here](http://en.wikipedia.org/wiki/For_Dummies)).

d) Use libraries that creates shared memory over your nodes to shield you from low details. I do not know what's the status of JavaSpaces, it was intended to be for java what Linda/Glenda was for C.

Edit: let's not forget:

e) Create asymmetric installs. For instance, you set up a node with a configuration (JNDI string) "do.my.processing". In case of failure, you need to manually change that flag on some other node. Not very funny / smart.

comments: author: Radu Dumitriu
body: I wish I had a magic wand .... it is a custom, self-developed plugin, right? Then, you need toprogram it correctly. Check if the quartz embedded into the product helps you (If I remember well, there's already there a quartz).


author: ket.pjwstk
body: Well, I am aware that I can implement all this by myself. However I wonder if there is any out-of-box solution in confluence for this...


Tags: java
How to prevent Confluence 4.x from inserting paragraphs around table elements inserted via wiki markup
Asked by Bob Swift (personal):

1. Edit a page and select **Insert -\> Wiki Markup**
2. Add table markup like

   ```
   || AA || | bb |
   ```

3. Results in a table that when viewed as source looks like:

   ```
   &lt;table class="confluenceTable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th class="confluenceTh"&gt;&lt;p&gt;AA&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="confluenceTd"&gt;&lt;p&gt;bb&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
   ```

4. This is different than Confluence 3.x and different that what is produced using **native table insert**

Another question is how to you edit the page to remove the extra \<p\> that are inserted?

This seems like a bug.


Answers:
author: Bob Swift (personal)
body: Could someone from Atlassian comment on this behavior?


author: Bill McAvinney
body: This is a kludge. It doesn't prevent Confluence from adding the \<p\>s, but it does prevent them from showing on your pages:

If you already have a stylesheet you use add to it:

```
.noP p {  display:none;}
```

If you don't have a stylesheet, add the following at the top of each page where you have the issue:

```
{style}  .noP p {   display:none;}{style}
```

Then wrap your tables with a div of class noP like so,

```
{div:class=noP}{table}?{table}{div}
```


author: David at David Simpson Apps
body: You could try doing it client-side :)

Something like this:

```
AJS.$('.confluenceTh &gt; p,.confluenceTd &gt; p').children().unwrap();
```

comments: author: David at David Simpson Apps
body: Sorry, I didn't quite get what you meant by **native table insert**. Likely that won't work :(


author: Bob Swift (personal)
body: Thanks, I just mean using insert table natively in the confluence editor.


author: tousifs
body: Hi,

i am also facing the same problem i have few user macros i want to fetch the contents between thoes where the \</p\> tags get added its not unexpected.
What is Confluence's "System favorite colour" and "System favorite character"?
Asked by Jeffrey Davidson:

On the System Information page in the administration section of Confluence, there are two interesting lines. Appearently my server likes Hot Pink and Devon Woodcomb.

Is this just Atlassian being cute, or is there some information that this somehow reflects?


Answers:
author: Alejandro Conde Carrillo
body: Hi Jeffrey.

My Confluence instance is more like Jack Bauer and deep blue. He used to like Lost, but got very disappointed after the last season.

[Easter egg](http://en.wikipedia.org/wiki/Easter_egg_%28media%29).

comments: author: Logan Hawkes
body: Great. Now I have to go through every Confluence instance I support to find their favorite characters. OCD is a harsh mistress.


author: Don Willis
body: It's just Atlassian being cute. A fairly complete history is at <https://developer.atlassian.com/server/confluence/confluence-build-information/>


author: Christian Sprenger
body: |-----------------------------|--------|
| **System Favourite Colour** | Cerise |

|--------------------------------|-------------------|
| **System Favourite Character** | Zaphod Beeblebrox |

I like our Character \^\^
How to customize the menu bar of Confluence's editor?
Asked by Marcel_R__Ackermann:

Confluence (in my case: v4.2.2) provides easy access to a number of macros in the 'insert' drop down menu. More macro options are available at the bottom of the list in an extra window.

When working with confluence I realize that most macros we use quite often are in the extra macro window, while we rarely use the predefined dropw-down macros at all. Is there a way to customize the content od the drop down menu?

I know that the macros are also available by auto comple, but many of the guys I am working with are more comfortable with a menu solution (so they don't have to memorize macro names.)

Many thanks inadvance.


Answers:
author: SarahA
body: Hallo Marcel

We've just published a tutorial that does this very thing, by adding a plugin:

<https://developer.atlassian.com/display/CONFDEV/Adding+an+Option+to+the+Editor+Insert+Menu>

I hope this helps. :)

Cheers, Sarah

comments: author: Marcel_R__Ackermann
body: Great, thanks to you and Giuliano for your answers.


author: Giuliano C.
body: One way you can do this customization is to modify the .xml file that maps the entries in the 'Browse' dropdown to the appropriate links. The .xml is located inside \<confluence_install\>/confluence/WEB-INF/lib/confluence-x.x.x.jar. Extract that and locate ./plugins/space-tabs.xml within.

Somewhere in there you should see:  

```
<web-item key="space-administration" name="Admin Tab" section="system.space" weight="70">		<label key="space.admin" />		<link linkId="space-admin-link">/spaces/editspace.action?key=$generalUtil.urlEncode($helper.spaceKey)</link>        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.HasSpaceCondition"/>        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.SpacePermissionCondition">            <param name="permission">administer</param>        </condition>        <tooltip key="browse.space.admin">            <param name="param1">$helper.space.name</param>        </tooltip>    </web-item>
```

You can modify the option performing the changes on specify "\<web-item key\>";

Stick this modified .xml in the following location so that it overrides the standard one in the .jar (you may need to create the 'plugins' directory:  

```
confluence_install/confluence/WEB-INF/classes/plugins/space-tabs.xml
```

Restart Confluence and see how it goes.

Remember to backup any files that will be modified before perform the action.

Cheers


author: cirosantilli
body: Possible duplicate of: <https://answers.atlassian.com/questions/69201/customize-confluence-editing-toolbar>


Tags: custom-field

editor
If I am no longer a Confluence User, will my pages and diagrams I created be lost?
Asked by Shreena Patel:

Hi,

I am using JIRA and Confluence on Demand, I have created a new username and I wish to operate using that one. I copied my personal space pages across and managed to change all my JIRA issues under my old username to the new one.

The old username is no longer a JIRA user, only a Confluence user. I want to deactivate that user but I just want some advice, will I lose the pages I created with that username (old one) and my gliffy diagrams if I untick that box meaning that user will no longer be a Confluence user?

The deactivate box is not showing up for me. Not sure why, but thought if I could deactivate it, that would be a safe way to keep all the pages I created and save the Gliffy diagrams from being deleted.

Your help would be much appreciated.

Thanks,

Shreena


Answers:
author: Matthew Hunter
body: Hi Shreena,

If you just remove application access from your old username all of the content that was added by it will remain, nothing will be removed. :)

Removing application access is safe, but you should avoid deleting them completely, as that will make their personal space difficult to access (but still present).

Cheers,

Matt

comments: author: Shreena Patel
body: Thank you :)


author: Shreena Patel
body: Or is there a way in Confluence OnDemand, where I can change the owner of pages to my new username?


Tags: cloud

confluence-cloud
Unable to sort tables created in versions of Confluence earlier than 4.3
Asked by Mateusz Juszkiewicz:

Hi,

We have some pages with rather long tables (around 1000-1500 rows) and were eagerly waiting for table sorting capability. However it turns out we are unable to sort tables created prior to upgrade (we upgraded from 4.2.13 to 4.3). Could you please provide a solution to convert tables without having to manually recreate them?

Thanks


Answers:
author: AndreasS
body: Is this issue still suitable?

Have you tried to used Confluence Source Editor plugin to look within the source code if there is anything strange?

Or can you provide me a sample source code where the sorting does not work?


author: Mateusz Juszkiewicz
body: I was able to sort the table after I cleaned it up using source editor (th were missing, headers were td with colour instead)
Confluence Email Templates - Changing Headers
Asked by Drew:

The HTML Email Templates that are used by default (in confluence-$version.jar) contain a couple problems with their email format that are causing problems with our mail relay. The Content-Type name parameter should be in quotation marks and include a file extension. The Content-Disposition filename parameter should also be in quotation marks and include a file extension. There are a couple inline attachments that look to be causing problems: page-icon, attachment-icon, and avatar_$longstring. The problem is that I don't see these declarations in the email templates so I can't change them. Any idea on how/where the Content-Type and Content-Disposition headers are defined/templated?


Answers:
author: miloslav christov
body: hello we have a similar problem with 5.7.4 did you find a sollution where to edit this icons or email header pls?
Default home page for space not defaulting
Asked by Topher dailing:

I have the home page set in the spaces admin page, yet when we click on the space name in the dashboard it jumps to the list of pages for that space and not the home page.I'd like it so that if a user clicks on a space link, it takes them to the spaces home page and not it's directory of pages. Any way to achieve this?


Answers:
author: Topher dailing
body: Found the setting in under General Configuration -\> Feature settings.

comments: author: Will Budreau
body: I don't see this "Feature settings" - I expect it moved to a space-specific location but I can't find it.


author: Peter Burkholder
body: [http://wiki.cheffian.com/spaces/editspace.action?key=](http://wiki.cheffian.com/spaces/editspace.action?key=HED)KEY
Why aren't LDAP group memberships imported?
Asked by Jonathan Simonoff:

We're connected to LDAP, and LDAP groups are being imported. However, as far as I can tell, group members aren't being imported -- all of the LDAP groups show as empty within Confluence.

Is there some setting controlling this?


Answers:
author: GuilhermeA
body: Hello Jonathan,

This would depend on the connection you have set, assuming you have chosen **something** different from "LDAP with Internal Groups" then you are using **connector** . Meaning that something went wrong during your synchronization. I would try to search the logs for this: "`duplicate key:`", and if you find something then you have this problem:

<https://confluence.atlassian.com/display/CONFKB/Directory+Synchronization+Failure+Due+to+Default+Group+Caused+Duplicate+Entry>

If you don't have this problem, double check your group membership and user membership such as "uniqueMember" and "member".

Cheers,

Guilherme


Tags: ldap
Left navigation customizations
Asked by MPal Pal:

Hi all,

In the left navigation of doctheme, all pages added to the home appear on the left pane and their child pages listed when collapsing the tree.

I want to categorize these main topics as shown in the image below. Is there a way to list 2 followed by a horizontal line, 3 more followed by another line etc. Like in the attached picture

.![](../../upfiles/left-nav.png)


Answers:
author: SimonS
body: Hi MPal,

This can't be done in Confluence by default, but you may be able to do it by customizing Confluence's CSS or adding some custom scripts:

<https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS>

-Simon

comments: author: SimonS
body: This should also be possible with the Zen Foundation plugin:

<https://marketplace.atlassian.com/plugins/com.zenfoundation>


Tags: documentation-theme

navigation
Can I turn added users into administrators in on-demand Confluence?
Asked by Bill Wake:

I've got the administrator account we set up when we initially requested our instance, but I'd like to add users and then designate them as administrators, able to also create users etc. Can I do that? (And what group should they be in?)

I see the groups and their capabilities, but nothing to let me add to them.

Thanks


Answers:
author: Adam Toth
body: I have On-Demand as well.

Go to: Administration / Users / Click on user / Edit groups

As an administrator you should be able to add "Administrator" group to users.

comments: author: Bill Wake
body: Thanks! It was there like you said:) -Bill


Tags: administration

cloud

confluence-cloud
Display Excerpt not working for "Children Display" macro
Asked by Susan Parker:

On this page...

<https://laddawn1.atlassian.net/wiki/display/web/Design+Group+Tasks>

... my full excerpts are showing when I use the Content by Label macro, but not when I use the Display Children macro - only one word in the excerpt is appearing. My excerpts are simple 2 column, two row tables; only the contents of the first cell are appearing (and not as formatted using the status macro). We need to use the Display Children macro rather than the Content by Label Macro in order to support the way we are using Confluence to manage issues.


Answers:
author: Susan Parker
body: This turned out to be a known bug with Confluence On-Demand: "this issue is related to a [known](https://studio.plugins.atlassian.com/browse/ADVMACROS-233) error from [Confluence Advanced Macros](https://marketplace.atlassian.com/plugins/confluence.macros.advanced;jsessionid=9c667c0i5v52r2gdyteep6ua) plugin, which doesn't have a workaround available so far. "

Please vote for it on the studio plugins site. <https://studio.plugins.atlassian.com/browse/ADVMACROS-233>

My original trouble ticket: <https://support.atlassian.com/browse/JST-45881>


author: Raquel Kutsch
body: If you copy the macro from another page that has it, it will work!


author: Greg MacLellan
body: This is apparently the desired behaviour. According to \[documentation for the macro\](<https://confluence.atlassian.com/doc/children-display-macro-139501.html>): "If you have an excerpt macro on any of the returned pages, checking this option will display the first line of the excerpt." Not sure why it should work differently than {excerpt-include} (this is really excerpt-of-the-excerpt) but apparently it does. I actually stumbled across this question trying to find an alternative {children-display} macro that actually includes the complete excerpt.


author: Jeff Berndt
body: I just had a very similar problem, in Confluence 5.8.4: My Children Display macro has "Include Excerpt" checked, but the full excerpt isn't included--just the first line. very frustrating.

Also, I don't seem to be able to remove the Excerpt macro or change which text is part of the excerpt without deleting the entire excerpt and having to re-create the text. This doesn't seem very useful--how do I remove the excerpt without having to re-write the text?


author: Elizabeth Bowen
body: This also does not work within Confluence 5.5, not just the On-Demand version.


author: Sebastian Kugler
body: would love to know one as well (tables and status indicators used in excerpts don't appear in children lists)


author: M
body: Hello everyone

Is there any update of this issue ?

Do anyone have any workaround for this ?


Tags: macro
Error trying to change default Confluence page from Dashboard to space page
Asked by shawn keller:

I get the error:

The Collaborate space must be accessible to the confluence-users group (or anonymous view permissions must be granted) in order to be set as the Site Homepage

The thing is that there is NO confluence-users group in my On-Demad version. Even if I create it, is still doesnt work. Documentation is also outdated.


Answers:
author: Karen H
body: Has this issue been resolved in the last 1.5 years?  
I've tried adding all of the groups (including confluence-users)  
I've tried removing all of the groups.  
I've tried adding the confluence-users group again.

This seems like a pretty basic feature.


author: David Gruber
body: I ran into this problem also in OnDemand, in my testing the above needs to be done for the users group.


author: FernandoA
body: Hi Shawn,

You'll actually need to create the confluence-users group then [assign the permission](https://confluence.atlassian.com/display/DOC/Assigning+Space+Permissions) for this group into the Space you'd like to be the new Confluence's home page.

Hope this helps.

Cheers!

comments: author: Karen H
body: I already had that group created and gave it permission and I'm still receiving this error.


author: SimonS
body: This looks like it may be a configuration on our end, or some misconfiguration somewhere.

I think the best place to start debugging this is with our OnDemand support team:

<http://support.atlassian.com>

Let us know the resolution here if you go this route.


Tags: cloud

confluence-cloud
Attachment migration SQL Server
Asked by Jarek Grabski:

We're about to migrate attachments from a SQL Server to file system. For having a really large database (about 40GB), this procedure takes about 2 days. After it is finished the attachments are stored twice: in home folder of confluence and still inside the database. Confluence is also still storing attachments in database and not on the file system.

Do anybody has exceperience with that large database and SQL Server? We didn't find any exceptions or errors in both log files (tomcat\&confluence), so what could be the problem?


Answers:
author: AlysonA
body: Hi Jarek,

Unfortunately <https://jira.atlassian.com/browse/CONF-9888> doesn't have an ETA at this time. For now we suggest that you vote on the bug report to increase its popularity so it can hopefully be included to the bugfix roadmap in the near future. I have voted as well. =)

Please let us know if you have further questions!


author: Rodrigo Girardi Adami
body: Hi Jarek,

We have a known bug regarding huge attachments migration: <https://jira.atlassian.com/browse/CONF-9888>

Unfortunately is still not fixed, however some improvements were made in the version 4.1 onwards:

<https://jira.atlassian.com/browse/CONF-15937>

<https://jira.atlassian.com/browse/CONF-23783>

You may want to upgrade to the newest Confluence version to attempt those improvements. (Assuming that you are in an older version of Confluence). Hope that helps you :)

comments: author: Jarek Grabski
body: Hi Rodrigo,

thanks for replay. Actually we're planning an upgrade next year. Which version will include this bugfix?


Tags: attachment

error

migration

ms-sql
Page duplication problem in Confluence
Asked by Rumceisz:

Hi All,

I met a weird problem: I created a space in Confluence and the there are 2 home pages: the Home was renamed to a specific name and beside that (not chold page) there is a page with the same name and same attachment. How can it be?

There is no Home page!

How can it be?

Rumi


Answers:
author: Giuliano C.
body: What happens if you try to delete one of the duplicated pages? Did you get the same behavior, when you create another page?

This doesn't seems to be something reproduceable, so in case you experience this issue again feel free to create a support ticket at [https:support.atlassian.com](http://https:support.atlassian.com)

Cheers,

Giuliano


Tags: home

page
Nice URLs only on some Confluence OnDemand pages
Asked by Hans Berg:

I've created Confluence OnDemand pages which normally can be accessed via URLs that look like this:

<https://ourcompanyname.atlassian.net/wiki/display/KEY/page+name>

The problem is that several recently created pages don't seem to get those nice URLs anymore...some of them (not all) now have URLs like this:

<https://ourcompanyname.atlassian.net/wiki/pages/viewpage.action?pageId=7045154>

Why does this happen? How do I change URLs to nice ones, like the first one?


Answers:
author: Bob Swift (personal)
body: Usually that means the title has special characters in it.

comments: author: Hans Berg
body: Yes, You're right, that it seems to be the common denominator. In this case the page titles contained ?,? or ?.

Thanks!


author: Admin Cognotekt
body: and it still reacts like this. that sucks so much. I'd rather have pretty much **anything** else than this pageId crap. (A really straightforward solution would be "something+else" in the URL if the title is "something (else)" - just delete the chars if you can't process them)

confluence is a great product, just **sometimes** the Atlassian folks seem knuckleheaded beyond anything. They actually implement auto-correct in this entry box so "Atlassian" is always written with a capital "A" (try :smile:), but nice URLs are not in their repertoire.


author: Admin Cognotekt
body: Oh and your [docs](https://confluence.atlassian.com/confkb/confluence-page-urls-contain-pageid-instead-of-the-page-title-278692715.html) are wrong btw.

We have a page with "()" in the title -\> pageId. Another page has "\*" -\> no pageId.


Tags: confluence-cloud

url