youngmon/atlassian-qna huggingface dataset:
Readers and group of users
Asked by Tamari Janelidze:

Hi there!

I am using an add reader option to assign a group of users to read a page and get the confirmation that they have read it.

My question is if I later add some new users to this group, will those users get the notification or the e-mail that they are supposed to read a page as well, or they have to check manually?


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Tamari Janelidze](/t5/user/viewprofilepage/user-id/3162878) ,

Firstly, the user/group must have space permissions to access any page in a space. Confluence by default allows any user/group (of users) get a notification only when:

* page edits are made
* the user starts [watching](https://confluence.atlassian.com/doc/watch-pages-spaces-and-blogs-139579.html?_ga=2.259419978.1780170830.1561917043-748161253.1533556773#WatchPages,SpacesandBlogs-Watchfornewblogpostsinaspace) the page (even in this case, the user gets notified only when a page edit is made)
* a new page is created as a child to a page with page restrictions to specific users/groups
* you @ [mention](https://confluence.atlassian.com/doc/mentions-251725350.html) them in the page
* you [share](https://confluence.atlassian.com/doc/share-a-page-or-blog-post-16482511.html?_ga=2.216287062.1780170830.1561917043-748161253.1533556773) the page with a user/group

Users do not get a notification when you:

* add new user to the group that has access to the page
* add a user/group to the page with view/edit permissions

Any further additions like making a user viewing the page mandatory or notifying the user when added to a page/group may want to explore additional apps or plug-ins. Sorry, I do not know of any such app at the moment.

As a workaround you can:

* @mention the group with a short message in the page comments
* share the page with the group to notify all the users

Hope I was able to answer your queries!

Thanks!


author: Tamari Janelidze
body: In case someone gets interested, I have received the answer from support and they said that the "adding by group" feature adds just the actual members of a given group. It means that no users added after the moment the group is assigned to read a page are registered as required readers.


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Tamari Janelidze](/t5/user/viewprofilepage/user-id/3162878) ,

All the users added to a page as viewers/readers get a notification on new edits to the page, irrespective of when they are added. So, the answer to your question is - Yes! :)

Thanks

Sireesha

comments: author: Tamari Janelidze
body: Hello [@Sireesha Dugginapeddi \[Appfire\]](/t5/user/viewprofilepage/user-id/1260000) ,

Thank you for your answer. Does that mean that even if I don't make any edits to the page, newly added users to the group get the notification that they have to read the page? Because from my understanding, once I added the predefined group of users to the page to read, the notification is sent to those members of the group that they have to read a page. and later I add some more users to this group. will they get a notification that they have to read it?
What would be the best way to fetch data as soon as they are updated/created?
Asked by Thomas P?tzsch:

For my thesis, I need to fetch data from Confluence and Jira as up to date as possible, ideally right after it's creation/it has been updated.  

I know about the REST API, and I have no problems fetching data in general.  
This question is more about how I can find out which data has changed/created and *then* get it from the API.

Because most of the questions in this forum circle around "how to fetch data in general", I have neither found a solid workflow for this, nor an API functionality.


Answers:
author: Davin Studer
body: I would keep track of the times that you get data from the REST API. Then simply query the API using CQL (for Confluence) or JQL (for Jira) based on the last modified date being greater than the last time you checked.

comments: author: Davin Studer
body: However, if you want to know when data has changed via a push notification rather than having to poll it you should look into WebHooks. Jira supports this, but Confluence does not.


author: Thomas P?tzsch
body: I already thought of that solution - it is by far the easiest approach to just fetch the data regularly, as you proposed.  
It would be cool if there was a more elegant approach, but this will work, too.  
Thanks for the answer!


author: Davin Studer
body: Definitely, for Jira WebHooks would be the best way. It is a push notification where Jira tells you when something has changed. Unfortunately, Confluence doesn't have it.


Tags: confluence-server

jira

server
New User in the group and permissions
Asked by Tamari Janelidze:

Hello, my question might be basic, but I wanted to make sure.

The question is about adding a new user to already defined group of users. If I add a new user to a group, does it guarantee that the user will get access to the same pages, where the group has the access? And will this user receive all the notification email as well? Or should I set the permission manually anyway?

And another question is if I add a user into a group that has access to specific pages, can I anyway apply to this user a restriction to view one of the pages.

Thanks in advance!


Answers:
author: Alexis Robert
body: Hi [@Tamari Janelidze](/t5/user/viewprofilepage/user-id/3162878) ,

as soon as a user becomes a member of a group, all permissions and restrictions applied to that group will apply to the user too, unless you specifically give different rights to that user.

The good practice in Confluence rights management is to grant/restrict permissions to groups rather than users, as users rights should be defined by the groups they belong to. Granting individual permissions will not be manageable in the long term.

You can also apply specific restrictions to a user, even if he is part of a group of course.

Let me know if this helps,

--Alexis

comments: author: Tamari Janelidze
body: Hi [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386)

Thanks for the answer. That helped a lot!!.

- You can also apply specific restrictions to a user, even if he is part of a group of course

Does this mean that I can restrict a user to view a page even if he belongs to a group that can view this page? and if yes, could you please give me a hint how to do so?


author: Alexis Robert
body: Hi [@Tamari Janelidze](/t5/user/viewprofilepage/user-id/3162878) ,

you can follow [this documentation](https://confluence.atlassian.com/doc/page-restrictions-139414.html) to apply restrictions on a page.

--Alexis
Setting up Confluence with SSL on Nginx causes errors
Asked by yeswayit:

I keep getting the message :

**Tomcat config is incorrect**

The Tomcat server.xml has an incorrect configuration:

**scheme** should be 'https'  
**proxyName** should be 'yeswayit.nl'  
**proxyPort** should be '443'

While my server.xml is changed according to :<https://confluence.atlassian.com/doc/running-confluence-behind-nginx-with-ssl-858772080.html>

\<Connector port="9001" connectionTimeout="20000" redirectPort="8443"  
maxThreads="48" minSpareThreads="10"  
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"  
protocol="org.apache.coyote.http11.Http11NioProtocol"  
scheme="https" secure="true" proxyName="yeswayit.nl" proxyPort="443"/\>


Answers:
author: Nic Brough -Adaptavist-
body: This looks like you've put the right settings into a connector, but the proxy is connecting to another connector.

What does your nginx proxy point to?
I want to upload a CDROM image that has links to files within directories
Asked by william giannelli:

How can I upload a CDROM image with links to files within directories.


Answers:
author: Nic Brough -Adaptavist-
body: An attachment in Confluence is just a simple blob of data that can be downloaded as a file later.

Some of the code in Confluence has been written to read and interpret the content of these blobs - the MS Office macros in particular can reach into an attachment and pull data out to be displayed.

There are two things to consider with your question

* Confluence is not intended to be a file store, and a lot of installations struggle with large files because it's not designed for it. You may never be able to upload 650Mb of disc image.
* If you do manage to do it, you are going to need to find or write code that can read the image and show the information you want to see. I have dropped disc images on to Confluence servers before, so that files inside the image can be read, but I've done it by mounting the images as loopback devices in the OS, not via code in Confluence. I've not seen any macros or apps that would mount or read an image and allow you to get into it inside Confluence
If you remove all spaces from a category, the category will no longer appear in the Space Directory.
Asked by ???:

If you remove all spaces from a category, the category will no longer appear in the Space Directory.

But It appear in the Space directory.

![1.PNG](/t5/image/serverpage/image-id/59165iF1F338EDA8AD07F6/image-size/large?v=v2&px=999 "1.PNG")


Answers:
author: Shannon S
body: [@???](/t5/user/viewprofilepage/user-id/3417969)

To echo what Sireesha is saying, can you confirm with us the issue? Are you saying that when you remove the labels from all the spaces, then the category is still there, and you don't want it to be? Or that it disappeared and you want it to show? Could you also confirm your Confluence version, and let us know if you have run a reindex, which Sireesha recommended?

Regards,

Shannon


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@???](/t5/user/viewprofilepage/user-id/3417969) ,

Are you saying you want to delete the category too from the sidebar? You might want to try [rebuilding your index](https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html).

Thanks

Sireesha


Tags: cloud

confluence-cloud
How to have nested number lists in Confluence
Asked by David Csikkel:

Hello,

I have found recommended solution:

1. Go to the space that you would like this numbering be implemented on
2. Go to Space Tools \> Look and Feel \> Stylesheet
3. Edit \> copy and paste the following code \> Save

    ol {    counter-reset: item;}ol li {    display: block;    position: relative;}ol li:before {    content: counters(item, ".")".";    counter-increment: item;    position: absolute;    margin-right: 100%;    right: 10px; /* space between number and text */}

It works but... very big BUT... it breaks confluence pages on many places:

1) broken breadcrumbs navigation

