youngmon/atlassian-qna huggingface dataset:
The calling user does not have permission to view users
Asked by Rob Howard:

I am on a 14-day trial to decide whether to propose a Confluence solution to clients.  
I am trying to determine the viability of accessing Confluence with Python.  
I am the admin of the site and I am the only user.  
I have created a API token, not yet expired.

My code:

```
# pip install atlassian-python-api
# Python 3.11
from atlassian.confluence import Confluence

url = 'https://xxx.atlassian.net'
token = 'ATATT3x...wI7c34=4EA6D8ED'

confluence = Confluence(url=url, token=token)
user = confluence.get_user_details_by_accountid('712020:c9586404-a094-4c1f-8c28-bd78a644b3a8')
```

<br />

RETURNS: **The calling user does not have permission to view users**

WHEN I log into my browser and replace the URL with

<https://xxx.atlassian.net/wiki/rest/api/user?accountId=712020:c9586404-a094-4c1f-8c28-bd78a644b3a8>

<br />

IT WORKS, and returns expected user data.

I have also tried these patterns:

```

confluence = Confluence(url=url, username='MY EMAIL ADDRESS', password='****')
confluence = Confluence(url=url, username='MY USER NAME', password='****')
confluence = Confluence(url=url, username='MY USER NAME', password='****')
confluence = Confluence(url=url, username='MY USER NAME', password='****', token=token)
```

<br />

and every type of combination I could think of.  
I have tried other various APIs, like reading all documents, only to get a similar 401 error.

Is this an issue with the 14-day trial?  
Or something I'm just doing wrong?


Answers:
author: Rob Howard
body: **UPDATE:** There seems to be something wrong (bug) with the python library when it comes to parsing my token. It returns: "Failed to parse Connect Session Auth Token"  
My token contains "=", "-", and "_" characters in it.

<br />

If I just hit the API directly, it works:  

```
url = 'https://xxx.atlassian.net/wiki/rest/api/user?accountId=712020%3Ac9586404-a094-4c1f-8c28-bd78a644b3a8'
headers={
  'Accept': 'application/json',
  'Content-Type': 'application/json'
}
params = {
  "spaceKey": 'Documentation',
  "type": "page",
  "limit": 1000
}
response = requests.get(url, headers=headers, auth=(username, token))
print(response.text)
```


author: Benjamin
body: HI [@Rob Howard](/t5/user/viewprofilepage/user-id/5409194) ,

Looks like a similar issue another member had.

<https://community.atlassian.com/t5/Confluence-questions/The-calling-user-does-not-have-permission-to-view-the-content/qaq-p/2185802>  

It could possibly be a trial but logically there shouldn't be a restriction for API calls. You are able to call the API via browser with your login, so your user is ok. Also, you renew your token to make sure it valid still and not expire. Maybe worth a Atlassian support ticket to check.

<https://support.atlassian.com/contact/?postauth=true#/>


Tags: cloud

confluence-cloud
Source Tree Crash Permaloop
Asked by bisonbrah:

I was in the process on adding a new existing local repo in source tree; when suddenly it crashed. I have tried rebooting etc. and the crash loop keeps happening.

Source Tree is my lifeline; I NEED it to work lol - can anyone help?

Here is the error message I get..

```
Process: Sourcetree [588]
Path: /Applications/SourceTree.app/Contents/MacOS/Sourcetree
Identifier: Sourcetree
Version: 2.7.3 (169)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Sourcetree [588]
User ID: 501

Date/Time: 2018-06-05 22:03:45.714 -0400
OS Version: Mac OS X 10.13.5 (17F77)
Report Version: 12
Anonymous UUID: 1867FC02-E2C1-5224-5FD9-F1F1718BC984


Time Awake Since Boot: 89 seconds

System Integrity Protection: enabled

Crashed Thread: 3 Dispatch queue: com.apple.root.default-qos

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [0]
```


Answers:
author: bisonbrah
body: Looks like its working now - SOO weird.
Is there a way to create an XML site backup that omits archived spaces and deactivated users?
Asked by Julia:

Hi there,

