youngmon/atlassian-qna huggingface dataset:
Importing content from another wiki into Confluence OnDemand
Asked by Pascal:

Atlassian offers the Universal Wiki Converter for importing content from another (non-Confluence) wiki, but it cannot be used in Confluence OnDemand, which we have. What are my options for importing data like this into Confluence OnDemand?


Answers:
author: Pedro Cora
body: Hi there!

Check out this documentation: <https://confluence.atlassian.com/display/AOD/Importing+wiki+data>

Cheers,

Pedro

comments: author: Pascal
body: Thanks for your quick answer, Pedro, but I need to import from a non-Confluence wiki; I've added this clarification to my question. The page you refer to only describes transferring data from one Confluence instance to another.


Tags: cloud

confluence-cloud

import
How to get the Current URL in the velocity file
Asked by UdayK:

Hi

I'm using a macro where i need to have Current URL.

How to get hte current URL in the velocity file. It would be good if get it with out usign javacript/jquery.


Answers:
author: UdayK
body: Using $req.getRequetURI will provide the current URL with out any query String parameters.

If we need query String parameters too, we have to use $req.getQueryString() method to written the query string too.

So using $req.getRequestURI and $req.getQueryString() will give us the current URL.

Alternatively,We can also get the current URL using the javascript methods.

comments: author: Mamikon Papikyan
body: Hi [@UdayK](/t5/user/viewprofilepage/user-id/502436) I can't get URI in .vm file. How can i include or define class for $req?
Change site space to personal space
Asked by Robin Schoenmakers:

Hey,

I created a site space but I want to change it to an personal space.

How can I do that?

Gr

Robin  
[](https://community.atlassian.com/t5/Confluence-questions/Change-site-space-to-personal-space/qaq-p/209720?attachment-id=7545){#link_118bd70f657755}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/35409/1/image2016-3-23%2010%3A49%3A36.png){#display_118bd70f657755_0}


Answers:
author: Maya S Chase
body: It's under Space Admin \> Space Details, second option on the page.

comments: author: hote
body: how about the opposite? I mean how to change a personal space to a site space?


author: Size Zhou
body: Hi ,

I'm afraid "2nd option" is not clear . The red one or the green one ?

I tested both , but can't find the option.

Can you take a screenshot , pls.

image2016-3-23 10:49:36.png


author: David Willson
body: +1

I'm looking for a simple answer to this use case too. The op is right. While the answer given does address the question it is ambiguous and it's soln can not be implemented because of the ambiguity.

Can someone please articulate, in detail, how to convert a space from site space to personal space and back again? Please include a screenshot or two.

Also, this question is from around 6 years ago now.. I'm sure Confluence has changed in many ways since then. Could an up to date, relevant, clear answer to this question be given please?

Thank so much in advance for any *direction*.

comments: author: David Willson
body: looks like this was removed - <https://community.atlassian.com/t5/Confluence-questions/site-space-to-personal-space/qaq-p/1320277>

Also looks like you can do DB changes to fix it - <https://confluence.atlassian.com/confkb/how-to-convert-a-global-space-to-a-personal-space-type-in-confluence-747832091.html>

I havn't dont it myself, if I was to try it I would test it in our test environment first.


Tags: confluence-cloud

cloud

configuration

space
Is there any restriction to view comments for specific groups.
Asked by Mohan Kiran:

I have two groups X and Y. Jira user logged in and post the issue to x group and concrened person of that X group will communicate to Y group by giving comments. Those X and Y group communication i has to restrict to the normal Jira user. Is it possible then how. Can you help me out in this...:)


Answers:
author: John Chin
body: Hi Mohan,

