youngmon/atlassian-qna huggingface dataset:
How can I set width of Confluence Cloud table columns using Confluence REST API?
Asked by Bruce Wilcox:

The below html is not working. text-align works but not width. Columns have equal widths.

```
<table>
<tr>
<th style="text-align: center; font-size: large; width: 5%;">
#
</th>
<th style="text-align: center; font-size: large; width: 10%;">
Number
</th>
<th style="text-align: center; font-size: large; width: 40%;">
Title
</th>
<th style="text-align: center; font-size: large; width: 10%;">
FDX
</th>
<th style="text-align: center; font-size: large; width: 10%;">
OFX
</th>
<th style="text-align: center; font-size: large; width: 10%;">
FIRE
</th>
</tr>
...
```


Answers:
author: Diego
body: Hello [@Bruce Wilcox](/t5/user/viewprofilepage/user-id/1643739) ! As I understand, you need to manually set the Table Column width via REST API.

Looking at your lines, I see that everything should be working, CSS/HTML wise. If we take a look at a 3x3 table created in Confluence, here is what the syntax looks like:

![TableSyntax.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/87391i52A5B96AFFCC4DF0/image-size/large?v=v2&px=999 "TableSyntax.jpg")

Here is the table:

![TableImage.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/87392i1E36545C81E3B65F/image-dimensions/510x131?v=v2 "TableImage.jpg")

With this in mind, ++*we can apply the desired width to the \<col\> tag inside the \<colgroup\> tag. This element should support size in %.*++

**++*Try to remove the width parameter from the style in your table headers\<th\> and move it to the \<col\> inside \<colgroup\>.*++**

I hope this helps you out, Bruce! Looking forward to your reply.

comments: author: Bruce Wilcox
body: Thank you very much, Diego.

I changed to the following and it works.

```
<table>
<colgroup>
<col style="width: 36px;" />
<col style="width: 48px;" />
<col style="width: 480px;" />
<col style="width: 36px;" />
<col style="width: 36px;" />
<col style="width: 36px;" />
</colgroup>
<tr>
```

I find that (1) %'s do not work and (2) using pixels actually sets proportional not absolute widths.

I also find that xhtml is required. You must close empty tags with /\>.

Thank you again.


author: Diego
body: Great to know that you were able to create the table, [@Bruce Wilcox](/t5/user/viewprofilepage/user-id/1643739) ! Also, thank you very much for sharing those tips here with the community.


author: Duane Kuroda
body: [@Diego](/t5/user/viewprofilepage/user-id/1188952) I tried nearly the same \<colgroup\>\<col\> structure as above using px widths, and I don't get the same effect when creating a cloud confluence page via API. All my columns end up the same width. Note: I am creating the table in an expanded section, so if the two are not compatible, that would be good to know.

Is there any sample code you can share where I can create a test page that works as stated in the 'fix' above?


author: Dvir Yitzchaki
body: I also can't get it to work on cloud

edit: it's working after doing the initial change in the UI and then modifying the xhtml by hand


Tags: atl-adm

cloud
Children Display Macro
Asked by clevjam:

Is there a way to automatically number the items in the 'Children Display Macro'?

It would be really nice to know how many child pages there are.

It would also be really nice to be able to use multi-level number, so one could very quickly and easily reference a specific page, such as:

1. Child page 1

2. Child page 2

2.1 xxx

2.1.1 yyy

3. Child page 3


Answers:
author: Kian Stack Mumo Systems
body: Hello,  

Have you taken a look at the Pagetree Macro? This is an example of the macro being run on my page.

![Screen Shot 2020-03-18 at 9.21.42 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/86927i397E6DC6FFB54CCF/image-size/large?v=v2&px=999 "Screen Shot 2020-03-18 at 9.21.42 AM.png")

comments: author: clevjam
body: That's a pretty nice macro, but it doesn't seem to provide the auto-numbering feature that I'm looking for.

My main goal with the auto-numbering is to clearly get a quick count and in turn a high-level scope of the work.

For example:

If I can quickly see that there are 12 child pages and I know that each one will take 5 minutes to update (or fix or create or ...), then I will know that it is going to take approximately an hour to do the work.


author: Kian Stack Mumo Systems
body: Hello,  

