youngmon/atlassian-qna huggingface dataset:
How to automatically assign a number to a page?
Asked by Rhyne Armstrong:

I am building a knowledgebase and each article has its own distinct number. The format is K-0000. There is a requirement from our stakeholders that this number be automatically assigned so our authors don't accidentally assign the same number to multiple kb articles. This number appears in the title and in a table at the top of the article.

Any idea how to accomplish this in Confluence 4.0?

Thank you!


Answers:
author: Alex Suslin
body: Why don't you want to use PageID for that?

In admin area go to Edit Site Layouts \>\> Page Layout and change page layout in a way that it will show somewhere "K-\<Page ID\>" page id I guess can be obtain through a helper variable (not sure), need to read some documentation.

comments: author: Rhyne Armstrong
body: We already have 850 articles and people know and refer to them by their number. I don't want to change them now, and I don't want to change the numbering convention...or have gaps in the number if the page ids were used for other spaces.


author: Alex Suslin
body: Ok, I see... Thus you might probably want to develop your custom plugin and got the autonumber for pages from a kinda global variable (thread safe, singleton, etc)...
Page execution time
Asked by andrey dmitriev:

is there a plugin to see how long the page took to execute?

This might be especially important when a page contains multiple subpages (e.g. using INCLUDE or LIVE_TEMPLATE), and we'd like to figure out which one is "slow"


Answers:
author: Andrew Frayling
body: Hi,

Take a look at <http://confluence.atlassian.com/display/DOC/Troubleshooting+Slow+Performance+Using+Page+Request+Profiling> It shows you how to enable profiling to check how long each component of a page is taking to render.

Hope that helps?

Andrew.
Summarize total disk space used by attachments
Asked by Amin Abu-Taleb:

Hi all, is there any way to develop a macro to summarize the total disk space used by attachments in a space (including subspaces), or an existing macro to do it?

Thanks in advance.

Amin


Answers:
author: Amin Abu-Taleb
body: Can I perform a search as "Search Results Macro", that returns a list of Attachment objects and do the SUM on my own?


author: dborsboom
body: Hey Amin,

If you have the SQL Plugin installed, you can use the following query:

```
{sql:dataSource=confluence}SELECT (SUM([FILESIZE])/1024/1024) AS Attachments_in_MBs  FROM confluence.ATTACHMENTS{sql}
```

Note that when you only ask for the SUM you get the total size of the attachments back in bytes. I converted it to MB's to make it readable.

If you dont have the SQL Plugin, you can find it here: <https://studio.plugins.atlassian.com/wiki/display/SQL/Confluence+SQL+Plugin>

comments: author: Amin Abu-Taleb
body: Thanks for your reply,

I cannot make use of that plugin in this environment. I've to use only confluence API classes or another existing macro. In addition, it would be necessary to include subspaces in that sum.

Thanks again.

Amin


Tags: macro
Problems with SQL plugin timing out.. doesn't appear to be a sql performance issue
Asked by andrey dmitriev:

We have the following defined in datasource

```
validationQuery="Select 1"         removeAbandoned="true"         removeAbandonedTimeout="600"
```

However, whenever I look at SQL on the database end, it doesn't even show up. So it's not clear what the delay is.

Is there any way to troubleshoot?