![Sn?mek obrazovky 2019-06-29 v?11.33.45.png](/t5/image/serverpage/image-id/59156i3BDA8CB5A39E2AD3/image-dimensions/566x30?v=v2 "Sn?mek obrazovky 2019-06-29 v?11.33.45.png")

2) broken comments

![Sn?mek obrazovky 2019-06-29 v?11.36.15.png](/t5/image/serverpage/image-id/59157i0E6FAB5783A87DC3/image-dimensions/352x454?v=v2 "Sn?mek obrazovky 2019-06-29 v?11.36.15.png")

Can you propose any solution for default behavior (not based on writing special macro for nested number list)?

Thanx a lot in advance for any suggestions

David csikkel


Answers:
author: Bill Bailey
body: I think the issue is that you CSS rules apply to all nested lists, which can impact a lot of menu items. You need to restrict your CSS to apply only to your content, which inside a container with class .wiki-content.

So for example, your rules should be:

    .wiki-content ol {    counter-reset: item;}.wiki-content ol li {    display: block;    position: relative;}.wiki-content ol li:before {    content: counters(item, ".")".";    counter-increment: item;    position: absolute;    margin-right: 100%;    right: 10px; /* space between number and text */}

You may have to play with the selectors a bit (like .wiki-content ol >` `li), maybe make the rule for li without the ol, for example:

    .wiki-content li {    display: block;    position: relative;}

