youngmon/atlassian-qna huggingface dataset:
How to import Confluence-rest-library and download attachment in Confluence
Asked by Celine:

Hi,

I'm trying to download attachments from Confluence by confluence-rest-library. And found there is a get_attachments function in confluence-rest-library. However, I'm not very sure how to use this library.

1. When install the package, besides the 'Successfully installed confluence-rest-library-1.0.0' message, I also get several 'Using cached..', 'Requirement already satisfied' message. So I'm not sure whether the package is installed completely successful or not. I tried to uninstall and reinstall it, but still get same messages.

2. in the readme for this library, saying to import the library, the syntax is

" from confluence.client import Confluence  
with Confluence('https://site:8080/confluence', ('user', 'pass')) as c:  
pages = c.search('ID=1')"

What does 'c:' mean? and what should be put in the search(??)?

I've double checked the package is in the same path as my other python packages, such as requests which can be import directly by 'import requests'.

3. Has anyone had the same import problems? Or has any suggestions in how to download the Confluence attachments to local? Please advise.

Thanks,

Xilin


Answers:
author: Celine
body: Update:

I seem to be able to connect to Confluence by:

confluence = Confluence('https://site:8080/confluence', ('user', 'pass'))').

I tried to get attachment with the get_attachment function:

attachment = confluence.get_attachments(content_id='XXX', expand='None')

print('attachment =',attachment)  
print ('attachment type =',type(attachment))

then I get the result as:

attachment = \<generator object Confluence._get_paged_results at 0x031413C0\>  
attachment type = \<class 'generator'\>

However, when I try to print the attachment generator by:

print (next(attachment))

I got the following error messages:

File "C:\\Users\\...\\Python\\Python36-32\\lib\\site-packages\\confluence\\clien  
t.py", line 111, in _get_paged_results  
Confluence._handle_response_errors(path, params, response)  
File "C:\\Users\\...\\Python\\Python36-32\\lib\\site-packages\\confluence\\clien  
t.py", line 78, in _handle_response_errors  
raise ConfluenceResourceNotFound(path, params, response)  
confluence.exceptions.resourcenotfound.ConfluenceResourceNotFound: **Resource was not found at path content/XXX/child/attachment or the user has insufficient permissions**

The url I put in is 'https://site:8080/confluence'.

The confluence rest api add it to 'https://site:8080/confluence/**rest/api**'.

The get_attachment function add it to 'https://site:8080/confluence/rest/api/**content/XXX/child/attachment'**.

however, it is an invalid link even when I try it in browser manually. Error message is "The website declined to show this webpage. Most likely causes: This website requires you to log in.". I was logging in when trying manually, and also added correct username and password when running the script.

Anyone has any clue what is the right url to access the attachment? Or is there any mistake when using this api in the above code?

Thanks,

Celine

<br />


Tags: attachment

developer

download

import

python
Is there a way to wrap text in a button Title?
Asked by John Lee:

I want to use **Continuous Development** as a button title.  

It is essential the button shrinks in width as the page is resized downwards, until a certain point is reached, when the button then remains fixed in size.

The length of the phrase exceeds the minimum width of the button, resulting in the text extending beyond the button border.  

So I need the phrase to wrap to become:

**Continuous**   
**Development**


Answers:
author: Natalie Paramonova [Stiltsoft]
body: Hi John,

I'm not sure about your specific use case with resizing a page but you can try the [Handy Button](https://docs.stiltsoft.com/display/HMFC/How+to+use+Handy+Button+macro?src=contextnavpagetreemode) macro (one from our [Handy Macros](https://marketplace.atlassian.com/apps/1214971/handy-macros-for-confluence?hosting=server&tab=overview) app) in case you use Confluence Server or Data Center.

You can set the button's width in pixels:

* If no width is set, it will be determined by the text length.
* If the width is set, the button will be rendered using this width. If the text can't be rendered within a single line due to the width limitation, it will be rendered using multiple lines. The height of the button will increase in this case.
Confluence
Asked by Kelly Bell:

I created a page/space for a group. I now need to delete the page \& it is restricting me from doing that, I am unable to remove the page. I need help!!


Answers:
author: Jakub Hanak
body: Hello [@Kelly Bell](/t5/user/viewprofilepage/user-id/2643952),

