youngmon/atlassian-qna huggingface dataset:
The count line at G1 and G2 milestone is not displayed in SQL
Asked by Jovan Aks:

I wanted to add the following to my SQL query (I use Confluence-\>Table Transformator): I wanted to output the total number of G1 projects and separately the total number for G2 projects. Can I still add this to my code? Now I only get a 1 for each line, but unfortunately that doesn't give me the total number of G1 or G2. I've been working on it for so long, please help me.

This is my current code :

"

**SELECT \*, COUNT(\*) AS 'Projekte', T1.'Key'**

**FROM**

**(SELECT**

**CASE**

**WHEN T1.'Labels' LIKE "%G1%"**

**THEN FORMATWIKI("{cell:bgColor=#00FF00}G1{cell}")**

**WHEN T1.'Labels' LIKE "%G2%"**

**THEN FORMATWIKI("{cell:bgColor=#FF0000}G2{cell}")**

**END AS 'Milestone', 'Key'**

**FROM T\*) T**

**WHERE T.'Milestone' IS NOT NULL**

**GROUP BY T.'Milestone', 'Key'**

**ORDER BY Projekte ASC**

"

![30.0_CODE.png](https://community.atlassian.com/t5/image/serverpage/image-id/337547i0198F9B188BA74D9/image-size/large?v=v2&px=999 "30.0_CODE.png")![30.1_Result_Just_Ones.png](https://community.atlassian.com/t5/image/serverpage/image-id/337548iCFF183525487F64F/image-size/large?v=v2&px=999 "30.1_Result_Just_Ones.png")


Answers:
author: Stiltsoft support
body: Hi [@Jovan Aks](/t5/user/viewprofilepage/user-id/5551340) ,

The Table Transformer macro is provided by our app that is [Table Filter, Charts \& Spreadsheets for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-charts-spreadsheets-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111). So, you may check this part of our documentation that shows how to count definite values in a column: <https://docs.stiltsoft.com/tfac/dc-server/custom-transformation-use-cases-with-advanced-sql-queries-42241587.html#CustomTransformationusecaseswithadvancedSQLqueries-Countingthedefinitevalueinacolumn>

If you are still stuck, you may refer to [our support portal](https://stiltsoft.atlassian.net/servicedesk/customer/portal/14) that is confidential. There you may share your page storage format (upper right corner of the page -\> menu ... -\> View storage format) and the screenshot of your Jira Issues table and we'll help you with the case.


Tags: confluence-unknown-hosting-type

count

filter

milestone

sql

table

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-transformer

unknown-hosting-type
More Spaces on Sidebar of Home Page
Asked by Donat Pohla:

I was wondering if there is a possibility to display more than six spaces on the side bar of the home page.   

Whenever I star another one, that I want on my home page, it deletes another one from the side bar.   

There is plenty of space. Is there an option that I just haven't found yet?  
Thank you!


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Donat Pohla](/t5/user/viewprofilepage/user-id/5366964)

Unfortunately there isn't one :/

comments: author: Donat Pohla
body: Okay, thanks for the quick answer! :)


author: Kristian Klima
body: I wonder if a workaround with Smart Links would work :)

comments: author: Donat Pohla
body: Is there a way to get them on the sidebar?   
I guess the way to go right now is to click on "Spaces" on the header.


Tags: cloud

confluence-cloud
Export Confluence Page Trees to Excel
Asked by William S:

Hi Atlassian Community,

I am trying to export all of the page trees and children pages (just their titles, not content) within an entire Confluence space into an Excel spreadsheet. Is there any way that I can achieve this without having to manually transfer each one from Confluence to Excel?

Thanks in advance.


Answers:
author: Tessa Tuteleers
body: Hi [@William S](/t5/user/viewprofilepage/user-id/5551337) ,

Welcome to the community!

There is no native way to easily do this, however, I did found some similare questions that tackle this exact problem, and some creative solutions have been found.

This is an example of [a very similar request with answers](https://community.atlassian.com/t5/Confluence-questions/Exporting-Confluence/qaq-p/2586404).

**Tip**: It might be faster to search the community for existing answered questions that can solve your problem before asking a new question :)

Hope this helps,

- Tessa

comments: author: William S
body: Many thanks for your prompt help Tessa! Greatly appreciated.


