youngmon/atlassian-qna huggingface dataset:
How to grant access for one Confluence space to a single user?
Asked by Iliana O'Donnell:

How can I grant access to our Confluence space for a new staff member?


Answers:
author: Shankar Asam {Appfire}
body: Hi,

I hope the KB article below will help you achieve the requirement.

<https://confluence.atlassian.com/confkb/how-to-grant-access-to-one-space-only-to-a-user-in-confluence-815244321.html>

Thanks
Export from on-prem to import into Cloud giving errors
Asked by scott buratt:

We need to export from our on-prem instance to a Cloud instance.

When trying to import, we see the space key is \*EN\* which already exists in the Cloud instance for a different space so it's creating a conflict

Please advise and thanks in advance.


Answers:
author: Brant Schroeder
body: You will need to change the space key of the on prem space. This can be done by following the instructions here: <https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html>

comments: author: scott buratt
body: Pretty inexcusable that there isn't a simple or a supported way to solve this issue. Exporting/Importing between environments should be easy (and supported).

We'll just manually copy pages over as this is the lowest risk model, just tedious
Migrate Confluence evaluation server to production
Asked by J Copeland:

According to this KB article I need to migrate from the evaluation DB to an external DB when I'm ready to move from Eval to Prod. <https://confluence.atlassian.com/conf69/from-confluence-evaluation-through-to-production-installation-950285784.html>

I'm at this stage now but can the system be upgraded in-place on the same server or must the 'Production' version be setup on an entirely separate server?

I'd prefer to keep everything on the same server.


Answers:
author: Sid
body: Hi [@J Copeland](/t5/user/viewprofilepage/user-id/1539154) ,

Best practice would have a separate install for production and keep the evaluation for your testing purposes in future.


Tags: confluence-server

server
How do you build a 'button' on a knowledge base space page that links to a specific label
Asked by Becky Briggs:

for example - if i wanted to create a button named 'rabbit' and when i click on that button i want it to pull all uploaded content that has an attached label of 'rabbit' and present in a search like result


Answers:
author: Max Foerster - K15t
body: Hi [@Becky Briggs](/t5/user/viewprofilepage/user-id/2818267)

for creating nice buttons with hyperlinks I normally use a third-party app called Content Formatting for Confluence within Confluence. In terms of the search, you could try and link to an advanced search in Confluence configured with your parameters. If you try it yourself and click together a global search (across all spaces) on attachments with the label "rabbit" it could look like this:

```
https://www.yourconfluence.net/confluence/dosearchsite.action?cql=type+%3D+%22attachment%22+and+label+%3D+%22rabbit%22
```

if you don't want to narrow it down to attachments and would like to have the labelled content view, try this:

```
https://www.yourconfluence.net/confluence/label/rabbit
```

I hope this helps :)

Best, Max

comments: author: Becky Briggs
body: Thank you i'm going to try this.
Confluence search API is returning fewer items than requested
Asked by Brian Levine:

Running Confluence 6.9.1

I am issuing the following REST request:

```
/rest/api/search?expand=content.history&cql=text~"widget" and type IN (page, blogpost, comment, attachment)&start=0&limit=1000&excerpt=indexed"


```

The actual number of matching documents is 107 and this is what is returned in the totalSize property of the response.

However, I actually receive only 53 items in this case, where items is the number of 'content' nodes in the result which also equals the value of the 'size' property of the result. I would have expected to get 107. In fact, no matter what I set limit to, I don't get that number of items returned. If I set limit=10, I get back 4 items. If I set no limit (which defaults to 25), I get back 11 items. Start is always set to 0 in these tests.

Can anyone tell me what I'm doing wrong?


Answers:
author: Alex Medved _ConfiForms_
body: As far as I know the search API relies of Confluence search index and if this goes out of sync then the call starts to return incorrect data

