youngmon/atlassian-qna huggingface dataset:
I went to get the number of likes on page. How can get using REST api
Asked by Chetan Choudhary:

I went to get the number of likes on confluence page. How can get using REST api


Answers:
author: Aleksandr Zuevich
body: Hi,

use GET /rest/likes/1.0/content/{id}/likes, where id is the numerous pageId.

comments: author: Chetan Choudhary
body: Hi,

I am trying below

<https://cgchetan.atlassian.net/wiki/rest/api/space/TES/likes/content/196610>

but its not working


author: Aleksandr Zuevich
body: and this: <https://cgchetan.atlassian.net/wiki/rest/likes/1.0/content/196610/likes> ?


author: Chetan Choudhary
body: Thank you it works..


author: Chetan Choudhary
body: Suppose I want to get just the total count of likes for page is there api for this.


author: Richard Cross
body: Sorry to necro this thread, but: *how on earth did you find this api*? The solution you've given still works some five years later (2022) and yet it's neither documented by Atlassian nor incorporated into their supported REST API.


author: Helen Setchell
body: Also a bit necro...

Was googling for an answer on how to find likes and found this (thanks [@Aleksandr Zuevich](/t5/user/viewprofilepage/user-id/671242)), but in answer to [@Richard Cross](/t5/user/viewprofilepage/user-id/664850) the next method I use when I can't find answers or documentation is to open the web dev tools in my browser, select the network tab, reload the page, and then look to see if I can find the relevant request.

Then I hack it around, guessing at the URLs the developers of the api might have come up with, to try and work out what it can and can't do.

This won't always work - it depends how the website devs have built the pages.

I can also try more specific google searches once I have the URL (wrapping the URL in speech marks in google).


author: Move Work Forward
body: Hello everybody and [@Aleksandr Zuevich](/t5/user/viewprofilepage/user-id/671242) ,

Any idea how to like a page on user's behalf?

When I use the API above with my API token it works, when I try to do it using the Connect App - no auth error :(

Thanks,

Leo

comments: author: Aleksandr Zuevich
body: Hi Leo,

Have you read about [Authorization for Connect apps](https://developer.atlassian.com/cloud/jira/software/security-overview/)?


Tags: developer
Can I back up Conflunce through SSH
Asked by soldesk:

Good day to all,

We're currently suffering a major catastrophe, we cannot access the confluence URL and we cannot back up the files

Question 1.) can we back-up the confluence use SSH?

Question 2.) can we use the backed-up data to rebuild a new confluence sever?


Answers:
author: MoroSystems Support
body: Hello,

Questions 1.):

Yes, XML backup in Confluence is not the only backup option.

You can create DB backup on database application.

Are you using PostgreSQL database?

Questions 2.):

a) You should migrate CONFLUENCE_HOME folder and CONFLUENCE_INSTALL folder + DB backup to new confluence server.

b) Create new DB and migrate DB backup into new DB.

c) If you change the location CONFLUENCE_HOME, you should change PATH in CONFLUENCE_INSTALL/`confluence/WEB-INF/classes/confluence-init.properties to` CONFLUENCE_HOME folder.

comments: author: soldesk
body: Yes, we are using PostgreSQL, how will we back up the DB? pg_dumb is not working.

