youngmon/atlassian-qna huggingface dataset:
Confluence Cloud: "A space with key AI already exists"
Asked by Manuel Weinert:

A space import which has been exported from another confluence cloud account failed. And now when I retry the import, it fails with the message

"A space with key AI already exists."

I already tried the removespace.action tip which is not working with this issue (I used this tip some months ago and it was working back then).

<https://confluence.atlassian.com/confkb/after-a-failed-space-import-it-s-not-possible-to-re-import-because-of-leftover-space-data-217743668.html>

When calling removespace in the browser URL, the error "Page not found" occurs.


Answers:
author: Karstein Kvistad
body: Any solution to this? I have the exact same problem now.  
"[wiki/spaces/removespace.action?key=AI](https://xxxxxxx.atlassian.net/wiki/spaces/removespace.action?key=AI)" This is not working.  

comments: author: Matt Demler
body: It looks like they've renamed it to:  

/wiki/spaces/doremovespace.action?key=\<space_key\>  

You can also get to it via Confluence Settings \> Data Management \> Trashed Spaces and then select the space which you want to permanently remove.  

Both methods take you to the above URI and removed the space key from the index. You are free to use that space key once the above operation has completed


author: Rambabu Patina _Appfire_
body: Hi [@Manuel Weinert](/t5/user/viewprofilepage/user-id/1125376),

Can you make sure you have provided a valid base URL and space key as like:
> <https://xxxxxxx.atlassian.net/wiki/spaces/removespace.action?key=AI>