Try rebuilding your Confluence search index: [Content Index Administration](https://confluence.atlassian.com/doc/content-index-administration-148844.html "Content Index Administration")

comments: author: Brian Levine
body: That appears to have been the problem. Thank you [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) ! I was running against one of our Confluence test instances. So although I'm not quite sure why search index was out of sync, I'm not surprised. After I rebuilt the index, I got the expected search results.


author: Marty
body: Hi Brian,

I am not on the Confluence Team, but I will try to help.

I suspect that you need to encode some of that string to be url-safe.

eg.

```
/rest/api/search?expand=content.history&cql=text~%22widget%22%20and%20type%20IN%20%28page%2C%20blogpost%2C%20comment%2C%20attachment%29&start=0&limit=1000&excerpt=indexed"
```

I hope that helps!

comments: author: Brian Levine
body: Thanks, but I don't think this is the problem. The request URL is actually URL-encoded in some downstream code. I showed the un-encoded URL for better readability. I added some debug output to confirm that the URL is encoded before I make the request.


Tags: rest

search
in Confluence Cloud enable likes but not comments?
Asked by Tom Fahey:

Is it possible to enable the Likes feature but disable Comments?


Answers:
author: Jay Karmarkar
body: Hi Tom,

I understand you'd like to disable comments in specific pages, however, the feature to disable comments on specific pages is already requested and rejected:

\* \[CONF-7742 - Allow comments to be disabled on a page or blog post\|<https://jira.atlassian.com/browse/CONF-7742>\].

But you can still still disable space wide comments in you want to do that. Navigate to your Space Permission and disable **Add Comment** permission to certain user or group.


Tags: confluence-cloud
Delete space failed
Asked by Nick Riley:

![image.png](/t5/image/serverpage/image-id/47763iA0FE447852B02A2D/image-size/large?v=v2&px=999 "image.png")"

I am trying to delete a space that is no longer used but getting a "delete space failed" message from\<mysite\>/wiki/spaces/doremovespace.action?key=xx.

Considering the space has no content, it takes a long time (typically 5-15 mins) for this message to appear, and the time elapsed value keeps jumping up and down.

Please advise how to remove the space?

Thanks

(PS - the underlying issue is I'm trying to import a space with the same key as this one. This space isn't used, hence assuming deleting it and re-using the key is the best option - happy to be advised of a better way!)


Answers:
author: Nick Riley
body: PS - the underlying issue is I'm trying to import a space with the same key as this one. This space isn't used, hence assuming deleting it and re-using the key is the best option - happy to be advised of a better way!


Tags: cloud

confluence-cloud
Test Backup Recovery
Asked by Jakob Cyll:

Hello,

we are using the standard daily backup to backup our on-premise instance of Confluence (Version 6.14.1).

I want to do a test recovery of the backup on an other server.

I need an instruction / manual how to do the backup and I need a test license for the other server or what you use in this case.

Greetings.

Jakob Cyll


Answers:
author: Zak Laughton
body: Hi Jakob,

This depends on what method you're using to backup Confluence. If you're using the recommended [Production Backup Strategy](https://confluence.atlassian.com/doc/production-backup-strategy-38797389.html), you can restore the instance by following the steps on [Migrating Between Servers](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html).

If you instead used the built-in XML backup, you can restore by following the steps on [Restoring a Site](https://confluence.atlassian.com/doc/restoring-a-site-152034.html).

For more information, see [Site Backup and Restore](https://confluence.atlassian.com/doc/site-backup-and-restore-163578.html).

I hope this helps!  
-- Zak


author: Brant Schroeder
body: We test backups by doing the following:

1. Stand-up fresh application VM
2. Stand-up fresh DB server
3. Ensure that the servers can only see each other and our authentication server. (We lock down the application server so it can only connect to the DB server and authentication. This way we do not impact any external systems.)
4. Perform backup
5. Login and validate everything restored
   1. We do not test application links (These can also be easily recreated)
   2. We update the domain name so we do not get errors there

The keys are the same as we turn it off after the backup validation. If you are planning on running it longer for development you will need to generate a development license and update it.

<https://confluence.atlassian.com/doc/restoring-a-site-152034.html>


Tags: confluence-server

server
Confluence: Cannot create a page despite space permissions
Asked by Ryan Voogjarv:

I was granted space permissions to add/delete pages in a certain space (called "Code").

![space-permissions.png](/t5/image/serverpage/image-id/47756i966FE3C73F2FB95A/image-dimensions/785x304?v=v2 "space-permissions.png")

When I navigate to that space and click "Create" there is no option to create a blank page, just a blog post.

![code-create.PNG](/t5/image/serverpage/image-id/47757i033956874BE104FC/image-dimensions/519x282?v=v2 "code-create.PNG")

In fact, if I create a page in another space and try to copy it to "Code", I am told that I don't have space permissions to do so.

![code-copy-to.PNG](/t5/image/serverpage/image-id/47758iA814CD009AB7DE94/image-dimensions/425x279?v=v2 "code-copy-to.PNG")

I have tried giving it a few hours, and logging out/in. Am I missing anything about the permissions scheme for Confluence?


Answers:
author: Sid
body: Hi [@Ryan Voogjarv](/t5/user/viewprofilepage/user-id/2817124) ,

To move or copy a page into a different space, you also need:

* Delete permission on the space you're moving *from*.
* Create permission on the space you're moving or copying *to*.

Also check if the global templates are not disabled across the space to see template like product req. etc.


Tags: confluence-server

page

permission

server

space
How to cancel and delete confluence sites
Asked by Thomas F?rster:

Hi,

I have 2 work-spaces with Confluence to collobarate with external people. Both have distinct URLs. Now one project is over. How do I delete everything there and stop subscribing that project (so that I do not have to pay for it any longer) and still keep my other project/site (which of course I will continue o pay)?

Thanks,

Thomas


Answers:
author: Bill Rudy
body: First, you need to have administrator privileges for that space. If so, you should be able to just go to "Space Tools" in the lower left-hand corner of any page on that site, select "Overview," and then the "Delete Space" tab.

comments: author: Thomas F?rster
body: Hello,

I could already delete the "Space" that was there and all pages within. My question was how to delete the whole "project" (or how do you call a "thing" that contains "spaces")? This Project is also the URL like [https://project_Thomas.atlassian.net](https://project_Thomas.atlassian.net?) And I want to delete this Project so that I do not need to pay for it any longer.

Thanks,

Thomas


author: Urszula Kaczorek
body: Hi Thomas,

on Confluence you can create sites, which belong to spaces. If you want to delete a space, take a look at Bill's guide. If you want to remove the whole project, I suppose that you need to do this on project settings in Jira (of course, as a site admin as well).

Regards,

Ula.


author: Thomas F?rster
body: Hello Urszula,

I have never used Jira and am not sure if I have an account for that.

I think it is a little bit unfair from Atlassian that it is so easey to create a new confluence project (and pay for it) but no one can tell me how to stop it.

So can you please tell me HOW I use Jira or whatever to take out this project? BTW I have also created a ticket at your help-desk for it (CA-668179)

Best regards,

Thomas


author: Thomas F?rster
body: Hello,

in the meantime I got answer from the Helpdesk: I need to go to my.atlassian net with my account. There I can see all my sites and cancel the respective one. So everything is fine now.

Thomas


author: Urszula Kaczorek
body: I'm glad that you found a proper answer to your issue (now, you may be a lifebuoy for others :) ). Have a nice day!


Tags: cloud

confluence-administration
How to get Confluence User Details through Rest API
Asked by karthick tgi:

Hi Team,

I am using the **free trial version for confluence**

I am trying to get the user details through rest API service("<https://testingdemoconf.atlassian.net/rest/api/latest/myself>").

Finally, I got the **response details as page not found.** Refer the attachment in below the screenshot.

![user_api_issue.png](/t5/image/serverpage/image-id/47753i263835DA2DB66284/image-size/large?v=v2&px=999 "user_api_issue.png")


Answers:
author: Daniel Eads
body: Hey Karthick,

I'm thinking there's just a little confusion over which document is which for API references. The **myself** endpoint is actually part of the Jira API. With no Jira instance on your Cloud, there's no endpoint there (hence page not found).

You can see [all the Confluence API endpoints here](https://developer.atlassian.com/cloud/confluence/rest/). If you're looking for an endpoint similar to Jira's *myself* endpoint, you can try Confluence's [*get current user*](https://developer.atlassian.com/cloud/confluence/rest/#api-user-current-get):

<https://testingdemo.conf.atlassian.net>**/wiki/rest/api/user/current**

Hope that helps,  
Daniel
Confluence Versions
Asked by Product Support:

I'm having trouble with which version of Confluence is the latest. The Download page where you can view the Release Notes and Upgrade Notes shows 6.6.12 (3/4/19) at the top but then has 6.14.1 (2/6/19) further down the page.

Isn't 6.14.1 a higher version than 6.6.12? The order does not seem to be numerical but by date. I'm confused.


Answers:
author: Ismael Jimoh
body: Yes it is and 6.14.1 is the latest.

The download page does not necessarily sort the versions in order I believe.

comments: author: Ismael Jimoh
body: I think I may have seen the cause of the problem. Atlassian releases enterprise versions of each application that is give LTS.

Potentially the 6.6.12 is the latest enterprise version of the application.


Tags: confluence-server

server
yesterday date macro in Confluence
Asked by Gwena?l GRALL:

Hello,

I would to get the yesterday date from currentDate.

I need to get a specific hours

With Confluence's macro I try to request on Jira

The request is like : project = "xx" AND created \>= "2019-03-04 18:00" AND created \<= "2019-03-05 18:00"

So I wrote this but $yesterday is missing:

```
## @param Project:title=project|type=string|required=true|desc=Key
#set($day2 = $action.dateFormatter.formatGivenString("yyyy-MM-dd 18:00", $content.currentDate))
? <ac:macro ac:name="jiraissues">
??? <ac:parameter ac:name="title">;All Resolved Issues</ac:parameter>
??? <ac:parameter ac:name="renderMode">static</ac:parameter>
??? <ac:parameter ac:name="columns">Key,Created,Updated,Assignee,Status</ac:parameter>
??? <ac:parameter ac:name="url">http://url.fr:8080/sr/jira.issueviews:searchrequest-rss/temp/SearchRequest.xml?jqlQuery=project+%3D+%22$paramProject%22+AND+created+%3E%3D+%22$day2%22</ac:parameter>
? </ac:macro>
```

Thanks for help


Answers:
author: Diego
body: Hello there Gwena?l! Great to have you here.

For you to get the yesterday date, we will need to set a variable with the calendar type and then subtract one with the .add method from the date type:

```
## @noparams
#set ($date=$action.dateFormatter.calendar)
$date.setTime($content.getCurrentDate())
$date.add(6, -1)
yesterday $action.dateFormatter.formatGivenString("yyyy-MM-dd", $date.time) <br>
```

You will be able to find more details on the add() method here:

**[Class Calendar - Field Manipulation](https://docs.oracle.com/javase/6/docs/api/index.html?java/util/Calendar.html)**

With dateFormatter you should be able to format the date as you see fit for your need. Here are some details on dateFormatter:

**[Oracle - dateFormatter](https://docs.oracle.com/javase/7/docs/api/javax/swing/text/DateFormatter.html)**

Let me know if this piece of information helps you!

comments: author: Gwena?l GRALL
body: Excelent !

This is what i wanted.  
I have adapted my constraints with Adam Barilak solution for parametrable JQL request.

I have now a powerfull tool to request Jira to fix dates and add variables in reports

<https://community.atlassian.com/t5/Confluence-questions/Using-template-variables-as-input-parameters-to-jira-gadget/qaq-p/189292#M31801>

Thanks


author: Diego
body: Great to know that the code excerpt was useful Gwena?l!

Hope that the documentation also helps you out. If you ever need assistance again, come reach to the Community?!


Tags: atl-adm

date

macro

server
Backup / Restore Confluence
Asked by Bejay Cole:

I have inherited a number of Atlassian apps running on the internal DB. I am migrating them all to MSSQL.

My current issue is that Confluence is not backing up all the data when I run it through scheduled jobs.

When I preform a backup from General Configuration --\> Backup \& Restore it creates multiple zips but the restore process only wants one.

Any guidance would be appreciated.

Thanks in advance,


Answers:
author: Bejay Cole
body: OK, so bypassing the proxy solved the multiple file issue. However it's still not getting all the data

comments: author: Bejay Cole
body: It appears to have something to do with being logged in a recovery_admin


author: Shannon S
body: Kevin,

What version of Confluence is this on?

1. The automatic backup will backup all data, but you'll only see a single .XML file if it's not been completed yet. Could you tell me the format of the incomplete backup file and which location you found it in? You can [configure the daily automatic backup](https://confluence.atlassian.com/doc/configuring-backups-138348.html) through **Backup administration** **.**
2. Backup \& Restore shouldn't create more than one backup at a time, unless you refresh the page. There's a bug here for that: [CONFSERVER-56128](https://jira.atlassian.com/browse/CONFSERVER-56128)

Can you confirm the location of the backups for the ones you generate through **Backup \& Restore**?

Regards,

Shannon

comments: author: Bejay Cole
body: It's version 6.13.0

Every time I run it from scheduled jobs I only get data to Jan 30.

When I run it from backup restore I get 3, I do not recall refreshing the page. It's going through a proxy and it times out. I will try running it bt bypassing the proxy and report back

The backup and restore location is

/var/atlassian/application-data/confluence/temp

Thanks for the response


author: Shannon S
body: Kevin,

Thank you for letting me know that bypassing the proxy allowed you to create a single backup.

The problem here is that your proxy might be re-trying the request if your timeout is too short. This would then trigger the same bug as before.

In terms of your backup that only goes to Jan 30, how are you verifying that? Is it once you import into your instance you notice the data only goes back that far, or were you opening the XML file and having a look at it that way?

Shannon


Tags: confluence-server

server
Why do I have double Page Properties macro showing on page?
Asked by Jeremy Price:

When I add the page properties macro to my page it shows just fine but for some reason I see the same page properties table underneath the comment section of the same page and I don't know why. Looking for help.

![Snag_294483.png](/t5/image/serverpage/image-id/47740iCA994D7CCE725FF4/image-size/large?v=v2&px=999 "Snag_294483.png")


Answers:
author: Zak Laughton
body: Hi JP,

Since it's showing below the comment section (outside of where the page content is shown), I believe you have some custom HTML/Javascript that is replicating the table.

* Go to ![Cog](https://community.atlassian.com/t5/image/serverpage/image-id/47811i70B411FB234425E3/image-dimensions/17x17?v=v2 "Cog") \> **General Configuration** \> **Custom HTML**. Do you see any custom code here that may be causing this?
* Is this happening for all pages, or just this one?
* Is this happening in other Confluence spaces as well?
* Is there any custom code in the page content? (e.g. an HTML macro that includes a script)

-- Zak


Tags: confluence-server

server
custom page with code / maybe plugin
Asked by Felix Nielsen:

Hi

Is it possible to build a custom page that runs from code, so I can render basic data and interact with the user - need to create some dropdown's and fetch data from a 3drparty database.

Thanks


Answers:
author: Doug Swartz
body: You don't say whether you are on Confluence Server or Confluence Cloud.

In either case, You will likely need a plugin to do what you describe.

The plugins I'm most familiar with are only available on Confluence Server. These are the [Run Self Service Reports](https://marketplace.atlassian.com/apps/189/run-self-service-reports-for-confluence?hosting=server&tab=overview) and the [SQL for Confluence](https://marketplace.atlassian.com/apps/1212798/sql-for-confluence-express-edition?hosting=server&tab=pricing) plugins. The two plugins work well together. If you really want to write code (Groovy, Jython, etc.) to generate fully custom pages, the [Scripting for Confluence](https://marketplace.atlassian.com/apps/266/scripting-for-confluence?hosting=server&tab=overview) plugin, from the same vendor, will allow that as well.

Other similar plugins are available. the plugins above are what I'm most familiar with.