youngmon/atlassian-qna huggingface dataset:
confluence export not available as it shows in instructions
Asked by Daniel Rosser:

I am trying to export from on prem to cloud. the instructions say to hit the cog and go to content control there is just general and user, what am i missing?


Answers:
author: Shannon S
body: Hi Daniel,

Which article are you following? I'm not aware of any Content Control menu item in Confluence, but t[he steps to export from Confluence Server](https://confluence.atlassian.com/doc/manually-backing-up-the-site-152405.html) are as follows:

1. Go to ![](https://confluence.atlassian.com/doc/files/590259974/590058056/1/1398739558493/Cog.png) \> **General Configuration** \> **Backup \& Restore**.
2. Choose **Archive to backups folder** to store a copy of the backup in the same folder as Confluence's [backups](https://confluence.atlassian.com/doc/configuring-backups-138348.html).   
   If you do not archive the backup it will be made available for you to download, and then deleted from the server after 24 hours.
3. Choose **Backup attachments** to include attachments in your backup.
4. Choose **Backup** .  
   The process can take some time.

Can you try that and let me know if you're able to access your backup?

Also please note that if you're importing to a Cloud instance that also has Jira installed, you will not be able to restore using the site backup, and will need to do it one space at a time.

Let me know if you have any questions about any of that.

Regards,

Shannon
Copying a page tree from one space to another
Asked by tom1443:

So I want to copy a large page tree with at least 100 child pages over into another space. I'm using Confluence 5.8, I've used a copy page tree plugin before to do this but it makes the page owner for every page the person that copies it over.

I've tried doing a custom XML export for the page tree but when I try to import it the space key obviously conflicts with the current space the content is in. Is it possible to change the space key values in the export files and then import?

Any help would be greatly appreciated.

Thanks


Answers:
author: Stephen Deutsch
body: Hi Tom,

It is possible to change the values in the export files and re-import. Atlassian recommends that you do this in a test instance first. Here are the instructions: <https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html#HowtocopyorrenameaspaceinConfluence-solution3>

Please note that the table in step 5 has more information to the right that is hidden because the documentation window is too thin. I would probably select the whole table and copy it into a Word document to get a better overview.


Tags: copy

page-tree
confluence attachment information
Asked by Hsu Yao Chang:

Dear Support Team,

Would it be possible to find out how many attachments deleted / added / modified in a month? Thanks a lot.


Answers:
author: Christo Mastoroudes _Adaptavist_
body: Hi,

If you want an easier solution you could use a paid 3rd party application like ScriptRunner which provides a CQL macro and CQL search bar.

So you could do a CQL search, something like:

created \> startOfMonth() and type = attachment and space = ds

This will return some numbers, but if you want a graphical chart you can just input the numbers in a chart.

If you want it automated with a chart you will probably have to try and find a 3rd party application on the Confluence marketplace or write something yourself.

![Screen Shot 2018-01-11 at 14.14.56.png](https://community.atlassian.com/t5/image/serverpage/image-id/12434i30F359BC75C5444E/image-size/large?v=v2&px=999 "Screen Shot 2018-01-11 at 14.14.56.png")

comments: author: Hsu Yao Chang
body: Dear Christo,

If the attachment is not shown , can we search by \*.\* to list all attachments in some space? I try it, but it can not work. Thanks a lot.

Best Regards, Anderson Hsu


author: Christo Mastoroudes _Adaptavist_
body: Hi,

Not sure if you are refering to CQL or a normal search.

To list all the attachments of a specific space via CQL simply use:

type = attachment and space = ds

CQL supports wild-cards but I suggest you look at the [documentation.](https://developer.atlassian.com/server/confluence/performing-text-searches-using-cql/)

To show all the attachments in a space via a traditional search, you don't need to type anything in the search bar, just use the filters on the side bar.

![Screen Shot 2018-01-15 at 09.30.51.png](https://community.atlassian.com/t5/image/serverpage/image-id/12592i1CF3F629BDDC65A9/image-size/large?v=v2&px=999 "Screen Shot 2018-01-15 at 09.30.51.png")


author: Christo Mastoroudes _Adaptavist_
body: Confluence provides a half decent search functionality which would at the very least supply some of the information you are after.

![Screen Shot 2018-01-10 at 16.04.52.png](https://community.atlassian.com/t5/image/serverpage/image-id/12339i98AFDBF5B6D82904/image-size/large?v=v2&px=999 "Screen Shot 2018-01-10 at 16.04.52.png")

Alternatively if you are a bit more technical you can make rest calls using the Confluence Rest API and CQL which should get you the information you require.

<https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/>

comments: author: Hsu Yao Chang
body: Dear Christo,

Would it be possible to Graphical or send a number for the result of api ? I mean how can we easily to analytics the result by tool or other way ?Thanks for your kindly assistance.

![api.png](https://community.atlassian.com/t5/image/serverpage/image-id/12418iC9C41D8C72E7F406/image-size/large?v=v2&px=999 "api.png")  
Best Regards, Anderson Hsu
How to use template variables in Content-by-Label and to label a page?
Asked by Max E:

Hi there!

I'd like to write a user macro that uses template variables the user enters.

How can I get these template variables into the user macros?

Any code snippet?

Max


Answers:
author: Shannon S
body: Hi Max,

It's not possible to use global variables in User Macros, but this larger feature request would help to do that:

* [CONFSERVER-3999](https://jira.atlassian.com/browse/CONFSERVER-3999)

I would recommend that you vote on that and comment there with your usage case.

Let me know if you have any questions about that.

Regards,

Shannon


Tags: user-macro

variable
REST API Endpoint: Updating user avatar/profile picture
Asked by chrfyayc:

Hello!

I'm looking for a REST Endpoint, that a custom client can use to update the users profile data and picture.

Thanks!


Answers:
author: BKippelt
body: The following REST calls may help you. These calls are private. I'll try them tomorrow, too. Let's see what happens. Or have you already solved it?  

/rest/user-profile/1.0/avatar/uploadFallback  
/rest/user-profile/1.0/{userKey}/avatar/default  
/rest/user-profile/1.0/{userKey}/avatar/upload

comments: author: David Yu
body: Did this work for anyone? If so, what are the parameters?


author: munyiva ngea
body: Any help?


author: Stephen Deutsch
body: I don't think Confluence has a REST API endpoint for that yet, but you can use the XML-RPC/JSON-RPC API for that. There's a method called "addProfilePicture" that you can use: <https://developer.atlassian.com/server/confluence/remote-confluence-methods/#user-management>

Remember that for the RPC API you have to call the login method to get the token. If you are making the call from browser Javascript, though, this is unnecessary and the token will be filled in automatically.

If you're looking to do so in JIRA, it's a bit different and can be done via the REST API. This was the answer I used when I was trying to figure it out: <https://community.atlassian.com/t5/Answers-Developer-Questions/Avatar-upload-with-Jira-5-REST-API/qaq-p/475376>

comments: author: chrfyayc
body: Hey Stephen,

thanks alot! I'll try it out!

Greetings,

Christoph


author: David Yu
body: Don't know if this bug still exists but the @mention photos will be missing if you upload via the old RPC API. A reindex will fix it, but not ideal if you're constantly updating profile pictures.

<https://jira.atlassian.com/browse/CONFSERVER-35282>


Tags: rest

rest-api
Confluence - Administrative questions
Asked by Iuliana Burgi Jurj:

Hello,

As we are starting to use Confluence seriously in our company, our Security team is rating the tool.

They asked some questions and I could check them on my own, but I would rather ask you as I want the answers to be correct 100 %.

1. Where is the tenant located ? Is it Europe or the States ?

2. Can I find somewhere the general terms and conditions of Confluence usage ? I tried finding them on my own, but was unable to find them.

3. Do you have some policies in terms of cookies usage ?

4. Do you have some specific guidelines for passwords once the users have connected for the first time and they need to change it ?

Thank you in advance for helping me out with this questions.


Answers:
author: Shannon S
body: Iuliana,

Are you referring to Confluence Cloud or Server?

If Cloud, a lot of your answers you will be able to find from our [Cloud Security Statement](https://www.atlassian.com/trust/policies/cloud-security) and [Customer Agreement](https://www.atlassian.com/legal/customer-agreement).

1. Our data centers are located in geographically diverse locations across the United States and the European Union.

2. [Service Specific Agreements](https://www.atlassian.com/legal/service-specific-terms) - terms and conditions are on the above customer agreement and this one.

3. What sort of policies in terms of Cookies usage are you looking for exactly?
4. [Atlassian Cloud Password Policies](https://confluence.atlassian.com/cloud/password-policies-938859739.html)

Let us know if you needed the information for another service or have any questions.

Regards,  
Shannon

comments: author: Iuliana Burgi Jurj
body: Hello,

I am referring to Confluence server.


author: Shannon S
body: Iuliana,

As you would be hosting Confluence yourself, then the location of your instance depends on where you decide to host it.

The terms and conditioned I mentioned above still apply:

* [Customer Agreement](https://www.atlassian.com/legal/customer-agreement)
* [Service-Specific Terms](https://www.atlassian.com/legal/service-specific-terms)

Cookies usage also depends on you or your server and company.

Lastly, the password for users will be whatever you set them to, or whatever the user decides to set them to when you send them the invite.

There's no built-in password policy in Confluence server, and this may depend on your company's policies, but you could enforce using LDAP or some other external method:

* [How do I enforce password complexity in Confluence?](https://confluence.atlassian.com/confkb/how-do-i-enforce-password-complexity-in-confluence-346947947.html)

Regards,

Shannon


Tags: security
Changing the owner of a page version on api level
Asked by Steve Gerstner [bridgingIT]:

Hi @all,

I have to remove old unsused users from the system based on compliance rules. A part of this is to transfer all the page versions owned by such a user to another user.

Everything is under control besides the history page

<https://confluence.atlassian.com/doc/page-history-and-page-comparison-views-139379.html>

What I know is, that I have to change the contributor set of the version history. What I not know, is how?!

Has anyone any idea how to do that, how to achieve this with tha java API?

Regards

Steve


Answers:
author: Steve Gerstner [bridgingIT]
body: I got it...

Since I'm using confluence to manage the LDAP in the background,

* I'm deleting the old user
* switching to the internal directory
* creating a new user with the same id
* renaming this user
* switching back to the ldap directory

comments: author: AnnWorley
body: Awesome! Thanks for sharing the solution you came up with. Your use case is unusual but I can see how it may come up again. Please keep us updated if you run into anything unexpected.


author: AnnWorley
body: Hi Steve,

I am having trouble understanding your use case. Confluence pages don't have owners in the sense that files in an OS do. Anyone with the permission to edit them may make changes. The last person to make changes will have the byline for the latest change: "last modified by...".

Is it your goal to have the **Changed by** column in the page history comparison view credit the changes to a different user from the one that is now displayed but no longer active? It seems like that would show an inaccurate history of the page so I am not sure why it would be desirable.

I look forward to learning more about the changes you would like to make via API.

Thanks,

Ann

comments: author: Steve Gerstner [bridgingIT]
body: It's the "changed by" column, but you can't edit this relation between user and content as far as I figured out at the moment.

My customer is giving away user ids from former employees to new employees. So we have to "free" theses user ids. The whole setup is unlikly complex, as they use a "custom" directory based on webservices rather then on ldap. So we have an ldap server as some kind of proxy, which is feeded by confluence as you can't redirect the password challenge from the internal directory to the ldap, but you can with a ldap connector. And it's at least as confusing as those lines are ;)


Tags: app

confluence-development
Templating question
Asked by neofire:

I am wondering is there a way in confluence were if i have a custom template/blueprint in place and later on i make a change to the template/blueprint can those updates be pushed to pages that were created from that template


Answers:
author: Shannon S
body: Hi Kyle,

This is not possible in Confluence, and we don't have intentions to [implement it in the future](https://jira.atlassian.com/browse/CONFSERVER-24987).

I've seen the add-on [Scaffolding Templates](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.scaffolding/server/overview?_ga=2.11047601.40165038.1515399801-1429028762.1511781728) and I believe if you use this one to update templates, you can also update the live pages as well.

Perhaps it will be useful for you in the future?

Otherwise you could try [automating the updates using API](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/) but this would be a bit tricky and require some existing development and API knowledge.

Regards,

Shannon


author: Thomas Schlegel
body: Hi Kyle,

this is not working out of the box in Confluence. There is an app from Service Rocket called "Scaffolding Forms \& Templates" which adds live templates to Confluence. We use the app for this purpose and it works well.

But of course, there may be other apps in the marketplace for that purpose as well.
Custom form
Asked by Ian:

I want to create a form which will have two fields:

1.Username

2.Department

The username field when on focus will auto complete with confluence users when I start typing the name.

The department field can be a dropdown.

When I submit the username and the department I want to save the result on a database whereby I can later retrieve the result and display on a page together with other user profile information.

Please assist on how I can achieve this.


Answers:
author: Alexey Matveev
body: Hello,

Where do you want to create the form? Basically you can use Jira Rest Api or Confluence Rest Api for the task.

comments: author: Ian
body: [@Alexey Matveev](/t5/user/viewprofilepage/user-id/1159601) Thanks for you answer.I used confiform which solved the problem.


author: Alex Medved _ConfiForms_
body: Thank you for using [ConfiForms](https://marketplace.atlassian.com/plugins/com.vertuna.confluence.plugins.confiforms/server/overview "ConfiForms - build your web forms in Confluence"), [@Ian](/t5/user/viewprofilepage/user-id/1168955)

It is really very simple to create the forms like that with our plugin. Welcome!


Tags: confiforms

developer
I still have the problem
Asked by yklyu:

I tried to do your guide as <https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html?_ga=2.191719202.980335533.1515463154-624275698.1506665830>

but, I can not login the confluence server.

Note that the confluece server did not have an admin id.


Answers:
author: Shannon S
body: Hi there,

The article you sent will create a temporary admin for you to login with. Note that this only works for versions 6.5.0 and later.

Can you confirm the version of Confluence you're running, and if you have any external user directories? Can you show us what your Directory Configuration looks like?

Regards,

Shannon

comments: author: yklyu
body: my confluence version is 6.6.1

I do not any work for directory configuration

confluence use login service of jira


author: Shannon S
body: Hello!

To summarize, can you confirm that you went through all these steps?

1. Stop Confluence.
2. Edit **\<installation-directory\>/bin/setenv.sh** or **setenv.bat** (Windows)
3. Add the following system property, replacing \<your-password\> with a unique, temporary password.

   ```
   -Datlassian.recovery.password=<your-password>
   ```

4. Start Confluence manually using **\<installation-directory\>/bin/start-confluence.sh** or **start-confluence.bat** (don't start Confluence as a service).

Once you do all those steps, if you have done them correctly, you can login with the username **recovery_admin** with the password you chose in **step 3**.

This will allow you to login and correct your issue.

Once resolved, you will then need to:

1. Stop Confluence
2. Edit **\<installation-directory\>/bin/setenv.sh** or **setenv.bat** and remove the system property.
3. Restart Confluence using your usual method.

If any of these steps are failing, then I'll need to know exactly how they are failing in order to be able to help you. I look forward to your reply!

Regards,

Shannon  


author: yklyu
body: jira(v7.4.2) \& confluece(v6.3.2) are installed on old ubuntu server

and then

I install jira(v7.6.3) \& confluece(v6.6.1) on new another ubuntu server

Files backed up from the old system are not restored on the new system.

so, I copied the old jira(v7.4.2) \& confluece(v6.3.2) to new ubuntu server.

It was then restored successfully.


author: Shannon S
body: Hi there,

Can you confirm with me if you are saying the issue is resolved now?

Regards,

Shannon


author: yklyu
body: It's not the latest version, but I've just finished building a new server

Thanks for your support


author: Shannon S
body: Alright, no problem. Take care!

Regards,

Shannon
The "Content by User" macro is missing
Asked by Tan Yong Liang:

Hi,

I have 2 confluence system running with the same version, 6.4.2. I couldn't find "Content by User" macro when search in **insert \> other macro**on 1 of my system.

The previously created of this macro showing "Unknown macro: 'content-by-user' ". May I know why it is missing in one of my system? Maybe any add-on was disabled?

<br />

ps: I tried restart confluence but it still doesn't work.

\[SOLVED\] found it in add-ons "Advanced macro" and expands the modules.


Answers:
author: Tan Yong Liang
body: \[SOLVED\]  

To fix this issue, you have to find the disabled modules inside one of the system add-ons.  

Just go to Settings \> Manage add-ons and filter add-ons to show out the system add-ons. Find "Advanced Macro", expands the modules and you should able to see "content-by-user" then just enable it.

comments: author: Shannon S
body: Thank you, Tan!

Regards,

Shannon


author: Tan Yong Liang
body: You're welcome, Shannon. :)


author: Shannon S
body: Hi Tan,

Can you add your solution as an answer? I can accept it and then users will find this and be able to fix it on their own instances.

Thank you!  

Shannon


Tags: user-macro
Contributors macro not showing contributors
Asked by Ben Bohringer:

I have a report that shows the number of contribution per user on a group of confluences pages. I would like to filter this so it only shows the count of contributions for the current year.


Answers:
author: AnnWorley
body: Hi Ben,

That feature has been suggested but is currently not available with Confluence. Please vote or comment on [add a date parameter for contributor-summary macro](https://jira.atlassian.com/browse/CONFSERVER-7172) to add your voice to the suggestion ticket. Doing so will also add you to notifications so you will get an email if the ticket is updated.

Thanks,

Ann


Tags: contributor
In Confluence-Cloud--can you add customized column labels to the Task Report Macro?
Asked by Karen Soileau:

I am trying to set up a task report for a project dashboard which will not only show a list of all incomplete tasks, but in a separate column will need to display the specific status of the work regarding the task. This is for a development project, so the tasks are being created while we are waiting on the actual work to be completed and then will be marked complete once the testing of the task is finished. I would like to have a customized column label display on the Task Report named Ticket Status. Does the Confluence Cloud macro allow something like this?


Answers:
author: Shannon S
body: Hi Karen,

Currently the two statuses of tasks are "complete" and "incomplete", so the Task Report Macro will only show these things.

I found a feature request to be able to comment the status of a task, for example why it hasn't been completed yet. You might be interested in voting for this feature and watching for updates:

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

I would recommend also commenting there with your usage case. It will help a lot.

Your other option is in the page on Confluence where the task was added, you can put another column with the Status Macro, and allow users to update their details there of the status. You won't see it in the Task Report Macro but it will at least help you keep track of these tasks.

Let me know if you have any questions about this.

Regards,

Shannon

comments: author: Karen Soileau
body: Hi Shannon,

Thank you very much for the information. I will definitely vote for the above issue.
Anyone else seeing constant refresh on Confluence Admin add-ons pages?
Asked by Jack Kelly:

I'm assessing Confluence 6.6.0 on our test server for a planned upgrade later this week. In addition I'm review some new add-ons to address table use case needs in our organization. I was going to find another table add-on and discovered that I cannot do anything on that page because it constantly reloads. I have to enter a different URL in the browser to get out of the refresh. If I go to the Manage add-ons, then I don't have the problem until I expand the Bob Swift Advanced Table add-on. Then I get the constant refresh problem I see on the Find new add-on page. So I'm guessing it is the culprit since I don't see this problem expanding other add-ons.

Has anyone else seen this problem in general? I find it hard to believe it is caused by an add-on. And the worst part is I can't uninstall the add-on even though it is disabled.

Anyone know of another way to uninstall an add-on?


Answers:
author: AnnWorley
body: Hi Jack,

This was a transient issue that should be fixed now, per our testing - please let us know if you are still experiencing the UPM refresh behavior.

Thanks,

Ann

comments: author: Jack Kelly
body: Hi Ann,

I posted this several minutes after troubleshooting. So it is presently going on in our test environment.


author: Jack Kelly
body: And it looks like we are running UPM v2.22.6 on our test environment.


author: Jack Kelly
body: I guess I misunderstood what you meant by transient. The problem does seem to have gone away. Thanks.