We're looking to create an XML file that can be reimported, but we would like it to exclude archived spaces (i.e., any space with status: archived) and deactivated users.

Is there a way to do this from the export or do we need to do this manually once we have the file?

Thanks!


Answers:
author: Ravina
body: Hi [@Julia](/t5/user/viewprofilepage/user-id/5387644) Welcome to the Atlassian community.

There is no way to skip the spaces while taking the site backup and regarding the deactivated users if those users have created any content in the confluence like created pages, commented on pages, created blogs, etc then technically they should be migrated as well and part of the export so that after the import content created by them are mapped to their account else in the import process those content will be mapped to the system created users.

If you want a clean data for import you can either clean that before the export or after the import is completed, else you want to keep the data on old system then after export import the data to intermediate instance and then do a clean and take export from that site and import to your target system.

Thanks

Ravina

comments: author: Julia
body: Thanks Ravina, that's helpful!


Tags: confluence-server

server
Confluence site is not accessible.
Asked by ???:

Confluence site is not accessible.  
Is it a service failure?


Answers:
author: Nic Brough -Adaptavist-
body: Not that I can see, a couple of the Cloud sites I've just tried are fine.

Please check <https://status.atlassian.com> before raising issues. If there is an issue, it is very likely that Atlassian already know and Statuspage will tell you.

Also, please include error messages or symptoms when posting here. "Not accessible" or "it does not work" does not give us any information on what the problem might be.

comments: author: ???(TMW)
body: Well, these are the two error codes I got:

6097t2

a6ekip

Tried to google them myself and see if there're any resolutions, but none so far

It seems to be barely working now, but the loading speed is much lower than usual.


author: alice_kim_???_
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/301381i692BD0799E754F9D/image-size/large?v=v2&px=999 "image.png")


author: alice_kim_???_
body: please\~!


author: ???
body: same issue here


author: Todah
body: same here..!


author: ???(TMW)
body: same issue here

submitted a ticket, waiting for the response


author: Youngik Jang
body: The same problem is occurring


Tags: cloud

confluence-cloud
Gliffy Diagrams for Confluence feature parity between DC and Cloud versions
Asked by Jasna Stefanovic:

Hello there,

I was wandering if any of you have experience migrating gliffy from Datacenter Confluence to Cloud and if there is any feature parity between the two environments?


Answers:
author: Samie Kaufman - Your Gal at Gliffy
body: Hi [@Jasna Stefanovic](/t5/user/viewprofilepage/user-id/4678461) !

I'm Gliffy's product manager. The great news is that you will not lose access to any features as you move from Data Center to Cloud. Here's a [high-level one-pager via our brandfolder](https://brandfolder.com/s/cv38pkbxfst8rjjj8bg9fq6) about our primary features. We try to maintain strong feature parity between the two products, and we typically implement new features on Cloud first.

With regards to help migrating, I haven't personally gone through that process, but most of our customers haven't had issues. You can always reach out to our support team at support@gliffy.com for help!

Samie


Tags: confluence-cloud

confluence-server

server
Tiny link replacement
Asked by Patrick McKinney:

Recently during an upgrade I had to create a new space from an existing one. This was done with Comala publishing so that we can have both a Published space and a second space for working on drafts of changes behind the scenes while our team works with information in a published space. As of now I have 3 spaces, old, draft, and Current.

The old space that previously existed had multiple tiny link URLs, that when copied remained the exact same and did not update to the draft or current space in the Wiki mark up. This means that when a team member clicks on a link within current, it goes to the Old Space only and not the Current.

Because these are tiny links, they don't have any context in the name as to where we can point them in the future and are wondering if it is possible to do any of the following:

1) Generate a list of all tiny link URLs in a space and include the names

2) Have a script to force the Tiny Links to change in the Current space to the new pages, since the content is the same between them, only difference is the space location.

Thanks for any ideas


Answers:
author: Benjamin
body: HI [@Patrick McKinney](/t5/user/viewprofilepage/user-id/5409126) ,

The 1st is probably a possible option. You can query the DB for the Tiny URLs base on the URL pattern across the instance. You'll need write a custom macro to populate that information to a page. I have not come across a Macro in marketplace that provides this.

