youngmon/atlassian-qna huggingface dataset:
Adding Likes to blog/page
Asked by MichaelMoe:

I've been issuing SQL statements against Confluence Database to add likes to blog/page. But I just saw "Confluence Like REST API" on Confluence Administration page, Add-on section. Does it mean that there's a REST API to add likes? I searched online but there's no result relating to that. Anyone know, if that's possible?


Answers:
author: Stephen Deutsch
body: It's a private method, but it's certainly possible. You can see it if you monitor your traffic (when clicking the like button) and/or use the REST API Browser. It is:

(contextPath) /rest/likes/1.0/content/{id}/likes

and you can do either a GET (to see likes), POST (to like), and DELETE (to unlike). The limitation is that the like is applied to the currently logged-in user, so you can't like a page for someone else. To do that, you would have to use a server method or modify the database.

comments: author: MichaelMoe
body: It maybe a better option even though I still need to update the database. Because, right now, I need to generate id for every like I insert(I just increment the largest id by one) and it kind of scares me. With REST approach, I don't need to generate id. I just need to update the username and creationdate. That said, you mentioned server method and I'm not familiar with that. How do I access those methods? Our Confluence is hosted on Cloud by the way.


author: Stephen Deutsch
body: If your confluence is hosted on Cloud, how are you modifying the database?


author: Nic Brough -Adaptavist-
body: Heh. Yes, REST is the only option for Cloud.


author: MichaelMoe
body: Ok My bad. It's not on cloud. It's hosted on VM running on AWS. So, I have access to the database.


author: Nic Brough -Adaptavist-
body: I don't think the REST interface handles like yet. The basics are at <https://docs.atlassian.com/atlassian-confluence/REST/latest/> and doesn't mention it.

(I am mildly intrigued by your SQL though - how do you handle the cache clearing and reindexing after running the SQL?)

comments: author: MichaelMoe
body: For the time being, I use user-interface ("Confluence Admin" \> "Cache Statistics"). Later, I may use REST API.


author: Nic Brough -Adaptavist-
body: Erk, that's no good, how do you do the indexing?


author: MichaelMoe
body: Same way - Context Indexing/Rebuild. Could you tell my why it isn't good?


author: Nic Brough -Adaptavist-
body: So you're running a huge indexing operation every time you use SQL? Are you taking Confluence offline when you do this SQL as you need to? Sounds like you're having to make it usable all the time.


author: MichaelMoe
body: I'm just working on test site. So, I don't need to take it offline. What I do is, I have nodejs script that imports contents and likes, and updates creation date and whatnot. I have to manually flush the cache and rebuild the index after.


author: Nic Brough -Adaptavist-
body: Ah. Yes you do. Never write to a Confluence database while it is running.


author: MichaelMoe
body: Didn't think of that. You are right, I should keep it offline. Any other suggestion to keep database from corrupting?
Confluence anonymous access & Google Indexation
Asked by Gregory BRUNET:

Hello,

I would like to know if after enabling the anonymous access for a confluence space (cloud solution), this space will be indexed by Google or not.

Thanks for your answer.


Answers:
author: Rodrigo Silva
body: Hi Gregory, the answer is yes, the space will be indexed by Google.

Cheers, Rodrigo Silva


author: Gregory BRUNET
body: Hello,

<br />

Do you know if we can ask to Atlassian to change this and disallow the google indexation for our spaces ?  
If yes, who is the right contact ?

<br />

Thank you.


author: Rodrigo Silva
body: In case you need to prevent that, please have a look at this forum:

<https://answers.atlassian.com/questions/12271808>


Tags: cloud

confluence-cloud
How do I stop notifications going to team members from a space page?
Asked by sandra mckay:


Answers:
author: Peter Bengov
body: Tools \> Manage Watchers \> remove relevant users


author: Kay Brown
body: You need Space Admin rights to manage watchers.

Regards,

Kay


author: sandra mckay
body: Thanks Peter but a little more detail would be much appreciated. I have a tools bar in the space I have created but I don't see Manage Users?
Un-favorite a page which is not longer available
Asked by Bj?rn Eitmann:

Hello