Are you familiar with user macros/do you have access to create them? I found an existing (credit to [@Steven F Behnke](/t5/user/viewprofilepage/user-id/781476) one [online](https://community.atlassian.com/t5/Answers-Developer-Questions/Creating-a-Custom-Page-Tree-macro/qaq-p/469709) and modified it slightly to get a first pass at what you are looking for. It will look one level deep, and provide a count for all the child pages.  

If you need it to look deeper, that could be done, but I'd have to spend some more time on it.

![Screen Shot 2020-03-18 at 10.59.26 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/86942i79FA9BB430B80D97/image-size/large?v=v2&px=999 "Screen Shot 2020-03-18 at 10.59.26 AM.png")

To create this, go to Administration \> User Macros \> Create new use rmacro.

For the options, I put in the following:

![Screen Shot 2020-03-18 at 11.05.44 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/86944iF1A3C8A867EF0B96/image-dimensions/255x289?v=v2 "Screen Shot 2020-03-18 at 11.05.44 AM.png")

The code itself looks like this:

## Macro title: Children and Parent  
## Macro has a body: N  
## Body processing: No macro body  
##  
## Developed by: Steve Behnke, modified by Kian Stack  
## Date created: 3/18/2020  
## Installed by: Your name here...  
##  
## This macro creates a unordered list of the current page and descendants.  
##  
## @noparams  
#set($currentPage = $pageManager.getPage($content.getId()))  
#set($childPages = $currentPage.getChildren())  
\<ul\>  
\<li\>  
\<a href="$currentPage.getUrlPath()"\>$currentPage.getDisplayTitle()\</a\>  
\</li\>  
\<ol\>  
#foreach ($childPage in $childPages)  
\<li\>  
\<a href="$childPage.getUrlPath()"\>$childPage.getDisplayTitle()\</a\>  
\</li\>  
#end  
\</ol\>  
\</ul\>
New Editor - Can't leave comment when publishing?
Asked by Wendy Emerman:

Is there a ticket for bringing back the publish - comment field in the new editor? This was very useful. The field is still there on the page history.


Answers:
author: Diego
body: Hello [@Wendy Emerman](/t5/user/viewprofilepage/user-id/323800) ! You are correct when you say that this is not available via the user interface in the new editor.

Recently we had some movement towards the reinstatement of the feature.

Here is the report:
> * ++**[\[Confluenc Cloud\] Bring back the "what's changed" comment box](https://jira.atlassian.com/browse/CONFCLOUD-65695)**++

However, there is another way around the absence of this feature. You should be able to re-enable the Old editor, which does have this feature. Here is one of our blogposts about that:
> * ++**[\[Atlassian Community\] Change to your content is in your hands](https://community.atlassian.com/t5/Confluence-Cloud-articles/Change-to-your-content-is-in-your-hands/ba-p/1324476)**++

I hope this sheds some light! Looking forward to your reply.

comments: author: Wendy Emerman
body: Disappointed that it's not an active ticket, but I cast my vote.

Thank you!


author: Diego
body: Thank you for taking part on this! Glad you took some of your time to check the report and vote for it.


Tags: cloud
Is it possible to download a file by clicking on the image if it is linked to the file?
Asked by Ganesh_Kumar_Vary:

Hi, calling for help with an issue in Confluence.  

Use-case/requirement: User should be able to download a pdf file once he/she clicks on a button in Confluence page. It should not give preview or open the file directly on the page, but ask to save/open.  

Our solution: We created a button kind of image in draw.io and embedded the pdf file. To avoid showing the draw.io toolbar we chose the option to hide the toolbar.  

Problem: The problem with the drawio macro is that there is a gap automatically formed before the next line or just below this draw.io button/image. We could not contain text line immediately.  

Looking forward to some help on this![COKE project`1.png](https://community.atlassian.com/t5/image/serverpage/image-id/86896i081F000E111D1C18/image-size/large?v=v2&px=999 "COKE project`1.png")


Answers:
author: Diego
body: Hello [@Ganesh_Kumar_Vary](/t5/user/viewprofilepage/user-id/3693406) !

I++*t surely is possible for you to create a download button in a Confluence page.*++ There is even the possibility of you using a simple image as the button. ++*There is no need for you to resort to the usage of a macro such as Draw.io.*++

Here is a .gif of how to achieve this:

![downloadButton.gif](https://community.atlassian.com/t5/image/serverpage/image-id/87153i2B43DC15334B1F8E/image-dimensions/592x270?v=v2 "downloadButton.gif")

The text explanation follows:
> 1. *Go to the page which contains the attachment*
> 2. *Click the paperclip at the top left corner (this will take us to the attachments page for that page)*
> 3. *Click to preview the desired attachment*
> 4. *Click with the right mouse button on the Download button at the top right corner*
> 5. *Select to Copy Link Location*
> 6. *Go to the page where you need to place the download button*
> 7. *Enter edit mode*
> 8. *Upload or select an image to be used as a button*
> 9. *Select the image*
> 10. *Click the LINK option*
> 11. *Select Web Link*
> 12. *Wait a few seconds*
> 13. *Paste the link you copied earlier*
> 14. *Click save*
> 15. *Publish the page*

I hope this helps you out, Ganesh! Looking forward to your reply.


Tags: confluence-server

server
How to use the "old editor"
Asked by Mads:

Atlassian has recently made an announcement -- through a blog post -- that [the old editor is not going anywhere for the foreseeable future](https://community.atlassian.com/t5/Confluence-Cloud-articles/Change-to-your-content-is-in-your-hands/ba-p/1324476 "Atlassian blog post about the old editor not going away for the foreseeable future") .

Much rejoicing all around the world. However, some users are still in doubt as to how to use the old editor. Here is how, in the Cloud version of Confluence:

When you create a new page, click the entry called "Blank page (old) (going away soon)" -- located at the top right in the "Create" dialog.

![Screenshot_20200318_130415.png](/t5/image/serverpage/image-id/86897i9A567A77C62AD52B/image-dimensions/520x290?v=v2 "Screenshot_20200318_130415.png")

Don't worry about the "going away soon" part -- it has been like this for months, if not a year. And, the blog post tell us not to worry about it actually happening.

If this option should not show, try scrolling to the bottom of the list, and look for a link to "Show more templates" or similar. If you click this, then it should show up.

Another option for using the old editor is to simply copy a page created with the old editor, then deleting all content, and starting over.


Answers:
author: Mads
body: I am sorry, I have no idea. The old editor is still available in my instance.


author: Rastko Anicic
body: I'd like to know the same


author: Maureen_Pafumi
body: I have a page I created prior to the new editor. I am trying to edit this page and it seems that it's the new editor features that are at play. Is there anyway to change this? I don't want to have to completely re-create this page.


author: Mads
body: I am sorry - apparently different sites have different access. I would contact Atlassian.

Would be great if you could add some more information here, if you figure something out.


author: David Lim
body: I don't see blank page (old) nor do I see "show more templates". Do I need to contact Atlassian?


Tags: confluence-cloud
Confluence 7.3.3-x64 install fails: could not find main class
Asked by RAKSoft-CH:

Hello,

I'm trying to install Confluence on my system (Win 10 Pro, 64MB RAM) but it continues to fail with an error message saying: **Couldn't load main class** and pointing to the log file "..\\AppData\\Local\\Temp\\i4j_nlog.log".

In that log file I find the following (extract):

```
[6:934] Creating JVM
[6:973] JVM created
[6:973] load helper dll
[6:973] helper dll (in-module) 00007FF65A110000
[6:980] ERROR: did not find com/install4j/runtime/installer/platform/win32/Common
[6:980] ERROR: did not find WinDel class
[6:980] setting exe4j.moduleName to R:\__Purchased Software\_Development\Atlassian\2020-03-17\atlassian-confluence-7.3.3-x64.exe
[6:981] main class: com/install4j/runtime/launcher/WinLauncher
[6:981] ERROR: could not find main class
[7:31] Java window visible
```

Turning the Anti-Virus software off doesn't make a difference.  
Does somebody have an idea how to solve this issue?

Thanks in advance,

Rolf Andr?


Answers:
author: RAKSoft-CH
body: I was able to solve this by using the ZIP-file (*atlassian-confluence-7.7.3.zip* ), i.e. a manual installation of Confluence instead of the installer (e.g. *atlassian-confluence-7.7.3-x64.exe*). The EXE resulted in the described error no matter which version of the Confluence installer I used.
How do I create groups in confluence cloud?
Asked by Silvina Masi:

hi I am trying to create groups in confluence cloud in order to assign them permissions.

Unfortunately I do not see the button create group.

Can you please help me?

Thanks


Answers:
author: Ollie Guan
body: Hi [@Silvina Masi](/t5/user/viewprofilepage/user-id/3811844) ,

Go to your site's Administration at admin.atlassian.com

If you're an admin for one site, you'll land on the Users page of your site.

**Create and update groups**

<https://confluence.atlassian.com/cloud/create-and-update-groups-744721627.html>

**Confluence Groups**

<https://confluence.atlassian.com/confcloud/confluence-groups-724765433.html>

comments: author: Silvina Masi
body: Thank you :)


Tags: cloud
exclude images from macro "space attachments list"
Asked by David Segers:

Hi,

I'm currently creating a project management wiki and want to realize a kind of quick access page to all tools and templates of the space (mainly .xlsx and .docx)

But as I used many pictures, the result is a long list with many pictures and only some excel and word files in between.

Is there any possiblity to exclude images from macro "space attachments list"? Maybe something like a preset filter value?

![2020-03-18 09_06_13-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/86880iFD83F832C38AE1B3/image-size/large?v=v2&px=999 "2020-03-18 09_06_13-Window.png")


Answers:
author: Andreas Purde
body: Dear David,

can't you use the filename pattern parameter if your macro to exclude your images? It is a regular expression parameter so it might work.

kind regards

Andreas


Tags: attachment

confluence-server

exclude

image

macro

server
Demonstration Space Content
Asked by emanuel dieter:

Hi,

I accidentally deleted the demo space, but I'd like to have that content as a reference for my users. None of us have ever used Confluence before. Is there a way to get it back? Can I download it somewhere?  

Thanks,  
Emanuel


Answers:
author: emanuel dieter
body: I figured it out, there is a copy of the demo space in the Confluence installation.   

I imported this file with the backup \& restore tool (general config \> backup \& restore \> Upload a site or space export file)

\<confluence installation path\>\\confluence\\WEB-INF\\classes\\com\\atlassian\\confluence\\setup\\demo-site.zip

This page helped me figure it out <https://confluence.atlassian.com/confkb/how-do-i-update-my-demonstration-space-331914443.html>


author: Parvaneh Zand
body: Hi [@emanuel dieter](/t5/user/viewprofilepage/user-id/3810000) ,

You can restore a page within a space, but you can't restore deleted spaces.

<https://confluence.atlassian.com/confkb/can-i-restore-a-recently-deleted-page-or-space-180295253.html>

comments: author: emanuel dieter
body: Luckily for me Confluence has a backup of the demo space in the installed files, I was able to restore it with that.


Tags: confluence-server

server
Jira Core Issue created in Confluence doesn't "connect" via Macro by itself
Asked by Alexander Siehler:

hey guys, quite confusing question but please let me try to explain.

i recently worked on a confluence document and was creating jira core issues from the confluence page (both cloud). while i did, these appeared on the page (pic).![Anmerkung 2020-03-17 190918.jpg](/t5/image/serverpage/image-id/86811i832A96CD94F8D6C2/image-size/large?v=v2&px=999 "Anmerkung 2020-03-17 190918.jpg")

since then i worked on multiple confluence documents and created issues but was never able to achieve the "link" again. it creates the issues inside the chosen business project on jira core, but doesn't link them on the confluence page. is anyone able to help? what do i need to do?


Answers:
author: Diego
body: Hello [@Alexander Siehler](/t5/user/viewprofilepage/user-id/3810651) !

As I understand, you are having problems when creating issues in Jira via text highlight in Confluence. With this behavior in mind, I was able to find a bug that is currently open and tackles a behavior pretty similar to the one you are facing.

Here, take a look:
> * ++**[\[Confluence Cloud\] Every other attempt to create a single JIRA issue in Confluence fails to create the JIRA issue macro in the page.](https://jira.atlassian.com/browse/CONFCLOUD-58091)**++

The workaround would be to manually insert the Jira issues macro after you create the issue. Here is a better outlook on the Issues macro:
> * ++**[\[Confluence Cloud\] Jira Issues Macro](https://confluence.atlassian.com/confcloud/jira-issues-macro-724765217.html)**++

I hope this sheds some light on the situation! Looking forward to your reply.

comments: author: Alexander Siehler
body: Hey,

thanks a lot! This seems to be the bug! Will use the workaround until resolved.   


author: Diego
body: Great! Thanks for letting me know that the workaround works for your situation.


Tags: cloud
Page Properties Report? Macro
Asked by Pietro Leggero:

When I add the

Page Properties Report' Macro {#toc-hId--1357178382}
----------------------------------------------------

with the Label created in the

Edit 'Page Properties' Macro {#toc-hId-1130334451}
--------------------------------------------------

the label is not found, and no content is displayed

(New Editor)

Why, is this a bug?


Answers:
author: Pietro Leggero
body: Solved


Tags: cloud

confluence-cloud
Default Useravatar returning 403 Http Error
Asked by Julian:

Hi,

I am running confluence 7.3.3 behind a nginx reverse proxy (configuration below). Confluence isn't able to get the default avatar (https://\<baseUrl\>/images/icons/profilepics/default.svg) at all, it's returning a 403 error. Does anyone know what I could do in order to fix that?

Nginx configuration: <https://pastebin.com/tgjwarB7> (Please note that confluence is not running on the same machine)


Answers:
author: numv
body: Hello,

I run Confluence in Docker with nginx reverse proxy and expirience the same problem:

GET https://someotherrandomstuff/_/download/images/icons/wait.gif 500  
GET https://\<url\>/images/icons/profilepics/default.svg 404  
GET https://\<url\>//images/logo/default-space-logo.svg 404


author: Julian
body: https://somerandomstuff/17.3.1/_/download/batch/com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar/com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=de-DE

Also returns a http 403 error


author: Julian
body: I also tried <https://pastebin.com/s3UxtnHi>, still doesn't work (when I use http://localIp:8090/images/icons/profilepics/default.svg) it works. So I think it might be something in the nginx / confluence webserver configuration


Tags: confluence-server

server
How do I customize a macro?
Asked by Silvina Masi:

Hello Community,

when I insert a macro (eg. layout) then I cannot edit its macro, is that normal? I would like to add background colours and I am not able to see the code.

How do I see the macro code to customize it?

Thank you very much


Answers:
author: Thomas Schlegel
body: Hi [@Silvina Masi](/t5/user/viewprofilepage/user-id/3811844) ,

you can't see the code of a macro and you can't customize its code.

comments: author: Silvina Masi
body: Thanks a lot for the information, I was not sure now you confirmed it :)

Thanks


Tags: cloud
I am trying to have a user view but not edit a child page in a space .
Asked by eva.beshlian:

"' s multiple child pages

I want the user to view \& edit some but only view all.

I have tried to restrict to view only on some but they can still edit


Answers:
author: Thomas Schlegel
body: Hi [@eva.beshlian](/t5/user/viewprofilepage/user-id/3814565) ,

you have to restrict the pages to the users who should be able to edit the page. There are two different types of restrictions: view and edit.

Viewing restrictions are inherited to the child pages, editing restrictions not. You have to restrict every single page for editing.

comments: author: eva.beshlian
body: not at all


author: eva.beshlian
body: I tried that and it seems that the page that is restricted for edit is still editable, that's why I was wondering if there was something I am missing or a known issue


Tags: cloud
Tried updating a cert in Conluence. Now i get "This page can't be displayed"
Asked by it:

I am very new at this. I followed the instructions to install a Cert, "Running Confluence Over SSL or HTTPS". I followed option 2 to import my new cert. I created a new 'genkeypair' and named it bobcat. I edited the server.xml file to point to my new keystore with the password. I'm now getting the "This page can't be displayed". I don't know what I missed. most of the configuration of the server.xml, I would think, doesn't change. The server is now down due to what I did and I need it back up real soon.


Answers:
author: Daniel Ebers
body: Hi,

terminating SSL at Tomcat-level is reported to be harder than life has to be. Many seasoned admins recommend a termination of SSL in a reverse proxy - in front of the application.

In case you are interested I'd recommend a read of: <https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html>

For the current case you described, unfortunately, it is quite impossible to state what the trouble is caused by and where a possible step was wrong/missing. With a look into log files and system specification it should be possible to troubleshoot, though.

I hope you were able to fix it meanwhile and your Confluence server is back online.

Cheers,  
Daniel


Tags: confluence-server

server
Has anyone else noticed that since today some pictures have changed in size?
Asked by Marco Bohmbach:

When I was surfing in our Confluence, I noticed that suddenly the pictures were smaller than yesterday. First I checked the history but there were no changes. So I guess there was an update for pictures in the new editor and the resizing didn't work anymore or was overwritten.


Answers:
author: Diego
body: Hello there!

As I understand, it seems that images that previously had a specific size are now smaller than said size. This is indeed a peculiar behavior, [@Marco Bohmbach](/t5/user/viewprofilepage/user-id/1251200) .

I tried to verify this behavior locally in my instance with images I had previously uploaded to the platform, ++*but they were all t* *he same size* *as before*++. I also tried with newly uploaded images and the features kept working as expected.

++*You could try to clear the browser cache or also try to access the problematic pages with another browser.*++

With this in mind, I would like to ask a few questions, here we go:
> 1. *Is this visible for other user accounts as well?*
> 2. *Is this present in another machine (computer, tablet or cellphone)?*
> 3. *Was there any change to your workstation prior to this issue?*
> 4. *Is this behavior present regardless of the browser being used?*
> 5. *Is this present with newly created pages?*

Let us hear from you! Looking forward to your reply.


Tags: cloud