author: Tom_Carrott_Adaptavist
body: Hey [@William S](/t5/user/viewprofilepage/user-id/5551337) Great question! It sounds like you've found the information you needed, which is fantastic

I'm curious to learn more about your specific use case for Confluence. At Kolekti, we're focused on understanding how teams like yours leverage Confluence for content management. We might have some solutions or insights to share that could further enhance your experience beyond the standard features.

Please feel free to share more details about your setup. Looking forward to connecting! Tom

comments: author: Kristian Klima
body: Hi [@Tom_Carrott_Adaptavist](/t5/user/viewprofilepage/user-id/5020389)

I used the export of the tree to keep track of a peculiar localization workflow at an old gig.

It's a quick way to find out the number of pages, organize pages alphabetically (to find similarly named pages - important post content migrations), compare spaces to find duplicates, to get html links of individual pages :)

Of course, Panorama would take care of some of those use-cases ;)


Tags: confluence-unknown-hosting-type

ms-excel

unknown-hosting-type
How can we archive and restore archived Confluence content via REST API?
Asked by Crystal Pang:

How we can archive Confluence content like archive content in Space using the REST API? In Space, I noticed we can leave a note when archiving the Space content.  
![Screenshot 2024-07-24 at 3.05.03?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/337515i8F55BC61ACA8CA31/image-size/large?v=v2&px=999 "Screenshot 2024-07-24 at 3.05.03?PM.png")  

<br />

<br />

Related to the question in [Is there a way to restore archived page via REST API?](https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-restore-archived-page-via-REST-API/qaq-p/1927298)

<br />

![Screenshot 2024-07-24 at 2.14.11?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/337513i6EF15677552FC383/image-size/large?v=v2&px=999 "Screenshot 2024-07-24 at 2.14.11?PM.png")

Saw in the [PUT Update Page](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put) REST API, it can change 'deleted' Confluence Page's status to 'current'. Is there any REST API or Graphql mutation method that able to change archived content (page, database, smartlink, whiteboard) status to 'current'?


Answers:
author: Aron Gombas _Midori_
body: You *can* archive pages although it is experimental: <https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-archive-post>

I don't know about "restore", but maybe manipulating the page's status (or state) field can work (less likely).

comments: author: Alex Koxaras _Relational_
body: It seems indeed you *can*and looks that I missed that info. I was searching on API v2 instead of 1. Nice catch Aron!


author: Aron Gombas _Midori_
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) Note that API v2 is somewhat limited compared to v1, even if v1 is already considered "legacy".


author: Alex Koxaras _Relational_
body: Hi [@Crystal Pang](/t5/user/viewprofilepage/user-id/4899947) and welcome to the community,

Not to my knowledge. If you could archive or restore archived pages, that API would be in there somewhere.

comments: author: Crystal Pang
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) based on the documentation, no API can restore an Archived page.


author: Alex Koxaras _Relational_
body: Exactly


author: Crystal Pang
body: Is there any other method to restore archive pages like using GraphQL?


author: Alex Koxaras _Relational_
body: Have you already seen this? <https://developer.atlassian.com/cloud/confluence/graphql/#queries_page>


author: Alex Koxaras _Relational_
body: And this most likely <https://developer.atlassian.com/cloud/confluence/graphql/#mutations_updateCurrentPage>


author: Crystal Pang
body: [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) Unfortunately the <https://developer.atlassian.com/cloud/confluence/graphql/#mutations_updateCurrentPage> can only update the content page body.


Tags: cloud

confluence-cloud

rest-api
Deleting products or project or whatever it is called.
Asked by MDC ShengDa:

Good Day Friends, New to Jira, Some assistant need please.

1. How do I delete this product?

2. I seem to have free 30days preimum, what are the items? I wish to avoid so that I don get stuck to them when the 30days are up.

Thank you.

![Screenshot 2024-07-24 144126.png](/t5/image/serverpage/image-id/337511i18013624CAE27450/image-size/large?v=v2&px=999 "Screenshot 2024-07-24 144126.png")


Answers:
author: Hans Polder
body: [@MDC ShengDa](/t5/user/viewprofilepage/user-id/5551272) ,

