youngmon/atlassian-qna huggingface dataset:
How to search for a page in cloud version of confluence using REST API
Asked by SN:

I am using Rest API examples to search a page in confluence.

It is working fine when i use my work confluence url but when I use cloud version of confluence, it is failing with below error, error description is not clear.

Traceback (most recent call last):  
File "confluence-search-cql.py", line 48, in \<module\>  
search_word(confluence=confluence, word=WORD)  
File "confluence-search-cql.py", line 26, in search_word  
for answer in answers.get('results'):  
AttributeError: 'str' object has no attribute 'get'

Thanks in advance for your help!


Answers:
author: SunRiser
body: The error *AttributeError: 'str' object has no attribute 'get'* is misleading and usually occurs due to authentication error or when you pass incorrect password as mentioned on this link: <https://github.com/atlassian-api/atlassian-python-api/issues/332>

On Cloud instance of Confluence, your request should include the correct token

*You have to remember that using API password is not the same password you are passing using UI.
On API password == api key generated in <https://id.atlassian.com/manage/api-tokens>*

You can also refer to this page:

*<https://community.atlassian.com/t5/Jira-questions/How-to-use-API-token-for-REST-calls-in-Python/qaq-p/736702>*

comments: author: SN
body: Thank you, using API token resolved the issue.


Tags: cloud

confluence-cloud
How to automate in Wiki instead of doing it manually?
Asked by Anirudh B Balotiaa:

Hi,

I am using Confluence Wiki to manage UX Research project.

A bunch of PMs visit Customers and then enter Customer Details on a single page.

For the weekly report I need -

1. How many PMs went to meet Customers for a particular week or how many customers have each PM met.

2. What all kind of customers we met? Lets we met 2 customers of Profile-A, met 3 of Profile-B and so on.

At present, for both the above I manually count and update on another page. If it was excel I can probably generate a pivot table and get the summary info.

Is there a better way to do it than me counting manually?

Thanks in anticipation.


Answers:
author: Oliver Shen
body: Hi Anirudh,

I believe the Page Properties Report Macro could be of use to you here, if you don't mind having your PMs enter customer details on separate pages. In this case, your page properties macros would contain the details of each customer-PM meeting, allowing you to collect the information you're looking for from the page properties report. Additionally, you could streamline this process for your PMs by using a Page Template to create the pages with the page properties on them.  
There's documentation that may help you if you choose this approach [here.](https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html)  

Alternatively, there are various apps on the marketplace that support pivot tables which may be able to provide the functionality that you're looking for:

* [Pivot Table](https://marketplace.atlassian.com/apps/1214165/pivot-table?hosting=server&tab=overview)
* [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview&from=documentation)


Tags: confluence-server

server
Collaborative editing how many users at the same time in cloud?
Asked by Marco:

Hey there,

just a quick question: On confluence cloud, how many users can work on a single page at the same time?

On server 7.10 I found out that there is a maximum of 12 people! Is this the same for the cloud?

Best regards

Marco


Answers:
author: Marco
body: Hi [@Marco](/t5/user/viewprofilepage/user-id/2530658) ,

11 team members can edit a confluence page in the cloud. For more info <https://confluence.atlassian.com/confcloud/create-edit-and-publish-724764831.html>.

Regards,  
Sravya

comments: author: Marco
body: Thank you for the information! :)


author: Tina Hutchinson
body: FYI for anyone else stumbling across this, the total number of users who can edit a page at the same time is 12, including yourself, if you read the text closely from the link above:  
"**You and up to 11 teammates** can edit a page together in real time in Confluence."


Tags: cloud

confluence-cloud
Need help with export/import
Asked by Kamal:

Hello!

I have got into a situation where the client has an on-prem version of Confluence Wiki.

I want to create a new space by exporting from Confluence Cloud and importing on to their on-prem instance.

Please suggest how to go about doing this and what privileges you need to have to perform this action. Other tips will also be helpful. Thanks!


Answers:
author: Ollie Guan
body: Hello [@Kamal](/t5/user/viewprofilepage/user-id/1181890) ,

You can refer to this guide for cloud to server migration or individual spaces.

