youngmon/atlassian-qna huggingface dataset:
Error code 15 editing custom html
Asked by Julian Weiss:

I get Error Code 15 (This request was blocked by the security rules). I have added HTML code in the past with no problems.


Answers:
author: Nic Brough -Adaptavist-
body: This usually means you have security or protection software installed that is blocking page content it considers insecure or risky. It could be anti-virus or anti-malware, but also possibly something in your network gateway.

You'll either need to write code it finds acceptable, or configure it to allow your code.

comments: author: Julian Weiss
body: Using the stylesheet with CSS instead of javascript works, So I am not investigating why this used to work and doesn't anymore. Possibly this will become a problem again in the future and then I'll look at what protection software we have.

Thanks


Tags: confluence-server

server
Exceeding licences in Confluence - User Management only shows 22 of 25
Asked by Ipsen Logistics:

Hello,

trying to edit a page in Confluence results in following licence violation:

*"This Confluence installation is not licensed for additional users*

*You have exceeded the maximum number of users for your license. You will still be able to view content, but in order to create or edit content, you must reduce the number of active users in the installation.There are two ways to reduce the number of active users:*

* *Disable users*
* *Delete users*

*To disable or delete a user, visit the [Users](https://confluence.ipsenlogistics.com/admin/users/browseusers.action) page then search for their name. After following the appropriate link you can choose the 'Remove' or 'Disable' option"*

Our confluence is connected to two user directories:

* LDAP via Jira
* internal

User Management in Jira showing 22 users. We have the 25 user tier licence. But the error says we have 27 active users...

How to find these users and how to remove from the system?

Thank you \& best regards,

AK


Answers:
author: Shannon S
body: Hi there,

I would recommend trying to get a list via the database, have a look below:

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

Give that a try and let us know if you have any questions.

Regards,

Shannon

comments: author: Ipsen Logistics
body: Hi Shannon!

Thank you for your reply. I will try that today...

Best regards,

AK


Tags: ldap

licence

user-management
Hi I was unable to import
Asked by Brian Vent:

I did everything by the book. Cloud to cloud, same versions and selected the file from the .zip export. Which file should I have used?

Once I imported the file, the system gave me a generic error.

Followed this guide - <https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html>


Answers:
author: Brian Vent
body: 1. Go to space settings

2. Content tools

3. Export

4. Select XML

5. Wait for Download

6. Follow import process for "import spaces"

7. Select entire zip file

8. Wait for Upload

9. Follow instructions!


author: Lava Kumar Dukanam _Appfire_
body: Hi [@Brian Vent](/t5/user/viewprofilepage/user-id/1254185),

What was the error you encountered?

Make sure you are importing the zip of the contents and not zip of the directory of the contents.

You can also do it from the backup \& restore from the administration page.

Let me know.

Thanks,

Lava

comments: author: Brian Vent
body: ![Screen Shot 2018-10-24 at 2.16.22 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/35855iE63577CA30B186F4/image-size/large?v=v2&px=999 "Screen Shot 2018-10-24 at 2.16.22 PM.png")

I tried this using the .zip file and was unable to get it to work. :(


author: Brian Vent
body: my process could be incorrect. Am I trying t It is as follows:

1. Backup manager

2. Create backup

- Site_Backup.zip generated

3. Go to other confluence

4. Confluence Settings

5. Import Spaces (not Import Site) ??

6. Import zip file

- Error.


author: Brian Vent
body: so I believe I found the issue. I'm still trying to import the space file. I was creating a site backup and not exporting the space.


author: Brian Vent
body: got it to work, will publish process below


Tags: cloud

confluence-cloud
How to send attachment in confluence
Asked by Vidya Shevale:

I am trying to send attachment using php curl

and I am using postman for it

i am sending raw data

{  
"id":3244039,  
"comment":"attachment",  
"file":"@/home/neosoft/Pictures/Screenshot from 2018-10-04 16-23-33.png"  
}

an my php api code is below

$qbody = file_get_contents("php://input");  
$json = json_decode(file_get_contents("php://input"));  
$CURLOPT_URL = "http://localhost:8090/rest/api/content/".$json-\>id."/child/attachment";  
$ch = curl_init();  
curl_setopt($ch, CURLOPT_URL, $CURLOPT_URL);  
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
curl_setopt($ch, CURLOPT_POSTFIELDS, $qbody);  
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");  
curl_setopt($ch, CURLOPT_USERPWD, "admin" . ":" . "Abc@1234");  
//$headers = array();  
//$headers\[\] = "Content-Type: application/json";  
//curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);  
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/binary'));  
$result = curl_exec($ch);  
if (curl_errno($ch)) {  
echo 'Error:' . curl_error($ch);  
}  
curl_close ($ch);  
print_r($result);

but I am getting error

\<html\>  
\<head\>  
\<title\>Apache Tomcat/8.0.43 - Error report\</title\>  
\<style type="text/css"\>H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}\</style\>  
\</head\>  
\<body\>  
\<h1\>HTTP Status 415 - Unsupported Media Type\</h1\>  
\<div class="line"\>\</div\>  
\<p\>  
\<b\>type\</b\> Status report  
\</p\>  
\<p\>  
\<b\>message\</b\>  
\<u\>Unsupported Media Type\</u\>  
\</p\>  
\<p\>  
\<b\>description\</b\>  
\<u\>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.\</u\>  
\</p\>  
\<hr class="line"\>  
\<h3\>Apache Tomcat/8.0.43\</h3\>  
\</body\>  
\</html\>

please help me TIA


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Looks like you forgot a few parameters like this:

```
data = { 'type': type, "fileName": filename, "contentType": content_type, "comment": comment, "minorEdit": "true"} headers = { 'X-Atlassian-Token': 'nocheck', 'Accept': 'application/json'}
```

Please, have a look this solution

<https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/confluence.py#L291>

Cheers,

Gonchik Tsymzhitov


Tags: attachment

php

rest-api
SMTP auth always fails
Asked by Naresh Surya:

Hi Team,

I'm getting below exception, Please help on this...

javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 587, response: 421  

Thanks,'

Naresh,


Answers:
author: Tom Lister
body: Can you try on port 25 or 465?


author: Tom Lister
body: Hi Suresh

are you able to use the same credentials for other applications?

are you sending large numbers of mails?

can you use the send test email?

see article here too

<https://confluence.atlassian.com/confkb/confluence-is-unable-to-connect-to-the-mail-server-response-code-421-314450663.html>
Have one page that lists all Confluence space names
Asked by Egle Kaziulionyte:

My use-case is to have a intro page on particular Confluence space that includes a list of all spaces names in this Confluence instance. Preferably, with the space admins list and some other data (created by and date).

The built-in macro ("Spaces List") won't work, as it only shows the spaces you have access to :) . And our purpose is to have whole list visible even for non-logged in person.


Answers:
author: Nic Brough -Adaptavist-
body: Confluence is quite solid on the security and visibility - if you can not see a space because you have no permissions for it, it remains hidden everywhere.

To display lists that include stuff people have no right to see, you have to override that, which can be done, but needs code. You'll need to write an add-on that can bypass the permissions and drag out a full list of everything.

comments: author: Tobias Anstett _K15t_
body: I agree to Nic that this works around all the privacy and security considerations built into Confluence.

However there is a supported workaround ...

* enable anonymous access to your system
* enable anonymous view access in all spaces
* add a view restriction to the home page and all top-level pages which actually is a 1:1 config of your space permissions without anonymous

As I said this is a workaround and really risky as it will happen that people move pages or create additional top-level pages and your content is exposed by accident.

So if you want to solve this issue, only some custom code will help.

Best, Tobias


Tags: server
Jira Pie Chart
Asked by Hitesh Gupta:

Hi, I am using Jira Pie chart Macro (using JQL to fetch data) in Confluence to display dynamic jira data. Few Questions:-

1. How can I customize pie chart to show % instead of count

2. How can I customize pie chart to a specific pie color based on status

3. How can I customize pie chart to customised name (like instead of showing status as Closed, I was to show it as Done)


Answers:
author: Nic Brough -Adaptavist-
body: Code. You will need to find or write an add-on to do all of this.


author: Andrey Khaneev _StiltSoft_
body: Hi Hitesh,

It is nit possible make this customization in the Jira Pie Chart macro, but it is possible to make #1 and #2 with the help of [Table Filter and Charts](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app: you'll need to combine macros in this way [Chart from Table](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Chart+from+Table+macro) -\> [Pivot Table](https://docs.stiltsoft.com/display/TableFilter/How+to+use+Pivot+table+macro) -\> Jira Issues. You can watch [this video](https://youtu.be/2HCm5PPebCo?list=PLRpx9wuFqlzGZOZCj2PkQI2T4Bhkg3cVl&t=174) for details.
How to migrate iweb Access database to Confluence?
Asked by Ocean Enrique Plariza:

Hi,

Our goal is to transfer an access database with hyperlinks connected on iweb to confluence. But also to have more of our peers to access confluence and centralized information

Already scripting through python and once fully scripted we want to know how to transfer apply it to confluence?

Please help :)