How can i re- or un-favorite a page which is not longer available for me?

Kind regards,

Bj?rn


Answers:
author: Luiz Maia
body: Hello Bj?rn,

By clicking on your profile picture on the right side of the Confluence top bar and selecting the "Favourites" option, you can view a list of all your Favourite pages.

In this list, find the page you want to unfavorite and uncheck the "Star" icon.

Let us know if you have any questions.

Kind regards,

Luiz Maia  
Atlassian Support


Tags: confluence-administration
i am using comala publishing plugin and would like to "mirror" a specif part of an existing page. That doesn't seem to work
Asked by Pelagia Papoulidou:

Hi there!

I created a new space so as for it to publish from an existing.My need was to keep only partial information from the existing space. I tried to delete pages and their children, but when i tested publishing option they all came back! Is there another way I could do that?

Cheers

Pelagia


Answers:
author: Miguel Reimer
body: Hi Pelagia,

If you only want to space publish certain pages in the draft space to the published space, we have what we call sync labels. Here's how to set that up:

1. First add a label to all pages in the draft space that you want to publish
2. Add that label to the "Label" option on the Publishing "Configuration" page in the global Confluence Admin and save it.
3. In the space publishing configuration, make sure the "Ignore sync-label for Synchonization" and "Delete sync-label on Source after Synchronization" options are unchecked.

Now only pages that have this sync label will be published when you publish the space.

If you have other spaces where you want to publish the whole page, check the "Ignore sync-label for Synchonization" option is checked in the space publishing configuration.

Also in the future to ensure we are notified about your question, please post directly to our support site - <https://comalatech.zendesk.com/>

Thanks,  
Miguel

comments: author: Michael Kettner
body: It looks like that child pages inherit the label from their parent, i.e. a child page gets published even it is not labeled for publishing.

Is this a bug or a feature?


author: Miguel Reimer
body: Hi Pelagia,