If you click on the 'Administration' option that is shown as a grey cog-wheel icon on your screenshot, you'll head over to the admin.atlassian.com environment. Here you'll have the 'Billing' section to view any products and tiers (Free, Standard, Premium, Enterprise) you have at the moment.

Generally, if you have something for free as trial, and there are no credit card details on file, your site will be automatically downgraded to Free (with limitations in support and features of course) at the end of the trial period. You'll also get emails warning you about the upcoming end of the trial and potential consequences.

When you click on the cog wheel icon to go to Administration, you might see a selection of 'which organization do you want to administer' \> select the appropriate option and check out that 'Billing' section I mentioned.

After you are logged in to one of the organizations, and if you indeed have more, you can select a dropdown in the top menu (see below) to head over to the other 'organizations' that you administer in the Atlassian environment.

![Screenshot 2024-07-24 085306.png](https://community.atlassian.com/t5/image/serverpage/image-id/337514i8506E27B1BB2214E/image-size/large?v=v2&px=999 "Screenshot 2024-07-24 085306.png")


author: ?ukasz Modzelewski _TTPSC_
body: Hi [@MDC ShengDa](/t5/user/viewprofilepage/user-id/5551272) , welcome to the community!

Those are your sites - Jira cloud instances where you have access.

You can manage each of them from the organization administration section: <https://admin.atlassian.com/>

If you want to remove any of the organization just click it on admin section and navigate to settings section for that organization, there at the bottom of the page you will find an option to delete an organization.

Just make sure you read all of the related info on page.

If you want to keep some instances for testing you can change the subscription in the given organization eg. from billing section, click 'manage' next to product and then change the subscription plan


Tags: cloud

confluence-cloud
RTO and RPO
Asked by Wirda Gymnastiar:

What are RPO and RTO for Attlassian Cloud (JIRA Cloud \& Confluence Cloud) based on <https://www.atlassian.com/trust/security/data-management> ?

Thank you.


Answers:
author: Hans Polder
body: [@Wirda Gymnastiar](/t5/user/viewprofilepage/user-id/4439155) ,

Welcome to the community!

The information is on that page:

![Screenshot 2024-07-24 062128.png](https://community.atlassian.com/t5/image/serverpage/image-id/337500i04AF7546BFE29263/image-size/large?v=v2&px=999 "Screenshot 2024-07-24 062128.png")

comments: author: Wirda Gymnastiar
body: thank you


Tags: cloud

confluence-cloud
Cannot read properties of null (reading 'nodeName')
Asked by Y Y Wong:

Recently, we got the "Cannot read properties of null (reading 'nodeName')" error when opening an existing draw.io diagram within Confluence (Cloud). If we download the .drawio file to local and use "app.diagrams.net" to open it, it successes without any error.

May I know if anyone hit the same issue and how we can fix this.

\[Follow-up\]

We just find that the problem will happen if we create a second page in Draw.io and assign it as the "background" of the frist page. After publishing the diagram and re-open it in Conflucence editor, the problem will happen.

However, if we download the .drawio file and open it in draw.io "app.diagrams.net", it can be open without any issue.

Hope that Confluence (Cloud) team can find a solution on this.


Answers:
author: David Benson _draw_io_
body: Hi,

What version of draw.io do you see in the help menu of the draw.io editor? If it's not 24.7.5, please go to clear.draw.io and try again.

Best,

David

comments: author: Y Y Wong
body: I just check the draw.io version is v24.7.5. And I just try on Chrome that I can open the same problem draw.io diagram without any issue now. It seems the problem just disappeared.

Anyway, let me also try to use "clear.draw.io" to clear the cache now.


author: Y Y Wong
body: I just try a few times with different draw.io diagrams in my Confluence and they all work now.


author: JASMEET SINGH
body: works fine on edge, error in chrome

comments: author: Y Y Wong
body: I got this on both. But it seems I have no such issue now and I just try on Chrome that I can open the same problem draw.io diagram for editing.


Tags: cloud

confluence-cloud

draw.io
Error importing Confluence Cloud export into Confluence Data Center
Asked by John Funk:

Hello everyone! Has anyone done this before? Nice clean XML export from a Confluence Cloud site, and now the attempted import into a Confluence Data Center site, version 7.19.25.

Receiving the error:

**com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Invalid byte 2 of 4-byte UTF-8 sequence.**

Any ideas or guidance?


Answers:
author: Brant Schroeder
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) This has to do with special characters in the pages. I thought this bug was fixed. There is a workaround you can do that cleans the XML. More information here: <https://jira.atlassian.com/browse/CONFSERVER-78782>

comments: author: John Funk
body: Thanks, [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) !! Yeah, we saw that also, but thought the same thing - that it just applied to earlier versions. We'll continue down that path - thanks!


author: John Funk
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) - is there a way to search for all of the special characters through all of the pages on a space?