`The point is to make the CSS more focused.`

comments: author: David Csikkel
body: Thank you...


Tags: confluence-server

list

nest

number

server

stylesheet
How to have nested number lists in Confluence
Asked by David Csikkel:

Hello,

I have found recommended solution:

1. Go to the space that you would like this numbering be implemented on
2. Go to Space Tools \> Look and Feel \> Stylesheet
3. Edit \> copy and paste the following code \> Save

    ol {    counter-reset: item;}ol li {    display: block;    position: relative;}ol li:before {    content: counters(item, ".")".";    counter-increment: item;    position: absolute;    margin-right: 100%;    right: 10px; /* space between number and text */}

It works but... very big BUT...

it breaks confluence pages on many places, some examples:

1) broken breadcrumbs navigation


Answers:
author: Davin Studer
body: How about doing it with a user macro? Then you can contain the scope. Something like this should work. It will not look the way you want in edit mode, but it will look the way you want in view mode and it should only be scoped to what is in the user macro.

**Maco Name:**   
nested_number_list

**Macro Title:**   
Nested Number List

**Macro Body Processing:**   
Rendered

**Template:**

```
## Developed by: Davin Studer## Date created: 07/01/2019## @noparams#set( $id = $action.dateFormatter.calendar.timeInMillis )<style type="text/css">/*<![CDATA[*/#nested-list-$id ol {    counter-reset: item;}#nested-list-$id ol li {    display: block;    position: relative;}#nested-list-$id ol li:before {    content: counters(item, ".")".";    counter-increment: item;    position: absolute;    margin-right: 100%;    right: 10px; /* space between number and text */}/*]]>*/</style><div id="nested-list-$id">$!body</div>
```


Tags: atl-adm
How to duplicate a Confluence space within the same cloud instance
Asked by Vithit Kuruchittham (Vic):

I would appreciate an advice on how I could duplicate the space from within the same cloud instance. I have exported the space, however when I imported it, the import errored out at the last stage citing the same space key. I cannot edit the space key. So how can this possibly be achieved?