Thank you,

Henry


Answers:
author: Nic Brough -Adaptavist-
body: What do you mean by "migrate"? What data are you pulling out and what do you want it to become in Confluence?


Tags: cloud

confluence-cloud

data

migration

python

rest

rest-api
Shortcut to a page
Asked by Divya Yathagiri Venkata:

I want someone to be able to type ***TOSR*** and get to https://confluencedev/display/TTSI

I followed <https://confluence.atlassian.com/doc/configuring-shortcut-links-135903.html> and created the shortcut tosr but it doesn't redirect to https://confluencedev/display/TTSI

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


Answers:
author: Rambabu Patina _Appfire_
body: Hi [@Divya Yathagiri Venkata](/t5/user/viewprofilepage/user-id/1155267),

If you mean to expand the URL on the page while typing the shortcut \[@TOSR\], then you should create a new shortcut Link with below values:
> Key -\> TOSR  
> Expanded Value -\> https://confluencedev/display/TTSI  
> **Default Alias -\> https://confluencedev/display/TTSI**   

Now try to type the shortcut \[@TOSR\] on the page and see how it goes.

Thanks,  
Ram.

comments: author: Divya Yathagiri Venkata
body: Hi Ram,

I tried entering the default Alias value too now.

https://confluencedev/display/TTSI page exists but when I type TOSR or @TOSR in my browser it still doesn't redirect to this page.