[Import a space from Confluence Cloud](https://confluence.atlassian.com/doc/import-a-space-from-confluence-cloud-967876449.html)

[Migrate from Confluence Cloud to Server](https://confluence.atlassian.com/confcloud/migrate-from-confluence-cloud-to-server-724765578.html?_ga=2.33431230.1050013486.1573435857-1478559027.1570682324)


Tags: confluence-cloud
Error: Unable to communicate with server. Saving is not possible at the moment.
Asked by Kirsty Beer:

We are receiving this error message trying to save anything. I have read through all threads associated with this and tried several things, but still getting the error on anything we try to save.

Occurring on multiple browsers, so not related to Chrome extensions.

Can anyone provide any assistance on what we can investigate as we can't save any data.


Answers:
author: Kiran Panduga {Appfire}
body: Hi [@Kirsty Beer](/t5/user/viewprofilepage/user-id/3630109)

Looks to me an issue with Synchrony process which is used for collaborative editing feature.

Please visit the below Atlassian KB to troubleshoot the collaborative editing

<https://confluence.atlassian.com/doc/troubleshooting-collaborative-editing-858772087.html>

Thanks,

Kiran.


Tags: confluence-server

server
free version formula input
Asked by Xin Li:

hello everyone,

I am new for confluence use

I would like to know if it's possible to insert mathematical formula for the free version of confluence.

thanks


Answers:
author: Peter DeWitt
body: [@Xin Li](/t5/user/viewprofilepage/user-id/3629993) , No - adding a mathematical formula either through additional formatting (like an equation) or through a spreadsheet (like excel) is not possible with the default Confluence. You would need to look at a third party App. -pjd


Tags: cloud

confluence-cloud
Problem with SSL certificate
Asked by Josep Maria Pinyol:

Hello,

I'm following this guide:

<https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html>

But when I'm try to import the SSL certificate (issued by gandi.net), I get this error:

keytool error: java.lang.Exception: Failed to establish chain from reply

In this document there is a tip with a possible solution using Verisign or GoDaddy certificates, but I don't understand how to apply this solution.

Any idea?

Thank you,

Josep Maria


Answers:
author: Alexis Robert
body: Hi [@Josep Maria Pinyol](/t5/user/viewprofilepage/user-id/357645) ,

this usually means that there is an intermediate certificate missing from the certificate you're trying to import into the keystore. Can you find in your Gandi interface something like a "full chain" or "intermediate" certificate ? This is what you should then import into the keystore.

Let me know if this helps,

--Alexis

comments: author: Josep Maria Pinyol
body: Ok, finally I can import my certificate using these steps:

1. Import root certificate:

keytool -import -alias root -trustcacerts -file USERTrustRSACertificationAuthority.crt

2. Import intermediate certificate:

keytool -import -alias intermediate -trustcacerts -file GandiStandardSSLCA2.pem

3. And finally

keytool -import -alias tomcat -file \<YOUR_CERTIFICATE.crt\>

And works fine.

Thank you [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386)


author: Andr? Costa
body: .


Tags: confluence-server

server

ssl
How to change the page title allignment to the right
Asked by test:

I would like to change the ++**page title**++ alignment from the left side (default) to the **right** in order to achieve RTL in Hebrew

I have found a user macro for the body that works just fine but I need to also change the page title alignment


Answers:
author: Paz Grimberg
body: Hi,

You can use Methoda's RTL for Confluence addon:

[RTL for Confluence \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1228597/rtl-for-confluence?hosting=datacenter&tab=overview)


author: Shannon S
body: Hello!

Thank you for raising this with us. It's currently not possible, but we have a feature request for this below:

* [CONFSERVER-55860](https://jira.atlassian.com/browse/CONFSERVER-55860) *Support for RTL languages (Hebrew, Persian, Arabic) when editing content*

In the meantime, you can use CSS to change this:

```
#title-text {
    direction: rtl;
}
```

> **To edit a space's CSS style sheets:**
>
> 1. Go to the space and choose **Space tools** \> **Look and Feel** from the bottom of the sidebar
> 2. Choose **Stylesheet** then **Edit**.
> 3. Paste your custom CSS into the text field.
> 4. Save your changes. The new CSS will be visible on all content pages in the space.  
>
> **To edit your global CSS stylesheet:**
>
> 1. Choose ![](https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png) \> **General Configuration** \> **Stylesheet** .
> 2. Choose **Edit**.
> 3. Paste your custom CSS into the text field.
> 4. Choose **Save**

See [Styling Confluence with CSS](https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html) for more information!

Please let me know if you have any issues or questions.

Regards,

Shannon


Tags: confluence-server

server
how do i config what appears in the "switch to" panel
Asked by thomas menzel:

note that my account is quite old and the config that got me into this state might not be readily available anymore.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/72325iC3F122FBF4AEE4B0/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Daniil Penkin
body: Hello [@thomas menzel](/t5/user/viewprofilepage/user-id/3628427),

Thanks for reaching out.

There's no configuration as such for this, the switcher shows all Atlassian products and sites that *you have access to* . Basically, similar to what you can find at [start.atlassian.com](https://start.atlassian.com/), grouped by product.

Hope this helps.

Cheers,  
Daniil

comments: author: thomas menzel
body: ok thanks, but what does "have access to" mean ?

am i a user there with write permissions?

and how do i un-config this ?


author: Nic Brough -Adaptavist-
body: "Has access to" means you can log into it (usually with some write access, but it is possible to set people up with read-only). It is just "this system recognises your account".

To "un-config" it, removing items from the list, you have to get yourself removed from those systems. You'll need to contact the site admins for each system to have yourself removed.


Tags: bitbucket-cloud

cloud

confluence-cloud
404 with API token and 401 with Basic Auth when GET API call made through POSTMAN on JIRA cloud
Asked by RANJITH KUMAR:

Hi,

I have a JIRA cloud account and have issue created. Created a API token to test API though postman.

Selected Authentication type as OAuth2.0 with the API Token, getting a 404 error. Also tried the same with Basic authentication getting error as 401.

Below is the URL I used [https://ranjith9960.atlassian.net/rest/api/3/issue/MAC-1.](https://ranjith9960.atlassian.net/rest/api/3/issue/MAC-1)

When this is used in a browser able to see the response, not through post Man.

Can someone help on this?


Answers:
author: Manuel Bastardo Castellano
body: You are able to see in your browser because are logged on or has cookies,

please make sure your are doing the step 2 and 3 on your headers

1. Generate an API Token for your Atlassian Account: <https://id.atlassian.com/manage/api-tokens>
2. Build a string of the form `user@example.com:api_token`.
3. Encode the string using base64.
4. Supply an `Authorization` header with content `Basic` followed by the encoded string. For example, the string `user:user` encodes to `dXNlcjp1c2Vy` in base64


Tags: cloud

confluence-cloud

jira
Issue watchers of confluence are not receiving mail notifications
Asked by pinky_reddy:

Mail notifications for confluence page update is not working as expected.


Answers:
author: Kurt Klinner
body: [@pinky_reddy](/t5/user/viewprofilepage/user-id/2679900)

Hi Pinky

are you referring to confluence on premise or the cloud version.

Does the mail notification not work for all or for specific users only?

Cheers

Kurt


Tags: confluence-server

server
Page Layout not possible to move up and down, no possible to copy them
Asked by mauro99:

Working in Confluence with Page Layouts according the [Documentation](https://confluence.atlassian.com/doc/page-layouts-columns-and-sections-275188613.html) is possible to move a section to another part of the page placing your cursor in the section you wish to move and after choosing the Move up or Move down buttons. But really in my page in editing mode I can't see these 2 buttons. How is possible?

Other question: how is possible to copy the same section in other part of the same page?

Thanks in advance


Answers:
author: Nic Brough -Adaptavist-
body: You are reading docs for Confluence Server here, not Cloud.

Sections have gone away in the new Cloud editor. Layouts replace them, but are not as powerful - you can't move layout areas around the way you can with sections, they're just about having 2 or 3 columns in a fixed point in a page now.

comments: author: Julia Lingertat
body: So I can't move them up or down the page anymore? I need that functionality! Now I have to copy and paste everything inside a layout and create a new one.


Tags: cloud

confluence-cloud

layout

section
Posting a .html file to existing conflunce page via REST API
Asked by Pavida Intatisan:

I want to post .html file to confluence page that I have created earlier via REST API. I have tried this using this PUT command with the following URL:

PUT https://\<confluence page\>/rest/api/content/\<pageID\>?expand=body.storage

This works well when I am posting normal string content to the page, but does not work when I tried to post .html file to the page.

How can I post .html file to confluence page? Which API endpoint should I use?


Answers:
author: Sven Schatter _Lively Apps_
body: You can't POST arbitrary HTML into a Confluence page because Confluence is not storing its pages in HTML but their own storage format. See my answer in the thread [Create macro via REST API](https://community.atlassian.com/t5/Confluence-questions/Create-macro-via-REST-API/qaq-p/1220681) for more details.

If you instead mean to upload the HTML file as an attachment you should use the [attachment REST API](https://docs.atlassian.com/ConfluenceServer/rest/7.1.0/#api/content/{id}/child/attachment-createAttachments).
Broken images after migration
Asked by mmmato2:

Tried to migrate Confluence server to cloud but after migration noticed that some images are broken.

![BrokenImage.png](/t5/image/serverpage/image-id/72313i15BFAF28A3E41FB3/image-size/large?v=v2&px=999 "BrokenImage.png")  
First tried to export the space and import it on the cloud. Also tried to use the migration tools on server to copy data directly to cloud but the same issue.  
The affected images are displayed correctly on the server.

Tried to compare the failed attachments and the one which got migrated properly but cannot see any obvious reason.

Here is the link from the server which failed

![failed.png](https://community.atlassian.com/t5/image/serverpage/image-id/72314i2A47D11E59C4B9F9/image-size/large?v=v2&px=999 "failed.png")

Here is one which was successfully migrated

![worked.png](https://community.atlassian.com/t5/image/serverpage/image-id/72315i575366E92CA0C858/image-size/large?v=v2&px=999 "worked.png")

My server version is: 6.15.4


Answers:
author: Kiran Panduga {Appfire}
body: Hi [@mmmato2](/t5/user/viewprofilepage/user-id/226897) ,

Can you reach out to Atlassian Support and share the export of the Confluence server space? they can evaluate the migration error and get that resolved.

Thanks,

Kiran.

comments: author: Cordula Schubert-Berker
body: [@mmmato2](/t5/user/viewprofilepage/user-id/226897) Did the Atlassian support come up with a solution or at least pinpoint the problem?


author: Annamalai, Krishnapriya
body: Hi [@mmmato2](/t5/user/viewprofilepage/user-id/226897)

Was there any solution given to this issue by Atlassian . Im facing the same issue


author: Chris Bradshaw
body: Same here. Migrated images do not show. Tried re-migrating the space and still not displayed.


author: Anand Kumar Varma Potturi
body: [@Chris Bradshaw](/t5/user/viewprofilepage/user-id/4140532) I know I am late to the party but content reindexing post migration did fix the issue for me.


Tags: cloud

confluence-cloud
I am not receiving the mail notifications for the confluence page update.
Asked by pinky_reddy:

I am not receiving the mail notifications for the confluence page update. I am watching the space and page but I am not getting updates on changes.

I am getting notified when page is getting created/deleted but having problem with page edit.


Answers:
author: Stephen Sifers
body: Hello!

Thanks for reaching out to the Community about your missing email notifications on page edits within Confluence Cloud. As you mentioned, email notifications will be sent out for @mentions and page creations for spaces you're wanting. However, updates/edits to pages within Confluence Cloud will be bulked together and then emailed. Here is additional information on this:
> To get notifications in your email and on your [mobile device](https://confluence.atlassian.com/confcloud/get-the-confluence-cloud-mobile-app-724764728.html), you can 'watch' pages, blog posts and spaces. Confluence will then send you a notification whenever anyone adds or updates content on that page or space. You get immediate emails for important notifications (like mentions and new pages), but when lots of changes are being made at the same time, you'll only receive a single email with all the changes (within a 10 minute window).

Source documentation: [Email Notifications](https://confluence.atlassian.com/confcloud/email-notifications-724765358.html)

I hope this information proves helpful.

Regards,  
Stephen Sifers


Tags: confluence-cloud
SSL setup of application links
Asked by JUS:

we got while setting up app links between confluence-jira and vice versa error: "\<link\> may be using a self-signed SSL certificate or a certificate that was issued by a certificate authority that isn't known locally."

we checked following:

* a wild card cert (\*.xyz.com) incl. ca-chain was installed in jre keystore's for jira.xyz.com:8443 (jira sw) and jcon.xyz.com:8444 (Jira confluence)
* both server.xml were configured to point to built in jre keystore (above)
* SSLPoke from jira-\>confluence and vice versa, e.g. by  
  java -Djavax.net.ssl.trustStore=/opt/atlassian/jira/jira.jks SSLPoke jira.xyz.com 8443  
  shows  
  Successfully connected
* no SSL errors shown in logs/catalina.out

Are there any other checks, we can execute to test SSL connection?

Many thanks

Jens-Uwe


Answers:
author: Anurag Jalan
body: Hi [@JUS](/t5/user/viewprofilepage/user-id/1188752) ,

You will need to import JIRA SSL Certificate in Confluence JAVA Truststore called **cacerts**usually located at path \<installation directory\>/jre/lib/security.

Similarly import Confluence SSL Certificate in JIRA JAVA Truststore called **cacerts**again.

After that, restart both services \& try to establish Application Link again (make sure you are system admin on both).

I had similar issue in past. Following above steps resolved the issue. It is about JAVA of each application trusting other's connection.

comments: author: JUS
body: Thanks, after fixing the cert issue (complete CA chain added,see above), app links are established now correctly on both sides.

Jens-Uwe


author: Alexis Robert
body: Hi [@JUS](/t5/user/viewprofilepage/user-id/1188752) ,

from the error message, I'd say that it's something to do with an intermediate or root certificate, are you sure that you imported the proper root CA in the keystore ? I usually point to this doc for this : <https://confluence.atlassian.com/kb/how-to-import-a-public-ssl-certificate-into-a-jvm-867025849.html>

If you don't need SSL for your application links, I would suggest configuring a separate connector in server.xml just for this connection : <https://confluence.atlassian.com/kb/how-to-bypass-a-reverse-proxy-or-ssl-in-application-links-719095724.html>

Let me know if this helps,

--Alexis

comments: author: JUS
body: Indeed after in depth investigation, the previously imported cert missed the cert chain. Including the complete chain into pkcs12 and re-importing into keystore solved the problem. many thanks, Jens-Uwe


Tags: confluence-server

server
Can I update an individual Confluence page to the latest version?
Asked by Jason Galletly:

I am trying to create a standardized format for a handbook that is written across about 25 Confluence pages, but I am running into issues between having existing pages in an older format and creating new pages that automatically are created in the new format.

I saw that there were website wide updates going out starting in February, but the site I'm working in is quite large, by my understanding, and so the updates have not come yet. Also, I am only responsible for a certain section of pages and I don't really need the whole website to get updated.

A manually intensive way to solve my problem is to create new pages in the new format and then copy and paste the information from the old page to the new page (plus update any links) and then delete the old page, but I would rather not have to do that.

So my main question is this, is there a faster way to update individual pages to the updated format?

Thanks.


Answers:
author: Avinoam
body: Coming soon (<https://community.atlassian.com/t5/Confluence-articles/How-we-roll-out-the-new-editor-in-Confluence/ba-p/1204966>)


author: Sven Schatter _Lively Apps_
body: As far as I'm aware there is not. The copying/pasting method that you mentioned is currently the only way. I think this is partly because there are still some incompatibilities between the old and new editor such as nested macros or other features that are not available anymore in the new editor.


author: bruce_white
body: I was wondering if there is an update to the issue this user was having as I am running into the same issue. Is copying and pasting still the best solution?

comments: author: Jason Galletly
body: I have since been able to convert old pages to the new format by going into the editor. In the bottom left I have a button to preview the new page format. Once I've clicked to preview the page, I can then choose to commit to the new format.

Can you see this preview bar when you're on an old page and in edit mode?![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/180375iE434D36651E978A3/image-size/large?v=v2&px=999 "image.png")


Tags: cloud

confluence-cloud