However, the 2nd option is unlikely since the tiny URL are auto generated for each page. This might lead to modification to the DB which is a risky option.


Tags: confluence-server

server
Permissions?
Asked by Matheus Fran?a:

Hello CommunityGood afternoon!

I would like your help to solve a problem in the scenario below.  
I have an approval flow with two approval phases:

1- In the first phase I got the approvers from a custom field called "MANAGERS ONE", this field has more than one person who can approve.  
These approvals are defined when the issue moves to the status of the same name "MANAGERS ONE".

2- In the second phase, a similar flow occurs, but now with a new approved field "MANAGERS COMITE" and also direct to the status of the same name "MANAGERS COMITE".

Some of these approvers have a Jira Service Management license and in other cases they are the ones who close that issue.  
And currently some of those approved in the first group "MANAGERS ONE" include it in the "MANAGERS COMITE" field, with this being a problem with the flow, or with the default permissions.  
I would like to better understand what would be the best solution, editing the permissions scheme or working on the field for editing in a certain status?


Answers:
author: Parsa Shiva
body: Hi [@Matheus Fran?a](/t5/user/viewprofilepage/user-id/3546345)

You seem to be trying to tackle the issue using out-of-the-box solutions on Jira.  
I strongly recommend looking into some apps like Approval Path for Jira.

It will simplify this with proper paper trailing and workflow conditions. Plus, you can create conditions for the approvals themselves.

Best,  
Parsa


Tags: approval

cloud

jira-cloud

jira-service-management

permission

workflow
How do I insert jira ticket link into confluence roadmap
Asked by Dave Giroski:

When creating a bar in my roadmap I'm able to enter in name of the bar and description. But when I try to click on link and add Jira ticket it doesn't save the link. I like to add the link on the roadmap bar to be able to click on the Jira ticket for more information.


Answers:
author: Linh Pham_Ricksoft_Inc
body: Hi [@Dave Giroski](/t5/user/viewprofilepage/user-id/5361142) and welcome to the community!

By default, Confluence roadmap macro doesn't allow to link Jira issue.

If you're open to using third-party app, please consider the app [Gantt Chart Planner for Confluence](https://marketplace.atlassian.com/apps/1227063/gantt-chart-planner-for-confluence-roadmap-timeline?hosting=cloud&tab=overview). It has Jira integration feature so you link Jira issue, add assignees and track the task progress in real-time (bi-directional sync) :)

*Disclaimer: I work with the team developing this app*


Tags: cloud

confluence-cloud
Public sharing a confluence page
Asked by Prakriti Arora:

Hello, we have a Standard plan for confluence, if we enable public share on a page in confluence, would we get charged for it?


