youngmon/atlassian-qna huggingface dataset:
Twiki to Confluence - cross reference links
Asked by Jobin Kuruvilla [Adaptavist]:

While migrating from Twiki to Confluence, Is there any way to convert links pointing to another space?

For example, in Twiki there are two webs, WEB1 and WEB2. In WEB1, there is a link pointing to a page in WEB2 as follows:

```
[[WEB2.Link1][Some Link]]
```

This should be converted to

```
[Some Link|W2:Link1]
```

where W2 is the space key for WEB2 space in confluence. But right now, the links points to Create page action in WEB2 space!

The mapping of WEB1 to W1 and WEB2 to W2 is present in the property file but only spaceKey W1 can be entered in the converter while converting.

Is there anyway to achieve the above?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Couldn't find any existing properties, so added a new cleaner class to handle cross references. Works fine now!


author: Nick Bailey
body: Hi - I know this is a bit of an old Topic - but I having the same issue. In my world I'm trying to import 2 webs from Twiki that both have links to each other.

I tries using web to spacekey map properities with no luck.

Jobin you said you "added a new cleaner class to handle cross references." - I don't suppoose you could give more information on how you did that could you?


author: Laura Kolker
body: Just for future ref for other users, I would have thought the [web to spacekey map properties](https://studio.plugins.atlassian.com/wiki/display/UWC/UWC+Twiki+Notes#UWCTWikiNotes-webtospacekeymap)would have handled that. The intent is for that map to handle links and image references across spaces.

comments: author: Jobin Kuruvilla [Adaptavist]
body: Laura,

I was thinking the same. had that mapping but it didn't work. No sure if it was because some other configuration was missing or not!


Tags: twiki

universal-wiki-converter
attaching a file for download in Confluence 4.0
Asked by Robert Lauriston:

I want to create a download link for a source code snippet. I'm doing this:

Edit \> Insert \> Attachment \> Choose File \> Save

but I'd prefer to be able to edit the link text. Is there any way to do that outside of using wiki markup?


Answers:
author: Andrew Frayling
body: Sorry for last answer, was doing it blind.

Just tried on my 4.0.5 install and I can Edit -\> Insert -\> Attachment -\> Choose File and there's a "Link Text" field for entering custom link text at the bottom of the insert dialogue before hitting Save.

Which is better than my last answer :)

comments: author: Robert Lauriston
body: I have a Link Text at the bottom of the Edit Link dialog, but to make it editable I have to go through that kludgy workaround I posted.


author: Andrew Frayling
body: Just tried again and I think I know what you mean now.

If you're attaching a file for the first time and select Edit (as in edit the page, not edit on an existing attachment in the editor) -\> Insert -\> Attachment -\> Choose File the Link Text box should be editable so you can enter the required text from the first insert and don't have to go through the upload -\> delete -\> insert -\> search loop.

If you click on Ediit on an existing linked attachment in the editor then the Link Text field is uneditable, which seems like a UI oversight to me. I can't see an existing ticket for this behaviour so I'll raise one with Atlassian.

If you've got existing links to attachments that you need to edit the only other way I can think of is, in the editor, delete the link to the attachment, press "\[" to trigger autocomplete, use down arrows to select search, start typing the name of the attachment and enter text in the Link Text field before hitting save. Potentially faster than deleting and inserting via the Insert menu as you can do everything from the keyboard, but not much better.

EDIT: Logged with Atlassian as <https://jira.atlassian.com/browse/CONF-24017>


author: Robert Lauriston
body: The "Link Text" field was editable today. Seems like maybe there's a bug but I don't know how to duplicate it.