The scenario is that I need to backup the space which has many file attachments and keep this as a snapshot (backup) in case I need to compare or revert back. This space is customer facing and will be going through major structural and content changes, so I need a way to be able to duplicate then edit until we are ready to release the new space. Or I edit using the current space and duplicate for the backup and revert back possibility.

Thanks a lot.


Answers:
author: Jakub Stephan
body: Hi Kiran,

I'm trying to do the same -\> I've exported single space and i want to import it with different name.

I've downloaded the zip, replaced all occurances of old space key \& name but i have problem during my upload:

\`\`\`  
ERROR: insert or update on table "spaces" violates foreign key constraint "fk7ndewmrl3hqcpwc8eydn9mv8j" Detail: Key (spacedescid)=(61243392) is not present in table "content".

\`\`\`

Do you have any idea how to fix that ?


author: Kiran Panduga {Appfire}
body: Hi

You will not be able to import the XML backup with the same spaceKey. However, as a workaround, you can modify the export files and then import i.e

Unzip the Space Export zip file.

In exportDescriptor.properties file, change the parameter **spaceKey** with the new spaceKey

In entities.xml, find and replace the old spaceKey parameters with the new one i.e look for

```
Spackey= or <Spackey>
```

Zip the attachments, exportDescriptor.properties, and entities.xml file and then try importing into the confluence.

Thanks,

Kiran.


Tags: cloud

confluence-cloud
401-unauthorized python rest api and curl
Asked by Angel:

I'm receiving a 401 Unauthorized error when trying to post attachments to the Jira Cloud.

my code in python:

##################################################

import glob  
import requests  
import json  
import time

<br />

def upPagare(pagare):  
tmp = pagare.split('.')  
noAct = tmp\[0\]  
url = '<https://pochteca.atlassian.net/rest/api/2/issue/'+noAct+'/attachments>'  
headers = {"X-Atlassian-Token": "nocheck"}  
# please uncomment to attach external file  
files = {'file': open(pagare, 'rb')}

r = requests.post(url, auth=('aferreirao@pochteca.com.mx', 'lalala'), files=files, headers=headers)  
print(r.status_code)  
print(r.text)

<br />

pagares = \[f for f in glob.glob("\*.pdf")\]

for x in range(len(pagares)):  
print("updating :" + pagares\[x\])  
upPagare(pagares\[x\])  
print("success:" +pagares\[x\])  
time.sleep(10)

#################################################

I almost try with Curl:

##############################################

curl -D- -u aferreirao@pochteca.com.mx:lalala -X POST -H "X-Atlassian-Token: nocheck" -F "file=@C:\\Users\\aferreirao\\Desktop\\CAP-16041.pdf" <https://pochteca.atlassian.net/rest/api/2/issue/CAP-16041/attachments>

################################################


Answers:
author: Warren
body: Hi [@Angel](/t5/user/viewprofilepage/user-id/2680346)

I think the issue might be that you're using a password instead of a token - see [this Atlassian article](https://confluence.atlassian.com/cloud/basic-authentication-deprecation-from-jira-and-confluence-cloud-apis-972355348.html ) for further info (there's also a link within the article with more info on using a token)

comments: author: Angel
body: Thanks [@Warren](/t5/user/viewprofilepage/user-id/26839)

That was, I generated the API token and I used it


author: sandeep pathuri
body: Hi,

I'm able to login to Jira and get the data, the problem comes with the POST method. I'm getting a 401 error, could you please help me with that. Below is my code!

```
data = {

"key": "RESV1",
"name": "Resv1",
"url": "rest/api/2/project",
"projectTypeKey": "software",
"projectTemplateKey": "TSWSIDSOT",
"lead": "*************",
"assigneeType": "PROJECT_LEAD",
"permissionScheme": 10900,
"notificationScheme": 10709,
"categoryId": 11000
}



data = json.dumps(data)

data = json.loads(data)

headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}

r = requests.post(url, json=data, auth=("USERNAME", "PASSWORD"), verify=False)