Answers:
author: Mikael Sandberg
body: No, you will not be charged for enabling public sharing. [Public links](https://support.atlassian.com/confluence-cloud/docs/share-content-externally-with-public-links/) is a feature that is included and is intended to be used when you want to share a page with someone outside of Confluence without giving them access to your instance. Note that the public page is limited in what it can show, for example page tree and other macros will be hidden.


author: Kristian Klima
body: [@Prakriti Arora](/t5/user/viewprofilepage/user-id/4596129)

If you need to share more pages in an organized manner without enabling anonymous access to your Confluence space, you can use an app to create a publicly available site for you:

* Scroll Viewport (I'm using this one)
* Instant Website

The following two apps depend on Space permissions so require a space with public access.

* Refined for Confluence
* Spacecraft Theme


Tags: cloud

confluence-cloud
Confluence spaces and pages not loading
Asked by Michael Oeschger:

I do not have a lot of content but none of my pages load. I can log in an get to the Overview page. From there, none of the of the pages load - times out. Clocking on "Recent" will time out. I cannot create any new pages or spaces.  
I have a stable 1GB connection and I have tried both Chrome and Firefox with the same results.


Answers:
author: Kai Fung Chong
body: This could be caused by the active incident Confluence is having. You could check out   
<https://status.atlassian.com/> for the Atlassian products' status.


author: Benjamin
body: HI [@Michael Oeschger](/t5/user/viewprofilepage/user-id/4125809) ,

Welcome. Strange behavior indeed. I can access my pages fine on my site. Are other team members seeing the same issue?

Have you tried incognito mode? Also,try using the browser with no plugins. Sometimes I notice plugins can cause undesired results.

Hope this helps.

comments: author: Michael Oeschger
body: Hello [@Benjamin](/t5/user/viewprofilepage/user-id/3275402) - I tried incognito mode both in Chrome as well as Firefox and also connected using another login ID - all with the same results. I get the overview page but nothing else will load. I also tried from 2 different PCs. The only place I got this to work was through my iPhone?!?!? (DuckDuckGo)


author: Benjamin
body: I haven't seen this behavior and haven't heard anything from my network. Might be worth raising a ticket with Atlassian support.

<https://support.atlassian.com/contact/>


Tags: cloud

confluence-cloud
Looking for a way to embed confluence knowledge base within my web app
Asked by ArunRam:

I would like to explore the possibility of creating a private knowledge base on confluence and have it integrated/embedded within my webapp. My webapp has authenticated users and only those users should be able to access the knowledge base. Please advice.


Answers:
author: Kristian Klima
body: There are apps that can create a dedicate KB website for you from Confluence content - with the option to use SSO - Scroll Viewport or Instant Websites.

Other than that, exporting your space as HTML or XML and then using that in your site would probably be the only option.

(actually, I think there are apps that can export to markdown but that wouldn't be that different to working with HTML/XML)


Tags: cloud

confluence-cloud
where to deselect or select colaborative editing
Asked by Ralph Deffke:

I don't want the team seeing draft's

Documentation does not say anything where to select it.

Thanks


Answers:
author: Laurie Sciutti
body: Hi [@Ralph Deffke](/t5/user/viewprofilepage/user-id/2496633) \~

You can restrict a page *before* you publish it, too. Just tap the lock icon next to the **Publish** button as you're editing your draft. Once you've restricted a draft, even someone with the link can't view it unless they have the right permissions.

Ref: <https://www.atlassian.com/software/confluence/resources/guides/get-started/create-collaborate#collaborate>

Additional info: <https://developer.atlassian.com/cloud/confluence/collaborative-editing/>

comments: author: Nic Brough -Adaptavist-
body: You only need to restrict edit, not view. If a user cannot edit, they can't get into the draft to see it.


Tags: cloud

confluence-cloud
How do I stop all pages in a space version from inheriting from the previous space version?
Asked by Ryan Audino:

Hello,

I need to clone an existing space version but I'd like to "disinherit" all pages in the the new space version once the clone has been made. Editing them all one by one would take days of work, so I'm hoping there's a way to stop them all from inheriting in bulk.


Answers:
author: Charlie Marriott
body: Hi [@Ryan Audino](/t5/user/viewprofilepage/user-id/5408928) thank you for the question!

What do you mean by "disinheriting" pages in the new space?

Is this question for Confluence Cloud or Data Center?

If it's for Data Center, please have a look at the [documentation on copying spaces](https://confluence.atlassian.com/doc/copy-a-space-1236929752.html) for more information.

Thanks,

Charlie


Tags: cloud

confluence-cloud

confluence-server

inherit

server

version
Use content (including expand) from one page on another
Asked by Melisa Singh:

Hi. I have an FAQ page that I'm putting together that lists common questions from each department. Each dept has a space and at the bottom of their space is a section with their dept's FAQ. How do I copy that section to the FAQ in a way where if the dept head adds additional questions they will show up on the master FAQ page?

The way I am setting up the FAQ page is with expand drop downs.

![Screenshot 2024-01-18 at 12.39.43?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/301294iF99CC8AEBAAF2CC8/image-size/large?v=v2&px=999 "Screenshot 2024-01-18 at 12.39.43?PM.png")

So far the only work around I've been able to brainstorm is creating a separate page for each dept that has questions. This is cumbersome and there are some departments that will actually have more than one section.

I will need a section for each of these:


Answers:
author: Laurie Sciutti
body: Hi [@Melisa Singh](/t5/user/viewprofilepage/user-id/5365465) \~ how about embedding each FAQ from various spaces in the Excerpt macro and using Excerpt Include macros on your consolidation page?


author: Melisa Singh
body: ![Screenshot 2024-01-18 at 12.40.59?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/301296iF1E7B9450A8622A8/image-size/large?v=v2&px=999 "Screenshot 2024-01-18 at 12.40.59?PM.png")


Tags: cloud

confluence-cloud
Plugin for issue statistics
Asked by Chasovskikh Kirill:

Hello!

I am searching for a plugin to create a gadget that displays issue statistics categorized by user (similar to the screenshot), but divided by a custom field. For instance, I want to see how many tasks of each issue type are assigned to each user.


Answers:
author: Nic Brough -Adaptavist-
body: Hi Chasovskikh,

Your screenshot is of a "filter statistics" gadget. These work off any list-field you want - status, project, component, assignee, customfield select lists, customfield user lists, radiobuttons and so-on.

You then say "I want to see how many tasks of each issue type are assigned to each user."

That can be done with a two-dimensional statistics gadget. To do this

Create a saved filter for the issues you want to report on, and configure a new 2d statistics gadget with settings:

* Filter: your filter
* X axis: Issue type
* Y axis: Assignee

comments: author: Chasovskikh Kirill
body: Thank you, it works!


Tags: cloud

confluence-cloud
Bulk Archive in Data Center using Scriptrunner for Confluence
Asked by Jeff Scattini:

Hello all,

We need to archive a lot of old pages across multiple spaces. We have an Archive space set up to retain old information. I'm trying to use Scriptrunner for Confluence (data center version) to perform this action, but I'm not seeing any easy to reference information on bulk archiving. I see bulk copying and bulk deletion, but nothing on archiving.

I had thought that maybe I'd need to copy pages to the archive and then delete them from the original space, but when going through the built-in script to copy pages, Scriptrunner won't give archive spaces as a destination option.

Does anyone know if this is possible?

Thanks in advance


Answers:
author: Aron Gombas _Midori_
body: [@Jeff Scattini](/t5/user/viewprofilepage/user-id/1185317) Have you tried the [Better Content Archiving](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=datacenter&tab=overview) app?

It is an app developed for this exact use case, automatically [archiving pages](https://www.midori-global.com/products/better-content-archiving-for-confluence/data-center/documentation/page-archiving) in the background. It will even preserve the original page hierarchy in the archive space:

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

It retains page history, attachments, comments, etc. Overall, it is a purpose-written app that results in very intuitive archives through high level of automation.

Learn more in the [user docs](https://www.midori-global.com/products/better-content-archiving-for-confluence/data-center/documentation/).

*(Discl. it is a paid and supported app developed by our team. Free for 10 users.)*


Tags: confluence-data-center

confluence-server

data-center

scriptrunner

server
Table of content problem
Asked by Guillermo.Agudo:

My table of content includes a:

* (empty) in my list of contents

It?s like:

* Heading
* 
* Heading
* Heading

This empty space correspond to a table with information, all texts in normal text format.

?Why the table of contents show me that as a empty heading?

?How could I remove that from there to have:

* Heading
* Heading
* Heading ?

Thanks in advance


Answers:
author: Barbara Szczesniak
body: [@Guillermo.Agudo](/t5/user/viewprofilepage/user-id/5408853) It sounds like you may have a blank paragraph that has the Heading 2 style applied to it. Do you have a blank space above the table you mention? Place your cursor there to check the style.

comments: author: Guillermo.Agudo
body: Hi Barbara, Thanks for your reply.

I've already checked that but there aren't any blank spaces. It seems to be interpreting the table as a heading but all the content placed there is normal text.

I've include a (-) as a sufix in all headings to filter by that, but is not the ideal solution.

Thanks anyway:)


author: Stephan Shere
body: Hi Guillermo,

This might be a stupid question, but are your headers using "header" styles, or simply font differences?

comments: author: Guillermo.Agudo
body: Hi Stephan, thanks for your reply

All my headers are in heading 2 style and all the content in normal text


Tags: cloud

confluence-cloud

table-of-contents