author: Andrew Frayling
body: Hi Robert, you can edit the link text using the Link Browser (<http://confluence.atlassian.com/display/DOC/Linking+to+Attachments#LinkingtoAttachments-AddingaLinkusingtheLinkBrowser>) if that helps?Andrew

comments: author: Robert Lauriston
body: Hmm, kludgy but possible. I have to upload the file, delete that link, insert a new link, search for and select the file, and then I can edit the link text.


Tags: attachment

download

link
How to do a massive insert into SPACEPERMISSIONS table in confluence 3.4.5?
Asked by Gaston Gaston:

Hi All, this maybe an stupid question, but I'm stuck with this.

We have an old installation of confluence 2.7 and we need to migrate some users from this installation to our newest (3.4.5).

The issue is, we a large number of users, and a very large number of them as permissions over several sites, but not in the form:

GROUP \> SPACE.

They have permissions directly granted to their users for several spaces.

I was looking at the confluence tables and found that the SPACEPERMISSIONS table takes care of this situation.

When I want to do a massive insert, I found that the column PERMID needs to get his value from somewhere, but I dont know from where, because I dont see any sequence or something like that.

Can anybody help me with this?

Thanks in advance!


Answers:
author: Bob Swift (personal)
body: I don't know about direct database update for this, but the [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) does have actions for dealing with adding and removing permissions using standard Confluence remote apis.

comments: author: Gaston Gaston
body: Hi Bob!

Yes, I'm using your plugin for several tasks, but for this one I was thinking to direct update the DB. If I don't get the right way to do that, I'm going to use the CLI.

By the way, you did a great job with the plugin, thank you very much!


author: Gaston Gaston
body: Hi Bob, I tried to implement your solution, but I'm facing the following error:

Remote error: com.atlassian.confluence.rpc.NotPermittedException: Not permitted to add space permissions

I tried with this line:

./confluence.sh --action addPermissions --space "IT001" --permissions CREATEATTACHMENT --userId "gaston"

So, It's correct to understand that this particular process is not supported by the remote API?

Thanks in advance!


author: Gaston Gaston
body: Never mind. My mistake was to try to set permissions based on the space title not the space key.


Tags: database
Problem with plugin repository and Confluence 3.2.1_01
Asked by Arne Schirmacher:

when using the plugin repository, the following error message is displayed:

Status code 500 returned while downloading: [http://confluence.atlassian.com/plugin-repository/proxy.action?profile=confluence\&decorator=none\&buildNumber=1814\&repoClientVer=2.1.7\&os=amd64\&javaVer=1.6.0_27\&javaVendor=Sun+Microsystems+Inc](http://confluence.atlassian.com/plugin-repository/proxy.action?profile=confluence&decorator=none&buildNumber=1814&repoClientVer=2.1.7&os=amd64&javaVer=1.6.0_27&javaVendor=Sun+Microsystems+Inc).

This happens with several Confluence 3.2.1_01 instances, so it is a problem on the Atlassian side. Confluence 4.0 does not seem to be affected.


Answers:
author: Youri Tegelaers
body: Problem is known with Atlassian, vote and watch the issue here:

[http://studio.atlassian.com/browse/PAC-1159](https://studio.atlassian.com/browse/PAC-1159)
Access to "real" content of a page
Asked by Christian Christian:

Hi guys!Is there a way to directly access the content of a page? Normally you do have all the "overhead" information like menu, borders, navigation bar, ... I am looking for a way to access the pure content of a page. Is there a trick how this can be achieved?Thanks,Christian


Answers:
author: Joe Clark
body: You can use the Confluence Remote API to access the raw content of a page (see <https://developer.atlassian.com/display/CONFDEV/Confluence+XML-RPC+and+SOAP+APIs> ).

Alternatively, if you just want to *see* the page as-is in your browser, without any of the Confluence "theme" around it, then just add "?printable=true" to the end of the URL. For example: <http://confluence.atlassian.com/display/DOC/Confluence+Documentation+Home?printable=true>

This displays the page in a "print-friendly" format.
Conf4.0 - Clipboard paste into editor - hung script
Asked by Kevin Buchs:

I just shared a preview of Confluence 4.0 with my work group. I got asked about copy/paste of markup into the new editor. I tested it live, creating some markup content in Windows WordPad (Win7) and it failed to recognize it. (Maybe the wiki markup macro will handle it.). However, then I converted to actually formatting the text in WordPad and pasting it into the editor. The browser was IE8 and I got a hung script on page error as a result.

Find the WordPad file here: <http://real-lutheran.org/WordPad_Fail.rtf>


Answers:
author: John Masson
body: Hi Kevin,

To answer the first part of your question, ues if you use 'Insert' \> 'Wiki Markup' and paste your sample code in it will indeed convert it, but not if you paste it straight into the editor.

I've also tried pasting in the contents of your attached file as it's formatted and it didn't have any freezing issues. I was using Chrome on OSX though, unfortunately don't have IE8 handy but I'll flick this on to someone who does to see if they can reproduce it.

Thanks,

John
file view missing
Asked by Christian Christian:

Hi!

I had some issues recently with the speed of Confluence and hence I have deinstalled and deactived a couple of plugins. Obviously it also "hit" the file view macro. So I do only see the message "unknown macro: viewxls". Unfortunately I have not found a way to get the macro up and running again and was also not able to find a source for downloading.

Any ideas how this macro can be activated or installed again?

thanks and best regards,  
Christian


Answers:
author: Joe Clark
body: The file view macros are part of the Office Connector plugin that comes installed in Confluence by default.

You should be able to get the macro working again by going in to Confluence's plugin management console and ensuring that the "Office Connector" and its plugin modules are listed as enabled.
{jiraissue} macro fails with an error "Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/html4/strict.dtdclass java.io.IOException"
Asked by Ludovic Lambert:

Hi,

It used to work. No idea of what is causing the problem.

The actual error is

Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/html4/strict.dtd\<br/\>class java.io.IOException

Don't know what this \<br/\> is doing here...

![](http://img52.imageshack.us/img52/591/screenshot1bid.jpg)

Regards,

Ludovic


Answers:
author: Ludovic Lambert
body: I solved it and I'm ashamed...

Instead of using the XML URL of the filter result, I was using the HTML URL of the filter itself...

{jiraissues:url=http://myserver/secure/IssueNavigator.jspa?mode=hide\&requestId=10500}

instead of

{jiraissues:url=http://myserver/sr/jira.issueviews:searchrequest-xml/10500/SearchRequest-10500.xml?tempMax=1000}

Sorry for disturbing!


author: Dennis Kromhout van der Meer
body: The Jira Issues macro is picking up content from JIRA via an AJAX request. However, it appears that malformed data is retrieved, as the java.io.IOException seems to be the start of a stacktrace. Please create a ticket at [support.atlassian.com](https://support.atlassian.com) and provide the logs.

Good luck!
Confluence Global "Auto-Watch" Setting?
Asked by Gregory Sudderth:

You know how sometimes you feel like you **know**something but can't find the actual data...this is one of those times.

I can't find, either in General Configuration, or in any Space Admin, a way to set "don't set Watch=ON when I create a space, or modify one..." etc.

Can't even find it in the docs! Thanks in advance.

G.


Answers:
author: Jeremy Largman
body: You had the right terminology - it's 'autowatch' you're after. It's in your user preferences:

<http://confluence.atlassian.com/display/DOC/Editing+User+Settings#EditingUserSettings-email>

1. Go to **your name** (the 'User' menu) at the top of the page and choose **Settings**.
2. Click **Email** in the left-hand panel.
3. Click **Edit**.

comments: author: Gregory Sudderth
body: **WHOA!**I have been using Confluence for 6 months and have never seen that menu (set of menus!). I guess that's what I get for being busy! Thanks! I think I'm going to file this as a bug...somehow I have about 80 pages on "watches" tab...and I didn't watch them (I don't generally). I'm a create-content-and-forget kinda guy right now.

Has there been a case of random pages getting set to *Watch*?


author: Gregory Sudderth
body: Now this is interesting: its even got me watching a deleted page...and there's no way to delete that watch...not a big problem (never gonna trigger unless the page is restored/replaced) but it looks like a bug to me! I will file it.


author: Jeremy Largman
body: It's likely that you're getting these as auto-watched because you created or commented on them, I suspect?

Notice the discussion and update from Sherif (our product manager) about a potential global setting for this:

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


author: David Skreiner
body: Atlassian refused to allow a global setting; and unless you enable email, users won't even be able to turn the setting off in their preferences. The argument was, I believe, that users enjoy getting mailbombed. <https://jira.atlassian.com/browse/CONF-22070>


Tags: confluence-administration
How to transfert single page(s) from one wiki to another one having the same version ?
Asked by Matthias Basler:

Background:

We have installed a Confluence wiki at a public authority. Due to security restrictions this wiki cannot be edited from outside their office. However our company is supposed to regularly add and update content. So we have installed (almost) the same version (4.0.4 vs. 4.0.3) of the wiki at our office.

What we need to do:

We need to push our local changes to the official wiki by exporting edited page(s), sending them as files and get them imported at the official wiki. We are aware that this is not the way a wiki is supposed to be used, but there might not be an alternative...

How to do this?

- I am aware that it is possible to export/import spaces, but we cannot completely overwrite the space at the official wiki in case other users have done changes to other pages.

- There's the possibility to export page(s) to XML, even including comments and attachments. However I gather from the documentation that trying to import such file via the Administration UI (Backup and restore) would overwrite the \*whole\* space, instead of merging the contained pages into the space.

- I also know that it is possible to import pages from text files. This would somewhat work if there was a way of \*exporting\* a page to such text file with all its wiki markup. (Mind you, the markup is not visible any more in Confluence 4!) Moreover I doubt it would be possible to transfer pages WITH images/attachments this way.

So what would you recommend?


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) has a **copyPage** action that can be used to copy pages. Normally copies to the same instance, but there is also a **targetServer** parameter. Check the [Documentation](https://studio.plugins.atlassian.com/wiki/display/CSOAP/Documentation "Documentation") and [Examples](https://studio.plugins.atlassian.com/wiki/display/CSOAP/Examples "Examples") pages. For Confluence 4.0, you will need 2.4.0 or higher.

AppFire - <http://www.appfire.com/> has a commercial plugin for keeping instances in sync.


Tags: export

import
Confluence 3.2 Switching from Rich Text to Wiki Markup produces backslashes
Asked by Alex Zaeper:

The Wiki Markup shows:

```
span:class=heading}Heading{span}{span:class=active}* [Ground|Ground {page-info:title|page=@parent}]{span}* [Special|Special {page-info:title|page=@parent}]
```

When I switch to the Rich Text and back to the Wiki Markup again ist shows:

```
span:class=heading}Heading{span}{span:class=active}* \[Ground\|Ground {page-info:title|page=@parent}\]{span}* \[Special\|Special {page-info:title|page=@parent}\]
```

From where do those backslashes come ?

I would prefer not to have them there

Does someone know the reason for this ?  
Thanks


Answers:
author: Nic Brough -Adaptavist-
body: This is a known problem with switching from the rich-text editor to wiki markup and back again.

The short answer is that the rich-text editor isn't really much good at wiki markup.

The only fixes are to tell your users to stick to using one type of editor, or to upgrade (it improves in 3.4 and 3.5, but is still problematic. And it's all fixed in 4.0+ because there's no wiki markup for an editor to mangle)


Tags: editor
Documentation on "scripting"-type instructions used in confluence
Asked by Chris Severn:

In some online examples of formatting etc, I see that there is some sort of language which can be used inside confluence pages (inside the layout pages at least).

For example, on this page:  
<http://confluence.atlassian.com/display/DOC/Adding+a+Navigation+Sidebar>it has commands like:  
`#``if``($action.isPrintableVersion() == ``false``)`  
#includePage($helper.spaceKey "TreeNavigation")  
$body  
`#``else`

I haven't been able to find the documentation for all the available scripting commands like these, or for the member functions provided by "$action" for example.

Can I used these sort of commands in any page, or only on page layout boxes? Can I use them in the sidebar code in the documentation theme?

Is there a command to get the current page title being shown, so I can check which page I'm on, and show a different sidebar for various pages? Or, even better, for the sidebar code to retrieve some variable which is defined on the current page, and to choose what to display based on that ?

<br />

Thanks for pointing me towards any documentation for this.


Answers:
author: Sander Brienen [Avisi]
body: The "scripting" code you see are Velocity macros. Confluence uses Apache Velocity as their templating engine. These macros can only be used in Velocity template files and not in normal Confluence wiki pages.

See here for more information: <https://developer.atlassian.com/display/CONFDEV/Velocity+Template+Overview>

And here for the Velocity project page: <http://velocity.apache.org>

comments: author: Chris Severn
body: Thanks Sander. I'd seen a few mentions of Velocity previously, but never really found the main page that gives the basics of what it is, and how it's used in Confluence.


Tags: script
Uploading content to Confluence
Asked by Asad Ahmad:

Hi

I need to import basecamp posts to Confluence. As far as i have investigated, the Confluence REST API is still a prototype and does not let you upload content. Is there any way of communicating and uploading content to Confluence, without having to do it manually? I really cannot upload post by post, there are too many. I would also not prefer writing some java plugin as i dont have java skills. Any help will be appreciated.

Regards

Ahmed


Answers:
author: Jo-Anne MacLeod
body: Take a look at the command line plugin, <https://studio.plugins.atlassian.com/wiki/x/JYEi> as it has a add page option. It may allow you to do what you need to do.


Tags: basecamp

cloud

confluence-cloud

import
Trackback not working
Asked by Michael Roff:

I have been using JIRA and Confluence for some time.

Once upon a time, trackbacks worked well between both systems, but for the past 6 - 12 months, trackbacks have not been working.

Confluence is running v3.5.13 and JIRA is running v4.4.

Both systems are using https://.

Both systems have trackback ON.

Both systems are linked through the application links.

Has anyone encountered this problem before or something similar and overcome it?

Any suggestions on where trackbacks might be getting caught up?


Answers:
author: spuddy ?_?
body: Unforunately, trackbacks have not been working in JIRA since 4.3, see <https://jira.atlassian.com/browse/JRA-24628>

In JIRA 5.0, trackbacks are being replaced with Remote Issue Links. Existing trackbacks will be converted to Remote Issue Links on upgrade to 5.0. Please see this KB article for more information: <http://confluence.atlassian.com/display/JIRAKB/2011/10/30/Trackbacks+being+replaced+with+Remote+Issue+Links+in+JIRA+5.0>

comments: author: Michael Roff
body: That's a bit poor :(

I guess I will wait until 5.0 is firmed up and released so I can get some sort of inter system tracability working again.

Thanks for the input Matt.


Tags: trackback
Embeded excel - column width changes, and time displayed incorrectly
Asked by Daniel Leaird:

I have two issues with an embed excel file. 1) Th column width changes on display (in an inconsistent manner). Since I have jpg images in several cells this causes a significant issue. I can still see the original format when the sheet is opened for editing in excel. I have used the columnWidth tag in an attempt to force the formating.

{viewxls:name=EquipmentScheduling.xlsx \| formatColumn = true \| heading = 2}

2) Cells that have time values do not display correctly. For example, 7:00PM displays as 00.54166666671:00 PM


Answers:
author: Gregory Sudderth
body: I bring in some Excel data for tables, but, I bring it in as a CSV, and attach it. The Confluence document refers to the attached CSV and makes a table out of it, and that is surrounded by a chart macro.

This:

```
{chart:type=timeSeries|timePeriod=minute|dateFormat=mm|dataOrientation=vertical}{csv:script=^501.csv}{chart}
```

Looks like this:

![Live Data Chart](https://lh4.googleusercontent.com/-843UsK--zmI/Ttaz8vuf87I/AAAAAAAAACg/QpLvk3PBy_k/s288/CPU%252520Chart.jpg)

...from data that looks like this:

Minute,UserCPU,MemUse%,BsIN,BsOUT  
54,2,87.00,0,41  
55,3,87.00,0,19  
56,2,87.00,0,21  
57,3,87.00,0,22  
58,3,87.00,0,26  
59,3,87.00,0,14  
00,8,87.00,0,28  
01,2,87.00,0,27


author: Daniel Leaird
body: I previously tried an older XLS format, but it only looked worse (the jpg's at least). I'll give removing the spaces in the macro a shot, and update here.

comments: author: Daniel Leaird
body: I tried removing the spaces from the macro, but it made no difference.


author: Gregory Sudderth
body: Try removing the spaces in your macro, make it like this:

{viewxls:name=EquipmentScheduling.xlsx\|formatColumn=true\|heading=2}

Barring that, try exporting into an older XLS format and importing that. Just an idea. (If I had a buck for every XML parsing error I've dealt with....hmm)

G.


Tags: ms-excel
Confluence 4.0 Editor: Plugin That Measures Efficiency!?
Asked by Gregory Sudderth:

Q: Why not make a Confluence 4.0 plugin, that will monitor "User Editor Efficiency" thusly:

Lines_created + lines_edited / time_in_editor - obvious_idle_time

The proof is in the pudding. I am intrigued by the new editor, but, I would love to see something that detects the "took 5 minutes to modify my nested table" scenarios and give us some hard data to consider vs. "the noobs are SO happy!" in this conversion of editors.

Make sure the plugin works with 3.5.13 too!

G.


Answers:
author: Dave Loeng
body: Hi Gregory,

Do you mind elaborating a bit more on what was challenging with nested tables? (and in fact anything else you found inefficient?)

comments: author: Gregory Sudderth
body: I just meant it as an example. People have various "how do I..." type things here re: the editor.


Tags: app

editor
multilingual 404 error page in confluence
Asked by peter behrens:

Hello

is it possible to display 404 error in different languages?

Are the error copies saved in the locals? or is the 404 error page just one static page?


Answers:
author: Remo Siegwart
body: The error page should already be displayed in the language the user has chosen. The page is generated from the velocity template **404.vm** where you can also see the i18n keys used. As long as the language pack has translations for the i18n keys of the 404 template, the page should be displayed in the correct language.