Answers:
author: Bob Swift (personal)
body: Can you [open an issue](https://bobswift.atlassian.net/browse/SQL) and provide more details. What version of plugin and Confluence? What database? Perhaps logging might help - [How to log SQL activity](https://bobswift.atlassian.net/wiki/display/SQL/How+to+log+SQL+activity).


Tags: confluence-app

mysql

sql
Restoring Wiki pages from 3.3 into 4.2 loses markup
Asked by Daniel Glenn:

I intend to move to OnDemand, and therefore at the same time upgrade to the latest Confluence (and Jira).

To practice moving our Wiki pages I installed 4.2 locally and imported the backup generated from our 3.3 instance.

It seemed to go smoothly, but the formatting has not been respecting in the copy.

For example, I have a shopping list page in the old one where the **markup** looks like:

```
*{+}Pending{+}** hefty Torch (small one already purchased)
```

In 3.3 this gets **displayed** as expected (Pending is bold underlined, "hefty Torch.." is a bullet point)

When restored into 4.2, the page **displays** as:

"\*{+}Pending{+}\* \* hefty Torch (small one already purchased)"

i.e. it is displaying the markup rather than parsing it as formatting instructions.

Is there some backup or restore option I am missing?

Additional information that may be useful. If I find the content in the entities.xml from the backup zip it looks like:

```
<object class="BodyContent" package="com.atlassian.confluence.core"><id name="id">753671</id><property name="body"><![CDATA[*{+}Pending{+}** hefty Torch (small one already purchased)]]></property><property name="content" class="Page" package="com.atlassian.confluence.pages"><id name="id">688136</id></property></object>
```

Any help appreciated,

Dan


Answers:
author: Joerg Bencke
body: Hi,

you are trying to upgrade, basically, from V3.2 to 4.2. So you should read the upgrade notices on Confleuce 3.3, 3.4, 3.5, .0 and 4.1 and follow the official process

(see : <http://confluence.atlassian.com/display/DOC/Upgrade+Notes+Overview>)

I did not find it just now, but somewhere, it was said, the best way to do it is to restore old backups is to them to a 3.5 instance and then perform the upgrade from 3.5 to 4.x using the installer-embedded upgrade assistant.

(See : [http://confluence.atlassian.com/display/DOC/Upgrading+Confluence#UpgradingConfluence-UpgradeOverview](http://confluence.atlassian.com/display/DOC/Upgrading+Confluence#UpgradingConfluence-UpgradeOverview)))

On a sidenote - you are aware that many plugins are not available on "on demand" ?

Regards, Josch

comments: author: Daniel Glenn
body: Thanks Josch, after upgrading to 3.5 first, then exporting from there into 4.2 it worked correctly.


Tags: cloud

migration
Confluence 416 I add a link as [pmo|file://10.10.10.10/myarea/test] using the insert link weblink
Asked by Devu Heda:

I cannot seem to get this working any idea? How can i add a file:// link which i can click and opens the folder ...same works fine when i do from my browser

Thanks


Answers:
author: Septa Cahyadiputra
body: Hi Dave,

This is actually a known issue which is recorded here:

<http://confluence.atlassian.com/display/CONFKB/Can%27t+Link+to+Local+Files+from+within+Confluence>

Hope it helps.

Cheers,  
Septa Cahyadiputra


author: Christian Czaia _Decadis AG_
body: Hi,

check this out:

<http://confluence.atlassian.com/display/JIRA/Linking+to+local+file+under+Firefox>

```
[file:///c:/temp/foo.txt]
```

You probably don't get it to work in Firefox?

Cheers Christian

comments: author: Devu Heda
body: Thanks both of u that worked


Tags: file
How do you apply restrictions to sub-pages
Asked by Mark Nixon:

Hi Guys,

Basic question I know, but help would be really appriciated!!

Im consolidating a lot of our content, and moving stuff that was in many spaces just into a few. Each of these spaces had permissions that varied greatly.

Now when im moving these pages into the consolidated spaces, I wish to set certain permissions on pages, that propogate to all sub-pages. As far as I can see, when setting page restrictions, this doesnt propogate to sub pages.

Is there a way to do this?


Answers:
author: Christian Czaia _Decadis AG_
body: Hi astro,

restrictions that are set on a page are being inherited by its subpages. Is taht what you wanted to know?

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

Cheers

Christian

comments: author: Mark Nixon
body: Lifesaver! For some reason previously permissions didnt propogate, but they are now. Thanks!


author: Nic Brough -Adaptavist-
body: I found that for some reasons, the permissions don't propogate immediately when you move pages (Confluence 3.4, I can't speak for 4.x). I don't know how they got fixed in our system, but I did re-index confluence shortly after the pages were moved.


Tags: page

permission

restriction

space
Opening "quick search" queries in a new tab rather than in the same page
Asked by Francois St-Pierre:

Hi,

I'm using Confluence 4.0 with RefinedWiki interface. At least when accessed via Chrome or Safari on a Mac, the "Quick search" results (which appear as you're typing a search query in the top right of the window) can only be opened in the same window. It would be nice if you could, say, right-click on them to open them in a new tab, or have a small icon or link besides them to enable tab opening. Is there a way to implement this feature?

Cheers


Answers:
author: Francois St-Pierre
body: Here it is:

<https://studio.plugins.atlassian.com/browse/RWOT-176>

Thanks!

Francois


author: Francois St-Pierre
body: I've created a bug report. Thanks!

comments: author: Martin Moser
body: Could you add a link to the bug report please? I'd like to vote on it!

Thanks


author: SarahA
body: Hallo Francois

Yes, I can open the quick search results in a separate tab when not using Refined Wiki.

I've just tried it on this site, which is a demo for Refined Wiki: demo.refinedwiki.com/

And it doesn't work there. So I think it must be a problem with the Refined Wiki theme. It's probably worth raising an issue with the Refined Wiki developers, or contacting them for support. This page has the contact details: <http://demo.refinedwiki.com/display/rwot3x/Support>

Cheers, Sarah


author: Francois St-Pierre
body: I should have mentioned that my mouse is setup for right-clicking, so it's the same as Ctrl-click. I also checked Ctrl clicking (as well as Cmd, alt, etc clicking), but no combination work.

I just tried with a PC, same problem.

Perhaps it's due to my use of RefinedWiki interface. Are you able to open these "quick search" result in a separate tab WITHOUT RefinedWiki?

Cheers,

Francois


author: SarahA
body: Hallo Francois

Have you tried holding down the Cmd key and then clicking the link in the quick search results? I don't have the Refined Wiki theme, but this key combination usually works on a Mac.

Cheers

Sarah


Tags: search

tab
How to upload HTML files saved on the local drive using the macro HTML-include
Asked by Chitra Patil:

I am trying to test some HTML pages that are saved in my local directory--I tried using the macro HTML-include. It fails to find the file. Doesn't the html-include macro not support this option?


Answers:
author: PeterKoczan
body: Hi,

The HTML include macro is used to simply include a HTML page that is accessible for the Confluence instance. I believe the easiest way for you would be to use the HTML macro instead and copy the source of the pages mentioned directly to the Confluence page.

However, whenever you change the local contents, you will need to manually update it in Confluence too.

A workaround for this could be to place the HTML files on a publicly available server, include it from there and not from your local drive.

Kind regards,

Peter
Cannot delete a space
Asked by dchisholm:

I used Space Admin to remove a Space. The one child page in the space was deleted, but the space still appears in the dashboard. Trying to delete the space again just causes a NPE, and it still does not remove the space from the dashboard.

How can force the system to remove this space completely?


Answers:
author: Septa Cahyadiputra
body: Hi Chiz,

Judging from your issue description, it seems that you are currently encountering a known issue which is recorded here:

<http://confluence.atlassian.com/display/CONFKB/Unable+to+Delete+Space>

Here is another KB to manually delete your space completely:

<http://confluence.atlassian.com/display/CONFKB/How+to+Manually+Delete+a+Space>

Hope it helps.

Cheers,  
Septa Cahyadiputra

comments: author: dchisholm
body: Thanks! The second option is what I used, and it worked fine. The suggestions in the first option did not apply to the exception I had. For anyone interested, here's a partial stacktrace:

```
ERROR [Long running task: Space removal long running task] [atlassian.event.internal.EventPublisherImpl] invokeListeners There was an exception thrown trying to dispatch event 'com.atlassian.confluence.event.events.space.SpaceRemoveEvent[source=com.atlassian.confluence.spaces.DefaultSpaceManager@59adfe]' from the invoker 'com.atlassian.event.legacy.LegacyListenerHandler$LegacyListenerInvoker@b7d5cf'. -- space: 6455298 | url: /confluence/spaces/doremovespace.action | userName: admin | referer: http://confluence/spaces/removespace.action?key=IL | action: doremovespacejava.lang.NullPointerException        at com.atlassian.confluence.core.DefaultContentPropertyManager.cacheSet(DefaultContentPropertyManager.java:148)        at com.atlassian.confluence.core.DefaultContentPropertyManager.setStringProperty(DefaultContentPropertyManager.java:93)
```
People directory showing different results in different versions
Asked by Michael Verselle:

Hi,

I am hoping this is just a quick answer.

We are upgrading our confluence from version 3.2 up to 4.0.5. We have installed a new test server, upgraded, and moved all data over to the 4.0.5 version.

I notice that in our current production version of 3.2 that the People Directory does not list every user in the system. But in version 4.0.5, the People Directory is listing every person.

Why is this?

Please note: The database on our 4.0.5 is a match of our 3.2 system, as we imported it, then upgraded on our new server, so the amount of users match, or is at least close enough for government work.

Also, we are not using any type of external LDAP, or Active Directory to populate our users, we create them all manually.

thank you,

Michael


Answers:
author: Michael Verselle
body: Thanks for the Info Peter, but I tried that and it didn't work. Working with Atlassian support, I did find out this was the answer: " In both Confluence 3.2 and 4.05, when a user is added they will not appear in the people directory until they have logged in at least once. There is something about the upgrade process that is marking the user to now show up in the people directory despite having never logged in before the upgrade." Since this was on our dev server preparing for an upgrade, none of the users except a few testers had logged in.


author: Michael Verselle
body: Thanks for the Info Peter, but I tried that and it didn't work. Working with Atlassian support, I did find out this was the answer:" In both Confluence 3.2 and 4.05, when a user is added they will not appear in the people directory until they have logged in at least once. There is something about the upgrade process that is marking the user to now show up in the people directory despite having never logged in before the upgrade."Since this was on our dev server preparing for an upgrade, none of the users except a few testers had logged in.


author: PeterKoczan
body: Hi Michael,

I suppose this is quite a late answer, I have been crawling through old unanswered threads, so putting my comment here in case it helps someone later on.

First I'd rebuild indexes so that we can make sure all users are indexed: <https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch>

If this still does not give a positive result, I'd try to log in with a missing user to Confluence, then see if the user is being listed afterwards. The reason for this is that the related USERINFO entry (which the index works on) is only created upon first login. Given the fact there was major version change, I suspect this to be the root cause.

Kind regards,

Peter
How to call Page Template in CSS
Asked by Miko Makela:

Hi,

How can I call a Page Template in CSS in Confluence. I have created a page called 'Menu 2' in which I put simple html code to generate a top menu navigation bar. Now everytime I create a new Confluence page, I call this menu using {include:menu2}

My question is : how can I call this template page in css, so it won't be necessary for me to put the {include:menu2} code evrytime I create a new Confluence Page?

thanks in advance for your help!


Answers:
author: Christian Czaia _Decadis AG_
body: Couldn't you just put your HTML code on every page by inserting it under Look\&feel--\>"custom HTML" ? As I understand you want your code being executed on evrey page or am I getting sth. wrong?

Cheers Christian

comments: author: Miko Makela
body: Hmmm the custom HTML will apply to the whole Confluence instance. I want it for a specific Space only.


author: Christian Czaia _Decadis AG_
body: How about creating a page template that you can reuse. Wouldn't be automatic though but still faster than using the include macro all the time...


Tags: css
Video files do not play on Windows PC
Asked by Nariman Riahi:

I have 3 video files of mp4 format. I attached them to the Wiki page and add a link to them from an image. This is thew wiki markup: \[!logo.png!\|\^AllHands.mp4\|\]

When user clicks on image the video does not play in Windows. Windows media player launches and give an error: Windows Media Player encountered a problem while downoading the file.

If I download the file to the WIndows PC and doubl click it it will play fine. So I am thinking it has something to do with the Wiki page and mim type.

On Mac the video plays fine in the browser.

I have tried converting this video into WMV format and it still does not play in Windows.

Is there a solution that will work on both Windows and Mac?

THanks

<br />


Answers:
author: Renjith Pillai
body: Which browser and not warnings for missing plugins?


author: Nariman Riahi
body: I tried {multimedia:name=AllHands.mp4}

When page loads nothing displays in the rectangle that is supposed to be the video. The page is just not rendering the video at all.


author: Renjith Pillai
body: Instead of giving a link to download the attachment, how about directly embedding the video as explained here?

<http://confluence.atlassian.com/display/DOC/Embedding+Multimedia+Content>


author: Nic Brough -Adaptavist-
body: I've run into this. I'm afraid it's nothing to do with mime type or the stuff that the server is giving the client - that's the same for all clients, and the fault is entirely on the windows machine.

You could try different browsers in windows to narrow down the config error - if it works in Chrome but not IE for example, you know the fault is in IE. In fact, it's quite unlikely to be an OS problem, it's almost certainly the browser side.

Give it a shot with a different browser (and, try running the browser on a command line - that might give you useful logging in the background) and let us know what you've tried and what you got.
Use Confluence for translation activites
Asked by e:

Hello folks,

we are currently using Confluence since a few months and we're very happy that we purchased this collaboration tool. Now i'm facing the requirement or i'm thinking about if it is possible to perform translation activites with Confluence.

My problem is that we are an international operating organization and we'll have to translate several texts (like press releases, newsletters, etc. in-house). We use Confluence as our big collaboration platform and my question is, do anybody of you handle such translation activities right within Confluence?

I'm interested in any helpful idea how to realize that, even if i have to implement a plugin on my own, use an existing plugin - even for workflow descriptions - every comment is welcome ;)

Thanks in advance!


Answers:
author: e
body: Hey Ellen,i just checked your plugin, but thats not a 100% what i intended. My problem or requirement is that i have a bunch of translator employees and different kind of texts which should be translated. Your plugin performs the translations itself, doesnt it?So i would need a possibility to enter the reference text in a reference language and then a simple action/workflow for the translators with maybe a specialized UI for the translation processing, so i am not sure if your plugin can give me an assist at this point :/cheers, Andreas

comments: author: Ellen Feaheny [AppFusions]
body: The current one, you are correct does not. Please stay tuned.


author: Ellen Feaheny [AppFusions]
body: AppFusions has active efforts underway for ***Enterprise Translation for Confluence*** - for exactly the needs/use case you describe.

It's not a hobby project (instead, customer fueled) and 1.0 is targeted for release before Atlassian Summit.

It takes our [SpeakMyLanguage](https://plugins.atlassian.com/search?q=speakmylanguage)plugins to a whole new level, with persistence, editability, higher translation integrity, endless language support, workflow, and more..

Please contact me at [info@appfusions.com](mailto:info@appfusions.com) if interested and we will get you going in our early beta group.

Best,

Ellen
Confluence SQL Plugin problem
Asked by St?phane Genin:

Hi,

I try to use the Confluence SQL plugin.

I created this request :

```
{sql-query:datasource=JIRADS|output=wiki}select id, pkey, project, reporter, assignee, issuetype, summary from jiraissue where pkey='KPTPO-6892'{sql-query}



```

When the page is displayed, I get this error message :  
sql-query: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory \[Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory\]  
select id, pkey, project, reporter, assignee, issuetype, summary from jiraissue where pkey='KPTPO-6892'

Does someone knows where it can come from?

Thanks

St?phane

```
 
```


Answers:
author: Rodrigo Girardi Adami
body: ```
Hello St?phane,In a first moment it seems an error with a kind of class from the plugin, but this can be due to many reasons (even a wrong parameter inserted), so to confirm this I would suggest you to make a contact with the plugin provider that is the Bob Swift Software, LLC, you can contact him by the following:info@bobswiftsoftware.comSkype: bob.swift.mn Google+/hangout: bob.swift.mn at gmail.com AOL:bobswift1 Yahoo!: bob_swift_mn http://bobswiftsoftware.com/ Regards,
Rodrigo
```