If you have access to administration in your page go to Space tools --\> Perrmissions and there you can set what operations you can do in that spaces. Grant yourself (or the group you are member of) perrmission to delete page.

If you don?t have access to administration, please contact your administrator.

Best regards,

Jakub
Multiple Editors on a Document
Asked by Sarah Keane:

Hello everyone!

I wanted to ask about versioning on documents in confluencing - what has people's experience been with this? Is it possible for multiple people to check out a document at once and users to update at the same time? Considering using it for user stories for our next project!

Thanks in advance,

Sarah


Answers:
author: Tyler Brown
body: Hey Sarah,

Yes, it is possible for multiple users to edit a page (document) at the same time.

If there are multiple people editing there will be an icon at the top left of the page showing the other users that are also editing.

When one user attempts to publish their changes the may be asked to push all changes by all of the users currently editing.

These settings are also configurable and these documents should provide you some additional information:

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

<https://confluence.atlassian.com/doc/administering-collaborative-editing-858772086.html>

Hope this helps,

Tyler
Can't save my Office attachment when editing
Asked by Camille Lecerf:

Hi,

I want to edit in Office the attachments of my page:

![2019-01-30 17_11_42-Attachments - Home Page (Camille Lecerf) - Camille Lecerf - Confluence.png](/t5/image/serverpage/image-id/44108iFFCDF1F1C626B6E8/image-size/large?v=v2&px=999 "2019-01-30 17_11_42-Attachments - Home Page (Camille Lecerf) - Camille Lecerf - Confluence.png")

Yet I get this when I want to save my document:

![2019_01_30_17_21_28_.png](/t5/image/serverpage/image-id/44112i9FA50DC33330F249/image-dimensions/770x208?v=v2 "2019_01_30_17_21_28_.png")

I use Confluence 6.6.0 (Server)

Regards,

Camille


Answers:
author: Diego
body: Hello there Camille!

Could you clarify a few points for us:
> 1. Has this worked **at some point** in the past?
> 2. What version of **Microsoft Office** are you using?
> 3. Is this behaviour present with **any office file**?
> 4. Is this happening with **other users**as well?
> 5. When did you **first notice** this issue?

If we are using **Microsoft Office 2016**, there is a chance that we are hitting the situation described here:

**[CONFSERVER-38024 \| Support Office 2016 with Edit in Office](https://jira.atlassian.com/browse/CONFSERVER-38024)**

Let us know your thoughts on this!

comments: author: Camille Lecerf
body: Hello Diego, thank you for your answer!

1. I think it has never worked before  
2. Here is the version: ![2019-01-31 20_07_55-? propos de Microsoft? Word pour Office?365.png](https://community.atlassian.com/t5/image/serverpage/image-id/44253iAC17567D8FB4AC9F/image-dimensions/179x13?v=v2 "2019-01-31 20_07_55-? propos de Microsoft? Word pour Office?365.png")  
3. This behaviour is present with all office files  
4. It is also happening to other users  
5. I noticed this issue a long time ago, I tried with Atlassian Companion but that did not work

Do I have to upgrade Confluence to 6.11 ?

Regards,

Camille


author: Diego
body: Upgrading to Confluence 6.11.x (or even a newer version, such as 6.14.x) could provide a solution to your case.

However, we could also try to save the file using an **older version** of Microsoft Office. Such as **Office 2010 / Office 2013** for example.

Further, the **Atlassian Companion** is meant to be used with **Confluence 6.11.x onward**. You can check more information about this here:

**[Confluence 6.11 Release Notes](https://confluence.atlassian.com/doc/confluence-6-11-release-notes-953678666.html)**

**[Administering the Atlassian Companion App - Confluence 6.14.x](https://confluence.atlassian.com/doc/administering-the-atlassian-companion-app-958456281.html)**

**[Edit Files - Confluence 6.14.x](https://confluence.atlassian.com/doc/edit-files-170494553.html)**

Let us know your thoughts on this!


Tags: attachment

confluence-server

ms-office

server
We can't access to confluence
Asked by GLAM SOFTWARE:

A few days ago we ara having issues to acces to our confluence sever. We search information about the error but we are unable to solve it.

We found that the issue is caused because there are 2 instances in same DB but we didn't make any change before the error appears.

|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|-------|
| Non Clustered Confluence: Database is being updated by another Confluence instance. Please see <http://confluence.atlassian.com/x/mwiyCg> for more details. | 2019-01-30 16:30:17 | fatal |


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: This error means that you have two Confluence application servers accessing one database instance with a Confluence Server license.

If you are trying to run two separate instances of Confluence on a single shared database, you need to make sure that each Confluence instance is pointing to the correct database instance. Ideally, you should use different database users for each instance to make it harder for this happen.
Getting unknown macro: 'anchor'
Asked by Hassan El Zein:

Hi,

I'm using Confluence 5.4.2 and lately I started seeing the error "unknown macro: 'anchor'" instead of the anchor macro I used to have, and I can't find that macro in the macros list anymore. I'm not sure what triggered this to happen.

Any advice?

Thanks.


Answers:
author: Jared Brenner
body: Hi Hassan,

Another user in [this](https://community.atlassian.com/t5/Confluence-questions/Unknown-macro-code/qaq-p/820495) thread recommended ensuring that all plugins are enabled. Go to https://BASE_URL/plugins/servlet/upm/manage/all and verify that Anchor is enabled (you'll need admin access).

Good luck!

comments: author: Hassan El Zein
body: Hi Jared,

Thank you for your answer.

Actually the basic macros was disabled !!

I just enable it and it worked.

Thank you.
How to comment in confluence on ios
Asked by Jeffrey Smith:

I have an ipad pro and am trying to add a comment to a text in confluence. I don't understand if that is possible in the web browser version or the iOS version.

Did anyone manage to post comments in confluence from an iPad?


Answers:
author: Avi Friedman
body: [@Stephanie Zhang _Product_](/t5/user/viewprofilepage/user-id/3875153) Has this been rolled out yet? The Android app still does not support inline comments


author: David Espinel
body: 2023 and it looks like this has not happened yet ? lol


author: Stephanie Zhang _Product_
body: Hi [@Ben Yang](/t5/user/viewprofilepage/user-id/1385680) how are you!  

We plan to start rolling out create inline comments later this month! Stay tuned!


author: Ben Yang
body: Hi [@Stephanie Zhang _Product_](/t5/user/viewprofilepage/user-id/3875153) yeah it's me again - still wondering when creating inline comments on mobile device would be supported! Good work on reading and replying inline comments on mobile - that's a good start but creating the inline comments is the most crucial here.

Ben


author: Stephanie Zhang _Product_
body: Hey there [@Matthew Singleton](/t5/user/viewprofilepage/user-id/1182619) ! Our team is currently working on enabling inline comment support - you should start to notice our improvements start to roll out in the next month or so. We're starting with read/reply and then adding in create support. Cheers!


author: Matthew Singleton
body: Any work around for this or date when the feature may work?

I am highlighting text inline and trying to leave a comment on a page.


author: Stephanie Zhang _Product_
body: Hey there [@Jeffrey Smith](/t5/user/viewprofilepage/user-id/1412896) - thanks for stopping by! Are you hoping to highlight text inline and leave a comment on a page? Or are you hoping to leave a page comment?   

The former is currently being worked on, and the latter can be done within the iOS app using the comment footer.   

Let me know if you have any other questions.


Tags: ios

cloud

confluence-cloud

mobile
Error updating UPM and infinity loop on creating new page after upgrading to 6.13.1
Asked by Guenter SolyMar:

Hi,

after upgrading to Confluence 6.13.1 I could updating all add-ons beside the UPM. Furthermore creating a new page results in an infinity loop and is not possible anymore.

There is an error regarding "base directory". After upgrading I updated Confluence server.xml in the same way like before.

No further changes in Windows Server 2016 made before or after upgrading.

Any Idea?

Thanks.

P.S. I have screenshots and the support zip ready for upload.


Answers:
author: Shannon S
body: Guenter,

You can add the screenshots as images attached to this thread.

In your question you said:
> after upgrading to Confluence 6.13.1 I could updating all add-ons beside the UPM.

Can you let me know what you mean by that? I believe there might be a typo there so please clarify. Do you mean you are having trouble updating add-ons as well?

As for your server logs, it's not possible to upload an entire Support Zip on Community. This is due to the fact that it contains private information and this is a public forum.

My recommendation would be to replicate the errors again, and tail your logs. Then you can see the exact error that occurs, and share it with us here. If you're having trouble pasting your logs into a reply, you could use something such as Pastebin or Dropbox in order to share the logs with us.

In addition, if you can tell us the exact errors you get in the UI, if any, this will help.

I would recommend tailing for each sort of error:

1. Updating add-ons
2. Creating a new page

I look forward to your response!

Regards,

Shannon


Tags: confluence-server

server
Show User Confluence Licences
Asked by AutoDo!:

Is there any way to show in Confluence which users have been assigned which license?


Answers:
author: Ryan Fish
body: [@AutoDo!](/t5/user/viewprofilepage/user-id/2490063)

for [Server](https://confluence.atlassian.com/confkb/how-to-get-a-list-of-active-users-counting-towards-the-confluence-license-298978076.html),

Confluence's license count is based on Global Permissions. Users will count towards the license in the following ways:

* If the user is a member of a group that has global permissions to use Confluence
* If the user is individually granted global permissions to use Confluence

The License Details page will indicate the number of users currently signed up (your registered user count). It:

* includes only users who have the 'can use' global permissions for the Confluence site.
* does not include anonymous users, who may access your Confluence site if you have allowed anonymous access.
* does not include deactivated users.

Manage Confluence Licenses

<https://confluence.atlassian.com/doc/managing-your-confluence-license-313467774.html>

<https://confluence.atlassian.com/doc/global-permissions-overview-138709.html>

Hope this helps  
Ryan


Tags: confluence-server

licence
Atlassian * LDAP + SSO
Asked by klaus haffner:

Hi,

I'm looking for a solution to use saml + SingleSignOn with LDAP ( DSEE ) in the Background, Will you be able to furnish some documentation on this subject ?

Kind regards

Klaus


Answers:
author: Jon Espen Ingvaldsen Kantega SSO
body: Hi [@klaus haffner](/t5/user/viewprofilepage/user-id/2642291)

What type of Atlassian environment are you in?  
Are you looking for a SSO solution to server / data center or cloud?  

Regards,

Jon Espen  
[Kantega SSO](https://marketplace.atlassian.com/vendors/1211151/kantega-sso)
Unable to see Pages in space
Asked by Patrick Conroy:

As can be seen in the image below, when I open our space (or any others not used by my team) I can only see the space itself in the sidebar. It means it's quite difficult to navigate and very slow to find anything unless I know the exact name of the page or it's parent.

![Screen Shot 2019-01-30 at 11.02.28.png](/t5/image/serverpage/image-id/44079iC5C507F7E04F64C9/image-size/large?v=v2&px=999 "Screen Shot 2019-01-30 at 11.02.28.png")


Answers:
author: Shannon S
body: Patrick,

You mentioned this only occurs in spaces you don't use. So can you confirm there are some spaces where this doesn't occur?

It appears that you might be using the Safari browser, as well. Can you confirm the problem exists in also Firefox or Chrome? Are you using a mobile device?

Regards,

Shannon

comments: author: Patrick Conroy
body: Hello,

No, it happens in all spaces (I didn't write that very clearly). Now that I've checked it, ut does work on Chrome, but not Firefox or Safari. I don't use any mobile devices with it, I strictly use it on my iMac in work.

Thanks

Paddy


author: Shannon S
body: Paddy,

Can you confirm that this issue occurs with ALL USERS or only certain users?

The next thing I would recommend is to clear your browser cache, and try putting [Confluence in Safe Mode](https://confluence.atlassian.com/upm/disabling-and-enabling-apps-273875716.html) and let us know if the issue still occurs.

If it does, I would like to be able to have a look at your Cloud instance to see why this is happening, but we'll need you to [raise a support ticket](https://support.atlassian.com/contact#) for that. Let me know if you end up doing that, and once it's resolved with the Cloud team, could you come back here and let us know what the issue was? I haven't seen this issue except on Safari Mobile view, so it may be a separate issue.

Shannon


Tags: cloud

confluence-cloud
Can i limit the number of shown page revisions on a page?
Asked by Hans Leemans:

Especially during creation time of some documents a lot of people are working on te same page. We use the Version macro to show all versions but this list is growing very long.

What I would like is that I could add a parameter to the version macro that only the last X number of versions are shown in the page view. So I can limit the view.

Is this possible or is there another way of achieving it?

At this moment I am using the Cloud server but will migrate soon ton the server version.


Answers:
author: thomasmassengill
body: Another way is to place the Change History Macro within a Table Filter:

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

then, enter the amount of rows you'd like to display:

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

comments: author: Katerina Kovriga {Stiltsoft}
body: Please note that the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro is provided by the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app.


author: Jared Brenner
body: Hi Hans,

It sounds like you're referring to the Change History macro. I'd recommend embedding it in a panel and then limiting the panel size. This is done using the Div macro as documented by [@Milo Grika](/t5/user/viewprofilepage/user-id/1135024) on [this](https://community.atlassian.com/t5/Confluence-questions/how-can-I-get-a-horizontal-or-vertical-scroll-bar-for-the-panel/qaq-p/417447) page. Here's what it looks like in my editor:

![Panel.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/44094i5AC42BBFA5AC43F4/image-dimensions/335x271?v=v2 "Panel.PNG")

The finished result is a scrollable 600x400 frame with my page's change history embedded:

![Panel2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/44096iBC9DF1022524438E/image-dimensions/650x209?v=v2 "Panel2.PNG")

Good luck!

comments: author: Milo Grika
body: I approve of this answer! ?


author: Hans Leemans
body: great idea, thanks


Tags: cloud

confluence-cloud
"Application access" is missing in "User administration"
Asked by ?????? ???????:

Hi!  
I'm trying to set up access to Confluence, but can't find "Application access" in "User administration" as described say here: <https://confluence.atlassian.com/confcloud/global-permissions-overview-724765488.html>

I have "site admin" label opposite to my name in the "User administration" so I guess "Application access" shouldn't be hidden due to permission lack.

Am I missing something?

Thanks!


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

My apologies. We're rolling out a new User Management and it appears the documentation needs updating. We are in the process of having that corrected.

As for your Application Access, it's now called **Product Access**.

Here's a screenshot from my instance:

![Screen Shot 2019-01-31 at 2.43.21 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/44210i864801FB88922F4C/image-dimensions/529x262?v=v2 "Screen Shot 2019-01-31 at 2.43.21 PM.png")

Can you give that a look and see if you have any trouble?

Regards,

Shannon


author: ?????? ???????
body: Thank you Shannon, this is fine now!

comments: author: Shannon S
body: That's really great to hear. Thank you for confirming that.

Have a good week,

Shannon


Tags: cloud

confluence-cloud
How to create progress bar in Confluence
Asked by Dilip Sant:

I created one table of content with multiple rows. I mark those rows with checkbox. I want one status bar on the top of the page which would tell me how many points are being marketed or checked and how much is remaining


Answers:
author: Tony Chen
body: \[Blank\]


author: Jared Brenner
body: Hi Dilip,

I don't know of any default macros that would replicate the functionality you're describing. You may want to check the Marketplace for a plugin that meets your needs, or experiment with CSS.

Good luck!


Tags: cloud

confluence-cloud
How to link releases in to a product requierment page in confluence
Asked by Christoph:

Hey to all,

just want to know, how i can link planned releases form my jira project into a product requierment page in conflunece?

thanks Chris


Answers:
author: ajeet_singh
body: [@Christoph](/t5/user/viewprofilepage/user-id/2455873),

You could link as a external web page

comments: author: Christoph
body: [@ajeet_singh](/t5/user/viewprofilepage/user-id/854577) thank you for this thought!


Tags: cloud

confluence-cloud
Is it possible to create a process visualization and create a link for each element?
Asked by Nadja T?ller:

I'd like to create a process visualization with a program like visio or draw.io and put a link behind each element to a detail page. Is this possible?

Thanks for your help!


Answers:
author: Manon Soubies-Camy
body: Hello [@Nadja T?ller](/t5/user/viewprofilepage/user-id/2640547) and welcome to Community!

You sure can using Draw.io, see these tutorials:

* [Using anchors within draw.io in Confluence](https://about.draw.io/using-anchors-within-draw-io-in-confluence/)
* [Add links and tooltips](https://about.draw.io/draw-io-training-exercise-8-add-links-and-tooltips/)

Hope this helps!

- Manon