If it does not work, you can go for the database queries on [Confluence Cloud](https://confluence.atlassian.com/confkb/after-a-failed-space-import-it-s-not-possible-to-re-import-because-of-leftover-space-data-217743668.html?_ga=2.145003127.2110509730.1542614363-287965344.1539499103#) given in the **Resolution 2.**

Thanks,  
Ram.

comments: author: Manuel Weinert
body: Hi [@Rambabu Patina _Appfire_](/t5/user/viewprofilepage/user-id/1168698)

Thank you for your response,

Yes the URL is valid as I used this one before, but I wonder how to execute SQL statements in Confluence Cloud?

Regards

Manuel


author: Thorsten Wirkner
body: Hi [@Manuel Weinert](/t5/user/viewprofilepage/user-id/1125376) , was there any feedback about running SQL statements? We also use the cloud and apparently don't get a confluence space deleted ;-) Thanks best Thorsten


Tags: cloud

confluence-cloud

import

space
Change permissions in Confluence Server with rest-api
Asked by Patrik Ytterstr?m:

We need to add permissions on all spaces in our Confluence server and cant find any documentation about this. I see some old information about this but nothing that works with confluence 6+.  
Version: 6.7.2 Confluence Server


Answers:
author: Ollie Guan
body: Hi [@Patrik Ytterstr?m](/t5/user/viewprofilepage/user-id/1158726),

The following link is the help document for permissions in version 6.7

<https://confluence.atlassian.com/conf67/global-permissions-overview-945103387.html>

<https://confluence.atlassian.com/conf67/space-permissions-overview-945102467.html>

<https://confluence.atlassian.com/conf67/permissions-and-restrictions-945103270.html>

comments: author: Patrik Ytterstr?m
body: I should have been more detailed, I need to use the rest-api because its more than 500 spaces.
application link
Asked by Padmasree P:

I have linked Jira and confluence server with oauth, should user login and authenticate the link when the login for the first time as I see. user is requested to authenticate in confluence to see the Jira issue status in confluence page.  
please clarify


Answers:
author: Yoga Reddy {Appfire}
body: Hi [@Padmasree P](/t5/user/viewprofilepage/user-id/1845915)

What is the version of JIRA and Confluence? Have you selected OAuth impersonation when creating the application links? Let me know if you are getting Login and Approve message?

Please share the screenshot

comments: author: Padmasree P
body: Hi Yoganand,

Jira 7.10 and confluence 6.10 is linked with OAuth. I see the status connected in both Jira and confluence page. when I tried to set up application link,i got a notification to approve the application link and I approved it for access.

but when a new user logins in confluence for the first time, it is asking to authenticate to see the Jira status in confluence page. please help


Tags: confluence-server

server
No page opens for editing.
Asked by ??????? ?????????? ????????:

No page opens for editing.  
Tried on different PCs and different browsers. The loading wheel is constantly hanging after clicking on editing.  
The problem appeared after updating to the latest version (local installation).

?? ??????????? ?? ?????????????? ?? ???? ????????.  
????????? ?? ?????? ?? ? ?????? ????????. ????????? ????? ???????? ???????? ????? ??????? ?? ??????????????.  
???????? ????????? ????? ?????????? ????????? ?? ????????? ?????? (????????? ?????????).


Answers:
author: Rambabu Patina _Appfire_
body: Hi [@??????? ?????????? ????????](/t5/user/viewprofilepage/user-id/1804327),

Please go through the [Unable to edit any-pages due to collaborative editing](https://confluence.atlassian.com/confkb/unable-to-edit-any-pages-in-confluence-6-x-due-to-collaborative-editing-867362716.html) it may help you. It would be more helpful if you can post the errors what you are getting in logs and as well in the UI.

Thanks,  
Ram.


author: Christopher Jaksch
body: Hi [@??????? ?????????? ????????](/t5/user/viewprofilepage/user-id/1804327),

can you please check if Confluence **Collaborative Editing** is enabled and if so, disable it?  
<https://confluence.atlassian.com/doc/administering-collaborative-editing-858772086.html>

Best wishes  
Chris  
STAGIL


Tags: confluence-server

server
Query for blog posts with most likes ever
Asked by Jan:

There are several questions here that did not help me. I would like to find out what the most popular blog posts in our entire site are. This should be based on likes. So the output should be listing the blog posts with most likes no time limit. Additional output could be

- number of comments would be perfect   
- blog author  
- Space  
- blog id...

Would be great if anybody can help out here :)


Answers:
author: Shannon S
body: Hi Jan,

[The Popular tab](https://confluence.atlassian.com/doc/likes-and-popular-content-278695530.html) will show the most heavily liked and visited pages in Confluence.

For an actual database query, I would recommend [reviewing this thread](https://community.atlassian.com/t5/Confluence-questions/Where-does-Confluence-store-page-and-comment-likes/qaq-p/441101), which shows you where you can actually query the likes and obtain all the details you require via the database.

You may also want to consider writing a [User Macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html) if you need this content as a macro in Confluence.

Regards,

Shannon

comments: author: Jan
body: Hi Shannon, the Popular Tab is not really helpful in this case as it seems to refer to recent content only. In order to get the most popular blog post per month, year or even all times I cannot use this. I will check the other links you shared - thanks for this :)


Tags: confluence-server

server
Plan to upgrade confluence 6.2.4 to 6.6
Asked by jagan_kattaru:

Hi Team,

We have a plan to upgrade the confluence version 6.2.4 to 6.6.

so we would like to know below points,

1. Are there any dependency plugins or add-on ? how do i know what are dependencies of add-on or plugins.

2. what do we need to take care before start the upgrade to new version?

3. Do we need to upgrade Synchrony as well as part of confluence upgrade ? Are there any dependencies plugins or add-ons?

4. please let us know if we need to take care other than above three points ?


Answers:
author: Mirek
body: This upgrade (from 6.2.4 to 6.6) should be pretty straightforward however it is always good to do a test on a test instance. If you do not have it I recommend to create one. Overall for Confluence you follow that step by step guide

<https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

Plugins and addons is a separate thing to upgrade. Just check if all that you are using are compatible with new version before upgrading. Overall you would learn and see all potential problem when you decide to use that test system. Below guide might be helpful also..

<https://confluence.atlassian.com/doc/create-a-staging-environment-for-upgrading-confluence-866094180.html>


Tags: confluence-server

server
Plugin developing beginner - use content from other sides
Asked by Basti G_:

Hey,

i have read the tutorials for confluence developing from Atlassian.

Now i would like to start with a little bit heavier job.

I have a page with undersides in a specific confluence space. My plugin should find these pages with the names from space and sides and use the content from this for generating a text.

I can't find a tutorial that explain me how can i do this.

Can you help me?


Answers:
author: Basti G_
body: Thanks.

Existing a tutorial or something like this anywhere?

I dont have much experience with plugin developing and i dont know how can i begin now.

comments: author: Prakhar Srivastav {Appfire}
body: [@Basti G_](/t5/user/viewprofilepage/user-id/1609377)

Here is an example of SearchManager , to search for content in Confluence and then iterating and processing the result. In a similar way you can also use PageManager and SpaceManager classes by using dependency injection in construction. You might be using servlet or action classes.

<https://developer.atlassian.com/server/confluence/searching-using-the-v2-search-api/>

Regards

Prakhar


author: Basti G_
body: Thanks, i try this.

Another question:

I want to use a soy template where the user can check checkboxes to add text from search. How can i check if a checkbox checked? I try this but isn't works.


author: Prakhar Srivastav {Appfire}
body: [@Basti G_](/t5/user/viewprofilepage/user-id/1609377)

You can use pageManager to get the page to play around the content of Confluence.

<https://docs.atlassian.com/atlassian-confluence/6.2.0/index.html?com/atlassian/confluence/pages/PageManager.html>

Regards

Prakhar


Tags: confluence-app

confluence-development

confluence-server

development

server
Atlassian Companion security issues
Asked by Robert007:

Our security team has checked the new tool "Atlassian Companion" before they will be roll out the new tool to all our PCs. Before release of the tool they have some questions about technical details:

* How can the tool "Atlassian Companion" prohibit the communication with others software products except Confluence in the browser ?? It must not happen that other products can read the confluence data.
* Our security team told me, that the "Atlassian Companion" App is a Web-Server (or something like that) which communicate with the "https" protocol. So our team want to know, which certificate is used by the tool ?? Or is used a "private key" for checking the requests ?

Here are some information about our infrastructure:

OS Server: Debian 8  
Confluence Server version: 6.11.0  
Atlassian Companion: 0.5.3  
OS client: Windows 10

I hope, you can answer my questions.

Kindly regards

Robert


Answers:
author: Will Masters
body: Hi Robert,

The Companion App connects to your Confluence instance through your browser using a secure WebSocket connection. It also is necessary to make a "trusted" link with your instance for it to be able to communicate. For this to occur the Companion app must also be able to connect to your localhost address, if this is blocked for any reason on your machine Confluence will not recognise the presence of the Companion app.

Once the secure WebSocket connection to the web browser is established and you have "trusted" the Companion app to connect to your server instance the app requests the file via the existing Confluence rest api interface and this local file is opened with the application you wish to use. Only the Companion app has the ability to do this.

You can read some more about the details in the following KB:

[Administering the Atlassian Companion App](https://confluence.atlassian.com/doc/administering-the-atlassian-companion-app-958456281.html)

Kind regards,

Will.


Tags: confluence-server

server
confluence external links
Asked by Padmasree P:

1.I see a table extrnlnks in my confluence db. what data is stored in this table.

2.can we update the links in this table directly in db if there is a change in hostname of any links

please help


Answers:
author: Shannon S
body: Hi there,

The EXTRNLNKS table is referral links according to the [Confluence Data Model](https://confluence.atlassian.com/doc/confluence-data-model-127369837.html).

Have a look at [Trackback and External Referrers](https://confluence.atlassian.com/doc/trackback-and-external-referrers-147487.html) for more details.

If you're having to correct links you have embedded in your body content, you could do so using this method:

* [Some attachments or links are no longer accessible after server migration](https://confluence.atlassian.com/confkb/some-attachments-or-links-are-no-longer-accessible-after-server-migration-214862724.html)

If that's not your issue, can you let us know exactly what happened and what you need to fix?

Regards,

Shannon


Tags: confluence-server

server
create simple/nice FAQ with Confluence cloud ?
Asked by mark ee:

Hi,

I want to create a nice FAQ web portal for anonymous customers (based on pages/articles from Confluence cloud), but struggle to find how-to it.

I can allow users to access/read -only some confluence pages, but the look'n'feel is way too busy (with the left-side menu etc ..). Is there a way / add-on (similar to Viewport for Confluence server ??) to simply publish nice read-only web pages from confluence sources ?

I found a way with Jira service desk (customer can read rather nice KB pages, coming from Confluence), but I can't disable the "service request/tickets" to have a simple FAQ portal without any request/ticket capabilities.

Thanks for your help

.C


Answers:
author: Stephen Sifers
body: Hello Mark and welcome to the Community,

Setting up Confluence to be an external facing knowledge base is an excellent use of the tool. Some of the steps you need to take to allow for anonymous access are [Setting Up Public Access on Confluence Cloud](https://confluence.atlassian.com/confcloud/setting-up-public-access-934718729.html). This documentation will cover enabling anonymous access:

**Enable anonymous access** If you want to make your site visible to everyone, including people who haven't logged in, you must enable anonymous access at the site level.

To enable anonymous access:

1. Select **Settings** in the Confluence sidebar
2. Choose **Global Permissions** in the left-hand panel
3. Click **Edit Permissions**
4. In the **Anonymous Access** section, check the box under **Use Confluence**
5. Click **Save all**

Once you have anonymous access enabled you can then allow those users to start accessing spaces by adjusting permissions. This is covered in, [How to give non Confluence users access to a Space](https://confluence.atlassian.com/confkb/how-to-give-non-confluence-users-access-to-a-space-779166002.html).

As far as adjusting the look and feel of the Confluence interface, there are multiple add-ons available in the marketplace to change the theme of Confluence. You can find more here at [Marketplace Theme search](https://marketplace.atlassian.com/search?query=theme).

This should give you a good start to find what is going to fit your needs best.

Regards,  
Stephen Sifers


Tags: cloud

confluence-cloud
New pages by alphabetical order
Asked by Robert Fontaine:

Hello,  

I want to classify my new pages by alphabetical order but it seems like they are in order of creation, the latest at the top down of the page.  

How to re-organise it?  

Thank you!


Answers:
author: Fabienne Gerhard
body: Hi [@Robert Fontaine](/t5/user/viewprofilepage/user-id/2308125) - welcome to this wonderful community.

Did you try to order them alphabetically? -\> see [documentation here](https://confluence.atlassian.com/doc/move-and-reorder-pages-146407727.html)

To move or reorder a page:

1. Go to the space and choose Space tools \> Reorder pages from the bottom of the sidebar
2. Expand the branches to locate the page you want to move.
3. Drag the page to a new position in the tree.

Alternatively, you can choose to order a group of child pages alphabetically by choosing the Sort Alphabetically (A-Z) icon. The Sort Alphabetically (A-Z) icon only appears next to the parent page if the page family is currently sorted manually.

![Page-tree-sort](https://community.atlassian.com/t5/image/serverpage/image-id/37953iD81D89BB08796DE6/image-dimensions/412x206?v=v2 "Page-tree-sort")

1. Alphabetical: sort all child pages alphabetically.
2. Undo: undo sorting.

comments: author: Robert Fontaine
body: Excellent thanks a lot Fabienne :-)
Connecting Confluence to Jira applications for User Management
Asked by Arbit Support:

I am attempting to connect Confluence to Jira for user management.

I have, however, hit a snag.

When I am about to set up the Jira user directory in Confluence:

Under the**cog icon ![](https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png)** and **General Configuration**

There is no menu item called '**User Directories**' in the left-hand panel.

What to do ?

I am following this [documentation](https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html)


Answers:
author: Grigory Salnikov
body: Hi!

It looks like your account lacks the "System Administrator" [global permission](https://confluence.atlassian.com/confkb/confluence-admin-permission-levels-explained-604209420.html).

You can check it here: **Users and Security** \> **Global Permissions**


Tags: confluence-server

server
Grant access to child page
Asked by ???? ??????????:

Hi!

How can i grant access to slave page when parent page restricted for user or group?

example group (ext-dev)

example structure of pages

- parent page (forbidden for ext-dev)

- child page 1 (forbidden for ext-dev)

- child page 2 (access granted for ext-dev)

is it possible or not without any extra plugins?


Answers:
author: Tobias Anstett _K15t_
body: Hi,

In Confluence you have to differentiate between "view" and "edit" restrictions on pages.

While "view" restrictions are inherited, "edit" restriction are not and only apply to the page you set them.

I assume that you talk about "view" restrictions.... there is no way to grant view access to child pages if you do not have access to its parent page.

Also you want be able to solve this with an app (if it does not work around all the permission checks in place and replaces the page tree itself).

The only workaround is to rethink your page tree structure :(

Best, Tobias


Tags: confluence-server

server
best way for add-on to update content restrictions
Asked by Jason Wright:

I have an add-on (ACE, 3.2.0) which occasionally needs to update content restrictions to restrict page edits to certain users.

I can \`PUT /wiki/rest/api/content/{id}/restriction\` without issue, but get this issue if the restriction excludes the add-on user:
> Provided ContentRestrictions evicts current user (you) from: \[update\]. Must include yourself in "user" sections for READ and/or UPDATE when restricting those operations. Must not provide restrictions which when applied result in current situation.

In the past, to get around this, I would simply make sure that I included the add-on user in all content restriction API calls. I would get the add-on user key by \`GET /rest/api/user?username={addon_username}\`.

However, I understand that passing \`username\` as a parameter is deprecated and will be removed as part of the GDPR update. So is there a better solution that I should be using to have my add-on update content restrictions? Or is there a way for my add-on to look up its own \`accountId\`? (\`GET /rest/api/user/current\` does not work in this context)

I *do* want to ensure that the add-on does not evict itself from the update, as this would break other add-on functionality.


Answers:
author: Jacques Malette
body: Any progress here? I have the same issue and need to update a few hundred pages.


author: Jose Mateo Carrasco
body: Hi Jason, can you solve this ?


Tags: api

app

atl-adm

atl-dev

cloud

confluence-cloud

connect

gdpr

rest-api

restriction

user
Automatically fill in Component field when creating Jira issue from Confluence
Asked by Sergey Bukhman:

I'm using the Select-text add to Jira tool in confluence to quickly turn a table in Requirements into Jira stories. My problem is that there are only two auto mapped fields - Summary and Description.

I would like to map the Component field to a table column as well. Right now it only lets me select the same components for all of the stories in the table, and sometimes that's not good enough.

![confluence jira.png](/t5/image/serverpage/image-id/37893i74DD73419045904B/image-size/large?v=v2&px=999 "confluence jira.png")

As you can see in the screenshot, it lets you pick a Component but not map it to a table column.

Is there a way to do this? Or an add-on maybe?


Answers:
author: Stephen Sifers
body: Hello Sergey,

Creating Jira issues from Confluence can be a huge time saver. When you have a mass update that creates all of the issues with the incorrect component then some of that saved time is wasted on updating all of those issues manually. This is very unfortunate and can be a hassle to deal with. We did find a feature request with similar functionality. We would suggest you vote and watch this feature request so you may get updates. The feature request is [CONFCLOUD-31867](https://jira.atlassian.com/browse/CONFCLOUD-31867).

Within the [Atlassian Marketplace](https://marketplace.atlassian.com/search?product=confluence&query=issue%20create) there are multiple solutions that may fit your requirements as well. We would also suggest reviewing this and see if there is a viable solution for you there.

I hope you find this helpful.

Regards,  
Stephen Sifers


Tags: cloud

confluence-cloud

jira

jira-cloud
How to define json in code macro
Asked by Moran Hazan:

We are using jira cloud and I am trying to add json as one of the languages to use in code macro of confluence.

I have tried several guides but none of them are helping. is it even possible? if so does anyone have a link or an explanation?

is ad-on the only answer, or is it just configuration I am missing?


Answers:
author: Shannon S
body: Hi Moran,

It's not possible to add JSON, but we do have a feature request for it in the future:

* [CONFCLOUD-40070](https://jira.atlassian.com/browse/CONFCLOUD-40070)

Please vote on that and comment there with your usage case.

For the time being, if you require JSON formatting, then you will want to consider one of the [Marketplace add-ons](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=code%20macro).

Regards,

Shannon


Tags: confluence-cloud

json
Unable to start confluence 5.7.1
Asked by Iram Mehmooda:

Hello,

I am using JDK 1.8, PostgreSQL 8.4.x and confluence 5.7.1. I configured server and tried running it on web browser at "http://localhost:8090/confluence/". However, it says "localhost refused to connect".

Please let mek now if there is anything that could help me in setting up confluence.


Answers:
author: Nic Brough -Adaptavist-
body: That usually means that the service is not running. Can you check that it is?

comments: author: Iram Mehmooda
body: Yeah, service was not running. Now, when the service is running is fine, I have another exception i.e. "Illegal state exception" because spring context has not been set. How do I deal with it?


Tags: confluence-server

server