As mentioned on your [forum post](https://comalatech.zendesk.com/hc/communities/public/questions/204479367-How-can-I-restore-deleted-pages-after-publishing-)on our site, that I've tried just about every setting combination with the sync-label and have not been able to reproduce pages being deleted in the draft and published spaces. We currently don't have any option to delete pages in the draft space.

However, if you have the "Delete pages added in target space" option checked, Comala Publishing does delete pages in the Published space that aren't included in the pages being published. Any pages deleted by this process will be in the published space trash: Space tools \> Content Tools \> Trash. You could try checking your draft space trash as well if pages have gone missing.

Thanks,  
Miguel


author: Pelagia Papoulidou
body: @Miguel Reimer - Comalatech It seems that something went totally wrong Miguel!

Some pages are deleted without me understanding how!

I submitted a question to your support-site and am waiting for an answer as I need to restore those pages immediately

Please help!

Pelagia


author: Pelagia Papoulidou
body: Hi Miguel,

thank you for this really useful answer! I will try it out and let you know at <https://comalatech.zendesk.com/>

Cheers,

Pelagia


Tags: addon-com.comalatech.publishing
how do i enable a user
Asked by Frank DiGiovanni:


Answers:
author: Luiz Maia
body: Hello Frank,

I understand you'd like to enable a existing user who was been previously disabled, is that correct?

If that's your case, you can go to Confluence Administration, select "Users" on the left panel and then "Show all users". Find on the list the user you need to enable, open the User Profile and then select the "Enable" option.

Please let us know should you have any questions.

Thank you.

Kind regards,

Luiz Maia  
Atlassian Support


Tags: confluence-administration
How do I re-enable a user?
Asked by Frank DiGiovanni:

A past employee has returned. His user account was disabled in Confluence, and I do not see a way to re-enable his account.

what can I do to re-enable him?


Answers:
author: Daniel Glenzer
body: This link should be what you need:

<https://confluence.atlassian.com/confkb/cannot-add-user-because-add-user-link-is-missing-302810865.html>

Thanks,  
Danny


author: Frank DiGiovanni
body: I am not in a cloud configuration; all local servers.

I found that if I waited, the user change I made in JIRA percolated to the user change in confluence; it was just not immediate. But I can confirm, after looking at every conceivable page, that there is no interface to re-enable a user from the Confluence admin area.

The 're-enable' feature was available in JIRA but not Confluence.

our matrix of versions for installed/used products, in case that matters:

|------------------|--------|
| Crucible/Fisheye | 3.5.4  |
| jira             | 6.2.2  |
| jira agile       | 6.6.13 |
| confluence       | 5.3.1  |

Which leads me to the upgrade question: we are interested in moving to the most current versions of these products, which I believe we have paid for, etc. However, it would be prudent to:

1. stop all activity
2. back up all data and state (which is available from the admin screens)
3. upgrade applications
4. go

Having done this, if things were not ok, it is not clear how to revert the tools back to their prior versions and recover the data and state to the place I left from... What does Atlassian suggest?


author: Nic Brough -Adaptavist-
body: Go to user maintenance and untick the "disabled" flag in their profile. You may need to re-add them to one or many groups too.

comments: author: Scott Paden
body: Hmmm..., I am new to Confluence admin. I don't see a place on the Site Adminstration (users) screen to tick the "disabled" flag I'm on this screen: somesite.atlassian.net/admin/users/view?username=janedoeI can't include a picture :(


author: Nic Brough -Adaptavist-
body: Ah, you're on Cloud then. You need to look at the user maintenance in the general Cloud settings, not the Confluence settings (they just display the Cloud user stuff). See <https://confluence.atlassian.com/display/Cloud/Manage+users+and+groups>


Tags: confluence-administration
In Confluence 5.5.7 we are trying to merge two separate WIKI spaces together into 1 single separate WIKI space while preserving the 2 original spaces
Asked by Kathy Perry:

In Confluence 5.5.7 we are trying to merge two separate WIKI spaces together into 1 single separate WIKI space while preserving the 2 original spaces. We have tried the following:

1. Copy; but copy does not copy the children pages only the parent pages.
2. Exported both spaces into word format then merging the 2 word documents. and then importing the resulting word document back into Confluence. The problem is the page links within the space of the merged document don't work.

Do you know of any other way to accomplish this? Either within Confluence functionality or plugins to Confluence.

Thanks in advance, Kathy Perry (University of Texas at Austin) 512 832-4260


Answers:
author: Stephen Deutsch
body: Hi Kathy,

I would recommend using the copy space plugin:

<https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugin.copyspace>

to copy the two spaces into new spaces, one of which would become your new space. Then, you can move the pages from one space into the other space (which will bring the children pages along with the parents). After making sure that all pages have been moved, then you can delete the now empty space.
custom stylesheets
Asked by Klaus Keith:

It seems I can not enable Custom CSS Stylesheets in Confluence Security Settings, even though it seems I am in the site admin group, and administrator. It seems like a bug, that used to be working? Anyone having same problems?


Answers:
author: Klaus Keith
body: Cheers Rodrigo.

Off topic, you wouldn't know how to disable the Child listing on parent pages in Confluence?

Regards

Klaus


author: Rodrigo Silva
body: Hi Klaus,

This feature is currently unavailable for Confluence Cloud Platform, but there's already an improvement request for that:

<https://jira.atlassian.com/browse/CLOUD-2731>

In case you are referring to Server platform, please let us know!

Cheers, Rodrigo Silva


Tags: cloud

confluence-cloud
Is there a macro that reports trending pages?
Asked by Deborah Diemetric:

I have a request to add a list of trending topics on my home page. Is there a macro that I can place on the home page that lists the trending pages/topics in the space? This is not the same as "recently updated." I looked at the Viewtracker plug-in, but we don't need to create a "number of views" on every page or know who looked at a page or when. We just need a simple list of topics with links. Thanks.


Answers:
author: Stephen Deutsch
body: If you enable the usage tracking plugin

<https://ecosystem.atlassian.net/wiki/display/USGTRK/Confluence+Usage+Tracking+Plugin>

then there is a "popular content" macro that is included. That might work for you, especially if your instance is not too big. If you want to see the most popular pages across your entire Confluence instance, then you should write "@all" in the "Restrict to these Spaces" option.

comments: author: Deborah Diemetric
body: Thanks for your answer. I looked at that macro, but saw that it has performance problems and it doesn't look like it's been updated in forever. Even Confluence has it disabled by default, which doesn't bode well. I don't think I want to introduce that into our project. Likely more trouble than it's worth.
Disable User leading the Karma overview
Asked by Jennifer Weber:

Hi there - the top leader in our Karma overview is a disabled user. Does anyone know how this could be and how I can this user to not show? Thank you for any advice!


Answers:
author: lavitz slambert
body: Hey Jennifer,

This looks like some kind of bug to me, I would suggest you to raise a support ticket on the plugin vendor support page:

<https://support.communardo.de/display/support/Support+Center>

Also, I would suggest you to remove the tags "cloud" and "confluence-cloud" as the Karma plugin is only available for Confluence server and not Confluence cloud :smile:.  
Thanks and Regards,  
Lavitz - the guy that uses Confluence on Windows as a Hobby!


author: Jennifer Weber
body: Thanks so much, for both suggestions! I have reached out to Communardo.


Tags: addon-de.communardo.confluence.plugins.karma
Can I choose which Jira users could be included in confluence?
Asked by Jens Knobloch:

I try to include a JIRA user directory in confluence. That works properly.

However, I will not need the entire 'jira-users'-group in Confluence (just not neccessary). It's ok when just a special group can have access to confluence.

So, how can I choose (or otherwise determine ) which Jira users could be included in confluence?

Thanks and regards,

Jens K.


Answers:
author: Steven F Behnke
body: The best way, in my opinion, is to define basic permissions/licensing to the group jira-users or confluence-users, a group for each application. You would ensure this is:

1. An application group in your User Directory
2. This group is defined in the application's Global Permissions admin-area as having access to the application

In this scenario, all these users need is the appropriate *application*-users group to gain access/be licensed in that application.


Tags: confluence-administration

user-directory

user-group
how do I turn off notifications from this list
Asked by Phil Ricci:

I get hundreds of emails per day from this forum. How can I turn them off? It is flooding my mail box with information I do not need or want. Please help.


Answers:
author: Nic Brough -Adaptavist-
body: Look at the top, click "topics" and it will list all the labels. The ones you have subscribed to are making up the bulk of your emails, so deselect as many as you want (all of them for near silence)

You will remain subscribed to your own questions and any others you clicked "watch" on, but when those arrive, follow then through to the question and click "unwatch" (although most questions only gather 2-5 responses, so these shouldn't be too much)


Tags: notification

questions-for-confluence
Pasting colored text - return ugly formatted
Asked by krzychus:

Hello,

I created a normal blank page and I'd like to paste a nicely formatted XML code (which has indents and is colored (blue, red). But generally after pasting the code has no colors ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") How can I paste code and keep its original color?

Thank you,

Chris


Answers:
author: Steven F Behnke
body: Okay, the problem is that Confluence likes to strip that stuff out on purpose, that's a goal.If you are on Confluence Server (not Cloud) you can use the included HTML macro to paste in HTML code OR you can use the free add-on Source Editor to make some edits. I think that's about all you can do.


author: Steven F Behnke
body: Glad I could help.


author: krzychus
body: Thank you for your help! I used the Source Editor, chose the HTML/XML and it looks as I wanted! :)


author: krzychus
body: I'm not sure, I just click on "Edit"... so I guess it's Page editor.


author: Steven F Behnke
body: Are you pasting it in the XML Source Editor or in the Page editor?


Tags: format

paste
Profile Picture Macro
Asked by Amt f?r Informatik Kt.Schwyz:

Hi.

Is it possible or is there a way to show every Profile Picture? I dont want to instert the ProfilePicture Macro 300times. Is there a way to Show every Profile Picture with one Macro (like the Userlister Macro but with the Profilepictures)

Sincerly.

Bastian


Answers:
author: Stephen Deutsch
body: Hi Bastian,

I thought I would throw something together to solve your problem. It's a user macro that works together with the user list macro and substitutes the tiny grey figure with the user's avatar. If there's a lot of people, it takes a few seconds to load, but it does the trick anyways :smile:

```
## @noparams&lt;script&gt;  AJS.toInit(function() {    jQuery('img[src="/images/icons/user_bw_16.gif"]').each(function() {        var image = jQuery(this);        var username = image.next().next().text();        username = username.substring(1, username.length - 1);        jQuery.ajax({            url: contextPath + "/rest/prototype/1/user/non-system/" + username + ".json",            success: function(userData) {                image.attr("src", userData.avatarUrl).attr("height", 48).attr("width", 48);            }        });    });  });&lt;/script&gt;
```

Just insert this user macro in the same page as a user list and it will work its magic (you may want to set it as visible to administrators only so you don't confuse the regular users).

I only tested this on Confluence 5.7, so I'm not sure how well it works on earlier/later versions.


author: rrudnicki
body: Hi Bastian,

I believe we don't have this feature on Confluence or third party plugins.

However, I created this improvement request:

<https://jira.atlassian.com/browse/CONF-37927>

Please vote on that to increase the visibility and keep updated.

Regards,

Renato Rudnicki


Tags: confluence-administration
Confluence just hangs on blank page
Asked by Kirsten Achtelstetter:

Hi,

I've downloaded a trial version of Confluence Server (5.8.4-x64) and installed it on a Windows 7 Pro box (SP1).

Going through the wizard works fine and it tells me I've successfully installed Confluence. I then click to open it in a browser and it connects to "<http://localhost:8090/setup/setupembeddeddb-default.action;jsessionid=FB2AC0FCE5E7BD813C894B6F88B52C1D>"

But that's where it ends. It just stays on a blank page and doesn't seem to do anything.

I've looked at the logs and under C:\\Program Files\\Atlassian\\Confluence\\logs the last log that is written to (catalina.20015-06-15) contains the following warning followed by a severe error:

```
15-Jun-2015 11:30:38.477 WARNING [main] org.apache.catalina.core.StandardServer.await StandardServer.await: Invalid command '' received15-Jun-2015 11:32:53.418 SEVERE [http-nio-8090-exec-3] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, location=/500page.jsp] org.apache.jasper.JasperException: An exception occurred processing JSP page /500page.jsp at line 120
```

Any thoughts on how to fix this??


Answers:
author: Kirsten Achtelstetter
body: Turns out we didn't have a Tomcat server running, so I install one as well as installing JDK and setting the %CATALINA_HOME% and %JAVA_HOME% variables to their appropriate install directories. It's now running! Phew.

comments: author: Renato Alexandre
body: Kirsten,Could you provide the correct path for both os these variables in your environment please??I'm facing the same problem....Cant figure out where is the error atm..Thank you!


author: Kirsten Achtelstetter
body: There is another error in the atlassian-confluece.log which is this:

```
[atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action -- url: /setup/setupembeddeddb-default.action | userName: anonymousjava.lang.IllegalStateException: Unrecognised setup type: initial
```

Any thoughts?


Tags: confluence-administration
Tiny URLs do not work properly in Firefox or Safari orIE browsers
Asked by sidhartha:

I have used tiny URLs to link a document to a section within another document. While, the tiny URL link resolves correctly in Chrome and Opera browser, the same cannot be said about IE, Firefox, and Safari browsers. For them, the system just takes me to the top of the landing page of the linked document, rather than the exact section within the document. Please let me know how to resolve this issue.


Answers:
author: Kirstin Seidel-Gebert
body: Hi Sidharta,

do you have this only with tiny URLs?

We are having this issue for a long time with FF with "normal" links. I suppose this is due to a FF Bug ([Scrolling to anchor fails in Firefox 4](https://bugzilla.mozilla.org/show_bug.cgi?id=645075)) which has been filed a long time ago.  
Our workaround is to reload every page ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") via java script in "Custom HTML" section.

Cheers,  
Kirstin


author: sidhartha
body: Hi Kirstin,

For Firefox and IE, the link does not take me to the exact section in a document but somewhat near to that section. In case of Safari, tiny URLS do not work.I replaced the same with standard links and it worked just fine.

Cheers,

Sidhartha