author: Rambabu Patina _Appfire_
body: Please type \[@TOSR\] in your Confluence page and let me know how it goes.

Note: Please use square brackets before and after the shortcut name.


author: Divya Yathagiri Venkata
body: ![TOSR.png](https://community.atlassian.com/t5/image/serverpage/image-id/35552i93C810849E0ABF38/image-size/large?v=v2&px=999 "TOSR.png")


author: Rambabu Patina _Appfire_
body: [@Divya Yathagiri Venkata](/t5/user/viewprofilepage/user-id/1155267) I am afraid. Where do you want to use the shortcut.

It does works in the confluence page editor, not in the search box.

Try like below:
> 1) Create e new page  
> 2) Insert the shrotcut \[@TOSR\] and verify.


author: Divya Yathagiri Venkata
body: Sorry for not being clear with my question, I want someone to be able to type TOSR in the browser address bar which redirects to my page - https://confluencedev/display/TTSI


author: JP _AC Bielefeld Leader_
body: Hi Divya,

if you create a page and enter \[@tosr\], it will work.


author: Divya Yathagiri Venkata
body: \`


Tags: confluence-server

server
can I stop Confluence instantaneous email Notifications for Comments and Inline Comments
Asked by Rodney Hughes:

I can set/unselect the \<\<Notify watchers\>\> check box when I am editing a page in Confluence. When unselected, the Watchers only get the Daily Update if they have subscribed to Daily Updates in their email settings. Selected they get an instantaneous email notification every time I click the Save button. All good.

But what about page Comments and In-line Comments - there does not seem to be any way to prevent instantaneous email notifications - changing your page edit "notify" tick box has no effect on either type of comment.

Am I missing something?


Answers:
author: JP _AC Bielefeld Leader_
body: Hi Rodney,

check your notification settings in your profile \& don't WATCH a page you've contributed to (Autor, Editor, Comments), so switch off Autowatch and you're done.

I also suggest looking into the free addon No Email Storm in the Atlassian marketplace.

Best

JP

comments: author: Rodney Hughes
body: No - I don't think that helps at all. That would stop ME from receiving notifications.

I will check out No Email Storm.


author: Rodney Hughes
body: No Email Storm looks like it helps when you are editing a page ... but it doesn't do anything when you are Commenting on a page or InLine Comemnting


author: JP _AC Bielefeld Leader_
body: If you want to switch it off completely for everyone, you can disable the modules:

##### comment-created-notification {#toc-hId-1257292980}

##### comment-edited-notification {#toc-hId--1294863981}

in the

#### Confluence Content Notifications Plugin {#toc-hId-644459859}

It's one of the System addons.

The same can be done for Inline comments in the

#### Confluence Inline Comments {#toc-hId--1907697102}

for module

##### inline-notification-new-mail {#toc-hId--361400272}

Best

JP


author: Rodney Hughes
body: No, I don't want to turn it off completely - just be able to select some option that means all the other Users don't get notifications instantly I write a Comment/inline Comment, i.e. they only get the Daily Summary


author: JP _AC Bielefeld Leader_
body: They'll get the daily summary anyway, if the activated it. You cannot disable notification on comments as a comment writer.


author: Rodney Hughes
body: And that is precisiely the problem ... I can disable instantaneous notifications on page editing by unticking the Notify Watchers - some of my users have said it would be handy to have the same when writing a Comment - I guess it is actually like Creating a page as you cannot disable notifications for that action


author: Christian Binard
body: Hi, we have the same issue. Our team of editors can't use the In-line Comments to discuss possible updates as we don't want to confuse our readers before the change is approved/implemented. Readers also don't Comment in-line as they don't want to bother 1000 people with their questions and would prefer to have only the page contributors notified (+ @ mention).

This makes this nice feature about useless in my opinion.


Tags: confluence-server

server
Searching challenges (again) :(
Asked by Shawn in Van:

If I need to search for a specific string (e.g. ++./idea++ ) how do I accomplish this in Confluence?  

I tried using quotes ++"./idea"++ , and the regex method ++/.\*./idea.\*/++ and both search methods yielded incorrect results. What I mean is that Confluence is finding every page with the word, "idea". I don't want that! I want Confluence to find the **exact match** for the above string. Anything else is meaningless.   

Is this type of search possible, in Confluence?


Answers:
author: Meg Holbrook
body: Hi Shawn,

Are you looking for a page with that exact name, a title, or other? You'll want to use the = modifier in addition to whatever 'field' you want to search.

Here's an example function in CQL:

```
title = "./idea"
```

CQL definitely isn't as robust as JQL, but I hope this helps!

comments: author: Shawn in Van
body: That worked. Thank you so much. :)


Tags: cloud

confluence-cloud

search
When editing a document with word - how does collaboration work
Asked by JoAnn Sausnock:

How can more than one person work on a document (word doc attachment) simultaneously? I expected the system to tell me our updates would be merged - but instead it created a version with user1 updates and a separate version with user2 updates. I could use Word to combine the versions and upload the resulting document; which has a different name; but given the wonders of working within atlassian pages - I expected a more seamless interface. Am I missing something?


Answers:
author: Nic Brough -Adaptavist-
body: Word doesn't support collaborative editing or merges, so you're a bit stuck.

A better option is to import the docs and use them as pages so you can take advantage of the functions in Confluence.

comments: author: Bill Bailey
body: I agree, ditch Word (is only good for writing letters home to grandma) and use the power of Confluence.


author: Nils Bier _K15t_
body: Hi [@JoAnn Sausnock](/t5/user/viewprofilepage/user-id/2150994),

As Nic and Bill mentioned, [importing your Word files into Confluence](https://confluence.atlassian.com/doc/import-a-word-document-into-confluence-170493136.html) and work collaboratively in Confluence might be something worth looking into.

If you still need to create Word files off this collaboratively created content, you could have a look at our [Scroll Word Exporter](https://marketplace.atlassian.com/apps/24982/scroll-word-exporter-for-confluence?hosting=server&tab=overview), which allows you to export your Confluence content into native MS Word files. Using Scroll Word Exporter you can combine both worlds: Collaboration in Confluence, but still create Word files that match your companies design.

We're having a webinar about Scroll Word Exporter today and tomorrow, if you're interested, please feel free to register [here](https://www.k15t.com/events/2018/webinar-scroll-word-exporter-for-confluence).

If you have any questions, or want to discuss your use case more in detail, please reach out to us via [support@k15t.com](mailto:support@k15t.com).

Cheers,  
Nils


author: JP _AC Bielefeld Leader_
body: Hi JoAnn,

what you're looking for is Sharepoint. There you can stay with Word documents \& collaborate on them. With Confluence you collaborate on Confluence pages \& if needed export them to Word. There are addons allowing a Sharepoint / Confluence integration in the Atlassian marketplace.

Best

JP

comments: author: Nic Brough -Adaptavist-
body: Ahh, Sharepoint, where documents go to die... ;-)


author: Bill Bailey
body: Sharepoint, the solution for the year 2000!


author: JP _AC Bielefeld Leader_
body: If you wanna collaborate on word documents, that's the way to go... ;-)


author: Alexander Naula
body: Yup - SP online works well for editing any Office file type


author: Nic Brough -Adaptavist-
body: Shame no-one ever reads them again ;-)
Change recipient of access request
Asked by edmondfelix:

I have locked a page so only specific users can access that page. User who currently do not have access will see a message with a "Request access" button shown. When clicking that button, a request is emailed to the page owner. Is it possible to change who that request goes to?


Answers:
author: Victor Mutambuki
body: Edmond,

Unfortunately not. Please see more on the topic, [Get access to a restricted page](https://confluence.atlassian.com/doc/page-restrictions-139414.html).

You can however disable the Request Access Plugin in confluence.

Victor

comments: author: edmondfelix
body: Thanks Victor. I've read also to disable the plugin, but that's not an option as it would affect other pages. Another option then would be to change the ownership of that page. How can that be accomplished?


author: Victor Mutambuki
body: Edmond,

Done some searching from the community and found a few solutions. I've to admit i didn't test any of them. Please go through the link below.

<https://community.atlassian.com/t5/Confluence-questions/How-do-we-change-page-ownership/qaq-p/404513>

victor


author: edmondfelix
body: I'll review this. Thanks Victor.
Where can I find a list of properties for the Page class?
Asked by Brian Sung:

Hi,

Simple question... I'm looking for the properties of the page class so that I can programmatically create new instances of Page and pass in the title name, the parent page, etc. I cannot seem to find it anywhere in the documentation.

Thanks,

Brian


Answers:
author: JP _AC Bielefeld Leader_
body: Hi Brian,

are you asking for information about the REST webservice interface or a Java approach?

Maybe the developer documentation helps you:

<https://developer.atlassian.com/docs/>

Best

JP

comments: author: Brian Sung
body: Hi Jan-Peter,

I am looking for a solution using the Java approach. I've already looked at the documentation but still no luck.

Thanks,

Brian


author: JP _AC Bielefeld Leader_
body: Start with the Java API of the PageManager:

<https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/pages/PageManager.html>

Best

JP
Proper Use of Use of Attachment Table Macro
Asked by Roberta:

Hi,

I was wondering how to properly use the attachment table macro. I have added it to one of my pages and somehow it brought our whole Confluence server down.

I pretty much left all the parameters blank with exception of labels.

I am trying to understand how I can use this without disturbing the whole system.

Thank you in advance,

Roberta


Answers:
author: JP _AC Bielefeld Leader_
body: Hi Roberta,

as this is not a standard Confluence macro, but added by the Bob Swift Advanced Tables for Confluence addon, I would try reading:

<https://bobswift.atlassian.net/wiki/spaces/TBL/pages/45809669/Attachment+Table+Macro>

as a starter. Another option would be to contact Bob Swift / Appfire for support.

Best

JP

comments: author: Roberta
body: Hi [@JP _AC Bielefeld Leader_](/t5/user/viewprofilepage/user-id/1135065),

Thank you for the information. This is very helpful.

Roberta