author: Brant Schroeder
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) I think that would be hard because they are usually from someone cutting and pasting. I think you would end up in the same boat of scanning the XML and Atlassian already has something for that.


author: John Funk
body: Very good - thanks again!


Tags: cloud

confluence-data-center

questions-for-confluence
Fillable estimate form for 3rd party companies
Asked by David Thomson:

Is it possible to create a template for an estimate form, so that when I need an official estimate from a particular company I would create a page from the template, customize it to the particular company/job, and share it with the company, allowing them as a non-Atlasian member to complete the form and save it?


Answers:
author: Barbara Szczesniak
body: [@David Thomson](/t5/user/viewprofilepage/user-id/5405167) I think you might be able to use Guest access for these customers, but you would need to do a lot with permissions to make sure they only have access to the page you want them to complete.

See these pages for a start:

* <https://support.atlassian.com/confluence-cloud/docs/invite-guests-for-external-collaboration/>
* <https://support.atlassian.com/confluence-cloud/docs/what-can-guests-see-and-do-on-confluence/>

I attended a course on Managing Permissions in Confluence yesterday that might be helpful for you to view. I'm not sure if [@Robert Hean](/t5/user/viewprofilepage/user-id/5342480) has posted the recording yet.

This route might be a heavy lift if filling out this estimate form is the only thing you want the customer to do in Confluence. There might be some other way to present it to them and then you can bring the completed page into Confluence later. Maybe if you also use Jira Service Management?

comments: author: Robert Hean
body: Hey [@Barbara Szczesniak](/t5/user/viewprofilepage/user-id/5187859) - appreciate the shoutout!