print(r.json)
```

comments: author: sandeep pathuri
body: FYI,

I'm using Jira Server not Cloud


Tags: atl-adm

confluence-cloud

python

rest-api
Storage of Highly Confidential data
Asked by Indira Damavajhala:

Hi,

I am looking to save a Highly confidential data in Confluence. My question is can we do that or not?


Answers:
author: Bill Bailey
body: You can use permissions to even " lock out" admins from seeing the info, BUT, and admin can always reset the rights to change the page permissions.

If you are OK with that (trusting your admins to not go pocking around), then your data is secure (assuming you are using HTTPS AND are behind a corporate firewall, anon access turned off).

If that is not safe enough, then you need to encrypt your attachments and share the keys to those who need to know.


author: Nic Brough -Adaptavist-
body: Yes, you can secure confidential data away from people, but if you want our help with doing it, you will need to tell us how you want to define who can see what.

Obviously, use SSL as a starter, but within the application, it's a bit more fine-grained - what do you want to show/hide and how do you want to allow/block specific people accessing it?


author: Bastian Stehmann
body: Hi [@Indira Damavajhala](/t5/user/viewprofilepage/user-id/3416379) ,

Welcome to the Community.

Sure you can do that. Just make sure your server is secure.
Comala workflow trigger
Asked by Teri:

I used the following trigger to allow minor changes to be published when a document was already in a published state :

{trigger:pageupdated\|state=Published\|user=@creator@}

{set-state:Published}

{trigger}

For some reason, it was working fine this morning and all of a sudden its not working. Now, I'm back to square one where any change that occurs after a document is a published state has to be put through the workflow before it gets published.

Any other triggers I could use?


Answers:
author: James Conway
body: Hi Teri,

I suggest that you use a select or submit transition rather the update transition and a trigger. This will enable your author can use to start a review when required.

Hope that helps

James
Is there any impact to Restricted Pages in Confluence when migrating from Server to Cloud?
Asked by Karen Harmon:

Have noticed missing Confluence Documents since our Migration from Server to Cloud. 1 Document / Page in particular was a Restricted Page. Need to understand if there are issues related to the Confluence Data Migration Wizard.


Answers:
author: Shannon S
body: Hi Karen,

Welcome to Atlassian Community. It's great to have you!

I am not personally aware of this being an ongoing problem with the migration wizard, but it could be caused by something else.

My recommendation would be to get in touch with the [Cloud Support Team](https://support.atlassian.com/contact/), let them know the details of the migration and the restriction on the page. They can take a look and see what might have happened with that.

Regards,

Shannon


Tags: cloud

confluence-cloud
Grant access to users if admin does not exist
Asked by Ariel:

I have a sub page that was created as "restricted".

The owner of the sub page is no longer with the company.

No one else including the admins of the entire Page are able to grant access to other users for the sub page.

How do we proceed to grant access?  


Answers:
author: Johan Soetens _Dumblefy_
body: Hello Ariel,

have a look in Space Settings \> Permissions \> Restricted Pages

A space admin should be able to change the restrictions.

comments: author: Bill Bailey
body: Yes, admin are never locked out. They can always change permissions, hence why they are admins. ;-)
Auto link the Decision log page with the Product development page using a Reference ID
Asked by Alessandro Scicluna:

I need to link with a unique reference ID the Decision log page with the product development page. Is there a way how can I do it please?

Thanks

Alessandro


Answers:
author: Diego
body: Hello there Alessandro!  
I do not think that I understand what exactly what you need to accomplish here.   
As I understand, you need to *have a Decision Log page to be automatically linked to another one* . Is that correct?   
If you need to create links inside Confluence, you can check these:
> * ***++[Confluence Server - Links](https://confluence.atlassian.com/doc/links-776656293.html)++***
> * [***++Confluence Cloud - Insert Links and Anchors++***](https://confluence.atlassian.com/confcloud/insert-links-and-anchors-724764900.html)

My questions are these:
> 1. *What exactly would you like to have as a trigger for this action?*
> 2. *Do you need to link a page to another page?*
> 3. *Do you need to link an attachment to another page?*
> 4. *Are you on Confluence cloud or server?*
> 5. *Could you give us examples of what you need to accomplish? This can help us to replicate the desired results.*

Let us hear from you Alessandro!