We have migrated the confluence from Linux to windows, the problem is the migration of PostgreSQL DB. :(


author: MoroSystems Support
body: pg_dumb is wrong. pg_dump is correct.

Maybe you are not configured PATH to pg_dump on alternatives.

You should create new folder with access

**chmod -R 777 new_folder**

You should start pg_dump on

**cd /usr/pgsql-X.X/bin/**

You should go to postgres user:

**su postgres**

Create db backup:

**./ pg_dump -U dbrole dbname -f PATH_NEW_FOLDER/filename.sql**


author: soldesk
body: Sorry my bad, anyways when I go to Postgres user this message appeared :

![denied.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/7100i6F13BF3983E6D93D/image-size/large?v=v2&px=999 "denied.PNG")

any idea what is it?

thanks [@MoroSystems Support](/t5/user/viewprofilepage/user-id/1142727)


author: MoroSystems Support
body: It is correct. You are postgres user in OS.  

Now you do it:  
**cd /usr/pgsql-VERSION_POSTGRES/bin/**

<br />

**./pg_dump -U dbrole dbname -f PATH_NEW_FOLDER/filename.sql**   

Please check PostgreSQL client programs:  

**yum info postgresql.x86_64**


author: Nic Brough -Adaptavist-
body: "Permission denied" means your account does not have the right to run it.

You need to talk to your server administrators about granting that permission to it,
Can I hide elements from only anonymous users via CSS?
Asked by Timo Lagus:

I can hide elements from anonymous users via JavaScript, but this usually introduces some flicker, since I have to wait for AJS to initialize.

**To avoid the flicker, is there a way to do this directly via CSS, that is, to check for some CSS class specific to anonymous or logged-in users?**

I haven't been able to spot any such classes in Confluence page code. If there indeed are none, would this be a technically feasible or sensible feature to request from Atlassian?

I think it would basically be enough to add a class to the \<body\> or some other high-level element when the user is or is not logged in. I guess this could also be an element attribute rather than a class, since you can also check for attribute values with CSS.


Answers:
author: Maarten Cautreels
body: Hi Timo,

I'm afraid no id/class/... is added when an Anonymous user opens your Confluence site.

You can suggest this feature via [jira.atlassian.com](http://jira.atlassian.com) if you'd like.

Best,

Maarten

comments: author: Timo Lagus
body: Thanks for the info, Maarten. I'll submit a request.

Cheers,

Timo


author: Timo Lagus
body: I submitted the following request:

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


author: Ahmed El Atab
body: [@Timo Lagus](/t5/user/viewprofilepage/user-id/1154045)

I noticed that there are metadata related to signed in users:

```
<meta name="ajs-remote-user" content="username">
<meta name="ajs-current-user-fullname" content="User's Name">
```


author: Timo Lagus
body: But you can only read metadata with JavaScript. I cannot access **\<meta\>** tags with CSS.


author: Ahmed El Atab
body: Why don't you make the opposite?  
Keep those HTML elements hidden until you detect by JS that the user is logged in to display for him!


Tags: anonymous

css

javascript

user
CQL crafted URLs give 404 unless you open in a new tab
Asked by Sean Smith:

Edit a page and put in a URL like this (sub you domain and an identifier to a valid page):

[https://company.atlassian.net/wiki/dosearchsite.action?cql=type+%3D+%22page%22+and+parent+%3D+%221740407%2](https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=type+%3D+%22page%22+and+parent+%3D+%221740407%22)2

Save the page. Click the link. Get a 404. Hold CTRL\|Command and click the link...works!


Answers:
author: Maarten Cautreels
body: Hi Sean,

This could be related to addons or extensions that you've installed in your browser like Adblockers.

Could you verify if you have some installed, disable them and try again?

Best,

Maarten

comments: author: Sean Smith
body: Happens on Chrome, Firefox, Safari...with Safari having no extensions.

Viewing page source on a page with such a link shows me that Confluence generates the page contents all from javascript. That tells me the likely culprit is the click handler on the link is grabbing the URL to send to the server.

Coming in through the front door works, but coming in through your app controller (not through the default route) does now. Likely there is some HTTP encode/decode going on (either the HTTP REST POST, or inside the app controller that is messing things up.
Can't create a Browse Shortcut with a CQL (advanced) search
Asked by Sean Smith:

Trying to add this URL as a browse shortcut:

[https://company.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+\~+"\*"+and+space+%3D+"ATD"+and+type+%3D+"page"+and+label+%3D+"serviceprogram"\&queryString=](https://company.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+"*"+and+space+%3D+"ATD"+and+type+%3D+"page"+and+label+%3D+"serviceprogram"&queryString=)

That link works fine in a browser. Two problems when trying to turn this into a Browse Shortcut (in my case, trying to create a shortcut named asi-sp):

1) The Browse Shortcut config page says invalid URL. That's because of the quotes. I changed them to single quotes and it still works in the browser, and viola! Browse Shortcut created.

2) When using the shortcut (ex: \[email@asi-sp\] things go OK, but when you click on the clink, total barf (404). Here is the resulting URL:

[https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=siteSearch%2B\~%2B%2527\*%2527%2Band%2Btype%2B%253D%2B%2527page%2527%2Band%2Blabel%2B%253D%2B%2527serviceprogram%2527\&q=email](https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=siteSearch%2B~%2B%2527*%2527%2Band%2Btype%2B%253D%2B%2527page%2527%2Band%2Blabel%2B%253D%2B%2527serviceprogram%2527&q=email)

As you can see, the quotes, plus symbols, percent signs are getting escaped by Confluence.

If I manually edit the URL back to what it is supposed to be:

[https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+\~+'\*'+and+type+%3D+'page'+and+label+%3D+'serviceprogram'\&q=email](https://auctionedge.atlassian.net/wiki/dosearchsite.action?cql=siteSearch+~+'*'+and+type+%3D+'page'+and+label+%3D+'serviceprogram'&q=email)

It works great.


Answers:
author: Shannon S
body: Hi Sean,

Wasn't able to replicate this specifically, even if I send the URL to myself in email it opens properly. The broken link for me wasn't throwing a 404 but telling me there was an issue with my search query.

However, I don't think it's Confluence re-writing the URL, it appears to be related to the email client or browser. This is because it's using reserved symbols in the URL and it automatically corrects it.

What if you were to use a URL shortener, such as tinyurl and send the link to search results that way? Does it work for you?

Kind Regards,  
Shannon
Changing horizontal header to vertical
Asked by Kristina:

Could you please help me to find any documentation on how to change a header to vertical from the horizontal view. There is no correct information on the website. All the links a broken as you can see below:![Screen Shot 2017-09-30 at 10.53.46 AM.png](/t5/image/serverpage/image-id/7084iD26174E7C35A35D8/image-size/large?v=v2&px=999 "Screen Shot 2017-09-30 at 10.53.46 AM.png")


Answers:
author: Kristina
body: Hi Maarten,

Thank you for your response. The links seem to be working now. I am attaching the navigation bar. Please take a look at the image. That's what I see on my left side bar. Is there any way to move it up?

Thanks,

Kristina ![Screen Shot 2017-10-02 at 4.17.24 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/7146iC89261272C49311E/image-size/large?v=v2&px=999 "Screen Shot 2017-10-02 at 4.17.24 PM.png")


author: Maarten Cautreels
body: Hi Kristina,

Atlassian has recently redesigned Confluence and has switched from a horizontal nav-bar to a vertical one.

I'm afraid you won't be able to easily switch between horizontal and vertical nav-bar/headers.

Can you share the url of where you took the screenshot you posted?

Best,

Maarten


Tags: header
Updating a JIRA ticket and the update automatically adjusts confluence
Asked by Kim Lewis:

Our requirements live in Confluence and then transferred to JIRA tickets. We see JIRA as our "source of truth" if you will, wanting to know if anyone knows of a feature that allows the updates made to a particular ticket in JIRA to update the requirements doc in confluence. Thanks in advance!


Answers:
author: Annie
body: Hi Atlassian team, I have a similar use case and I want to know if there is any possible solution or workaround available. Here is what I want to do:

"We will have a confluence page setup that is based on a JIRA project. Basically, a compilation of all the tickets on a confluence page and we want to keep on updating the Page per updates on the JIRA ticket.

I know we can link a JIRA issue to a confluence page but we want to get a notification or some sort of updates on the same confluence page as soon as a JIRA ticket is updated along with the date."


author: Kim Lewis
body: Absolutely! I'll set the scene for you. I'm demoing a new feature to my boss and wants an adjustment made. So I can have my dev start in it immediately I go and update the JIRA ticket they're working from to reflect the change. I then have to go update our decision log (which is fine) and update the supporting requirements doc in Confluence.

This may not sound like a lot but it can get out of hand quickly because of the size of the project so, I'm looking for a way to auto-update the requirements document with the changes I've made to the JIRA ticket. I figured this was a feature since Confluence allows you to easily transfer requirements into tickets with two clicks. Thanks in advance on any light you can shed :)

comments: author: Alexis Evans
body: [@Kim Lewis](/t5/user/viewprofilepage/user-id/262928) I know it's been a while, but did you ever figure out a solution to this? I know one way might be just to replace the entire page including the new content, but in my case, I'm looking for a way to change only some of the information.


author: Nic Brough -Adaptavist-
body: This is a bit difficult.

In Confluence, you can easily use the Jira macros to pull data (especially status) from the Jira issues, but these don't update a Confluence page, they just report on the issues.

I think your question is a bit deeper than that, but I don't want to project my guesses or instincts.

Could you go into a bit more detail about what you want from "update automatically adjusts Confluence"?
Workflow and tasks at same time
Asked by Alexander levy:

in a given page, can you have tasks and workflows (comala workflow) at the same time? I notice if I set up tasks, then delete them. Then add a workflow, the tasks will still exist in the background... Is this how its supposed to be?


Answers:
author: Mike Rink
body: Hi Alexander, I am a team member with Comalatech. Can you clarify what you mean by "in the background"? On the page, or in the Audit log, or somewhere else? Let me know what you're seeing and I'll do my best to help you out.


Tags: addon-com.comalatech.workflow

atlassian-marketplace

questions-for-confluence

task

workflow
Roadmap Planner - Multi Year Plans
Asked by Justin Ulland:

This little tool is great for shorter plans. It doesn't work though for 5 or 10 year plans because time increments are only week / month. Would anyone else find it useful to include Qtr/Year as options to make possible to get a 5 year plan into this and display it without having to scroll sideways?


Answers:
author: Shannon S
body: Hi Justin,

Appears that the limit of planning is to 5 years per the screenshot in this feature request:

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

Additionally, we have another one that describes as similar need and may end up being merged with the other:

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

My recommendation is to vote on both, since it shows the need for the feature, and leave a comment with your exact use case. You can also watch the tickets in order to be updated on any changes

Let us know if you have any questions!

Kind Regards,  
Shannon


Tags: advanced-roadmaps
How do you link an existing wiki to a confluence space
Asked by Accolent Support Manager:

We have an existing wiki, we'd like to make available to JSD using Confluence


Answers:
author: Brant Schroeder
body: If you would like information to be searchable in JIRA service desk that is in another wiki you will have to migrate that into Confluence. there might also be a plugin. You can learn more about migrating content here: <https://confluence.atlassian.com/conf51/importing-content-into-confluence-336169436.html>

If it is already in a Confluence Space you could move it to your service desk knowledge base space in Confluence or just point service desk to that space as your knowledge base.
how to add datepicker on my confluence on my template
Asked by d98kas:

Hi,

I am trying to add a datepicker. When I am checking what I have avilable macros I cant find datepicker. The only macros that I have is:

* Current Date
* Date Data
* Date Filter
* Team Calendars

No one of this macros solve my issue that I have. I wonder if can I add it using HTML.

I am looking forward to hearing from you

Best regards,

Kalid


Answers:
author: Teddy Thomas
body: For anyone else that's looking for a native answer, it looks like you can insert "$currentDateLozenge" in the template to get the date picker, set to the current date by default. This appears to be how some default templates do it, and there's no need to use the Source Editor plugin.


author: Andrey Khaneev _StiltSoft_
body: Hi Kalid,

You can use [Handy Date](https://docs.stiltsoft.com/display/HMFC/How+to+use+Handy+Date) feature shipped with [Handy Macros](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.handy.macros/server/overview) add-on.
Why can't I edit a table in a page created from a template?
Asked by Esther Strom:

Using Confluence 5.4.2 (yes, I know, EOL; we're working on upgrading.) I have a custom template that has several tables added so users can enter contact info on pages created from the template. It's not using any fancy macro; just the native Table function. I can edit the tables in the template itself, but when a user creates a page from the template, the tables are not editable. Am I doing something wrong, or is this expected behavior?

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


Answers:
author: Brant Schroeder
body: I have templates with tables and we are able to edit. Are you able to edit tables if you create a page? Also what happens if you save and then edit the page again is it still not editable.
See all content without other administration rights.
Asked by Wolfgang Lutz:

Is there a way to see the content of all pages and spaces in the Confluence site, regardless of space permissions or page restrictions but without any other administration rights.

See all content like the special group "confluence-administrators" but without the Confluence-Administrator and the Systemadministrator rights.

Is there a special group like "confluence-content-administrators"?

I need this for a group of user the only take care about the content and not about the Confluence techn. administration.


Answers:
author: Nic Brough -Adaptavist-
body: No, you have to grant access for each space.
Lost all user edit capability
Asked by fint_alare:

not meant to be in comunity


Answers:
author: Peter DeWitt
body: Josh, it looks like your having a rough days here in the community forums. :) - hope things get better!

-pd

comments: author: fint_alare
body: every time I try to get a hold of atlassian it ends up posting in the community


author: Nic Brough -Adaptavist-
body: I'd suggest you stop posting stuff instead of posting and then changing your mind.


author: Nic Brough -Adaptavist-
body: Ah, ok.

What are you trying to do?


author: Peter DeWitt
body: Josh, this is the link to support:

<https://support.atlassian.com/contact/#/>
After a page save, all links in the page replaced with the saved page link
Asked by MDA:

Hi,

It saw it three times now. After editing a page, all links (referring to other pages or users) within the page was replaced by the same link which was to the saved page (itself!). The following is a snapshot of the received email that display the one of the changes. These usernames were replaced automatically after clicking on the save button. And that's the same for all other link in this page, i.e. all replaced by a link to the page that was edited.

![IssueConfluence_LinkReplacedAutomatically_2.PNG](/t5/image/serverpage/image-id/7023iE0E52EA783339B34/image-size/large?v=v2&px=999 "IssueConfluence_LinkReplacedAutomatically_2.PNG")

Setup: Confluence 6.0.3, Postgres 9.5.6

This is an important issue since you are not sure if you page will be automatically corrupted after a page save. Did not find any related subject so far.

Regards,

Guillaume


Answers:
author: Shannon S
body: Hello, Guillaume,

I was able to find this reported in [CONFSERVER-53275](https://jira.atlassian.com/browse/CONFSERVER-53275) which was merged with the official bug report in:

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

You should be able to avoid the situation by [temporarily disabling Collaborative editing](https://confluence.atlassian.com/conf60/administering-collaborative-editing-852732551.html#AdministeringCollaborativeEditing-Changetheeditingmode).

The issue is showing as related to this other bug: [CONFSERVER-52060](https://jira.atlassian.com/browse/CONFSERVER-52060) and so if you recently changed the base URL in Confluence it could have triggered the problem.

If you vote on the above bug, it can help show the developers how many users are running into the problem. Please also feel free to watch the case in order to be updated on any progress. Let me know if you have any questions.

Let me know if you have any questions.

Kind Regards,  
Shannon
Whether Confluence Wiki version 5.0.3 uses SAML Authentication?
Asked by Divya Dangeti:

Hi Team,

Can you tell whether Confluence Wiki version 5.0.3 uses SAML Authentication or not?

Thanks,

Divya.


Answers:
author: Lars Olav Velle
body: Confuence data center offers SAML. If you have Confluence Server then you\`ll need to use a app from the Atlassian Marketplace.

I work for Kantega which offers SAML and Kerberos SSO:

<https://marketplace.atlassian.com/search?query=kantega>

-Lars

comments: author: Divya Dangeti
body: Hi Lars,

How can we get to know that our Confluence server is using SAML Authentication or Kerberos Authentication.

Thanks,

Divya.


author: Divya Dangeti
body: Hi Lars,

Our confluence wiki is using SSO CAS Authentication.

Requets you tell us how can we get to know that our Confluence server is using SAML Authentication or Kerberos Authentication.

Regards,

Divya.


author: Lars Olav Velle
body: With SAML you are typically redirected to CAS, where you enter your logon credentials.

With Kerberos you are seamlessly logged in with no passwords asked.

Based on that, perhaps you know better what you are using?

CAS supports both SPNEGO (Kerberos) and SAML

<https://apereo.github.io/cas/5.1.x/installation/SPNEGO-Authentication.html>

<https://apereo.github.io/cas/5.1.x/installation/Configuring-SAML2-Authentication.html>