Here's a link [@David Thomson](/t5/user/viewprofilepage/user-id/5405167) if you're curious -[https://youtube.com/live/vKgqA4xSawA](http://?https://youtube.com/live/vKgqA4xSawA).

It does sound like you could use Guest access - however, that could be a bit challenging to manage.

Would be curious to understand more about what the customer has to do - e.g. just sign off? Add a lot of info? etc.


author: Dave Mathijs
body: Hi [@David Thomson](/t5/user/viewprofilepage/user-id/5405167)

You can create space or global templates in Confluence. When a page is created from a template, it can be modified/customized afterwards. However, to be able to edit the page created from the template (add info, comments, etc.), your colleague would need a Confluence license. So they would effectively need an Atlassian account.


Tags: cloud

confluence-cloud
Import google doc - error "refresh the page, and "allow all cookies"
Asked by Caitlin:

Our internal staff is attempting to import several Google documents using Confluence's import tool. However as soon as Google Drive is selected, our user is presented with a   

"Import unavailable  
To import from Google Docs, please clear your browser cookies, refresh the page, and allow all cookies."  
![Screenshot 2024-07-23 at 4.05.55?PM.png](/t5/image/serverpage/image-id/337442i19AAE7C9063F2001/image-size/large?v=v2&px=999 "Screenshot 2024-07-23 at 4.05.55?PM.png")  

However after clearing cookies, and attempting the import with other browsers (primary chrome also tested safari) the error persists.  

What other steps can we try to dismiss this issue and allow connection to a google drive account?


Answers:
author: Caitlin
body: We discovered an answer here, it turns out that only accepting required cookies for Trello had the result of denying a cookie needed for the import functionality.   

We also ran into a documented issue with Cookie Preferences not updating correctly - See <https://community.atlassian.com/t5/Atlassian-Account-questions/Cookie-preferences-not-saving/qaq-p/2736369> for more information


author: Kristian Klima
body: Hi [@Caitlin](/t5/user/viewprofilepage/user-id/5057829) and Welcome to the Community.

Did you pass the authentication step when importing files from Google Docs?

I've managed to import a file successfully just now - our G-drive and Confluence are on the same SSO, after selecting the account, the authentication process was automatic.

(having said that, the imported document looks awful and I'd be better of doing the good old copy paste :) )

comments: author: Caitlin
body: Hi [@Kristian Klima](/t5/user/viewprofilepage/user-id/5074962) Thank you for checking out our question!  

In this case, this error appears before Google has a chance to request authorization to the account, and as of now, only one of our staff members using the space (with identical permissions to others) is reporting an issue.   

We've found a workaround for the time being, though it would be good just for our own background to figure this one out.


Tags: cloud

confluence-cloud

cookie

google-drive

import
Bullet list in tables not indented correctly in PDF export
Asked by Matthew Furry:

On the page the bulleted list appears correctly when placed in a table

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

When exported to PDF it looks like the indent is negative and moves into the column to the left:

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

The indents get more negative instead of positive.

Is this a bug?

Can anyone suggest a work-around for the CSS for PDF export? Is this a problem with the confluencedefaultpdf.css?

```
.wiki-content ul {    list-style-type:disc;}/* table view for several macros*/.tableview td {	border-color:#CCCCCC;	border-style:solid;	border-width:0 0 1px;	margin:0;	padding:4px 10px 4px 5px;	text-align:left;}
```


Answers:
author: Anna-Lisa de Oliveira L?hrer
body: For me, adding a padding for unordered lists helped as a workaround:

.wiki-content table ul  
{

padding-left: 50px;

}

I just then also had to set a tiny padding for the ordered lists, to limit their shifting to the other side (in our CSS, we use the list-style-types decimal, lower roman and lower alpha):

.wiki-content ol, .wiki-content ol ol ol ol, .wiki-content ol ol ol ol ol ol ol, .wiki-content ol ol ol ol ol ol ol ol ol ol

<br />

{

padding-left: 1px;

}

The padding value can be adjusted as needed.

The only thing that still does not work is the different disc style for sub levels of the list.

comments: author: Matthew Furry
body: Brilliant, thanks! That does clean up the tables quite a bit:  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/338008i0513A73016270A84/image-size/large?v=v2&px=999 "image.png")


author: Matthew Furry
body: Identified as a bug

<https://jira.atlassian.com/browse/CONFCLOUD-78986>


author: Dan Breyen
body: [@Matthew Furry](/t5/user/viewprofilepage/user-id/691531) I think one of these are your issue: [CONFCLOUD-57136](https://jira.atlassian.com/browse/CONFCLOUD-57136) [CONFCLOUD-31366](https://jira.atlassian.com/browse/CONFCLOUD-31366)

They've been closed as 'Won't Fix' due to no votes. I would confirm that with [Atlassian Support](https://support.atlassian.com/contact/?support_type=customer&inquiry_category=#/) and see if they can reopen them. Then we need to start gathering a bunch of votes. Please post the results. If they reopen them, I'll vote for them too.

Hope that helps

comments: author: Matthew Furry
body: Thanks, those appear un-related. My issue is basic alignment and a bug in the PDF export.


Tags: cloud

confluence-cloud

pdf-export
How to find number of each unique excerpt I have used in a document along with its original page
Asked by Nilotpal Kashyap:

I have a document with multiple pages. Is there a way to see how many times I have used each excerpt I have created and in what pages they are present along with the original excerpt page ?


Answers:
author: Shawn Doyle - ReleaseTEAM
body: None that I know of, other than manually counting and collecting that data.

comments: author: Nilotpal Kashyap
body: Can this be done using the rest api or something.


author: Shawn Doyle - ReleaseTEAM
body: Yes, you could grab the page content via the REST API, then script something to extract the excerpts, and then parse for the URLs to the other pages, all the while counting the excerpts.


Tags: cloud

confluence-cloud
REST API with Okta connection
Asked by Tal Florentin:

Hey, I'm trying to find a way to use the Confluence API (using python) when I don't have Password (I connect to Confluence via Okta).

Couldn't find helpful articles about it online. Thanks


Answers:
author: Shawn Doyle - ReleaseTEAM
body: Use a token

<https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/>


Tags: cloud

confluence-cloud