Are you looking for this feature in this [doc](https://confluence.atlassian.com/display/JIRA/Commenting+on+an+Issue) here.

Regards,

John chin


Tags: cloud

confluence-cloud
Need to create a Planning Board based on selected Component(s)
Asked by Roger Spurzem:

We need a Planning Board based on selected Components. I realize this board cannot be a "Classic" board so we will need to start by creating a filter based on selected Components. I did this but when I tried to select the Plan mode I got a message saying this was not currently possible with Kanban, Is there another way?

It appears that the non-classic boards are not as robust as the classic boards, or am I missing something here?

Thanks for considering my question.  

<br />


Answers:
author: John Chin
body: Hi Roger,

There is no feature to add/view based on components in Greenhopper 6 Rapid Board yet. Currently, you can only add Version and Epics in Sprint.

For more information, please see the link below:

https://confluence.atlassian.com/display/GH/Switching+to+GreenHopper+6+FAQ#SwitchingtoGreenHopper6FAQ-WhatcanIdoinClassicthatIcan'tdoinTheNewGreenHopper?

Hope it helps.

Regards,

John Chin


Tags: planning-board
how to supress the child page listing
Asked by Ken Trough:

I see on this page:

<https://confluence.atlassian.com/display/CONF50/Confluence+User%27s+Guide>

a link at the bottom that says **10 Child Pages**

On my pages however, the child pages are listed individually, not compacted under a convenient link like this. How can I set my pages up the same way? I don't like the child pages being listed individually by default. I much prefer this summary view.


Answers:
author: twong_atlassian
body: The view remembers the state of last expansion. If you click on the child pages link, it collapses the view. If you reload the page, it "remembers" that you collapsed it.

If you expand it, then reload the page, then it will still be expanded.

comments: author: Ken Trough
body: Is there a way to set default behavior across a space? I'd love to set this as collapsed by default globally for all users.
Can you mask data under a switch?
Asked by Ken Trough:

I'd like to display a phone number on a page, but I want the characters masked under a switch.

In other words, I want to display a phone number like this:

(\*\*\*) \*\*\*-\*\*\*\* with a checkbox next to it that, when checked, reveals the actual number like this:

(360) 555-1212

No security issues. Just want to mask certain text by default requiring an extra click to reveal.


Answers:
author: GuilhermeA
body: Hey Ken,

I could not mask as you would like, but would not be too difficult, just need to adapt my User Macro.

You'll need to create a custom macro with the following settings (the required ones):

1. Name
2. Title
3. Rendered
4. And the Code

   ```
   ## @param Name:title=Link|type=string|required=true|desc=Link to Click&lt;script language="javascript"&gt; function toggle() {	var ele = document.getElementById("toggleText");	var text = document.getElementById("displayText");	if(ele.style.display == "block") {    		ele.style.display = "none";		text.innerHTML = "$paramName";  	}	else {		ele.style.display = "block";		text.innerHTML = "hide";	}} &lt;/script&gt; &lt;a id="displayText" href="javascript:toggle();"&gt;$paramName&lt;/a&gt;&lt;div id="toggleText" style="display: none"&gt;&lt;h1&gt;$body&lt;/h1&gt;&lt;/div&gt;
   ```

Please modify it to your needs, the usage would be, type {hide and select it from the drop-down. Then fill the link you'd like for people to click, could be "Click Me" or "Click to show my Number", and save. Then Place the number or text inside the block of code. And its done.

Hope this helps you, Cheers,


author: Andrey Markelov
body: <https://marketplace.atlassian.com/plugins/ru.andreymarkelov.atlas.plugins.hidemacros>
can you save data from html macro?
Asked by ticoulat:

I have created a html macro. I can put html code inside a box and then I can see the result but I want to save data into variables confluence because when I click on save and create a new template and put my data into html macro then those data doesn't save.


Answers:
author: GuilhermeA
body: Hello Martin,

I believe you could try to use Active Objects to store your data into it. You could either use the Custom Macro you've created or try developing a plugin with our SDK:

* <https://developer.atlassian.com/display/DOCS/Installing+Active+Objects>
* <https://developer.atlassian.com/display/DOCS/Getting+Started>

Hope it helps, Cheers,


Tags: macro
Unable to udate/add to dashboard
Asked by Michelle Larson:

I have a user who was part of a group and he had created a dashboard and shared it out to the group. After he was removed from the group (he was still showing as ower on of the dashboard) he was not longer able to edit or add gadgets to the dashboard.

He is still a member of a group that has access to the project that the dashboards are used in as well.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: An admin can change the ownership of the dashboard. And then the new owner can update/add to it.

<https://confluence.atlassian.com/display/JIRA/Managing+Shared+Dashboards>

comments: author: Michelle Larson
body: There is no new owner it is the person who created it and shared it out who is still the owner and who wanted to add to it however the system is not letting him


author: Jobin Kuruvilla [Adaptavist]
body: As long as he is the owner, and he has the "**Create Shared Objects**" global permission, he should be able to do it. See if he lost the permission when he was removed from the groups.


author: Michelle Larson
body: He is in the jira-user group and it is set to have create shared objects in global permissions


author: Michelle Larson
body: I tried to change the ownership to me then back to him and it says he does not have the ability to share objects with one of the groups it has been shared out to. Do you have to be a member of a group to share it to them?


Tags: dashboard
Link URL points to old location after import
Asked by Wipf_Markus:

We are importing a lot of HTML pages from an old location into Confluence (version 4.3.5.). It works fine. Even images are migrated with this way. Just now I realized that the images are still linked to the old location. But this location we are going to stop. Is there a way to import all images into Confluence and change the URLs automatically or do we have to do it manually?


Answers:
author: Wipf_Markus
body: Just to change the URL isn't feasible I suppose. We're going to shut down the old location because Confluence will be the new one. In the meantime I think it's the best way to insert all images manually. A lot of work but we will handle it. Thanks for your answers.


author: GuilhermeA
body: I believe the import would need to be done with some kind of API, or automatic script. And the change for URLs, its a bit easier you could use this SQL Query to change from one url to another:

```
select * from bodycontent where body like '%www.yoururl.com%';
```

And then replace it with the desired one:

```
update bodycontent set body = replace(body,'confluence.atlassian.com','www.newurl.com');
```

So you'll need to do it manually, unfortunately there is no automation, but you can give it a try with the above queries.

Hope it helps, Cheers,

comments: author: Daniel Borcherding
body: This is a great idea, but a "napalm the field" sort of option. It may end up replacing links that you don't want replaced. How are you creating these links inside of your Comfluence? If you are exporting your space to an XML export relative page linking should be preserved. If you are absolutley linking to pages within your instnace you will need an approach like this. Please make sure you have a reliable backup of your database before attempting this mitigation.
How to return to the original square space logo instead of the circular one
Asked by Ramiro Pointis:

I discovered that many people is complaining about the same thing. Luckly, I found the answer for this issue. I'll post it in case someone needs it.

Cheers!


Answers:
author: Ramiro Pointis
body: There's an issue with information about how to do that. It says why atlassian changed that and how you can go to the original logo type using css.

Check out here: <https://jira.atlassian.com/browse/CONF-28275>

This is the answer description:

##### Changing your logos to squares with CSS {#toc-hId-1060857847}

If you *really* dislike the round logos, and just want them to be square, you can do this with a custom sytlesheet (Confluence Admin \> Stylesheet), The CSS snippets to use are below. Note that global custom stylesheets only apply to the globally set theme. If for example you have the default theme set globally, but a few spaces use the doc theme, you'll need to apply the CSS for the Doc theme and the project dialog again in the Space Stylesheet (Browser\>Space Admin\>Stylesheet). You won't need to customise at the space level for spaces using the global default.  

```
/* Default sidebar */.acs-side-bar-space-info .avatar-img-container .avatar-img-wrapper,#image-holder .small-logo-container .small-logo-wrapper {border-radius:0;}/* Space directory, Dashboard space list */.global.logo, .space.logo {border-radius:0;}/* Doc Theme header */.theme-documentation .space-logo .logo {border-radius:0;}/* Project dialog */.project-dialog-header-wrapper .project-header img {border-radius:0;}
```

```
?
```

```
Hope this helps!
```

comments: author: Christopher Lohman
body: Very helpful. Thanks!


author: Aigars Polis
body: Thanks!

I hate what they did in new confluence version finally I can get back normal company logo instead of automatic rounding.


Tags: logo

space
Finding Confluence attachments on file system
Asked by Paul Plunkett:

Is there an easy way to find which file(s) in the attachments directory on the file system are associated with an attachment on a page in Confluence?


Answers:
author: GuilhermeA
body: Yes there is Paul,

If you have access to the database use this, and change ATTACHMENTNAME to your actual attachmentname:

```
select attachmentid from attachments where TITLE like '%ATTACHMENTNAME%';
```

And with this you have the ID, just search for this ID in \<confluence-home\>/attachments/ and there should be a folder with this number (attachmentid) with a file without extention inside it, rename it and it is your file.

Cheers,

Guilherme


author: twong_atlassian
body: Official documentation:

<https://confluence.atlassian.com/display/DOC/Hierarchical+File+System+Attachment+Storage>
Searching for labels with hyphens in them
Asked by Steve Loft:

I have labels of the form word1-word2-word3 on my pages, and I want to search for them.

Using labelText:word1\* as a search term finds those starting with word1, but labelText:word1\\-\* (escaping the hyphen) finds nothing.

I would like to do a search for labels starting with word1 and ending with word3, but labelText word1\*word3 finds nothing. This works OK for labels without hyphens in them.

This is in Confluence 5. Any suggestions, please?


Answers:
author: Steve Loft
body: I realised this affects searches in general and not just labels. It seems this has been broken for a very long time: <https://jira.atlassian.com/browse/CONF-3036>
Showing labels in Confluence
Asked by Rumceisz:

Hi All,

in our Confluence the labels are heavily used by the developers. But in the other side we would like to have a list of all labels of all spaces in one view.

How is it possible to achieve? Is there a plugin for that?

Thanks for your advise!

Rumi


Answers:
author: GuilhermeA
body: Hello Rumi,

I believe yet not. As Labels are directly related to Content into a Space, it has to appear inside one Specific Space, which then limits the action to a single Space. Thus why the Bug Report.

However you could try to create a JSP, which would then gather the all Spaces Labels.

There are some vm files which could help you on that that are located in:

* \<confluence-install\>/confluence/labels/

Hope this helps,

Cheers,

Guilherme


author: Thomas Schlegel
body: Hi Rumi,

there's an old issue for that: <https://jira.atlassian.com/browse/CONF-21299>

But unfortunately no solution, maybe someone knows a workaround.

Cheers

Thomas


Tags: label
Problem while attaching same file with a label in confluence page
Asked by Mani1:

![](../../../upfiles/Label.JPG)

Hi,

I have an attachment in a page with a label ("test") and everytime I upload my attachement , it will incase the label (test , test) and for example, I have have to uploded 5 times the same file after doing some changes ... it shows me five times the label (test test test test , etc.)

I just wonder that this is some bug or I am doing somthing wrong.

I am currently using confluence v. 4.2.7

In the attached image you can see the label is increasing, everytime I upload the file (e.g. 3 times uploading the same file bring 3 times label) why?

Thanks

BR

Usman


Answers:
author: RianA
body: Might be related to [this bug](https://jira.atlassian.com/browse/CONF-26588). But looks like it's fixed in Confluence 4.3.
can we configure playsql plugin with run plugin in confluence 4.3.7
Asked by swaraj jaiswal:

hey i am using cofluence 4.3.7 ,nd i have created a submission form using run plugin ,i wany to know that whtr is it possible to intregate play sql plugin with it..so that i can store data??????

thanx in advance

:)


Answers:
author: Theinvisibleman
body: Hi Swaraj,

I think for this query, you might want to contact the vendor of the playsql plugin : playsql@gmail.com.

You might also want to ask this at the issue tracker for the run plugin, which you can find [here](https://bobswift.atlassian.net/browse/RUN).

Cheers,

Joe
How do I forbid to print only one page?
Asked by Irene Daminelli:

Hi,

I need to restrict the permission to print only one page within a space. Is it possible?

Because I noticed I can restrict the permission only to view or edit a single page.

How can I do?  

Thanks

Irene


Answers:
author: Thomas Schlegel
body: Hi Irene,

since printing a page is a browser functionality, I doubt that this is possible.

Cheers

Thomas

comments: author: Nic Brough -Adaptavist-
body: Same here - you can forbid someone from seeing an entire page (or tree of pages), but if they can see a page, they can save a copy, print it, and all the other functions you can do with a downloaded file (because that's what it is)


author: BernardoA
body: Even if Atlassian creates a function to restrict the permission to print soch page, I think the user will be able to print the page through the web browse.
Best way to handle repetitive, formatted blocks of same text?
Asked by David Sidwell:

Hi Sarah and everyone else.

Kicking some nice (6 point) goals with Confluence :-)

If we want to have the same **formatted** text over and over again, what would be the best way? I started teaching myself macros, but the user permissions needed made our sys admins shudder. But I've got temp access.

Anyway, picture a Tip macro with everything pre-filled in and the user should have nothing to select, except the Macro from the list. And then it shows the nice green box with the fixed text "You should back up this file before editing, then restart the server after you have..." etc.

**update**: should add, I've dived into Storage Formats already so am comfortable with that level of answer.


Answers:
author: Milo Test
body: You could make a page of just the tip, then use the Include Page macro everywhere you want to add that tip. The added advantage is that like the macro, you can modify the Tip page and all the pages that use it will be automatically updated, and you don't need special privileges to do the page-\>Include Page method.


author: David Sidwell
body: Hi all. Thanks for the answers. I ended up creating a User Macro (as a test) that invoked the existing Tip Macro, with some values pre-filled in. It works, but needs fine tuning (see notes at end)

```
## @noparams  &lt;ac:macro ac:name="tip"&gt;&lt;ac:rich-text-body&gt;&lt;p&gt;You should take a back up copy of this file before editing it&lt;/p&gt;&lt;/ac:rich-text-body&gt;&lt;/ac:macro&gt;
```

***Notes***

It's not exactly complex, but it works as proof of concept. Gave it a Name and Title, plus **Category = Confluence Content** and**Macro Body Processing = Rendered**

User sees text "You should take..." in the Preview (when adding the Macro to the Page) but NOT after the Macro added to the Page. Again, I'm sure some tinkering could get around this.

Anyway might help someone else.


author: RianA
body: I guess you would find [Page template](https://confluence.atlassian.com/display/DOC/Creating+a+Page+using+a+Template) in handy if you use same format over and over again. You could even put some macro in there.


author: BernardoA
body: Hello,

Actually, since version 4.0 is quite simple to have and use the same formatted text, so basically is necessary jut copy and paste the text and you'll have the same foramtted text, because in current versions the application copies as invisible markup so that's the reason you can simply copy the formatted text just doing Ctrl+c and Ctrl+V to another page.

Please try this and feel free to ask!
Create space Template
Asked by Robin Vessey:

I can add space template for individual pages and I can add global templates for a page.

Currently you can have personal space and normal spaces.

What I want to do is pick a "type of space" when I say "Create Space".

The reason being I want a specific "New Project" space which has a seperate config.


Answers:
author: Theinvisibleman
body: Hi Robin,

Currently, it's not possible to have space templates. However, I found this feature request that talks about this : <https://jira.atlassian.com/browse/CONF-4538>

For now, I would recommend that you do the following on the feature request ticket :

\* Vote, so that it will receive more attention

\* Watch it, so that you will receive any and all updates

\* Comment, and give your opinion on the matter

Please note that the implementation of new features and improvement requests falls under [Atlassian's Implementation of New Features Policy](https://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy).

Cheers,

Joe


author: EPS Software Engineering AG
body: Hi Robin,

With our Add-On Space Tree Creator you can do exactly, what you looking for. We created this Add-on based on our needs and that's creating "New Project" spaces. And the best is: Your users have only to press a button, filling out a form and the space is created and ready to start working on the project.

**[Marketplace link: Space Tree Creator](https://marketplace.atlassian.com/plugins/eps.focuspro.SpaceTreeCreator/server/overview)**

Regards,  
Stephan


Tags: cloud

confluence-cloud